/* ===============================
   GLOBAL & RESETS
================================*/
*, *::before, *::after { box-sizing: border-box; max-width: 100%; }
html, body { width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f5f6f8;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: -0.2px;
  padding-top: 105px;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
[class*="drawer"], [class*="cart"], [class*="modal"] { max-width: 100vw; }
.centered { text-align: center; }

/* ===============================
   STICKY HEADER & BANNER
================================*/
.deal-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.05);
}
.deal-left { display: flex; flex-direction: column; flex: 1; min-width: 0; padding-right: 15px; }
.deal-title { font-weight: 800; font-size: 15px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; letter-spacing: -0.3px; }
.deal-price { color: #e60000; font-weight: 800; font-size: 14px; }

.claim-btn {
  background: linear-gradient(180deg, #ff3b3b, #d90000); color: #fff; border: none;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; box-shadow: 0 4px 12px rgba(217,0,0,0.25); transition: all 0.2s ease; white-space: nowrap;
}
.claim-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217,0,0,0.35); }

.deal-banner {
  position: fixed; top: 70px; left: 0; width: 100%;
  background: #fff8e1; color: #856404; padding: 10px 15px; text-align: center;
  font-size: 13px; font-weight: 600; z-index: 9998; border-bottom: 1px solid #f3e4b5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ===============================
   CONTAINER & PRODUCT CARD
================================*/
.container { max-width: 860px; margin: auto; padding: 16px; }
.product-card { background: #fff; border-radius: 18px; padding: 22px 18px 26px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.product-gallery { background: #fff; padding: 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }

/* ===============================
   PRODUCT HERO IMAGES & THUMBS
================================*/
.product-hero { position: relative; background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08); overflow: hidden; }
.hero-image-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #f6f7f9; aspect-ratio: 1/1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.hero-image-wrap img { transition: transform .35s ease; }
.hero-badge { position: absolute; top: 12px; left: 12px; background: #ff3b3b; color: #fff; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,.25); }

.thumbs { display: flex; gap: 8px; margin: 12px 0 16px; overflow-x: auto; overflow-y: hidden; padding: 3px 3px 6px 3px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.thumbs::-webkit-scrollbar { height: 6px; }
.thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.thumbs img { flex: 0 0 auto; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; scroll-snap-align: start; transition: .2s; }
.thumbs img:hover { border-color: #111; transform: scale(1.05); }

/* REMOVE SPACING BETWEEN PRODUCT CONTENT IMAGES */
.builder img, .product-description img, .product-content img { display: block; margin: 0 !important; padding: 0 !important; width: 100%; border-radius: 0px; }

/* ===============================
   CRO PRODUCT CARD REDESIGN
================================*/
.cro-card { padding: 16px 14px 20px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); }

.product-top-info { text-align: left; margin-bottom: 15px; }
.product-title { font-size: clamp(20px, 5vw, 24px); font-weight: 800; color: #111827; margin: 0 0 8px 0; line-height: 1.25; letter-spacing: -0.5px; }

.product-stats-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.product-stats-row .stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.product-stats-row .rating-value { font-weight: 700; color: #374151; }
.product-stats-row .sold-divider { color: #d1d5db; }
.product-stats-row .sold-count { font-weight: 600; color: #ef4444; }

/* Red Urgency Stock Meter */
.stock-container { background: #fff5f5; border: 1px solid #ffcccc; border-radius: 8px; padding: 10px 14px; margin-bottom: 15px; }
.stock-text { font-size: 13px; color: #1f2937; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.stock-text strong { color: #dc2626; font-size: 14px; }
.stock-meter { width: 100%; height: 6px; background: #fde8e8; border-radius: 10px; overflow: hidden; }
.stock-meter-fill { height: 100%; background: #ef4444; width: 0%; border-radius: 10px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 5px; }
.price-row .current-price { font-size: clamp(28px, 6vw, 32px); font-weight: 900; color: #111827; line-height: 1; letter-spacing: -1px; }
.price-row .old-price { font-size: 16px; color: #9ca3af; text-decoration: line-through; font-weight: 500; }

.cro-divider { border: none; border-top: 1px dashed #e5e7eb; margin: 14px 0; }

/* LEFT ALIGN VARIANTS ON MOBILE */
.variant-group { margin-bottom: 14px; text-align: left; }
.cro-variants .variant-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; font-weight: 700; margin-bottom: 6px; display: block; text-align: left; }
.variant-swatches { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.variant-swatch { background: #fff; border: 2px solid #e5e7eb; color: #374151; padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.variant-swatch:hover { border-color: #d1d5db; }
.variant-swatch.active { border-color: #e60000; color: #e60000; background: #fffafa; box-shadow: 0 2px 8px rgba(230,0,0,0.15); }

/* Trust Badges */
.trust-badges-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
.trust-item { background: #f9fafb; border: 1px solid #f3f4f6; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #4b5563; display: flex; align-items: center; justify-content: center; gap: 6px; }
.t-icon { font-size: 14px; }

/* Add to Cart Pulse */
.buy-wrap { margin-top: 14px; display: flex; justify-content: center; }
.buy-btn { width: 100%; max-width: 460px; border: none; cursor: pointer; transition: all .2s ease; }
.buy-btn.cro-pulse { height: 56px; font-size: 17px; font-weight: 800; letter-spacing: .3px; border-radius: 12px; background: linear-gradient(180deg, #ff3b3b, #cc0000); color: #fff; box-shadow: 0 8px 25px rgba(204,0,0,0.3); animation: cro-pulse 2s infinite; }
@keyframes cro-pulse { 0% { transform: scale(1); box-shadow: 0 8px 25px rgba(204,0,0,0.3); } 50% { transform: scale(1.02); box-shadow: 0 12px 30px rgba(204,0,0,0.4); } 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(204,0,0,0.3); } }

/* ===============================
   DESCRIPTION & TIMERS
================================*/
.description-card { background: #fff; border-radius: 20px; padding: 26px; margin-top: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.desc-btn { display: inline-block; background: #ff4d4f; color: #fff; padding: 14px 28px; border-radius: 6px; font-weight: bold; text-decoration: none; }
.desc-divider { margin: 30px 0; border: none; border-top: 2px solid #eee; }
.desc-badge { background: #ffcc00; padding: 4px 10px; border-radius: 4px; font-weight: bold; }
.desc-timer { margin: 10px 0; text-align: center; padding: 10px 0; }
.timer-text { font-weight: bold; margin-bottom: 10px; }
.timer-countdown { font-size: 28px; font-weight: bold; color: #ff4d4f; }

/* ===============================
   CUSTOMER PROOF (SLIDER)
================================*/
.proof-section { text-align: center; padding: 50px 15px; background: #f6f6f6; }
.proof-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.proof-sub { color: #ff5a00; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.proof-note { color: #666; max-width: 720px; margin: auto; font-size: 14px; line-height: 1.6; }

.proof-wrapper { display: flex; justify-content: center; align-items: center; gap: 20px; max-width: 800px; margin: 30px auto; }
.proof-main { width: 100%; flex: 1; position: relative; max-width: 500px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); background: #f8f9fa; }

.proof-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease-in-out; }
.proof-slide.active { opacity: 1; z-index: 2; }
.proof-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; padding-right: 5px; }
.proof-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: 0.3s; flex-shrink: 0; }
.proof-thumb.active, .proof-thumb:hover { opacity: 1; transform: scale(1.05); border: 2px solid #e60000; }

.proof-prev, .proof-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 22px; padding: 8px 12px; cursor: pointer; border-radius: 6px; z-index: 5; }
.proof-prev { left: 12px; }
.proof-next { right: 12px; }

.proof-cta { display: inline-block; margin-top: 28px; background: #e60000; color: #fff; padding: 18px 34px; border-radius: 10px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: .3s; }
.proof-cta:hover { transform: translateY(-3px); }

/* ===============================
   PREMIUM REVIEWS CSS UPGRADE
================================*/
.adv-reviews-container { width: 100%; max-width: 800px; margin: 40px auto; font-family: 'Poppins', sans-serif; }

/* Top Summary Card */
.adv-summary-card { background: #fff; border-radius: 16px; padding: 30px; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid #f1f5f9; margin-bottom: 30px; }
.adv-rating-left { flex: 1; min-width: 150px; text-align: center; border-right: 1px solid #e2e8f0; padding-right: 20px; }
.adv-rating-left h2 { font-size: 56px; font-weight: 800; margin: 0; color: #0f172a; line-height: 1; }
.adv-rating-left .stars { color: #f59e0b; font-size: 24px; margin: 10px 0; letter-spacing: 2px; }
.adv-rating-left p { font-size: 13px; color: #64748b; font-weight: 500; margin: 0; }

/* Rating Bars */
.adv-bars-right { flex: 2; min-width: 250px; }
.adv-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #475569; }
.adv-bar-row .star-label { width: 45px; color: #f59e0b; font-size: 14px; }
.adv-bar-track { flex: 1; height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.adv-bar-fill { height: 100%; background: #f59e0b; border-radius: 10px; }
.adv-bar-row .pct { width: 40px; text-align: right; color: #94a3b8; }

/* Write Review Button */
.adv-write-btn { width: 100%; text-align: center; margin-top: 15px; }
.adv-write-btn button { background: #0f172a; color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: .2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: inherit; }
.adv-write-btn button:hover { transform: translateY(-2px); background: #1e293b; }

/* Individual Reviews */
.adv-review-list-title { font-size: 20px; font-weight: 700; color: #0f172a; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 20px; }
.adv-review-card { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; }
.adv-review-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.adv-user-meta { display: flex; align-items: center; gap: 12px; }

/* Avatar Setup */
.adv-avatar { width: 42px; height: 42px; background: #f1f5f9; color: #475569; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.adv-user-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.adv-user-stars { color: #f59e0b; font-size: 14px; margin-top: 2px; letter-spacing: 1px;}

/* Verified Tag */
.adv-verified-badge { display: flex; align-items: center; gap: 4px; color: #10b981; font-size: 12px; font-weight: 600; background: rgba(16,185,129,0.1); padding: 4px 10px; border-radius: 20px; }

/* Text & Images */
.adv-review-msg { font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 15px; }
.adv-review-gallery { display: flex; gap: 10px; flex-wrap: wrap; }
.adv-review-gallery img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid #e2e8f0; transition: .2s; }
.adv-review-gallery img:hover { transform: scale(1.05); border-color: #cbd5e1; }


/* ===============================
   MODALS & POPUPS
================================*/
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 9999; }
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 14px; }

.review-popup { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 9999; }
.popup-box { background: #fff; padding: 20px; border-radius: 10px; width: 90%; max-width: 360px; }
.popup-stars { text-align: center; font-size: 22px; color: #f5b301; margin-bottom: 10px; }
.popup-actions { display: flex; gap: 10px; }
.popup-note { font-size: 12px; color: #777; margin-top: 8px; }

/* ===============================
   CART DRAWER & OVERLAY
================================*/
#cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .3s; z-index: 10000; }
#cart-overlay.open { opacity: 1; pointer-events: all; }

#cart-drawer { position: fixed; top: 0; right: -420px; width: 420px; height: 100%; background: #fff; z-index: 10001; display: flex; flex-direction: column; transition: .3s; box-shadow: -4px 0 24px rgba(0,0,0,0.15); }
#cart-drawer.open { right: 0; }

.cart-header { padding: 20px 24px; background: #fdfdfd; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.cart-header h2, .cart-title { font-size: 22px; font-weight: 800; color: #111; letter-spacing: .3px; margin: 0; }

.cart-close-btn { background: #f3f4f6; color: #4b5563; border-radius: 50%; transition: 0.2s; width: 36px; height: 36px; border: none; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-close-btn:hover { background: #e5e7eb; color: #111; transform: rotate(90deg); }

#cart-contents { flex: 1; overflow-y: auto; padding: 0 24px; }

/* Item List Styling */
.cro-cart-list { display: flex; flex-direction: column; }
.cro-cart-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #f3f4f6; }
.cro-cart-item:last-child { border-bottom: none; }

/* Product Image */
.cro-img-wrapper { width: 80px; height: 80px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 1px solid #f3f4f6; background: #f9fafb; }
.cro-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.cro-cart-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cro-cart-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cro-cart-title { font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.3; margin: 0; }
.cro-cart-variants { font-size: 13px; color: #6b7280; margin: 4px 0 10px; }

/* Delete Button */
.cro-remove-btn { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 2px; transition: color 0.2s ease; }
.cro-remove-btn:hover { color: #ef4444; }

/* Quantity & Price Bottom Row */
.cro-cart-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.cro-cart-price { font-size: 16px; font-weight: 800; color: #d90000; }
.cro-qty-control { display: flex; align-items: center; background: #f3f4f6; border-radius: 8px; overflow: hidden; }
.cro-qty-control button { background: none; border: none; width: 32px; height: 32px; font-size: 16px; font-weight: 600; color: #4b5563; cursor: pointer; transition: 0.2s; }
.cro-qty-control button:hover { background: #e5e7eb; color: #111; }
.cro-qty-control span { width: 24px; text-align: center; font-size: 14px; font-weight: 700; color: #111; }

/* Footer & Checkout Styling */
.cart-footer { padding: 24px; background: #fff; border-top: 1px solid #f3f4f6; box-shadow: 0 -4px 20px rgba(0,0,0,0.04); margin-top: auto; }
.cart-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 14px; color: #4b5563; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-grand-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 900; color: #111; padding-top: 16px; border-top: 1px dashed #e5e7eb; margin-bottom: 20px; }

.checkout-btn {
  width: 100%; padding: 18px; font-size: 18px; font-weight: 800; letter-spacing: 0.5px;
  color: #fff; background: linear-gradient(180deg, #ff3b3b, #cc0000); border: none;
  border-radius: 12px; cursor: pointer; box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
  transition: all 0.2s ease; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(204, 0, 0, 0.35); }

.secure-badge { text-align: center; font-size: 12px; color: #6b7280; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; }

#sticky-cart-btn { position: fixed; top: 120px; right: 16px; background: #ffffff; border: 1px solid #dddddd; border-radius: 999px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; z-index: 10002; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
#sticky-cart-count { position: absolute; top: -6px; right: -6px; background: #c00000; color: #ffffff; font-size: 12px; font-weight: bold; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#sticky-cart-btn.hidden { opacity: 0; pointer-events: none; }

/* UTILS */
.lazy-img { opacity: 0; transition: opacity .6s ease; }
.lazy-img.loaded { opacity: 1; }

/* ===============================
   CHECKOUT PAGE STYLES (ADDED)
================================*/
.checkout-container { width: 100%; max-width: 640px; margin: 10px auto 40px auto; padding: 0 15px; }
.secure-header { text-align: center; margin-bottom: 25px; margin-top: 0; }
.secure-header svg { color: #10b981; width: 32px; height: 32px; margin-bottom: 5px; }
.secure-header h1 { font-size: 24px; font-weight: 700; margin: 0; color: #111827; }
.secure-header p { color: #6b7280; font-size: 14px; margin: 5px 0 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }

.checkout-card { background: #ffffff; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); padding: 30px; margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; }

.checkout-container .form-group { margin-bottom: 16px; }
.checkout-container label { font-size: 13px; font-weight: 600; color: #4b5563; display: block; margin-bottom: 6px; }
.checkout-container input[type="text"], 
.checkout-container textarea, 
.checkout-container select { 
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid #d1d5db; 
    background: #f9fafb; font-size: 15px; outline: none; transition: all 0.2s ease; font-family: 'Inter', sans-serif; 
}
.checkout-container input[type="text"]:focus, 
.checkout-container textarea:focus, 
.checkout-container select:focus { border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.checkout-container select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px;}
.checkout-container select:disabled { opacity: 0.6; cursor: not-allowed; background-color: #e5e7eb; }
.checkout-container select option { color: #111827; background-color: #ffffff; }

.payment-type-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-tab { flex: 1; border: 1px solid #d1d5db; background: #ffffff; border-radius: 8px; padding: 16px 10px; text-align: center; cursor: pointer; transition: 0.2s; position: relative; }
.pay-tab input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }
.pay-tab-content { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-tab-content svg { color: #9ca3af; width: 24px; height: 24px; transition: 0.2s; }
.pay-tab-content span { font-size: 14px; font-weight: 600; color: #4b5563; transition: 0.2s; }
.pay-tab:has(input:checked) { border: 2px solid #2563eb; background: #eff6ff; }
.pay-tab:has(input:checked) .pay-tab-content svg, .pay-tab:has(input:checked) .pay-tab-content span { color: #1d4ed8; }

/* Fixed Payment Grid Logos */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 15px; background: #f9fafb; padding: 15px; border-radius: 8px; border: 1px solid #e5e7eb; }
.channel-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid #d1d5db; background: #fff; border-radius: 8px; padding: 16px 5px; text-align: center; cursor: pointer; transition: 0.2s; position: relative; }
.channel-card img { height: 28px; width: auto; max-width: 90%; object-fit: contain; margin: 0; }
.channel-card span { font-size: 12px; font-weight: 600; color: #4b5563; display: block; line-height: 1; margin: 0; }
.channel-card input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }
.channel-card:has(input:checked) { border: 2px solid #2563eb; background: #eff6ff; }

.summary-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: #4b5563; margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; color: #111827; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #cbd5e1; }

.checkout-container .pay-btn { width: 100%; background: #10b981; color: #fff; padding: 16px; border: none; border-radius: 12px; font-size: 18px; font-weight: 700; margin-top: 20px; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3); }
.checkout-container .pay-btn:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4); }

.checkout-container .trust-badges { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.checkout-container .trust-badge { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #6b7280; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.checkout-container .trust-badge svg { width: 20px; height: 20px; color: #9ca3af; }
.cod-warning { font-size:12px; color:#dc2626; margin-top:6px; font-weight:600; text-align: center; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ===============================
   MEDIA QUERIES (DESKTOP)
================================*/
@media(min-width: 900px) {
  .deal-header { padding: 14px 40px; justify-content: center; gap: 40px; }
  .deal-left { flex: 0 1 auto; align-items: center; flex-direction: row; gap: 15px; }
  .deal-title { font-size: 17px; margin-bottom: 0; }
  .deal-price { font-size: 15px; background: #ffecec; padding: 4px 12px; border-radius: 6px; }
  .claim-btn { padding: 12px 28px; font-size: 15px; }
  .deal-banner { top: 68px; font-size: 14.5px; padding: 12px 20px; }
  body { padding-top: 125px; }

  .container { max-width: 1200px; padding: 40px 20px; }
  /* Added padding for the single card, reduced gap, and fixed grid blowout */
  .desktop-product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding: 30px; }
  .product-left { position: sticky; top: 120px; min-width: 0; }
  .product-right { text-align: left; min-width: 0; }
  
  .product-right .centered, .variant-group, .deal-timer { text-align: left; }
  .variant-swatches, .trust-badges, .buy-wrap, .price-wrap { justify-content: flex-start; }
  
  .product-title { font-size: 36px; line-height: 1.2; margin-bottom: 12px; }
  .current-price { font-size: 38px; }

  /* CRO Layout Updates */
  .cro-card { padding: 24px 20px 30px; }
  .product-title { font-size: 28px; margin-bottom: 12px; text-align: left; }
  .social-proof-row { margin-bottom: 20px; flex-direction: row; justify-content: flex-start; }
  .price-box { margin-bottom: 20px; text-align: left; align-items: flex-start; }
  .price-wrap { justify-content: flex-start; }
  .cro-divider { margin: 24px 0; }
  .variant-group { margin-bottom: 20px; }
  .cro-variants .variant-group label { text-align: left; margin-bottom: 12px; font-size: 13px;}
  .variant-swatches { gap: 10px; justify-content: flex-start; }
  .variant-swatch { padding: 12px 18px; font-size: 14px; }
  .buy-wrap { margin-top: 24px; }
  .buy-btn.cro-pulse { height: 64px; font-size: 18px; }
  .trust-badges-grid { margin-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-item { padding: 10px; font-size: 13px; }
}

@media(min-width: 1400px) {
  .desktop-product-layout { gap: 80px; }
}

/* ===============================
   MEDIA QUERIES (MOBILE)
================================*/
@media(max-width: 768px) {
    /* Proof Slider Mobile Fixes (No More Collapse!) */
    .proof-wrapper { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
    .proof-main { flex: none; max-width: 100%; }
    .proof-thumbs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; width: 100%; justify-content: flex-start; padding-bottom: 5px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; gap: 8px;}
    .proof-thumb { width: 65px; height: 65px; flex-shrink: 0; scroll-snap-align: start;}
    
    /* Advanced Reviews Mobile Fixes */
    .adv-rating-left { border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; padding-bottom: 25px; }
    .adv-summary-card { flex-direction: column; gap: 20px; padding: 24px; }
    .adv-review-header { flex-direction: column; }
}

@media(max-width:480px) { 
    .checkout-container { margin: 20px auto; } 
    .checkout-card { padding: 20px 15px; } 
    .payment-grid { grid-template-columns: repeat(3, 1fr); padding: 10px; gap: 8px; }
    .channel-card { padding: 12px 4px; gap: 8px; }
    .channel-card img { height: 22px; }
    .channel-card span { font-size: 11px; }
}

/* ===============================
   COLLECTION PAGE STYLES
================================*/
.collection-header-wrap {
    background: #111827;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: -105px; /* Pulls it up into the global body padding */
    padding-top: calc(105px + 30px); /* Pushes the text safely down */
}
.collection-title-main {
    margin: 0;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.collection-banner {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.collection-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px 80px 15px;
}
.col-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media(min-width: 768px) {
    .col-product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media(min-width: 1024px) {
    .col-product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.col-grid-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.col-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.col-img-wrap {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f9fafb;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.col-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.col-grid-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.col-grid-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.col-grid-rating {
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.col-grid-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.col-grid-price {
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: -0.5px;
}
.col-grid-old-price {
    font-size: 13px;
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 600;
}
.col-grid-btn {
    margin-top: 16px;
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}
.col-grid-card:hover .col-grid-btn {
    background: #3b82f6;
}
@media(max-width: 480px) {
    .col-grid-info { padding: 12px; }
    .col-grid-name { font-size: 13px; }
    .col-grid-price { font-size: 18px; }
    .col-grid-btn { padding: 10px; font-size: 12px; }
}

/* =======================================================
   COMPRESS CHECKOUT FORM (ONE PAGE)
======================================================= */
/* 1. Shrink card padding and margins */
#directCheckoutForm .checkout-card {
    padding: 10px !important;
    margin-bottom: 2px !important;
}

/* 2. Shrink section titles */
#directCheckoutForm .checkout-card h3 {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    font-size: 15px !important;
}

/* 3. Compress shipping input gaps */
#directCheckoutForm div[style*="margin-bottom: 12px"] {
    margin-bottom: 8px !important;
}

/* 4. Compress variant dropdown gaps */
#directCheckoutForm div[style*="gap: 15px"] {
    gap: 8px !important;
}

/* 5. Shrink labels above inputs */
#directCheckoutForm label {
    margin-bottom: 4px !important;
}

/* 6. Slim down the inputs and select boxes */
#directCheckoutForm input[type="text"], 
#directCheckoutForm input[type="tel"], 
#directCheckoutForm textarea, 
#directCheckoutForm select {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

/* 7. Compress payment method options */
#onlineChannelSelect {
    margin-top: 8px !important;
    gap: 6px !important;
}
#onlineChannelSelect label {
    padding: 8px 12px !important;
    margin-bottom: 0 !important;
}

/* 8. Compress the Order Summary box */
#directCheckoutForm > div[style*="padding: 15px"] {
    padding: 12px !important;
    margin-bottom: 15px !important;
}

/* 9. Slim down the Confirm Order button slightly */
#directCheckoutForm .buy-btn {
    padding: 14px !important;
    font-size: 16px !important;
}

/* 10. Fix Header Gaps */
#one-page-checkout h2 {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
}
#one-page-checkout p {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

/* 11. Force Confirm Order button to be full width */
#directCheckoutForm .buy-btn {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important; /* Ensures it stays perfectly centered */
}

/* 12. Make Shipping Inputs Bigger and Easier to Tap */
#directCheckoutForm input[type="text"], 
#directCheckoutForm input[type="tel"], 
#directCheckoutForm textarea {
    padding: 14px 16px !important;
    font-size: 15px !important;
    background-color: #fcfcfc !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* 13. Reduce gap between header text and shipping form */
#one-page-checkout > div:first-child {
    margin-bottom: 8px !important;
}

#one-page-checkout p {
    margin-bottom: 4px !important;
}