/* =============================================================
   Banlili Store - Main stylesheet
   Branding mirror of banlili.com
   ============================================================= */

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

:root {
  --primary: #F26522;
  --primary-dark: #d9541a;
  --primary-light: #fff3eb;
  --dark: #1a1a2e;
  --nav-bg: #333;
  --text-dark: #2c2c2c;
  --text-mid: #555;
  --text-light: #888;
  --border: #e5e5e5;
  --bg-light: #f8f8f8;
  --white: #fff;
  --green: #1da462;
  --red: #e2321e;
  --topbar-bg: #F26522;
  --cat-sidebar: #1a1a2e;
  --font-main: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-light); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ====== TOP BAR ====== */
.topbar { background: var(--topbar-bg); color: #fff; font-size: 12px; font-family: var(--font-main); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-left { gap: 18px; }
.topbar-left a, .topbar-right a { color: #fff; opacity: 0.9; font-size: 12px; transition: opacity 0.2s; }
.topbar-left a:hover, .topbar-right a:hover { opacity: 1; }
.currency-dropdown { position: relative; }
.currency-dropdown > a { display: flex; align-items: center; gap: 4px; }
.currency-dropdown:hover .currency-menu { display: block; }
.currency-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; color: var(--text-dark); border: 1px solid var(--border); border-radius: 4px; min-width: 80px; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.currency-menu a { display: block; padding: 6px 14px; font-size: 12px; color: var(--text-dark); }
.currency-menu a:hover { background: var(--bg-light); color: var(--primary); }

/* ====== MAIN HEADER ====== */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; height: 70px; }
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap img { height: 52px; width: auto; object-fit: contain; }
.logo-wrap .logo-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-main); }
.logo-text span:first-child { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.logo-text span:last-child { font-size: 9px; font-weight: 500; color: var(--text-mid); letter-spacing: 0.5px; text-transform: uppercase; }

/* Search bar */
.header-search { flex: 1; display: flex; border: 2px solid var(--primary); border-radius: 4px; height: 40px; max-width: 100%; position: relative; }
.header-search input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 13px; font-family: var(--font-body); color: var(--text-dark); background: #fff; min-width: 0; }
.header-search button[type="submit"] { background: var(--primary); color: #fff; border: none; padding: 0 18px; cursor: pointer; font-size: 15px; transition: background 0.2s; border-radius: 0 2px 2px 0; }
.header-search button[type="submit"]:hover { background: var(--primary-dark); }

/* Category dropdown (custom, replaces native <select>) */
.search-cat { position: relative; flex-shrink: 0; display: flex; }
.search-cat-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%; padding: 0 12px; min-width: 158px; max-width: 200px; background: var(--bg-light); border: none; border-right: 1px solid #ddd; border-radius: 2px 0 0 2px; font-family: var(--font-main); font-size: 12px; font-weight: 500; color: var(--text-dark); cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.search-cat-toggle:hover { background: #eef0f2; }
.search-cat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-cat-toggle > i { font-size: 10px; color: var(--primary); transition: transform 0.25s; flex-shrink: 0; }
.search-cat.open .search-cat-toggle { background: #eef0f2; }
.search-cat.open .search-cat-toggle > i { transform: rotate(180deg); }
.search-cat-menu { position: absolute; top: calc(100% + 8px); left: -2px; width: 300px; max-width: calc(100vw - 32px); max-height: 72vh; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 12px 34px rgba(0,0,0,0.16); z-index: 500; padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.search-cat.open .search-cat-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.search-cat-menu::-webkit-scrollbar { width: 8px; }
.search-cat-menu::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.search-cat-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 16px; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 13px; color: var(--text-dark); text-align: left; line-height: 1.3; transition: background 0.15s, color 0.15s, padding-left 0.15s; }
.search-cat-opt:hover { background: var(--primary-light); color: var(--primary); }
.search-cat-opt.parent { font-family: var(--font-main); font-weight: 600; }
.search-cat-opt.parent > i, .search-cat-opt.all > i { width: 18px; text-align: center; color: var(--primary); font-size: 13px; flex-shrink: 0; }
.search-cat-opt.child { padding-left: 43px; position: relative; font-size: 12.5px; color: var(--text-mid); }
.search-cat-opt.child::before { content: ''; position: absolute; left: 26px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #d8d8d8; transform: translateY(-50%); transition: background 0.15s; }
.search-cat-opt.child:hover { padding-left: 47px; }
.search-cat-opt.child:hover::before { background: var(--primary); }
.search-cat-opt.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.search-cat-opt.active.child::before { background: var(--primary); }
.search-cat-divider { height: 1px; background: #f0f0f0; margin: 5px 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-action-item { display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; position: relative; }
.header-action-item i { font-size: 20px; color: var(--text-dark); }
.header-action-item span:not(.badge) { font-size: 11px; color: var(--text-mid); font-family: var(--font-main); }
.header-action-item:hover i, .header-action-item:hover span:not(.badge) { color: var(--primary); }
.badge { position: absolute; top: -4px; right: -8px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); }
.auth-btns { display: flex; gap: 8px; }
.btn-login, .btn-register { padding: 6px 14px; border-radius: 3px; font-size: 12px; font-family: var(--font-main); font-weight: 600; cursor: pointer; border: 1px solid var(--primary); transition: all 0.2s; display: inline-block; }
.btn-login { background: transparent; color: var(--primary); }
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register { background: var(--primary); color: #fff; }
.btn-register:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ====== NAVIGATION BAR ====== */
.navbar { background: var(--nav-bg); color: #fff; }
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: stretch; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a { display: flex; align-items: center; height: 44px; padding: 0 16px; font-size: 13px; font-family: var(--font-main); font-weight: 500; color: #fff; border-right: 1px solid rgba(255,255,255,0.1); transition: background 0.2s; white-space: nowrap; }
.nav-links a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.nav-links a:hover, .nav-links a.active { background: var(--primary); }

/* ====== MAIN LAYOUT ====== */
.main-layout { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }

/* ====== CATEGORY SIDEBAR ====== */
.cat-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; position: sticky; top: 75px; max-height: calc(100vh - 90px); overflow-y: auto; }
.cat-sidebar::-webkit-scrollbar { width: 6px; }
.cat-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.cat-sidebar-header { background: var(--cat-sidebar); color: #fff; padding: 12px 16px; font-family: var(--font-main); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px; text-transform: uppercase; position: sticky; top: 0; z-index: 2; }
.cat-list { padding: 6px 0; }
.cat-item { position: relative; }
.cat-item > a { display: flex; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--text-dark); font-family: var(--font-body); border-bottom: 1px solid #f0f0f0; transition: all 0.2s; gap: 8px; }
.cat-item > a:hover { color: var(--primary); background: var(--primary-light); padding-left: 20px; }
.cat-item > a i { width: 16px; text-align: center; color: var(--primary); font-size: 14px; }
.cat-item > a .arrow { margin-left: auto; font-size: 11px; color: var(--text-light); }
.cat-item:hover .sub-cat { display: block; }
.sub-cat { display: none; position: absolute; left: 100%; top: 0; background: #fff; border: 1px solid var(--border); border-radius: 4px; min-width: 240px; z-index: 100; box-shadow: 4px 4px 16px rgba(0,0,0,0.1); max-height: 80vh; overflow-y: auto; }
.sub-cat a { display: block; padding: 8px 16px; font-size: 12px; color: var(--text-mid); border-bottom: 1px solid #f5f5f5; transition: all 0.15s; }
.sub-cat a:hover { color: var(--primary); background: var(--primary-light); }
.sub-cat a:last-child { border-bottom: none; }

/* ====== RIGHT CONTENT AREA ====== */
.content-area { min-width: 0; }

/* ====== HERO SLIDER ====== */
.hero-area { display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin-bottom: 20px; }
.slider-wrap { position: relative; border-radius: 4px; overflow: hidden; background: #1a1a2e; height: 330px; }
.slide { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide.active { display: block; }
.slide-content { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 360px; }
.slide-content h2 { font-family: var(--font-main); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 10px; text-shadow: 1px 2px 8px rgba(0,0,0,0.4); }
.slide-content p { font-size: 13px; color: rgba(255,255,255,0.88); margin-bottom: 18px; text-shadow: 1px 1px 4px rgba(0,0,0,0.4); }
.slide-content a { display: inline-block; background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 3px; font-family: var(--font-main); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.slide-content a:hover { background: var(--primary-dark); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); z-index: 1; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s, transform 0.2s; border: none; }
.dot.active { background: var(--primary); transform: scale(1.3); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.85); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-dark); z-index: 5; transition: background 0.2s; }
.slider-arrow:hover { background: var(--primary); color: #fff; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* Side banners */
.side-banners { display: flex; flex-direction: column; gap: 10px; }
.side-banner { height: 160px; border-radius: 4px; overflow: hidden; background: #e0e7ef; position: relative; display: flex; align-items: flex-end; }
.side-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.side-banner-content { position: relative; z-index: 2; padding: 14px; background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%); width: 100%; }
.side-banner-content span { display: block; font-family: var(--font-main); font-size: 11px; font-weight: 600; text-transform: uppercase; color: #fff; opacity: 0.8; margin-bottom: 3px; }
.side-banner-content strong { display: block; font-family: var(--font-main); font-size: 14px; font-weight: 700; color: #fff; }

/* ====== SECTION HEADER ====== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.section-title { font-family: var(--font-main); font-size: 17px; font-weight: 700; color: var(--dark); position: relative; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.view-all { font-size: 12px; font-family: var(--font-main); font-weight: 600; color: var(--primary); border: 1px solid var(--primary); padding: 5px 14px; border-radius: 3px; transition: all 0.2s; }
.view-all:hover { background: var(--primary); color: #fff; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-image { height: 170px; background: #f5f5f5; overflow: hidden; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 2px; font-size: 11px; font-family: var(--font-main); font-weight: 700; z-index: 2; }
.badge-sale { background: var(--red); color: #fff; }
.badge-hot { background: var(--primary); color: #fff; }
.product-actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 5px; opacity: 0; transform: translateX(10px); transition: opacity 0.25s, transform 0.25s; z-index: 2; }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-mid); cursor: pointer; transition: all 0.2s; }
.action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.action-btn.wish-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-btn.outline.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.product-info { padding: 10px 12px; }
.product-store { font-size: 11px; color: var(--primary); font-family: var(--font-main); font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 12px; color: var(--text-dark); font-family: var(--font-body); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; font-weight: 500; min-height: 34px; }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 6px; }
.stars { color: #f5a623; font-size: 11px; }
.rating-count { font-size: 11px; color: var(--text-light); }
.product-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-current { font-family: var(--font-main); font-size: 15px; font-weight: 700; color: var(--primary); }
.price-old { font-family: var(--font-main); font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.price-quote { font-family: var(--font-main); font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 20px; display: inline-block; }
.add-to-cart-btn { display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 7px 0; text-align: center; background: var(--primary); color: #fff; border-radius: 3px; font-family: var(--font-main); font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: opacity 0.25s, transform 0.25s, background 0.2s; opacity: 0; transform: translateY(4px); }
.product-card:hover .add-to-cart-btn { opacity: 1; transform: translateY(0); }
.add-to-cart-btn:hover { background: var(--primary-dark); }

/* ====== PROMO STRIP ====== */
.promo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.promo-box { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.promo-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); }
.promo-text h4 { font-family: var(--font-main); font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.promo-text p { font-size: 11px; color: var(--text-light); }

/* ====== CATEGORY BANNER (interior pages) ====== */
.page-banner { background: linear-gradient(135deg, #1a1a2e 0%, #2c2c4e 100%); color: #fff; padding: 26px 0; }
.page-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page-banner h1 { font-family: var(--font-main); font-size: 22px; font-weight: 700; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ====== SUB-CATEGORY CHIPS ====== */
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; }
.subcat-chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text-mid); font-family: var(--font-main); font-weight: 500; transition: all 0.2s; }
.subcat-chip:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.subcat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== SEARCH RESULTS ====== */
.search-summary { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.search-summary h2 { font-family: var(--font-main); font-size: 15px; font-weight: 600; color: var(--text-dark); }
.search-summary p { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.search-summary .reset-link { color: var(--primary); font-size: 12px; font-family: var(--font-main); font-weight: 600; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; }
.empty-state i { font-size: 50px; color: var(--border); margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-main); font-size: 17px; margin-bottom: 8px; color: var(--text-dark); }
.empty-state p { color: var(--text-light); font-size: 13px; max-width: 480px; margin: 0 auto 16px; }

/* ====== PRODUCT DETAIL ====== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.pd-gallery { width: 100%; }
.pd-main-image { width: 100%; height: 420px; background: #f5f5f5; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs img { width: 70px; height: 70px; object-fit: contain; background: #f5f5f5; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; padding: 4px; }
.pd-thumbs img:hover { border-color: var(--primary); }
.pd-info h1 { font-family: var(--font-main); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.pd-store { font-size: 12px; color: var(--primary); font-family: var(--font-main); font-weight: 600; margin-bottom: 8px; }
.pd-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pd-rating .stars { font-size: 14px; }
.pd-rating .count { font-size: 12px; color: var(--text-light); }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-price .now { font-family: var(--font-main); font-size: 30px; font-weight: 700; color: var(--primary); }
.pd-price .was { font-family: var(--font-main); font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.pd-price .save { font-family: var(--font-main); font-size: 13px; color: var(--red); font-weight: 600; }
.pd-meta { margin: 16px 0; }
.pd-meta-row { display: flex; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #eee; }
.pd-meta-row .lbl { width: 140px; color: var(--text-light); font-family: var(--font-main); font-weight: 500; }
.pd-meta-row .val { color: var(--text-dark); flex: 1; }
.pd-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin: 16px 0; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pd-btn { padding: 12px 24px; border-radius: 3px; font-family: var(--font-main); font-weight: 600; font-size: 13px; cursor: pointer; border: none; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px; }
.pd-btn.primary { background: var(--primary); color: #fff; }
.pd-btn.primary:hover { background: var(--primary-dark); }
.pd-btn.secondary { background: var(--dark); color: #fff; }
.pd-btn.outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
.pd-btn.outline:hover { border-color: var(--primary); color: var(--primary); }

/* ====== FOOTER ====== */
.footer { background: #1a1a2e; color: #aaa; margin-top: 30px; }
.footer-top { background: var(--primary); padding: 18px 0; }
.footer-subscribe { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-subscribe h3 { font-family: var(--font-main); font-size: 17px; font-weight: 700; color: #fff; }
.footer-subscribe p { font-size: 12px; color: rgba(255,255,255,0.85); }
.subscribe-form { display: flex; gap: 0; flex: 1; max-width: 420px; }
.subscribe-form input { flex: 1; padding: 10px 14px; border: none; border-radius: 3px 0 0 3px; font-size: 13px; outline: none; font-family: var(--font-body); }
.subscribe-form button { padding: 10px 20px; background: var(--dark); color: #fff; border: none; border-radius: 0 3px 3px 0; font-family: var(--font-main); font-size: 12px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.subscribe-form button:hover { background: #2d2d4e; }

.footer-main { max-width: 1200px; margin: 0 auto; padding: 36px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-family: var(--font-main); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-col p { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.footer-contact { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.footer-contact i { color: var(--primary); width: 16px; text-align: center; }
.footer-contact a { color: #aaa; transition: color 0.2s; }
.footer-contact a:hover { color: var(--primary); }
.footer-phone { font-family: var(--font-main); font-size: 20px; font-weight: 700; color: #fff; margin: 6px 0 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 15px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: #aaa; display: flex; align-items: center; gap: 6px; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul li a::before { content: '\203A'; font-size: 15px; color: var(--primary); transition: margin 0.2s; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom { background: #111122; padding: 14px 16px; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copyright { font-size: 13px; color: #777; }
.footer-copyright strong { color: var(--primary); }
.payment-methods { display: flex; align-items: center; gap: 8px; }
.payment-methods span { font-size: 12px; color: #666; margin-right: 4px; }
.payment-icon { background: #fff; border-radius: 3px; padding: 3px 8px; font-size: 11px; font-weight: 700; font-family: var(--font-main); color: #333; height: 24px; display: flex; align-items: center; justify-content: center; min-width: 40px; }
.payment-visa { color: #1a1f71; }
.payment-mc { background: #eb001b; color: #fff; }
.payment-pp { color: #003087; }
.payment-stripe { color: #635bff; }
.payment-amex { color: #007bc1; }

/* ====== COOKIE BAR ====== */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #2c2c3e; color: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 9999; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.cookie-bar p { font-size: 13px; color: #ccc; }
.cookie-bar a { color: var(--primary); }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-accept { background: var(--primary); color: #fff; border: none; padding: 7px 18px; border-radius: 3px; font-family: var(--font-main); font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.cookie-accept:hover { background: var(--primary-dark); }
.cookie-manage { background: transparent; color: #ccc; border: 1px solid #555; padding: 7px 16px; border-radius: 3px; font-family: var(--font-main); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.cookie-manage:hover { border-color: var(--primary); color: var(--primary); }

/* Back to top */
.back-to-top { position: fixed; bottom: 70px; right: 20px; width: 40px; height: 40px; border-radius: 4px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; z-index: 300; box-shadow: 0 4px 14px rgba(242,101,34,0.4); transition: background 0.2s, transform 0.2s; border: none; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Logo image */
.logo-wrap img { height: 46px; width: auto; object-fit: contain; }

/* ====== GENERIC CONTENT PAGES ====== */
.content-wrap { background: var(--bg-light); }
.content-inner { max-width: 1100px; margin: 0 auto; padding: 30px 16px 40px; }
.content-intro { margin-bottom: 26px; }
.content-intro h2 { font-family: var(--font-main); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.content-intro p { font-size: 14px; color: var(--text-mid); line-height: 1.7; max-width: 760px; }
.content-intro a, .legal a, .faq-a a { color: var(--primary); font-weight: 600; }
.content-cta { margin-top: 34px; background: linear-gradient(135deg, #1a1a2e 0%, #2c2c4e 100%); border-radius: 8px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.content-cta h3 { font-family: var(--font-main); font-size: 18px; color: #fff; margin-bottom: 4px; }
.content-cta p { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ====== FORM PAGES (order / contact) ====== */
.form-page { background: var(--bg-light); }
.form-page-inner { max-width: 1100px; margin: 0 auto; padding: 28px 16px 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 18px; }
.form-card-title { font-family: var(--font-main); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.form-card-title i { color: var(--primary); margin-right: 6px; }
.form-card-sub { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-family: var(--font-main); font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-control { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 5px; font-family: var(--font-body); font-size: 14px; color: var(--text-dark); background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,101,34,0.12); }
.form-control.is-error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 90px; }
.field-error { display: block; color: var(--red); font-size: 12px; margin-top: 5px; }
.form-alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.form-alert.error { background: #fde8e6; color: #b3261e; border: 1px solid #f5c2bd; }
.form-alert.success { background: #e6f6ec; color: #137a3e; border: 1px solid #b6e3c6; }
.form-submit { background: var(--primary); color: #fff; border: none; padding: 13px 26px; border-radius: 5px; font-family: var(--font-main); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.form-submit:hover { background: var(--primary-dark); }
.form-fineprint { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* Form success panel */
.form-success { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 50px 28px; text-align: center; max-width: 640px; margin: 0 auto; }
.form-success-icon { font-size: 56px; color: var(--green); margin-bottom: 14px; }
.form-success h2 { font-family: var(--font-main); font-size: 24px; color: var(--dark); margin-bottom: 10px; }
.form-success p { font-size: 14px; color: var(--text-mid); line-height: 1.7; max-width: 480px; margin: 0 auto 22px; }
.form-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ====== CAPTCHA ====== */
.captcha-field { background: var(--primary-light); border: 1px dashed var(--primary); border-radius: 6px; padding: 14px 16px; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.captcha-question { font-family: var(--font-main); font-size: 20px; font-weight: 700; color: var(--dark); background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 8px 14px; white-space: nowrap; letter-spacing: 1px; user-select: none; }
.captcha-input { width: 90px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 16px; font-family: var(--font-main); font-weight: 700; text-align: center; outline: none; }
.captcha-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,101,34,0.12); }
.captcha-refresh { width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: 15px; transition: all 0.2s; flex-shrink: 0; }
.captcha-refresh:hover { background: var(--primary); color: #fff; }

/* ====== ORDER ASIDE / SELECTION ====== */
.form-aside-title { font-family: var(--font-main); font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.order-items { display: flex; flex-direction: column; gap: 12px; }
.order-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.order-item img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.order-item-name { font-size: 12.5px; color: var(--text-dark); font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item-sku { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.order-item-qty { grid-column: 2; font-size: 11px; color: var(--text-mid); }
.order-item-price { font-family: var(--font-main); font-weight: 700; color: var(--primary); font-size: 13px; text-align: right; }
.order-empty { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.order-empty a { color: var(--primary); font-weight: 600; }
.aside-edit-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--primary); }
.contact-quick-row { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.contact-quick-row i { color: var(--primary); width: 16px; text-align: center; }
.contact-quick-row a { color: var(--text-mid); }
.contact-hours { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.contact-hours h4 { font-family: var(--font-main); font-size: 13px; color: var(--dark); margin-bottom: 8px; }
.contact-hours p { font-size: 12.5px; color: var(--text-mid); margin-bottom: 4px; }

/* ====== CART / SELECTION TABLE ====== */
.cart-table { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-head { display: grid; grid-template-columns: 2fr 90px 130px 90px 36px; gap: 12px; padding: 12px 18px; background: var(--bg-light); border-bottom: 1px solid var(--border); font-family: var(--font-main); font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; }
.cart-head span:nth-child(2), .cart-head span:nth-child(3), .cart-head span:nth-child(4) { text-align: center; }
.cart-row { display: grid; grid-template-columns: 64px 1fr 90px 130px 90px 36px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.cart-thumb img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.cart-name { font-size: 13px; color: var(--text-dark); font-weight: 500; line-height: 1.4; display: block; }
.cart-name:hover { color: var(--primary); }
.cart-sku { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.cart-price { text-align: center; font-size: 13px; color: var(--text-mid); }
.cart-qty { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; width: max-content; margin: 0 auto; }
.qty-btn { width: 30px; height: 32px; border: none; background: var(--bg-light); color: var(--text-dark); cursor: pointer; font-size: 16px; line-height: 1; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 42px; height: 32px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; font-family: var(--font-main); outline: none; }
.cart-line { text-align: center; font-family: var(--font-main); font-weight: 700; color: var(--primary); font-size: 14px; }
.cart-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 14px; transition: color 0.2s; }
.cart-remove:hover { color: var(--red); }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; padding: 18px; }
.cart-total-wrap { display: flex; align-items: baseline; gap: 10px; margin-left: auto; }
.cart-total-label { font-size: 13px; color: var(--text-light); }
.cart-total { font-family: var(--font-main); font-size: 22px; font-weight: 700; color: var(--primary); }
.cart-proceed { display: inline-flex; align-items: center; gap: 8px; }
.cart-note { font-size: 12px; color: var(--text-light); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.cart-note i { color: var(--primary); }

/* ====== SERVICES / WHAT WE DO ====== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 26px 22px; position: relative; transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-main); font-size: 34px; font-weight: 700; color: var(--primary-light); line-height: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.service-title { font-family: var(--font-main); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-text { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 30px; }
.about-block { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 24px; text-align: center; }
.about-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }
.about-block h3 { font-family: var(--font-main); font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.about-block p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-main); font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12.5px; color: var(--text-light); }

/* ====== FAQ ====== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: none; border: none; cursor: pointer; font-family: var(--font-main); font-size: 14.5px; font-weight: 600; color: var(--dark); text-align: left; }
.faq-q i { color: var(--primary); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

/* ====== LEGAL ====== */
.legal { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 30px 32px; max-width: 820px; }
.legal-updated { font-size: 12px; color: var(--text-light); margin-bottom: 18px; }
.legal h3 { font-family: var(--font-main); font-size: 16px; color: var(--dark); margin: 22px 0 8px; }
.legal p { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 8px; }

/* ====== AUTH / ACCOUNT ====== */
.auth-wrap { display: flex; justify-content: center; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 38px 34px; max-width: 460px; width: 100%; text-align: center; }
.auth-icon { font-size: 46px; color: var(--primary); margin-bottom: 14px; }
.auth-card h2 { font-family: var(--font-main); font-size: 22px; color: var(--dark); margin-bottom: 10px; }
.auth-lead { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.auth-benefits { text-align: left; max-width: 300px; margin: 0 auto 22px; }
.auth-benefits li { font-size: 13.5px; color: var(--text-mid); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.auth-benefits i { color: var(--green); }
.auth-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.auth-alt { font-size: 13px; color: var(--text-light); }

/* ====== BLOG ====== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,0.08); transform: translateY(-3px); }
.blog-thumb { height: 120px; background: linear-gradient(135deg, #1a1a2e 0%, #2c2c4e 100%); display: flex; align-items: center; justify-content: center; font-size: 38px; color: var(--primary); }
.blog-body { padding: 18px 20px; }
.blog-body h3 { font-family: var(--font-main); font-size: 15px; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.blog-readmore { font-size: 12.5px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* ====== JOBS ====== */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.job-item h3 { font-family: var(--font-main); font-size: 16px; color: var(--dark); margin-bottom: 5px; }
.job-item p { font-size: 13px; color: var(--text-mid); max-width: 520px; }
.job-meta { display: flex; align-items: center; gap: 16px; }
.job-loc { font-size: 12.5px; color: var(--text-light); }
.job-loc i { color: var(--primary); margin-right: 5px; }

/* ====== TRACK ORDER ====== */
.track-box { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; max-width: 520px; }
.track-help { font-size: 12.5px; color: var(--text-light); margin-top: 14px; display: flex; gap: 6px; }
.track-help i { color: var(--primary); }

/* ====== 404 ====== */
.empty-state.notfound { padding: 50px 20px; }
.notfound-code { font-family: var(--font-main); font-size: 64px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ====== ACCOUNT MENU (header) ====== */
.account-menu { position: relative; }
.account-toggle { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 4px 6px; font-family: var(--font-main); }
.account-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--font-main); flex-shrink: 0; }
.account-avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.account-hi { font-size: 12px; color: var(--text-dark); font-weight: 600; white-space: nowrap; }
.account-toggle:hover .account-hi { color: var(--primary); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.14); min-width: 200px; padding: 6px; z-index: 500; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.account-menu.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; color: var(--text-dark); border-radius: 5px; }
.account-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.account-dropdown a i { width: 16px; text-align: center; color: var(--primary); }
.account-dropdown-sep { height: 1px; background: #f0f0f0; margin: 5px 4px; }

/* ====== AUTH FORMS ====== */
.form-page-inner.narrow { max-width: 540px; }
.field-hint { display: block; font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.form-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.forgot-link { font-size: 12px; font-weight: 600; color: var(--primary); }
.forgot-link:hover { text-decoration: underline; }

/* ====== ACCOUNT DASHBOARD ====== */
.account-head { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 22px; }
.account-head h2 { font-family: var(--font-main); font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.account-head p { font-size: 13px; color: var(--text-light); }
.account-logout { margin-left: auto; }
.account-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px; text-align: center; transition: box-shadow .2s, transform .2s; }
.account-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.account-card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 10px; }
.account-card-num { font-family: var(--font-main); font-size: 24px; font-weight: 700; color: var(--dark); }
.account-card-label { font-size: 12.5px; color: var(--text-light); margin-top: 2px; }

/* ====== ORDERS ====== */
.orders-table { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.orders-head, .orders-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; padding: 12px 18px; align-items: center; }
.orders-head { background: var(--bg-light); font-family: var(--font-main); font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .3px; }
.orders-row { border-top: 1px solid #f0f0f0; font-size: 13px; }
.ord-ref { font-family: var(--font-main); font-weight: 600; color: var(--primary); }
.ord-total { font-family: var(--font-main); font-weight: 700; color: var(--dark); }

.order-detail-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; }
.order-detail-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.order-detail-ref { font-family: var(--font-main); font-weight: 700; color: var(--dark); font-size: 15px; margin-right: 12px; }
.order-detail-date { font-size: 12.5px; color: var(--text-light); }
.order-detail-status { font-size: 12px; color: var(--green); font-weight: 600; }
.order-detail-status i { font-size: 8px; margin-right: 5px; vertical-align: middle; }
.order-detail-item { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; }
.order-detail-item img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.odi-name { font-size: 13px; color: var(--text-dark); font-weight: 500; }
.odi-sku { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.odi-qty { font-size: 12px; color: var(--text-mid); }
.odi-price { font-family: var(--font-main); font-weight: 700; color: var(--primary); font-size: 13px; min-width: 70px; text-align: right; }
.order-detail-note { font-size: 13px; color: var(--text-light); }
.order-detail-msg { font-size: 13px; color: var(--text-mid); margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eee; line-height: 1.6; }
.order-detail-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.order-detail-foot span:first-child { font-size: 13px; color: var(--text-light); }
.order-detail-total { font-family: var(--font-main); font-size: 18px; font-weight: 700; color: var(--primary); }
.order-ref-line { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.order-ref-line strong { color: var(--primary); font-family: var(--font-main); }

/* ====== EMAIL VERIFICATION ====== */
.verify-banner { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.verify-banner-inner { max-width: 1200px; margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #9a3412; flex-wrap: wrap; }
.verify-msg i { color: #ea7317; margin-right: 6px; }
.verify-actions { display: flex; align-items: center; gap: 14px; }
.verify-actions a { color: #c2410c; font-weight: 700; text-decoration: underline; }
.verify-dismiss { background: none; border: none; color: #9a3412; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.verify-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin: 0 4px; font-family: var(--font-main); }
.verify-chip.ok { background: #e6f6ec; color: #137a3e; }
.verify-chip.no { background: #fde8e6; color: #b3261e; }
.verify-resend-link { font-size: 12px; font-weight: 600; color: var(--primary); }

@media (max-width: 760px) {
  .account-cards { grid-template-columns: repeat(2, 1fr); }
  .account-head { flex-wrap: wrap; }
  .account-logout { margin-left: 0; }
  .orders-head { display: none; }
  .orders-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .account-hi { display: none; }
}

/* ====== Responsive for new components ====== */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb main remove" "thumb price price" "thumb qty line"; row-gap: 8px; }
  .cart-thumb { grid-area: thumb; align-self: start; }
  .cart-main { grid-area: main; }
  .cart-remove { grid-area: remove; align-self: start; }
  .cart-price { grid-area: price; text-align: left; }
  .cart-qty { grid-area: qty; margin: 0; }
  .cart-line { grid-area: line; text-align: right; }
}
@media (max-width: 560px) {
  .form-2col { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .content-cta { flex-direction: column; align-items: flex-start; }
}

/* ====== TOAST ====== */
.toast { position: fixed; top: 90px; right: 20px; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 4px; font-family: var(--font-main); font-size: 13px; z-index: 9999; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateX(120%); transition: transform 0.3s; max-width: 280px; }
.toast.show { transform: translateX(0); }
.toast i { margin-right: 8px; color: var(--primary); }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .search-cat-toggle { min-width: 120px; max-width: 150px; }
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .cat-sidebar { display: none; }
  .hero-area { grid-template-columns: 1fr; }
  .side-banners { flex-direction: row; }
  .side-banner { height: 120px; flex: 1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .promo-strip { grid-template-columns: repeat(2,1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .pd-main-image { height: 320px; }
}
@media (max-width: 700px) {
  .header-actions .header-action-item span:not(.badge) { display: none; }
  .auth-btns { display: none; }
}
@media (max-width: 600px) {
  .topbar-left { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px; }
  .header-search { order: 3; width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .promo-strip { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .side-banners { flex-direction: column; }
  .side-banner { height: 100px; }
  .page-banner h1 { font-size: 18px; }
  .pd-main-image { height: 260px; }
}
