*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a1a1a;
  --accent: #c9a96e;
  --light: #f8f5f0;
  --white: #fff;
  --gray: #666;
  --gray-light: #e8e8e8;
  --red: #e53935;
  --green: #2e7d32;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --section-gap: 64px;
}

html { overflow-x: hidden; }
body { font-family: 'Poppins', sans-serif; color: var(--primary); background: #fff; line-height: 1.6; font-size: 15px; overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
.text-success { color: var(--green); }
.text-error { color: var(--red); }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.1); width: 100%; overflow: hidden; }
.header-top { background: var(--primary); color: #fff; text-align: center; padding: 9px 16px; font-size: 12px; letter-spacing: 0.5px; }
.header-main { padding: 14px 0; }
.header-inner { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; }

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; }
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; display: block; }

/* Nav */
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 24px; list-style: none; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; padding: 4px 0; position: relative; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--primary); transition: width 0.3s; }
.main-nav a:hover::after { width: 100%; }

/* Header actions */
.header-actions { display: flex; gap: 14px; align-items: center; margin-left: auto; flex-shrink: 0; }
.action-btn { background: none; border: none; cursor: pointer; font-size: 18px; position: relative; padding: 4px; color: var(--primary); display: flex; align-items: center; }
.icon-badge { position: relative; }
.badge { position: absolute; top: -6px; right: -8px; background: var(--primary); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--gray-light); min-width: 180px; z-index: 200; box-shadow: var(--shadow); border-radius: var(--radius); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; }
.dropdown-menu a:hover { background: var(--light); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 4px; color: var(--primary); flex-shrink: 0; }
.nav-close { display: none; }

/* Search overlay */
.search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 2000; background: #fff; padding: 20px 24px; box-shadow: var(--shadow); }
.search-overlay.active { display: block; }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 700px; margin: 0 auto; }
.search-box input { flex: 1; border: none; border-bottom: 2px solid var(--primary); outline: none; font-size: 20px; padding: 10px 0; font-family: inherit; }
.search-box button, .search-close { background: none; border: none; font-size: 20px; cursor: pointer; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.overlay.active { display: block; }

/* ── ALERT TOAST ── */
.alert-toast { position: fixed; top: 80px; right: 20px; padding: 13px 20px; border-radius: var(--radius); z-index: 9999; font-size: 14px; animation: slideIn 0.3s ease; max-width: 320px; box-shadow: var(--shadow); }
.alert-success { background: #1e7e34; color: #fff; }
.alert-error { background: #c62828; color: #fff; }
@keyframes slideIn { from { transform: translateX(130%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 1.5px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; font-family: inherit; text-decoration: none; }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── HERO SLIDER ── */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { height: 580px; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-default { height: 580px; background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: #fff; padding: 24px 20px; max-width: 700px; margin: 0 auto; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 52px; margin-bottom: 16px; line-height: 1.2; }
.hero-content p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; }
.swiper-button-prev, .swiper-button-next { color: #fff !important; }
.swiper-pagination-bullet-active { background: #fff !important; }

/* ── CATEGORY STRIP ── */
.category-strip { padding: 48px 0; background: var(--light); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.cat-icon { width: 72px; height: 72px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: var(--shadow); transition: all 0.3s; overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-item:hover .cat-icon { background: var(--primary); color: #fff; transform: translateY(-4px); }
.cat-item span { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-align: center; }

/* ── FEATURES BAR ── */
.features-bar { padding: 32px 0; border-bottom: 1px solid var(--gray-light); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.feature i { font-size: 28px; color: var(--accent); flex-shrink: 0; }
.feature strong { display: block; font-size: 14px; line-height: 1.3; }
.feature span { font-size: 12px; color: var(--gray); }

/* ── PRODUCTS SECTION ── */
.products-section { padding: var(--section-gap) 0; overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 32px; }
.view-all { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.view-all:hover { color: var(--primary); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ── PRODUCT CARD ── */
.product-card { position: relative; min-width: 0; width: 100%; }
.product-img-wrap { position: relative; overflow: hidden; background: var(--light); border-radius: var(--radius); aspect-ratio: 3/4; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.5s; }
.product-card:hover .product-img-wrap img:first-child { transform: scale(1.04); }
.product-img-wrap .hover-img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.product-card:hover .hover-img { opacity: 1; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.badge-new { background: #1a6e2e; color: #fff; font-size: 10px; padding: 3px 9px; border-radius: 2px; font-weight: 600; letter-spacing: 0.5px; }
.badge-sale { background: var(--red); color: #fff; font-size: 10px; padding: 3px 9px; border-radius: 2px; font-weight: 600; letter-spacing: 0.5px; }
.wishlist-btn { position: absolute; top: 10px; right: 10px; background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.2s; box-shadow: var(--shadow); z-index: 1; font-size: 15px; }
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn.active, .wishlist-btn:hover { color: var(--red); }
.quick-add-btn { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,26,26,0.92); color: #fff; border: none; padding: 13px; cursor: pointer; font-size: 12px; font-family: inherit; font-weight: 500; transform: translateY(100%); transition: transform 0.3s; letter-spacing: 1px; text-transform: uppercase; }
.product-card:hover .quick-add-btn { transform: translateY(0); }
.product-info { padding: 12px 2px 0; }
.product-info h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price, .price-sale { font-weight: 600; font-size: 15px; }
.price-original { text-decoration: line-through; color: var(--gray); font-size: 13px; }
.price-sale { color: var(--red); }
.discount-pct { font-size: 11px; background: #fff3e0; color: #e65100; padding: 2px 7px; border-radius: 2px; font-weight: 500; }

/* ── PROMO BANNER ── */
.promo-banner { padding: 72px 0; background: linear-gradient(135deg, var(--primary) 0%, #3a2a1a 100%); text-align: center; color: #fff; }
.promo-inner { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.promo-banner h2 { font-family: 'Playfair Display', serif; font-size: 38px; margin-bottom: 14px; }
.promo-banner p { margin-bottom: 28px; opacity: 0.85; font-size: 16px; }

/* ── PRODUCTS PAGE ── */
.page-header { padding: 36px 0 28px; background: var(--light); margin-bottom: 0; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 34px; margin-bottom: 6px; }
.breadcrumb { font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }

.products-layout { display: grid; grid-template-columns: 256px 1fr; gap: 36px; padding: 32px 0 72px; }

.filters-sidebar { background: var(--light); padding: 24px; border-radius: var(--radius); height: fit-content; position: sticky; top: 88px; }
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters-header h3 { font-size: 15px; font-weight: 600; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; color: var(--gray); font-weight: 600; }
.filter-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.filter-group a { font-size: 13px; color: var(--gray); display: block; padding: 2px 0; }
.filter-group a:hover, .filter-group a.active { color: var(--primary); font-weight: 600; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 86px; border: 1px solid #ddd; padding: 7px 10px; border-radius: var(--radius); font-size: 13px; font-family: inherit; }

.products-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.results-count { font-size: 13px; color: var(--gray); flex: 1; }
.sort-wrap select { border: 1px solid var(--gray-light); padding: 9px 14px; border-radius: var(--radius); font-size: 13px; font-family: inherit; background: #fff; cursor: pointer; }
.btn-filters-toggle { display: none; align-items: center; gap: 7px; }
.close-filters { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

.no-products { text-align: center; padding: 72px 20px; color: var(--gray); }
.no-products i { font-size: 52px; margin-bottom: 18px; opacity: 0.3; display: block; }
.no-products h3 { font-size: 20px; margin-bottom: 10px; }
.no-products a { color: var(--primary); font-weight: 600; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-light); border-radius: var(--radius); font-size: 13px; transition: all 0.2s; }
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 40px 0 20px; }
.gallery-main { position: relative; background: var(--light); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 90px; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; flex-shrink: 0; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-btn-large { position: absolute; top: 14px; right: 14px; background: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 18px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; z-index: 1; }
.wishlist-btn-large.active, .wishlist-btn-large:hover { color: var(--red); }

.product-category { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); }
.product-details h1 { font-family: 'Playfair Display', serif; font-size: 30px; margin: 8px 0 14px; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent); font-size: 14px; }
.product-rating span { color: var(--gray); font-size: 13px; }
.product-price-detail { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.product-price-detail .price, .product-price-detail .price-sale { font-size: 28px; font-weight: 700; }
.discount-badge { background: var(--red); color: #fff; padding: 4px 10px; border-radius: var(--radius); font-size: 12px; font-weight: 600; }
.tax-note { font-size: 12px; color: var(--gray); width: 100%; }
.product-short-desc { color: var(--gray); font-size: 14px; margin-bottom: 22px; line-height: 1.8; border-bottom: 1px solid var(--gray-light); padding-bottom: 20px; }

.variant-section { margin-bottom: 20px; }
.variant-section label { font-size: 13px; margin-bottom: 10px; display: block; font-weight: 500; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { border: 1px solid #ddd; background: #fff; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-family: inherit; transition: all 0.2s; min-width: 48px; text-align: center; }
.size-btn.active, .size-btn:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.size-guide-link { font-size: 12px; color: var(--gray); margin-top: 8px; display: inline-block; }

.add-to-cart-section { display: flex; gap: 12px; margin-bottom: 22px; align-items: stretch; }
.qty-selector { display: flex; align-items: center; border: 1px solid #ddd; border-radius: var(--radius); flex-shrink: 0; }
.qty-selector button { width: 38px; height: 48px; background: none; border: none; cursor: pointer; font-size: 18px; color: var(--primary); }
.qty-selector input { width: 48px; text-align: center; border: none; outline: none; font-size: 15px; font-family: inherit; }
.btn-add-cart { flex: 1; padding: 14px 20px; font-size: 14px; letter-spacing: 0.5px; }

.product-meta { font-size: 13px; color: var(--gray); background: var(--light); padding: 16px; border-radius: var(--radius); }
.product-meta p { margin-bottom: 6px; }
.product-meta p:last-child { margin-bottom: 0; }

.product-tabs { margin: 48px 0 40px; border-top: 1px solid var(--gray-light); padding-top: 0; }
.tabs-header { display: flex; border-bottom: 1px solid var(--gray-light); margin-bottom: 28px; }
.tab-btn { background: none; border: none; padding: 14px 28px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.tab-btn.active { border-bottom-color: var(--primary); color: var(--primary); }
.tab-content { font-size: 14px; }
.description-text { line-height: 1.9; color: var(--gray); }
.review-item { border-bottom: 1px solid var(--gray-light); padding: 18px 0; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: center; flex-wrap: wrap; gap: 8px; }
.stars { color: var(--accent); }
.related-products { padding: 0 0 64px; }
.related-products h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 28px; }

/* ── CART PAGE ── */
.page-title { padding: 32px 0; border-bottom: 1px solid var(--gray-light); margin-bottom: 32px; }
.page-title h1 { font-family: 'Playfair Display', serif; font-size: 30px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-bottom: 72px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 16px 12px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--primary); color: var(--gray); }
.cart-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product img { width: 76px; height: 96px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.cart-product a { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; }
.cart-product small { display: block; color: var(--gray); font-size: 12px; }
.cart-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: var(--radius); width: fit-content; }
.cart-qty button { width: 32px; height: 38px; background: none; border: none; cursor: pointer; font-size: 16px; }
.cart-qty span { width: 38px; text-align: center; font-size: 14px; }
.remove-btn { background: none; border: none; color: #bbb; cursor: pointer; font-size: 15px; padding: 6px; }
.remove-btn:hover { color: var(--red); }

.cart-summary { background: var(--light); padding: 28px; border-radius: var(--radius); height: fit-content; }
.cart-summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-light); }
.coupon-section { margin-bottom: 22px; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-section input { flex: 1; border: 1px solid #ddd; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; font-family: inherit; }
.coupon-section button { padding: 10px 18px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-family: inherit; white-space: nowrap; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--green); }
.coupon-remove { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 14px; padding: 0; }
#couponMsg { font-size: 12px; margin-top: 6px; min-height: 18px; }
.summary-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; padding-top: 12px; border-top: 1px solid #ccc; margin-top: 4px; }
.summary-row.discount { color: var(--green); }

.empty-state { text-align: center; padding: 88px 20px; color: var(--gray); }
.empty-state i { font-size: 64px; margin-bottom: 22px; opacity: 0.2; display: block; }
.empty-state h3 { font-size: 22px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 28px; font-size: 15px; }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; margin-bottom: 72px; }
.checkout-section { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-light); }
.address-card { display: flex; gap: 14px; border: 1.5px solid var(--gray-light); padding: 16px; border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s; }
.address-card:has(input:checked) { border-color: var(--primary); background: var(--light); }
.address-details strong { font-size: 14px; display: block; margin-bottom: 4px; }
.address-details p { font-size: 13px; color: var(--gray); margin-bottom: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { border: 1px solid #ddd; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--light); }
.checkout-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-light); }
.checkout-item img { width: 58px; height: 74px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.checkout-item div { flex: 1; font-size: 13px; line-height: 1.5; }
.checkout-item strong { font-weight: 600; white-space: nowrap; font-size: 14px; }

/* ── AUTH ── */
.auth-page { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--light); }
.auth-card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-family: 'Playfair Display', serif; font-size: 30px; margin-bottom: 8px; }
.auth-header p { color: var(--gray); font-size: 14px; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--gray); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── ORDERS ── */
.orders-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 72px; }
.order-card { border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--light); flex-wrap: wrap; gap: 10px; }
.order-meta { display: flex; gap: 20px; align-items: center; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.order-card-body { padding: 12px 22px; font-size: 13px; color: var(--gray); }
.order-card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-light); }
.order-status { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #f3e5f5; color: #6a1b9a; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-failed { background: #ffebee; color: #c62828; }
.status-refunded { background: #fce4ec; color: #880e4f; }

/* ── ORDER DETAIL ── */
.order-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-bottom: 72px; }
.card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-light); }
.order-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-light); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 62px; height: 78px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.order-item div { flex: 1; font-size: 13px; line-height: 1.6; }
.order-status-badge { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }

/* ── SUCCESS PAGE ── */
.success-page { text-align: center; padding: 88px 20px; }
.success-icon { font-size: 72px; color: var(--green); margin-bottom: 22px; }
.success-page h1 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 16px; }
.success-page p { color: var(--gray); margin-bottom: 10px; font-size: 15px; }
.success-actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ── ACCOUNT ── */
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 72px; }
.account-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; border: 1px solid var(--gray-light); padding: 36px 20px; border-radius: var(--radius); text-align: center; font-size: 14px; transition: all 0.2s; }
.account-tile i { font-size: 34px; color: var(--accent); }
.account-tile:hover { border-color: var(--primary); background: var(--light); }

/* ── FOOTER ── */
.site-footer { background: var(--primary); color: #fff; padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; color: rgba(255,255,255,0.6); font-weight: 600; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.8; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.footer-col p i { margin-top: 3px; flex-shrink: 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col li a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social-links a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: rgba(255,255,255,0.65); transition: all 0.2s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-policy-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-policy-links a { font-size: 11px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-policy-links a:hover { color: rgba(255,255,255,0.9); }
.payment-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-badge { display: inline-block; padding: 3px 8px; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }

.error-page { text-align: center; padding: 88px 20px; }

/* ── Policy Pages ─────────────────────────────────────────────────────────── */
.policy-page { padding: 48px 0 80px; }
.policy-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.policy-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 12px; }
.policy-updated { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.policy-content { max-width: 800px; line-height: 1.85; color: var(--text); }
.policy-content h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px; color: var(--heading); }
.policy-content h4 { font-size: 0.95rem; font-weight: 600; margin: 20px 0 8px; color: var(--heading); }
.policy-content p { margin-bottom: 14px; }
.policy-content ul { margin: 0 0 14px 20px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--accent); text-decoration: underline; }
.policy-highlight { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 20px; border-radius: 4px; margin: 20px 0; }

/* ════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════ */

/* Tablet landscape */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 44px; }
  .main-nav ul { gap: 18px; }
}

/* Tablet portrait */
@media (max-width: 820px) {
  :root { --section-gap: 48px; }
  .container { padding: 0 18px; }
  .category-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }

  /* Header */
  .header-top { font-size: 11px; padding: 7px 12px; }
  .header-inner { gap: 12px; }
  .main-nav { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 82%; max-width: 320px; background: #fff; z-index: 2000; padding: 0; box-shadow: 6px 0 24px rgba(0,0,0,0.15); overflow-y: auto; flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav li a { display: block; padding: 15px 24px; border-bottom: 1px solid var(--gray-light); font-size: 13px; letter-spacing: 0.5px; }
  .mobile-menu-btn { display: flex; }
  .nav-close { display: flex; align-items: center; padding: 20px 24px; border-bottom: 2px solid var(--gray-light); margin-bottom: 0; font-size: 20px; cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; }

  /* Layout */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products-layout { grid-template-columns: 1fr; gap: 0; padding: 20px 0 56px; }
  .filters-sidebar { display: none; position: fixed; left: 0; top: 0; bottom: 0; z-index: 1100; background: #fff; width: 300px; overflow-y: auto; padding: 20px; border-radius: 0; }
  .filters-sidebar.open { display: block; }
  .btn-filters-toggle { display: flex; }
  .close-filters { display: flex; }

  /* Hero */
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; margin-bottom: 22px; }
  .hero-slide { height: 360px; }
  .hero-default { height: 360px; }

  /* Sections */
  .section-header h2 { font-size: 26px; }
  .promo-banner h2 { font-size: 28px; }
  .promo-banner { padding: 52px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .feature i { font-size: 24px; }
  .feature strong { font-size: 13px; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .gallery-main { max-width: 480px; margin: 0 auto; }
  .gallery-thumbs { justify-content: center; }

  /* Cart / Checkout */
  .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; } /* hide price col */
  .checkout-layout { grid-template-columns: 1fr; gap: 0; }
  .checkout-right { margin-top: 0; }

  /* Orders */
  .order-detail-layout { grid-template-columns: 1fr; gap: 20px; }

  /* Account */
  .account-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .account-tile { padding: 28px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer { padding: 48px 0 28px; }

  /* Auth */
  .auth-card { padding: 36px 28px; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --section-gap: 40px; }
  .container { padding: 0 20px; }

  /* Header */
  .header-top { display: none; } /* hide top bar on mobile */
  .logo-img { height: 40px; }
  .header-actions { gap: 10px; }
  .action-btn { font-size: 17px; }
  .badge { width: 16px; height: 16px; font-size: 9px; top: -5px; right: -6px; }

  /* Hero */
  .hero-slide { height: 280px; }
  .hero-default { height: 280px; }
  .hero-content h1 { font-size: 24px; margin-bottom: 10px; }
  .hero-content p { font-size: 13px; margin-bottom: 18px; }
  .hero-content .btn { padding: 11px 20px; font-size: 12px; }
  .swiper-button-prev, .swiper-button-next { display: none !important; }

  /* Category strip */
  .category-strip { padding: 28px 0; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-icon { width: 52px; height: 52px; font-size: 20px; }
  .cat-item span { font-size: 10px; }

  /* Features */
  .features-bar { padding: 24px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature { flex-direction: column; align-items: flex-start; gap: 6px; }
  .feature i { font-size: 22px; }
  .feature strong { font-size: 12px; }
  .feature span { font-size: 11px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-header { margin-bottom: 20px; }
  .section-header h2 { font-size: 22px; }
  .view-all { font-size: 12px; }
  .product-info h3 { font-size: 13px; }
  .price, .price-sale { font-size: 14px; }
  .quick-add-btn { font-size: 11px; padding: 10px; }

  /* Promo */
  .promo-banner { padding: 40px 0; }
  .promo-banner h2 { font-size: 22px; }
  .promo-banner p { font-size: 13px; margin-bottom: 20px; }

  /* Page header */
  .page-header { padding: 24px 0 18px; }
  .page-header h1 { font-size: 24px; }

  /* Product detail */
  .product-details h1 { font-size: 22px; }
  .product-price-detail .price, .product-price-detail .price-sale { font-size: 22px; }
  .add-to-cart-section { flex-direction: column; gap: 10px; }
  .qty-selector { width: 100%; justify-content: center; }
  .btn-add-cart { width: 100%; }
  .gallery-thumbs { gap: 8px; }
  .thumb { width: 58px; height: 74px; }
  .product-tabs { margin: 32px 0 28px; }
  .tab-btn { padding: 12px 16px; font-size: 13px; }

  /* Cart */
  .page-title { padding: 22px 0; }
  .page-title h1 { font-size: 24px; }
  .cart-product img { width: 62px; height: 78px; }
  .cart-product a { font-size: 13px; }
  .cart-summary { padding: 20px; }
  .cart-table th, .cart-table td { padding-right: 8px; }

  /* Auth */
  .auth-page { padding: 28px 14px; align-items: flex-start; }
  .auth-card { padding: 28px 20px; box-shadow: none; border-radius: 6px; }
  .auth-header h1 { font-size: 26px; }

  /* Checkout */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .checkout-section { padding: 18px; }

  /* Orders */
  .order-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-meta { gap: 10px; }
  .orders-list { gap: 12px; }

  /* Account */
  .account-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .account-tile { padding: 24px 12px; gap: 10px; }
  .account-tile i { font-size: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 0 24px; }
  .footer-col:not(:first-child) { padding-top: 0; }

  /* Success */
  .success-page { padding: 56px 16px; }
  .success-icon { font-size: 56px; }
  .success-page h1 { font-size: 26px; }
  .success-actions { flex-direction: column; align-items: center; }
}

/* Extra small (iPhone SE etc.) */
@media (max-width: 360px) {
  .products-grid { gap: 10px; }
  .product-info h3 { font-size: 12px; }
  .category-grid { gap: 6px; }
  .cat-icon { width: 48px; height: 48px; font-size: 18px; }
}
