/* ============================================================
   AÉTHER Parfums — Shop Page Styles
   ============================================================ */
.shop-layout{padding-top:20px;padding-bottom:80px}
.shop-sidebar{background:var(--card-bg);border:1px solid var(--border);padding:32px;border-radius:var(--radius-xl);position:sticky;top:120px;max-height:calc(100vh - 140px);overflow-y:auto;transition:all var(--t-premium)}
.shop-sidebar:hover{box-shadow:var(--shadow-md)}
.shop-sidebar h5{font-family:var(--font-heading);font-size:1.05rem;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid var(--gradient-gold);font-weight:600}
.filter-group{margin-bottom:28px}
.filter-group h6{font-size:.82rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:14px;color:var(--text)}
.filter-group label{display:flex;align-items:center;gap:10px;font-size:.88rem;margin-bottom:10px;cursor:pointer;color:var(--text);transition:all var(--t-fast);padding:4px 0}
.filter-group label:hover{color:var(--gold);padding-left:4px}
.filter-group input[type=checkbox],.filter-group input[type=radio]{accent-color:var(--gold);width:18px;height:18px;cursor:pointer}
.filter-group .price-range{display:flex;gap:12px;align-items:center}
.filter-group .price-range input{flex:1;padding:12px 14px;border:1.5px solid var(--border);background:var(--bg);color:var(--text);font-size:.88rem;border-radius:var(--radius-md);transition:all var(--t-fast)}
.filter-group .price-range input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,0.1)}
.filter-clear{font-size:.82rem;color:var(--gold);cursor:pointer;margin-top:10px;display:inline-block;font-weight:500;transition:all var(--t-fast)}
.filter-clear:hover{text-decoration:underline;transform:translateX(2px)}

.shop-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.shop-count{font-size:.9rem;color:var(--text-muted);font-weight:500}
.shop-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.shop-sort select,.shop-per-page select{padding:10px 36px 10px 14px;border:1.5px solid var(--border);background:var(--bg);color:var(--text);font-size:.86rem;font-family:var(--font-body);border-radius:var(--radius-md);appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;cursor:pointer;transition:all var(--t-fast)}
.shop-sort select:hover,.shop-per-page select:hover{border-color:var(--gold)}
.shop-sort select:focus,.shop-per-page select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,0.1)}
.view-toggle{display:flex;border:1.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden}
.view-toggle button{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:.9rem;color:var(--text-muted);transition:all var(--t-fast);border:none;background:transparent}
.view-toggle button.active,.view-toggle button:hover{background:var(--black);color:var(--white)}
[data-theme="dark"] .view-toggle button.active,[data-theme="dark"] .view-toggle button:hover{background:var(--gold);color:var(--black)}
.filter-toggle-btn{display:none;padding:12px 20px;border:1.5px solid var(--border);font-size:.84rem;font-weight:600;letter-spacing:1px;text-transform:uppercase;border-radius:var(--radius-md);transition:all var(--t-fast)}
.filter-toggle-btn:hover{border-color:var(--gold);color:var(--gold)}

.filter-drawer{position:fixed;top:0;left:-380px;width:380px;max-width:90%;height:100vh;background:var(--card-bg);z-index:1055;overflow-y:auto;padding:32px;transition:left var(--t-premium);box-shadow:8px 0 40px rgba(0,0,0,.15);border-radius:0 var(--radius-xl) var(--radius-xl) 0}
.filter-drawer.active{left:0}
.filter-drawer-close{position:absolute;top:20px;right:20px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:var(--text-muted);border-radius:50%;transition:all var(--t-fast)}
.filter-drawer-close:hover{background:rgba(201,162,39,0.1);color:var(--gold)}

/* ── List view: image left, details right ──
   Mobile: 1 card per row, image keeps the original cover crop (untouched)
   Desktop (≥768px): 2 cards per row, image uses contain so the FULL bottle shows */
#productGrid.product-grid.list-view > div{flex:0 0 100%;max-width:100%}
.product-grid.list-view .product-card{display:flex;flex-direction:row;align-items:stretch;border-radius:var(--radius-xl);overflow:hidden}
.product-grid.list-view .product-card-img{width:38%;flex-shrink:0;aspect-ratio:auto;height:190px;border-radius:0}
.product-grid.list-view .product-card-body{text-align:left;padding:20px;flex:1;display:flex;flex-direction:column;justify-content:center;border-left:1px solid var(--border)}
@media(min-width:768px){
  /* Desktop list view: 2 cards per row — image LEFT, details RIGHT (original layout) */
  #productGrid.product-grid.list-view > div{flex:0 0 50%;max-width:50%}
  .product-grid.list-view .product-card-img{width:42%;height:auto;min-height:210px;display:flex;align-items:center;justify-content:center;background:var(--bg-alt);align-self:stretch}
  .product-grid.list-view .product-card-img img{width:100%;height:100%;object-fit:cover;transform:none!important}
  .product-grid.list-view .product-card-body{padding:24px}
}

/* ── Active filter chips ── */
.active-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.active-filters.has-chips{margin:-8px 0 20px}
.active-filter-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:var(--bg-alt);border:1px solid var(--border);border-radius:50px;font-size:.78rem;color:var(--text);cursor:pointer;transition:all var(--t-fast);font-family:var(--font-body)}
.active-filter-chip:hover{border-color:var(--gold);color:var(--gold)}
.active-filter-chip i{font-size:.68rem;color:var(--text-muted);transition:color var(--t-fast)}
.active-filter-chip:hover i{color:var(--gold)}
.active-filter-clear{margin-left:auto;font-size:.78rem;color:var(--gold);font-weight:600;text-decoration:none}
.active-filter-clear:hover{text-decoration:underline}

.shop-pagination{display:flex;align-items:center;justify-content:center;margin-top:48px}
.shop-pagination .pagination{gap:0;margin-bottom:0}
.shop-pagination .page-link{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:.9rem;font-weight:500;color:#007bff;background:#fff;border:1px solid #dee2e6;border-radius:0;transition:background .2s,color .2s}
.shop-pagination .page-item:first-child .page-link{border-top-left-radius:10px;border-bottom-left-radius:10px}
.shop-pagination .page-item:last-child .page-link{border-top-right-radius:10px;border-bottom-right-radius:10px}
.shop-pagination .page-link:hover{background:#f1f6ff;color:#0056b3;z-index:2}
.shop-pagination .page-item.disabled .page-link{background:#eef0f3;color:#adb5bd;pointer-events:none}
.shop-pagination .page-item.active .page-link{background:#007bff;border-color:#007bff;color:#fff;z-index:3}
.load-more-wrap{text-align:center;margin-top:40px}

.no-products{text-align:center;padding:60px 20px;color:var(--text-muted)}
.no-products i{font-size:3rem;opacity:.2;margin-bottom:16px;display:block}

/* --- Product Detail Page --- */
.product-detail{padding-bottom:80px}
.pd-gallery{position:sticky;top:120px}
.pd-main{position:relative;overflow:hidden;background:var(--bg-alt);aspect-ratio:4/5;margin-bottom:16px;cursor:zoom-in;border-radius:var(--radius-xl);box-shadow:var(--shadow-sm)}
.pd-main img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease-out)}
.pd-main.zoomed img{transform:scale(2);cursor:zoom-out}
.pd-thumbs{display:flex;gap:12px;flex-wrap:wrap}
.pd-thumb{width:80px;height:80px;border:2.5px solid transparent;overflow:hidden;cursor:pointer;padding:0;transition:all var(--t-premium);border-radius:var(--radius-md)}
.pd-thumb.active,.pd-thumb:hover{border-color:var(--gold);transform:scale(1.05);box-shadow:var(--shadow-gold)}
.pd-thumb img{width:100%;height:100%;object-fit:cover}

.pd-info{padding-top:10px}
.pd-brand{font-size:.75rem;letter-spacing:3.5px;text-transform:uppercase;color:var(--gold);font-weight:600}
.pd-title{font-size:clamp(1.8rem,3.5vw,2.4rem);margin:8px 0 16px;font-weight:600}
.pd-rating{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.pd-rating i{color:var(--gold);font-size:.9rem}
.pd-rating span{font-size:.88rem;color:var(--text-muted)}
.pd-price-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.pd-price{font-size:1.9rem;font-weight:700;color:var(--text)}
.pd-original{font-size:1.1rem;color:var(--text-muted);text-decoration:line-through}
.pd-disc{background:var(--red-sale);color:var(--white);font-size:.78rem;font-weight:700;padding:6px 12px;border-radius:var(--radius-sm)}
.pd-coupon{display:inline-flex;align-items:center;gap:8px;background:rgba(201,162,39,.12);border:1.5px dashed var(--gold);padding:10px 18px;font-size:.86rem;color:var(--gold);margin-bottom:20px;border-radius:var(--radius-md);font-weight:500}
.pd-stock{font-size:.88rem;margin-bottom:22px;display:flex;align-items:center;gap:8px;font-weight:500}
.pd-stock.in-stock{color:var(--green-stock)}
.pd-stock.out-stock{color:var(--red-sale)}
.pd-desc{color:var(--text-muted);line-height:1.9;margin-bottom:28px;font-size:1rem}

.pyramid{background:var(--bg-alt);padding:28px;margin-bottom:28px;border-radius:var(--radius-lg);border:1px solid var(--border)}
.pyramid h5{font-family:var(--font-heading);margin-bottom:18px;font-size:1.1rem;font-weight:600}
.pyramid-level{margin-bottom:16px;padding-left:18px;border-left:2.5px solid var(--gold)}
.pyramid-level span{display:block;font-size:.72rem;letter-spacing:2.5px;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:4px}
.pyramid-level p{font-size:.9rem;color:var(--text-muted);margin:0;line-height:1.7}

.pd-size h6,.pd-qty h6{font-size:.82rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:12px}
.size-btns{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.size-btn{padding:12px 22px;border:1.5px solid var(--border);font-size:.86rem;transition:all var(--t-premium);border-radius:var(--radius-md);font-weight:500}
.size-btn.active,.size-btn:hover{border-color:var(--gold);background:var(--gradient-premium);color:var(--black);transform:translateY(-2px);box-shadow:var(--shadow-gold)}
.qty-box{display:inline-flex;border:1.5px solid var(--border);margin-bottom:28px;border-radius:var(--radius-md);overflow:hidden}
.qty-box button{width:46px;height:46px;display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:all var(--t-fast);background:transparent;border:none}
.qty-box button:hover{color:var(--gold);background:rgba(201,162,39,0.05)}
.qty-box input{width:60px;height:46px;text-align:center;border:none;background:transparent;color:var(--text);font-family:var(--font-body);font-size:1rem;font-weight:600;-webkit-appearance:none;-moz-appearance:textfield;appearance:none}
.qty-box input::-webkit-outer-spin-button,.qty-box input::-webkit-inner-spin-button{-webkit-appearance:none}

.pd-actions{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.pd-actions .btn{flex:1;min-width:140px}
.pd-secondary{display:flex;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.pd-secondary button{font-size:.82rem;color:var(--text-muted);display:flex;align-items:center;gap:6px}
.pd-secondary button:hover{color:var(--gold)}

.delivery-check{display:flex;gap:8px;margin-bottom:24px}
.delivery-check input{flex:1;padding:12px 14px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:.86rem;border-radius:0}
.delivery-check input:focus{outline:none;border-color:var(--gold)}
.delivery-result{font-size:.82rem;color:var(--green-stock);margin-top:8px;display:none}

.pd-meta{padding-top:20px;border-top:1px solid var(--border)}
.pd-meta div{font-size:.82rem;color:var(--text-muted);margin-bottom:8px;display:flex;align-items:center;gap:8px}
.pd-meta i{color:var(--gold);width:16px}

.pd-tabs{margin-top:56px}
.pd-tabs .nav-tabs{border-bottom:2px solid var(--border);flex-wrap:nowrap;overflow-x:auto;padding-bottom:0}
.pd-tabs .nav-link{font-size:.82rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-muted);border:none;border-bottom:3px solid transparent;border-radius:0;padding:16px 24px;white-space:nowrap;transition:all var(--t-premium)}
.pd-tabs .nav-link:hover{color:var(--gold);border-bottom-color:rgba(201,162,39,0.3)}
.pd-tabs .nav-link.active{color:var(--text);border-bottom-color:var(--gold);background:transparent}
.pd-tabs .tab-content{padding:32px 0}
.pd-tabs .tab-content p{color:var(--text-muted);line-height:1.9;margin-bottom:16px;font-size:1rem}

.rating-breakdown{display:flex;gap:32px;margin-bottom:28px;flex-wrap:wrap}
.rating-score{text-align:center}
.rating-score strong{display:block;font-family:var(--font-heading);font-size:3rem;color:var(--gold);line-height:1}
.rating-score span{font-size:.82rem;color:var(--text-muted)}
.rating-bars{flex:1;min-width:200px}
.rating-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-size:.78rem}
.rating-bar-row span{width:12px;color:var(--text-muted)}
.rating-bar{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.rating-bar-fill{height:100%;background:var(--gold);border-radius:3px}

.review-card{padding:20px 0;border-bottom:1px solid var(--border)}
.review-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.review-head img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.review-head strong{display:block;font-size:.88rem}
.review-head .stars i{color:var(--gold);font-size:.68rem}
.review-date{margin-left:auto;font-size:.78rem;color:var(--text-muted)}
.review-card p{font-size:.88rem;color:var(--text-muted);margin:0}

.faq-item{border-bottom:1px solid var(--border)}
.faq-q{width:100%;text-align:left;padding:16px 0;font-weight:600;font-size:.92rem;display:flex;justify-content:space-between;align-items:center;color:var(--text)}
.faq-q i{transition:transform var(--t-fast);color:var(--gold)}
.faq-item.open .faq-q i{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height var(--t-base);font-size:.88rem;color:var(--text-muted);line-height:1.75}
.faq-item.open .faq-a{max-height:200px;padding-bottom:16px}

.bought-together{background:var(--bg-alt);padding:28px;margin-top:40px}
.bought-together h5{font-family:var(--font-heading);margin-bottom:20px}
.bt-items{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.bt-item{text-align:center;width:120px}
.bt-item img{width:80px;height:100px;object-fit:cover;margin:0 auto 8px}
.bt-item span{font-size:.78rem;display:block}
.bt-plus{font-size:1.2rem;color:var(--text-muted)}
.bt-total{margin-left:auto;text-align:center}
.bt-total strong{display:block;font-size:1.2rem;color:var(--gold)}

.sticky-buy{position:fixed;bottom:0;left:0;right:0;background:var(--card-bg);border-top:1px solid var(--border);padding:16px 24px;display:none;align-items:center;justify-content:space-between;z-index:989;box-shadow:0 -8px 30px rgba(0,0,0,.12);gap:16px}
.sticky-buy-info strong{display:block;font-size:1.15rem;color:var(--gold);font-weight:700}
.sticky-buy-info span{font-size:.82rem;color:var(--text-muted)}

@media(max-width:991px){
  .shop-sidebar{display:none}
  .filter-toggle-btn{display:inline-flex;align-items:center;gap:6px}
  .pd-gallery{position:static}
  .trust-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:767px){
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .sticky-buy{display:flex}
  /* Push scroll-top above sticky buy bar */
  .scroll-top{bottom:76px!important}
  /* 2-col grid on shop page */
  #productGrid.row > div { padding: 4px; }
  #productGrid.row > div,
  #relatedProducts.row > div,
  #recentlyViewed.row > div {
    flex: 0 0 50%;
    max-width: 50%;
  }
  /* List view stays horizontal on mobile too — 1 card per row (set above) */
  .product-grid.list-view .product-card-img{width:38%;height:180px}
  .product-grid.list-view .product-card-body{padding:14px}
  .product-grid.list-view .p-size-selector{display:none}
  .float-call{display:none}
  /* Shop toolbar compact */
  .shop-toolbar{gap:10px;margin-bottom:20px;padding-bottom:16px}
  .shop-controls{gap:8px}
  .shop-sort select,.shop-per-page select{font-size:.78rem;padding:8px 28px 8px 10px}
  .view-toggle button{width:34px;height:34px;font-size:.8rem}
}
@media(max-width:575px){
  .trust-grid{grid-template-columns:1fr}
  .pd-actions{flex-direction:column}
  /* On very small phones, sticky buy bar above mobile CTA bar */
  .sticky-buy { bottom: 56px; }
}
