/* ─── LUXE Fashion — Design System ──────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary:    #4A0E1A;
  --secondary:  #9A031E;
  --accent:     #E09F3E;
  --accent-dark:#C98B2C;
  --bg:         #FFF8F0;
  --surface:    #FFFFFF;
  --text:       #2B2B2B;
  --text-muted: #6D6D6D;
  --border:     #E8DDD5;
  --shadow-sm:  0 2px 8px rgba(74,14,26,.08);
  --shadow-md:  0 8px 24px rgba(74,14,26,.12);
  --shadow-lg:  0 16px 48px rgba(74,14,26,.16);
  --radius:     8px;
  --radius-lg:  12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* For Chrome, Safari, Edge, and Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
input,select,textarea,button{font-family:inherit}

/* ── Typography ── */
h1,h2,h3,h4,h5{font-family:'Playfair Display',serif;line-height:1.25}
h1{font-size:clamp(2rem,5vw,3.5rem)}
h2{font-size:clamp(1.5rem,3.5vw,2.5rem)}
h3{font-size:1.4rem}
h4{font-size:1.15rem}
.text-muted{color:var(--text-muted)}
.text-accent{color:var(--accent)}
.text-primary{color:var(--primary)}

/* ── Layout ── */
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem}
.section{padding:5rem 0}
.section-sm{padding:3rem 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.flex{display:flex}
.flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-gap{display:flex;gap:1rem;align-items:center}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.75rem;border-radius:var(--radius);font-weight:500;font-size:.95rem;cursor:pointer;border:none;transition:var(--transition);letter-spacing:.02em}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--secondary);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:0 8px 20px rgba(224,159,62,.4)}
.btn-outline{background:transparent;color:var(--primary);border:2px solid var(--primary)}
.btn-outline:hover{background:var(--primary);color:#fff}
.btn-outline-accent{background:transparent;color:var(--accent);border:2px solid var(--accent)}
.btn-outline-accent:hover{background:var(--accent);color:#fff}
.btn-sm{padding:.5rem 1.25rem;font-size:.875rem}
.btn-lg{padding:1rem 2.25rem;font-size:1.05rem}
.btn-full{width:100%;justify-content:center}
.btn-danger{background:#dc3545;color:#fff}
.btn-danger:hover{background:#b02a37}
.btn:disabled{opacity:.6;cursor:not-allowed;transform:none!important}
.btn-icon{width:2.5rem;height:2.5rem;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}

/* ── Navbar ── */
.navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--primary);transition:var(--transition)}
.navbar.scrolled{box-shadow:var(--shadow-md)}
.navbar-inner{display:flex;align-items:center;justify-content:space-between;height:65px;padding:0 2rem}
.navbar-logo{font-family:'Playfair Display',serif;font-size:1.75rem;font-weight:700;color:#fff;letter-spacing:.08em}
.navbar-logo span{color:var(--accent)}
.navbar-nav{display:flex;align-items:center;gap:1.75rem}
.navbar-nav a{color:rgba(255,255,255,.85);font-size:.9rem;font-weight:500;letter-spacing:.03em;transition:var(--transition);position:relative}
.navbar-nav a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--accent);transition:var(--transition)}
.navbar-nav a:hover{color:#fff}
.navbar-nav a:hover::after{width:100%}
.navbar-actions{display:flex;align-items:center;gap:.75rem}
.cart-badge{position:relative;color:#fff;padding:.4rem .6rem}
.cart-badge .badge{position:absolute;top:0;right:0;background:var(--accent);color:#fff;font-size:.65rem;font-weight:600;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.nav-icon-btn{background:none;border:none;cursor:pointer;color:rgba(255,255,255,.85);padding:.4rem;border-radius:var(--radius);transition:var(--transition);font-size:1.1rem}
.nav-icon-btn:hover{color:#fff;background:rgba(255,255,255,.1)}
.navbar-hamburger{display:none;background:none;border:none;cursor:pointer;color:#fff;font-size:1.4rem;padding:.4rem}
.dropdown{position:relative}
.dropdown-menu{display:none;position:absolute;top:calc(100%+8px);right:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-md);min-width:180px;padding:.5rem 0;z-index:200}
.dropdown-menu a{display:block;padding:.6rem 1.25rem;font-size:.875rem;color:var(--text);transition:var(--transition)}
.dropdown-menu a:hover{background:var(--bg);color:var(--primary)}
.dropdown:hover .dropdown-menu{display:block}
.search-form{display:flex;align-items:center;background:rgba(255,255,255,.1);border-radius:20px;padding:.3rem .3rem .3rem .9rem;transition:var(--transition)}
.search-form:focus-within{background:rgba(255,255,255,.2)}
.search-form input{background:none;border:none;outline:none;color:#fff;font-size:.875rem;width:160px}
.search-form input::placeholder{color:rgba(255,255,255,.6)}
.search-form button{background:rgba(255,255,255,.15);border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:.8rem;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.search-form button:hover{background:rgba(255,255,255,.3)}

/* ── Mobile Nav ── */
.mobile-nav{display:none;position:fixed;top:65px;left:0;right:0;background:var(--primary);z-index:999;padding:1rem 0;box-shadow:var(--shadow-md)}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:.75rem 2rem;color:rgba(255,255,255,.85);font-size:.95rem;border-bottom:1px solid rgba(255,255,255,.07)}
.mobile-nav a:last-child{border-bottom:none}

/* ── Footer ── */
.footer{background:var(--primary);color:rgba(255,255,255,.8);padding:4rem 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3rem}
.footer-brand .navbar-logo{font-size:1.5rem;margin-bottom:1rem}
.footer-brand p{font-size:.875rem;line-height:1.8;max-width:280px}
.footer-col h4{color:#fff;font-family:'Playfair Display',serif;font-size:1rem;margin-bottom:1.25rem;letter-spacing:.05em}
.footer-col ul li{margin-bottom:.6rem}
.footer-col ul li a{font-size:.875rem;color:rgba(255,255,255,.7);transition:var(--transition)}
.footer-col ul li a:hover{color:var(--accent)}
.footer-social{display:flex;gap:.75rem;margin-top:1.25rem}
.footer-social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.8);font-size:.9rem;transition:var(--transition)}
.footer-social a:hover{background:var(--accent);color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.25rem 0;text-align:center;font-size:.8rem;color:rgba(255,255,255,.5)}

/* ── Hero ── */
.hero{min-height:100vh;background:linear-gradient(135deg,var(--primary) 0%,#2d0810 60%,#1a0508 100%);display:flex;align-items:center;position:relative;overflow:hidden;padding-top:65px}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-content{position:relative;z-index:2;max-width:700px}
.hero-subtitle{color:var(--accent);font-size:.875rem;letter-spacing:.25em;text-transform:uppercase;margin-bottom:1.25rem;font-weight:500}
.hero-title{color:#fff;margin-bottom:1.5rem;text-shadow:0 2px 20px rgba(0,0,0,.3)}
.hero-title em{color:var(--accent);font-style:italic}
.hero-desc{color:rgba(255,255,255,.75);font-size:1.1rem;margin-bottom:2.5rem;max-width:520px}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero-bg-img{position:absolute;right:0;top:0;height:100%;width:50%;object-fit:cover;opacity:.25;mask-image:linear-gradient(to left,rgba(0,0,0,.6),transparent)}
.hero-scroll{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.5);font-size:.75rem;letter-spacing:.15em;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;gap:.5rem;animation:bounce 2s infinite}
.hero-scroll::after{content:'';width:1px;height:40px;background:linear-gradient(to bottom,rgba(255,255,255,.4),transparent)}

/* ── Section Headers ── */
.section-header{text-align:center;margin-bottom:3.5rem}
.section-header h2{color:var(--primary);margin-bottom:.75rem}
.section-header p{color:var(--text-muted);max-width:500px;margin:0 auto}
.section-divider{width:60px;height:3px;background:var(--accent);margin:.75rem auto 0}

/* ── Product Cards ── */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.75rem}
.product-card{background:var(--surface);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:var(--transition);position:relative}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.product-img-wrap{position:relative;overflow:hidden;aspect-ratio:3/4}
.product-img-wrap img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
.product-card:hover .product-img-wrap img{transform:scale(1.07)}
.product-badge{position:absolute;top:.75rem;left:.75rem;background:var(--accent);color:#fff;font-size:.7rem;font-weight:600;padding:.25rem .65rem;border-radius:4px;letter-spacing:.05em;text-transform:uppercase;z-index:2}
.product-badge.sale{background:var(--secondary)}
.product-badge.out-of-stock{background:var(--text-muted)}
.product-actions{position:absolute;bottom:.75rem;right:.75rem;display:flex;flex-direction:column;gap:.5rem;opacity:0;transition:var(--transition);z-index:2}
.product-card:hover .product-actions{opacity:1}
.product-action-btn{width:36px;height:36px;border-radius:50%;background:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.85rem;color:var(--primary);box-shadow:var(--shadow-sm);transition:var(--transition)}
.product-action-btn:hover{background:var(--primary);color:#fff}
.product-info{padding:1.25rem}
.product-brand{font-size:.75rem;color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.3rem}
.product-name{font-family:'Playfair Display',serif;font-size:1.05rem;color:var(--text);margin-bottom:.5rem;line-height:1.3}
.product-price{display:flex;align-items:center;gap:.75rem}
.price-current{font-size:1.1rem;font-weight:600;color:var(--primary)}
.price-original{font-size:.9rem;color:var(--text-muted);text-decoration:line-through}
.price-discount{font-size:.75rem;background:#fef2e8;color:var(--accent);padding:.15rem .45rem;border-radius:4px;font-weight:600}
.product-stars{color:var(--accent);font-size:.8rem;display:flex;align-items:center;gap:.25rem;margin-top:.4rem}

/* ── Category Cards ── */
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.category-card{position:relative;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:3/4;cursor:pointer}
.category-card img{width:100%;height:100%;object-fit:cover;transition:.4s ease}
.category-card:hover img{transform:scale(1.08)}
.category-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(74,14,26,.8) 0%,rgba(74,14,26,.1) 60%)}
.category-info{position:absolute;bottom:1.5rem;left:1.5rem;color:#fff}
.category-info h3{font-family:'Playfair Display',serif;font-size:1.25rem;margin-bottom:.25rem}
.category-info span{font-size:.8rem;opacity:.8}

/* ── Why Choose Us ── */
.features-strip{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.feature-item{padding:2.5rem 2rem;text-align:center;border-right:1px solid var(--border);transition:var(--transition)}
.feature-item:last-child{border-right:none}
.feature-item:hover{background:var(--bg)}
.feature-icon{font-size:2rem;margin-bottom:1rem;display:block}
.feature-item h4{font-size:1rem;color:var(--primary);margin-bottom:.4rem}
.feature-item p{font-size:.85rem;color:var(--text-muted)}

/* ── Newsletter ── */
.newsletter{background:linear-gradient(135deg,var(--primary),#2d0810);padding:5rem 0;text-align:center}
.newsletter h2{color:#fff;margin-bottom:.75rem}
.newsletter p{color:rgba(255,255,255,.75);margin-bottom:2rem}
.newsletter-form{display:flex;max-width:480px;margin:0 auto;gap:0;border-radius:var(--radius)}
.newsletter-form input{flex:1;padding:.875rem 1.25rem;border:none;border-radius:var(--radius) 0 0 var(--radius);font-size:.95rem;outline:none}
.newsletter-form button{padding:.875rem 1.5rem;background:var(--accent);color:#fff;border:none;cursor:pointer;border-radius:0 var(--radius) var(--radius) 0;font-weight:600;white-space:nowrap;transition:var(--transition)}
.newsletter-form button:hover{background:var(--accent-dark)}

/* ── Sidebar Filters ── */
.shop-layout{display:grid;grid-template-columns:260px 1fr;gap:2rem;align-items:start}
.filter-sidebar{background:var(--surface);border-radius:var(--radius-lg);padding:1.75rem;box-shadow:var(--shadow-sm);position:sticky;top:85px}
.filter-sidebar h3{font-size:1.1rem;color:var(--primary);margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:2px solid var(--accent)}
.filter-group{margin-bottom:1.75rem}
.filter-group h4{font-size:.85rem;font-weight:600;color:var(--text);letter-spacing:.06em;text-transform:uppercase;margin-bottom:1rem}
.filter-options{display:flex;flex-direction:column;gap:.5rem}
.filter-check{display:flex;align-items:center;gap:.6rem;cursor:pointer;font-size:.9rem}
.filter-check input[type=checkbox]{accent-color:var(--primary);width:16px;height:16px}
.size-buttons{display:flex;flex-wrap:wrap;gap:.5rem}
.size-btn{padding:.35rem .75rem;border:1.5px solid var(--border);border-radius:4px;font-size:.8rem;cursor:pointer;background:#fff;transition:var(--transition)}
.size-btn:hover,.size-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}
.price-range{display:flex;gap:.75rem;align-items:center;margin-top:.5rem}
.price-range input[type=number]{width:80px;padding:.4rem .65rem;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.85rem}
.price-range input:focus{outline:none;border-color:var(--primary)}
.sort-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;gap:1rem;flex-wrap:wrap}
.sort-bar select{padding:.5rem .9rem;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.875rem;cursor:pointer}
.sort-bar select:focus{outline:none;border-color:var(--primary)}

/* ── Product Detail ── */
.product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:start}
.gallery-main{border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:3/4;background:#f5f5f5}
.gallery-main img{width:100%;height:100%;object-fit:cover;transition:.4s ease;cursor:zoom-in}
.gallery-main img:hover{transform:scale(1.04)}
.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.75rem}
.gallery-thumb{border-radius:var(--radius);overflow:hidden;aspect-ratio:1;cursor:pointer;border:2px solid transparent;transition:var(--transition)}
.gallery-thumb.active,.gallery-thumb:hover{border-color:var(--accent)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.product-detail-title{font-size:1.75rem;color:var(--primary);margin-bottom:.5rem}
.product-detail-brand{color:var(--text-muted);font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom.75rem}
.product-detail-price{font-size:1.75rem;font-weight:700;color:var(--primary);margin:1rem 0}
.size-selector{margin:1.25rem 0}
.size-selector label{font-size:.85rem;font-weight:600;color:var(--text);margin-bottom:.75rem;display:block;text-transform:uppercase;letter-spacing:.06em}
.size-options{display:flex;gap:.6rem;flex-wrap:wrap}
.size-option{padding:.45rem .9rem;border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;font-size:.875rem;transition:var(--transition);background:#fff}
.size-option:hover{border-color:var(--primary)}
.size-option.selected{border-color:var(--primary);background:var(--primary);color:#fff}
.size-option.disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through}
.add-to-cart-form{display:flex;gap:.75rem;margin:1.5rem 0;align-items:center}
.qty-control{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:var(--radius)}
.qty-btn{background:none;border:none;width:36px;height:44px;cursor:pointer;font-size:1.1rem;transition:var(--transition);color:var(--text)}
.qty-btn:hover{background:var(--bg)}
.qty-input{width:48px;text-align:center;border:none;font-size:.95rem;font-weight:500;padding:0;background-color: transparent;}
.qty-input:focus{outline:none}
.product-meta{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.5rem}
.product-meta-row{display:flex;gap:.75rem;font-size:.875rem}
.product-meta-row strong{color:var(--text);min-width:90px}
.product-meta-row span{color:var(--text-muted)}
.accordion{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-top:1.5rem}
.accordion-item{border-bottom:1px solid var(--border)}
.accordion-item:last-child{border-bottom:none}
.accordion-header{padding:1rem 1.25rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:500;font-size:.9rem;background:#fff;transition:var(--transition)}
.accordion-header:hover{background:var(--bg)}
.accordion-body{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;padding:0 1.25rem;font-size:.875rem;color:var(--text-muted);line-height:1.8}
.accordion-body.open{max-height:300px;padding:1rem 1.25rem}
.accordion-icon{transition:transform .3s ease;font-size:.8rem}
.accordion-header.open .accordion-icon{transform:rotate(180deg)}

/* ── Reviews ── */
.reviews-section{margin-top:3rem}
.review-card{background:var(--surface);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow-sm);margin-bottom:1rem}
.review-header{display:flex;justify-content:space-between;margin-bottom:.5rem}
.review-author{font-weight:600;font-size:.9rem}
.review-date{color:var(--text-muted);font-size:.8rem}
.review-title{font-weight:500;margin-bottom:.35rem}
.review-comment{color:var(--text-muted);font-size:.875rem;line-height:1.7}
.stars{color:var(--accent)}
.review-form-card{background:var(--surface);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-sm);margin-top:1.5rem}
.star-rating{display:flex;gap:.35rem;margin:.5rem 0}
.star-rating input{display:none}
.star-rating label{font-size:1.5rem;color:#d1d1d1;cursor:pointer;transition:color .2s}
.star-rating label:hover,.star-rating label:hover~label{color:var(--accent)}
.star-rating input:checked~label{color:var(--accent)}

/* ── Cart ── */
.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}
.cart-table{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.cart-table-header{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:1rem;padding:1rem 1.5rem;background:var(--bg);font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}
.cart-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:1rem;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);align-items:center;transition:var(--transition)}
.cart-row:last-child{border-bottom:none}
.cart-row:hover{background:var(--bg)}
.cart-product-info{display:flex;gap:1rem;align-items:center}
.cart-product-img{width:70px;height:90px;object-fit:cover;border-radius:var(--radius)}
.cart-product-name{font-weight:500;font-size:.9rem;color:var(--text)}
.cart-product-meta{font-size:.8rem;color:var(--text-muted);margin-top:.25rem}
.cart-qty{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:var(--radius);width:fit-content}
.cart-qty button{background:none;border:none;width:28px;height:32px;cursor:pointer;font-size:.95rem;transition:var(--transition)}
.cart-qty button:hover{background:var(--bg)}
.cart-qty input{width:36px;text-align:center;border:none;font-size:.875rem;font-weight:500;background-color: transparent;}
.cart-remove{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.85rem;transition:var(--transition);display:flex;align-items:center;gap:.3rem}
.cart-remove:hover{color:#dc3545}
.cart-summary-card{background:var(--surface);border-radius:var(--radius-lg);padding:1.75rem;box-shadow:var(--shadow-sm);position:sticky;top:85px}
.cart-summary-card h3{font-size:1.1rem;margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}
.summary-row{display:flex;justify-content:space-between;font-size:.9rem;margin-bottom:.75rem;color:var(--text-muted)}
.summary-row.total{font-size:1.1rem;font-weight:700;color:var(--text);border-top:2px solid var(--border);padding-top:1rem;margin-top:.5rem}
.empty-cart{text-align:center;padding:4rem 2rem;color:var(--text-muted)}
.empty-cart .icon{font-size:4rem;margin-bottom:1rem;opacity:.4}
.coupon-form{display:flex;gap:.5rem;margin:1rem 0}
.coupon-form input{flex:1;padding:.6rem .9rem;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.875rem}
.coupon-form button{padding:.6rem 1.1rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);cursor:pointer;font-size:.875rem;white-space:nowrap;transition:var(--transition)}

/* ── Checkout ── */
.checkout-layout{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}
.step-progress{display:flex;align-items:center;margin-bottom:2.5rem}
.step{display:flex;align-items:center;gap:.6rem;font-size:.85rem;color:var(--text-muted)}
.step.active{color:var(--primary);font-weight:600}
.step.done{color:var(--accent)}
.step-circle{width:30px;height:30px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;background:#fff;flex-shrink:0}
.step.active .step-circle{border-color:var(--primary);background:var(--primary);color:#fff}
.step.done .step-circle{border-color:var(--accent);background:var(--accent);color:#fff}
.step-line{flex:1;height:2px;background:var(--border);margin:0 .5rem}
.step-line.done{background:var(--accent)}
.checkout-card{background:var(--surface);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-sm);margin-bottom:1.5rem}
.checkout-card h3{font-size:1.1rem;color:var(--primary);margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-group{display:flex;flex-direction:column;gap:.4rem}
.form-group label{font-size:.85rem;font-weight:500;color:var(--text)}
.form-group input,.form-group select,.form-group textarea{padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius);font-size:.9rem;transition:var(--transition);background:#fff;color:var(--text)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(74,14,26,.08)}
.form-group.full{grid-column:1/-1}
.payment-options{display:flex;flex-direction:column;gap:.75rem;margin-top:.5rem}
.payment-option{display:flex;align-items:center;gap:.75rem;padding:1rem;border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:var(--transition)}
.payment-option:hover,.payment-option.selected{border-color:var(--primary);background:rgba(74,14,26,.03)}
.payment-option input[type=radio]{accent-color:var(--primary);width:16px;height:16px}
.payment-option-label{font-weight:500;font-size:.9rem}
.payment-option-sub{font-size:.8rem;color:var(--text-muted)}
.payment-icon{font-size:1.4rem;width:36px;text-align:center}

/* ── Order Success / Failed ── */
.result-page{min-height:70vh;display:flex;align-items:center;justify-content:center;padding:3rem 1rem}
.result-card{background:var(--surface);border-radius:var(--radius-lg);padding:3rem;box-shadow:var(--shadow-lg);max-width:560px;width:100%;text-align:center}
.checkmark-circle{width:80px;height:80px;border-radius:50%;background:#e8f5e9;margin:0 auto 1.5rem;display:flex;align-items:center;justify-content:center;font-size:2.5rem}
.checkmark-circle.fail{background:#fde8e8}
.order-table{width:100%;margin:1.5rem 0;text-align:left;border-collapse:collapse}
.order-table td{padding:.6rem .25rem;font-size:.9rem;border-bottom:1px solid var(--border)}
.order-table td:first-child{color:var(--text-muted)}
.order-table td:last-child{font-weight:500;text-align:right}

/* ── Auth Pages ── */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary) 0%,#2d0810 100%);padding:2rem 1rem}
.auth-card{background:#fff;border-radius:var(--radius-lg);padding:3rem;max-width:440px;width:100%;box-shadow:var(--shadow-lg)}
.auth-logo{text-align:center;margin-bottom:2rem}
.auth-logo .navbar-logo{justify-content:center;display:inline-block;font-size:2rem}
.auth-card h2{text-align:center;color:var(--primary);margin-bottom.5rem}
.auth-card p.subtitle{text-align:center;color:var(--text-muted);font-size:.9rem;margin-bottom:2rem}
.auth-divider{text-align:center;margin:1.25rem 0;position:relative;color:var(--text-muted);font-size:.85rem}
.auth-divider::before,.auth-divider::after{content:'';position:absolute;top:50%;width:45%;height:1px;background:var(--border)}
.auth-divider::before{left:0}
.auth-divider::after{right:0}
.auth-link{text-align:center;margin-top:1.25rem;font-size:.875rem;color:var(--text-muted)}
.auth-link a{color:var(--primary);font-weight:500}
.auth-link a:hover{color:var(--secondary);text-decoration:underline}
.password-toggle{position:relative}
.password-toggle input{padding-right:3rem}
.toggle-btn{position:absolute;right:.75rem;top:70%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:1.1rem}

/* ── User Dashboard ── */
.dashboard-layout{display:grid;grid-template-columns:240px 1fr;gap:2rem;min-height:60vh}
.sidebar-nav{background:var(--surface);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm);height:fit-content;position:sticky;top:85px}
.sidebar-user{text-align:center;padding-bottom:1.25rem;border-bottom:1px solid var(--border);margin-bottom:1.25rem}
.sidebar-avatar{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--secondary));display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:1.4rem;font-weight:700;margin-bottom:.75rem}
.sidebar-user h4{font-size:.95rem;color:var(--text);margin-bottom:.2rem}
.sidebar-user p{font-size:.8rem;color:var(--text-muted)}
.sidebar-nav ul{display:flex;flex-direction:column;gap:.25rem}
.sidebar-nav ul a{display:flex;align-items:center;gap:.75rem;padding:.7rem 1rem;border-radius:var(--radius);font-size:.9rem;color:var(--text-muted);transition:var(--transition)}
.sidebar-nav ul a:hover,.sidebar-nav ul a.active{background:var(--bg);color:var(--primary);font-weight:500}
.sidebar-nav ul a.active{background:rgba(74,14,26,.08)}
.sidebar-nav ul a i{width:18px;text-align:center}
.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
.stat-card{background:var(--surface);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm);text-align:center}
.stat-card .number{font-size:2rem;font-weight:700;color:var(--primary);font-family:'Playfair Display',serif}
.stat-card .label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-top:.3rem}

/* ── Admin Panel ── */
.admin-layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 65px);margin-top:65px}
.admin-sidebar{background:linear-gradient(180deg,#2d0810 0%,var(--primary) 100%);padding:1.5rem 0}
.admin-sidebar .brand{padding:0 1.5rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:1rem}
.admin-sidebar .brand h3{color:#fff;font-family:'Playfair Display',serif;font-size:1.25rem}
.admin-sidebar .brand p{color:rgba(255,255,255,.5);font-size:.75rem;margin-top:.2rem}
.admin-nav a{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.5rem;color:rgba(255,255,255,.7);font-size:.875rem;transition:var(--transition)}
.admin-nav a:hover,.admin-nav a.active{background:rgba(255,255,255,.1);color:#fff}
.admin-nav a i{width:18px;text-align:center;font-size:.9rem}
.admin-nav .nav-section{padding:.5rem 1.5rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.35);margin-top:.75rem}
.admin-content{padding:2rem;background:var(--bg)}
.admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}
.admin-header h1{font-size:1.5rem;color:var(--primary)}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-bottom:2rem}
.admin-stat{background:var(--surface);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:1rem}
.admin-stat-icon{width:52px;height:52px;border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex-shrink:0}
.admin-stat-icon.revenue{background:#fef3cd;color:#856404}
.admin-stat-icon.orders{background:#d1ecf1;color:#0c5460}
.admin-stat-icon.products{background:#d4edda;color:#155724}
.admin-stat-icon.users{background:#f8d7da;color:#721c24}
.admin-stat-info .value{font-size:1.5rem;font-weight:700;color:var(--text);font-family:'Playfair Display',serif}
.admin-stat-info .label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.admin-table-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:1.5rem}
.admin-table-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}
.admin-table-header h3{font-size:1rem;color:var(--primary)}
.data-table{width:100%;border-collapse:collapse;font-size:.875rem}
.data-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);background:var(--bg);border-bottom:1px solid var(--border)}
.data-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);color:var(--text);vertical-align:middle}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover td{background:var(--bg)}
.status-badge{display:inline-flex;align-items:center;padding:.25rem .7rem;border-radius:20px;font-size:.75rem;font-weight:600}
.status-pending{background:#fff3cd;color:#856404}
.status-confirmed{background:#d4edda;color:#155724}
.status-shipped{background:#d1ecf1;color:#0c5460}
.status-delivered{background:#c3e6cb;color:#155724}
.status-cancelled{background:#f8d7da;color:#721c24}
.status-paid{background:#d4edda;color:#155724}
.status-failed{background:#f8d7da;color:#721c24}
.status-refunded{background:#e2e3e5;color:#383d41}

/* ── Flash Messages ── */
.flash-container{position:fixed;top:80px;right:1.5rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem;max-width:360px}
.flash-msg{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.25rem;border-radius:var(--radius);box-shadow:var(--shadow-md);font-size:.875rem;font-weight:500;animation:slideInRight .35s ease;cursor:pointer}
.flash-msg.success{background:#d4edda;color:#155724;border-left:4px solid #28a745}
.flash-msg.error{background:#f8d7da;color:#721c24;border-left:4px solid #dc3545}
.flash-msg.info{background:#d1ecf1;color:#0c5460;border-left:4px solid #17a2b8}
.flash-msg.warning{background:#fff3cd;color:#856404;border-left:4px solid #ffc107}

/* ── Pagination ── */
.pagination{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:2.5rem}
.page-btn{width:38px;height:38px;border-radius:var(--radius);border:1.5px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:center;font-size:.875rem;color:var(--text-muted);cursor:pointer;transition:var(--transition)}
.page-btn:hover,.page-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}
.page-btn.disabled{opacity:.4;cursor:not-allowed}

/* ── Skeleton Loader ── */
.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius)}

/* ── Misc ── */
.tag{display:inline-block;padding:.25rem .65rem;background:var(--bg);border:1px solid var(--border);border-radius:4px;font-size:.75rem;color:var(--text-muted)}
.divider{height:1px;background:var(--border);margin:1.5rem 0}
.breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-muted);margin-bottom:1.5rem}
.breadcrumb a{color:var(--text-muted);transition:var(--transition)}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb .sep{color:var(--border)}
.stock-low{color:#856404;font-size:.8rem;font-weight:500}
.stock-out{color:#721c24;font-size:.8rem;font-weight:500}
.stock-ok{color:#155724;font-size:.8rem;font-weight:500}
.wishlist-btn{background:none;border:none;cursor:pointer;font-size:1.2rem;color:var(--text-muted);transition:var(--transition);padding:.25rem}
.wishlist-btn:hover,.wishlist-btn.active{color:var(--secondary)}
.page-hero{background:linear-gradient(135deg,var(--primary),#2d0810);padding:4rem 0;margin-top:65px;text-align:center;color:#fff}
.page-hero h1{margin-bottom:.5rem}
.page-hero p{opacity:.75;font-size:1rem}
.alert{padding:1rem 1.25rem;border-radius:var(--radius);margin-bottom:1rem;font-size:.9rem}
.alert-warning{background:#fff3cd;color:#856404;border:1px solid #ffeeba}
.alert-danger{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}
.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.alert-info{background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}

/* ── Responsive ── */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .feature-item{border-right:none;border-bottom:1px solid var(--border)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .admin-stat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .shop-layout{grid-template-columns:1fr}
  .product-detail-grid{grid-template-columns:1fr}
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .dashboard-layout{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{display:none}
  .cart-table-header{display:none}
  .cart-row{grid-template-columns:1fr;gap:.75rem}
}
@media(max-width:768px){
  .navbar-nav,.search-form{display:none}
  .navbar-hamburger{display:block}
  .section{padding:3rem 0}
  .hero-bg-img{display:none}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .auth-card{padding:2rem 1.5rem}
  .stat-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .category-grid{grid-template-columns:1fr 1fr}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .newsletter-form{flex-direction:column}
  .newsletter-form input,.newsletter-form button{border-radius:var(--radius)}
  .stat-cards{grid-template-columns:1fr}
}

/* password strength */
.password-strength{
  width:100%;
  height:10px;
  background:#e0e0e0;
  border-radius:5px;
  /* margin-bottom:1rem; */
}
.password-strength-bar{
  height:100%;
  border-radius:5px;
  transition:width 0.3s ease;
}
.password-strength-text{
  font-size:0.8rem;
  color:#e74c3c;
  margin-bottom:1rem;
}
.confirm-password-text{
  font-size:0.8rem;
  margin-bottom:1rem;
}