/* =========================================
   Store Template - Main Stylesheet
   ========================================= */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #e8f5e9;
  --accent: #f9b800;
  --accent-dark: #e0a200;
  --accent-light: #fff8dc;
  --dark: #1a2e1c;
  --text: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f5a400;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.12);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; color: var(--dark); line-height: 1.25; }
input, select, textarea, button { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.eyebrow { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; }
.section-head h2 { font-size: 34px; margin: 8px 0 12px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; border: 2px solid transparent;
  font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--primary-light); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--primary-dark); color: #e8f5e9; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body .topbar a, body .footer a { color: inherit; }
body .topbar a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; color: var(--dark); }
.logo span { color: var(--primary); }
.nav ul { display: flex; gap: 32px; }
.nav a { font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions a { font-size: 20px; color: var(--dark); position: relative; }
.header-actions a:hover { color: var(--primary); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--accent); color: var(--dark);
  font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); padding: 56px 0; text-align: center; }
.page-banner h1 { font-size: 38px; margin-bottom: 8px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%); padding: 80px 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .tag { display: inline-block; background: var(--accent); color: var(--dark); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.hero h1 { font-size: 52px; margin: 20px 0; }
.hero h1 span { -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--primary); background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 88%, transparent 88%); }
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats strong { display: block; font-size: 26px; color: var(--dark); font-family: 'Poppins', sans-serif; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Features strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.feature i { font-size: 22px; color: var(--primary); width: 52px; height: 52px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature h4 { font-size: 15px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1.1; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover img { transform: scale(1.06); }
.category-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; }
.category-card h3 { color: #fff; font-size: 20px; }
.category-card span { font-size: 13px; opacity: .85; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge.new { background: var(--primary); color: #fff; }
.product-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(10px); transition: all .25s; }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button, .product-actions a { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: none; box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--dark); }
.product-actions button:hover, .product-actions a:hover { background: var(--primary); color: #fff; }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-info h3 { font-size: 16px; margin: 4px 0 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.product-info h3 a:hover { color: var(--primary); }
.rating { color: var(--warning); font-size: 13px; }
.rating span { color: var(--muted); margin-left: 4px; }
.price { margin: 8px 0 14px; font-weight: 700; color: var(--dark); font-size: 17px; }
.price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.product-info .btn { margin-top: auto; }

/* ---------- Promo banner ---------- */
.promo { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: 20px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.promo h2 { color: #fff; font-size: 36px; margin-bottom: 12px; }
.promo p { opacity: .9; margin-bottom: 24px; }
.countdown { display: flex; gap: 12px; }
.countdown div { background: var(--accent); color: var(--dark); border-radius: 10px; padding: 14px 10px; text-align: center; min-width: 72px; }
.countdown strong { display: block; font-size: 26px; font-family: 'Poppins', sans-serif; }
.countdown span { font-size: 12px; opacity: .85; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial p { margin: 12px 0 20px; color: var(--text); }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .author strong { display: block; color: var(--dark); }
.testimonial .author span { font-size: 13px; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--dark); border-top: 5px solid var(--accent); color: #fff; border-radius: 20px; padding: 56px; text-align: center; }
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { color: #c8e6c9; margin-bottom: 24px; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 14px 18px; border-radius: 8px; border: none; outline: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-grid h2 { font-size: 34px; margin: 8px 0 16px; }
.about-grid p { margin-bottom: 16px; color: var(--muted); }
.check-list li { padding: 6px 0; display: flex; gap: 10px; align-items: center; }
.check-list i { color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 32px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 38px; color: var(--primary); font-family: 'Poppins', sans-serif; }
.stat span { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); transition: all .25s; }
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.value-card .icon { width: 56px; height: 56px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.value-card h3 { margin-bottom: 8px; font-size: 19px; }
.value-card p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); aspect-ratio: 1/1.1; object-fit: cover; width: 100%; margin-bottom: 14px; }
.team-card h4 { font-size: 17px; }
.team-card span { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.socials a:hover { background: var(--primary); color: #fff; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.sidebar-box h4 { margin-bottom: 14px; font-size: 16px; }
.filter-list li { padding: 6px 0; }
.filter-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.filter-list input { accent-color: var(--primary); width: 16px; height: 16px; }
.price-range input[type=range] { width: 100%; accent-color: var(--primary); }
.price-range .values-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 6px; }
.search-box { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.search-box input { flex: 1; border: none; padding: 10px 12px; outline: none; min-width: 0; }
.search-box button { border: none; background: var(--primary); color: #fff; padding: 0 14px; cursor: pointer; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.shop-toolbar select { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff; }
.shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); }
.filter-toggle { display: none; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state i { font-size: 48px; margin-bottom: 14px; color: var(--border); }

/* ---------- Single product ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs img { border-radius: 8px; cursor: pointer; border: 2px solid transparent; aspect-ratio: 1/1; object-fit: cover; opacity: .7; transition: all .2s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); opacity: 1; }
.detail-info h1 { font-size: 32px; margin: 8px 0 10px; }
.detail-info .price { font-size: 28px; margin: 16px 0; }
.detail-info .desc { color: var(--muted); margin-bottom: 24px; }
.stock { display: inline-block; font-size: 13px; font-weight: 600; color: var(--success); background: #dcfce7; padding: 4px 12px; border-radius: 20px; }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.option-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.option-btns button { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; }
.option-btns button.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.color-dot { width: 32px; height: 32px; border-radius: 50% !important; padding: 0 !important; }
.color-dot.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; border: none; background: var(--bg-soft); cursor: pointer; font-size: 18px; }
.qty button:hover { background: var(--primary-light); }
.qty input { width: 52px; text-align: center; border: none; outline: none; padding: 10px 0; }
.add-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.add-row .btn { flex: 1; }
.meta-list li { padding: 4px 0; font-size: 14px; }
.meta-list strong { color: var(--dark); }
.tabs { margin-top: 64px; }
.tab-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-nav button { padding: 14px 22px; border: none; background: none; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-nav button.active { color: var(--primary); border-color: var(--primary); }
.tab-pane { display: none; padding: 28px 0; }
.tab-pane.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 600px; }
.spec-table td { padding: 12px 16px; border: 1px solid var(--border); }
.spec-table td:first-child { font-weight: 600; background: var(--bg-soft); width: 40%; color: var(--dark); }
.review { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.review img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review strong { color: var(--dark); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px; background: var(--bg-soft); font-size: 14px; color: var(--dark); }
.cart-table td { padding: 18px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.cart-product strong { color: var(--dark); display: block; }
.cart-product span { font-size: 13px; color: var(--muted); }
.remove-item { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.remove-item:hover { color: var(--danger); }
.summary-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary-box h3 { margin-bottom: 18px; font-size: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-weight: 700; font-size: 18px; color: var(--dark); }
.coupon { display: flex; gap: 8px; margin: 16px 0; }
.coupon input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.cart-bottom { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; flex-wrap: wrap; }
.mini-items .mini-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mini-item div { flex: 1; font-size: 14px; }
.mini-item div strong { display: block; color: var(--dark); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--dark); font-size: 14px; }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s; background: #fff; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control.is-invalid { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.form-control.is-invalid + .error-msg, .input-icon.is-invalid ~ .error-msg { display: block; }
div.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 130px; }
.card-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.card-box h3 { margin-bottom: 20px; font-size: 20px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.pay-option input { accent-color: var(--primary); }
.pay-option i { margin-left: auto; font-size: 20px; color: var(--muted); }
.card-fields { display: none; margin-top: 10px; }
.card-fields.show { display: block; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; font-size: 36px; margin-bottom: 14px; }
.auth-side p { opacity: .9; max-width: 420px; }
.auth-side ul { margin-top: 28px; }
.auth-side li { padding: 8px 0; display: flex; gap: 10px; align-items: center; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.input-icon { position: relative; }
.input-icon .form-control { padding-right: 44px; }
.toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; }
.auth-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.auth-row a, .auth-switch a { color: var(--primary); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-login button { padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; display: flex; gap: 8px; align-items: center; justify-content: center; }
.social-login button:hover { background: var(--bg-soft); }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; }
.pass-strength { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pass-strength div { height: 100%; width: 0; transition: all .3s; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.dash-sidebar { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
.dash-user { padding: 24px; text-align: center; background: var(--primary-light); }
.dash-user img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid #fff; }
.dash-user strong { display: block; color: var(--dark); }
.dash-user span { font-size: 13px; color: var(--muted); }
.dash-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-left: 3px solid transparent; font-weight: 500; }
.dash-menu a:hover { background: var(--bg-soft); }
.dash-menu a.active { border-color: var(--primary); color: var(--primary); background: var(--bg-soft); }
.dash-pane { display: none; }
.dash-pane.active { display: block; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.dash-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.dash-card .icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dash-card strong { display: block; font-size: 22px; color: var(--dark); font-family: 'Poppins', sans-serif; }
.dash-card span { font-size: 13px; color: var(--muted); }
.ic-1 { background: var(--primary-light); color: var(--primary); } .ic-2 { background: var(--accent-light); color: var(--accent-dark); }
.ic-3 { background: var(--primary-light); color: var(--primary-dark); } .ic-4 { background: var(--accent-light); color: #b07f00; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th { text-align: left; padding: 12px 14px; background: var(--bg-soft); font-size: 14px; color: var(--dark); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status.delivered { background: #dcfce7; color: #16a34a; }
.status.processing { background: #fef3c7; color: #b45309; }
.status.shipped { background: var(--primary-light); color: var(--primary-dark); }
.status.cancelled { background: #fee2e2; color: #dc2626; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.address-card h4 { display: flex; justify-content: space-between; margin-bottom: 10px; }
.address-card p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.contact-card { text-align: center; padding: 32px 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-card .icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; display: none; }
.alert-success { background: #dcfce7; color: #166534; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.legal-toc h4 { margin-bottom: 12px; font-size: 15px; }
.legal-toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.legal-toc a:hover, .legal-toc a.active { color: var(--primary); }
.legal-content { max-width: 800px; }
.legal-content .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.legal-content h2 { font-size: 22px; margin: 32px 0 12px; scroll-margin-top: 96px; }
.legal-content p, .legal-content li { color: var(--text); margin-bottom: 10px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-content .note { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 16px 18px; border-radius: 8px; margin: 20px 0; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); border-top: 4px solid var(--accent); color: #c8e6c9; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 16px; }
.footer li { padding: 5px 0; }
body .footer a:hover { color: #fff; }
.footer .socials { justify-content: flex-start; }
.footer .socials a { background: rgba(255,255,255,.08); color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--accent); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.pay-icons { display: flex; gap: 12px; font-size: 26px; }

/* ---------- Toast & back to top ---------- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; z-index: 999; transform: translateY(120px); opacity: 0; transition: all .3s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--accent); }
.back-top { position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: none; z-index: 99; box-shadow: var(--shadow-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .categories, .team { grid-template-columns: repeat(3, 1fr); }
  .features, .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: #fff; box-shadow: var(--shadow-lg); padding: 80px 28px; transition: left .3s; z-index: 200; }
  .nav.open { left: 0; }
  .nav ul { flex-direction: column; gap: 22px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; display: none; }
  .nav-overlay.show { display: block; }
  .hero .container, .about-grid, .product-detail, .contact-grid, .promo, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shop-layout, .dash-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-sidebar.show { display: block; }
  .filter-toggle { display: inline-flex; }
  .dash-sidebar { position: static; }
  .testimonials, .values, .contact-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .promo, .newsletter { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .product-grid, .categories, .team, .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features, .dash-cards, .address-grid, div.form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-head h2, .page-banner h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .newsletter form { flex-direction: column; }
  .topbar .hide-sm { display: none; }
  .product-info { padding: 12px; }
  .product-info .btn { padding: 10px; font-size: 13px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .cart-table td { border: none; padding: 6px 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .header-actions { gap: 14px; }
}

/* ---------- Logo image ---------- */
.logo img { height: 58px; width: auto; display: block; }
.footer .logo img { height: 60px; }
@media (max-width: 600px) { .logo img { height: 44px; } }

/* ---------- Elementor ---------- */
.newsletter.newsletter-embed { background: none; border: 0; border-radius: 0; padding: 0; }
.elementor-widget-text-editor ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.elementor-widget-text-editor ol { list-style: decimal; padding-left: 22px; margin-bottom: 14px; }
.elementor-widget-text-editor li { margin-bottom: 6px; }
.elementor-widget-text-editor li::marker { color: var(--primary); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor h2 { margin: 28px 0 12px; }
.e-page-banner .breadcrumb { justify-content: center; }
.elementor-widget-icon-list .elementor-icon-list-items { list-style: none; }
.elementor-widget-shortcode .auth-wrap { margin: 0; }

/* Hero image slider (Elementor image carousel with class hero-slider) */
.hero-slider .elementor-image-carousel-wrapper { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-slider .swiper-slide-image { width: 100%; height: 560px; object-fit: cover; display: block; }
.hero-slider .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .7; }
.hero-slider .swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }
.hero-slider .swiper-pagination-bullets.swiper-pagination-horizontal { bottom: 14px; }
@media (max-width: 1024px) { .hero-slider .swiper-slide-image { height: 460px; } }
@media (max-width: 600px) { .hero-slider .swiper-slide-image { height: 320px; } .hero-slider .elementor-image-carousel-wrapper { border-radius: 16px; } }
