:root {
  --yellow: #ffcd00;
  --yellow-dark: #e6b800;
  --dark: #202435;
  --text: #202435;
  --muted: #71778e;
  --muted-2: #9b9bb4;
  --gray: #f7f8fd;
  --search: #f3f4f7;
  --border: #e4e5ee;
  --green: #00b853;
  --red: #ed174a;
  --blue: #2bbef9;
  --blue-dark: #233a95;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --radius: 8px;
  --container: 1400px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow-dark); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; color: var(--dark); line-height: 1.25; }
p { margin: 0 0 12px; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

/* Notice */
.site-notice {
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  font-size: 12.5px;
  padding: 10px 16px;
  position: relative;
}
.site-notice strong { font-weight: 700; }
.site-notice .close-notice {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 18px; line-height: 1; color: var(--dark);
}

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 80; }
.header-main { padding: 22px 0 18px; }
.header-main-row { display: flex; align-items: center; gap: 22px; }
.site-logo img { width: 210px; height: auto; }
.header-location {
  display: flex; align-items: center; gap: 10px;
  min-width: 150px; cursor: pointer; flex-shrink: 0;
}
.header-location .pin {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gray); display: grid; place-items: center; color: var(--dark);
}
.header-location small { display: block; color: var(--muted); font-size: 11px; }
.header-location strong { font-size: 13px; font-weight: 600; }
.header-search { flex: 1; position: relative; }
.header-search form {
  display: flex; background: var(--search); border-radius: 7px; overflow: hidden; height: 50px;
}
.header-search input {
  flex: 1; border: 0; background: transparent; padding: 0 18px; outline: none; color: var(--dark);
}
.header-search input::placeholder { color: var(--muted-2); }
.header-search button {
  border: 0; background: var(--dark); color: #fff; padding: 0 22px;
  font-weight: 600; letter-spacing: .2px;
}
.header-search button:hover { background: #111; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); display: none; z-index: 20; overflow: hidden;
}
.search-suggest.open { display: block; }
.search-suggest a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--gray);
}
.search-suggest a:hover { background: var(--gray); }
.search-suggest img { width: 40px; height: 40px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.ha-item { display: flex; align-items: center; gap: 10px; position: relative; color: var(--dark); }
.ha-item:hover { color: var(--dark); }
.ha-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; position: relative; background: #fff;
}
.ha-item small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.ha-item strong { font-size: 13px; }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.badge.yellow { background: var(--yellow); color: var(--dark); }

/* Nav */
.header-nav { border-top: 1px solid var(--border); }
.header-nav-row { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.all-cats {
  background: var(--yellow); border: 0; border-radius: 8px; height: 48px;
  min-width: 250px; padding: 0 16px; display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--dark); position: relative;
}
.all-cats .lines { display: flex; flex-direction: column; gap: 3px; }
.all-cats .lines span { width: 16px; height: 2px; background: var(--dark); display: block; }
.all-cats .meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.all-cats .meta b { font-size: 13px; letter-spacing: .2px; }
.all-cats .meta em { font-style: normal; font-size: 10px; font-weight: 500; color: #6b6328; }
.primary-menu { display: flex; align-items: center; gap: 2px; flex: 1; padding-left: 10px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: block; padding: 18px 14px; font-size: 13px; font-weight: 600; color: var(--dark);
}
.primary-menu > li > a:hover, .primary-menu > li.active > a { color: var(--yellow-dark); }
.primary-menu .sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow);
  padding: 8px 0; display: none; z-index: 30;
}
.primary-menu li:hover > .sub { display: block; }
.primary-menu .sub a { display: block; padding: 8px 16px; color: var(--muted); font-weight: 500; }
.primary-menu .sub a:hover { color: var(--dark); background: var(--gray); }
.nav-right { margin-left: auto; color: var(--muted); font-size: 12px; }
.nav-right strong { color: var(--dark); }

/* Cats dropdown */
.cats-dropdown {
  display: none; position: absolute; left: 0; top: calc(100% + 8px); width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); z-index: 40; max-height: 70vh; overflow: auto;
}
.all-cats.open .cats-dropdown { display: block; }
.cats-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--gray); color: var(--dark); font-weight: 500;
}
.cats-dropdown a:hover { background: var(--gray); color: var(--dark); }
.cats-dropdown .sub-inline { font-size: 11px; color: var(--muted); }

/* Page */
.site-content { padding: 24px 0 60px; }
.home-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }

/* Sidebar cats */
.sidebar-cats {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  position: sticky; top: 150px;
}
.sidebar-cats a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #f3f4f7; color: var(--dark); font-weight: 500;
}
.sidebar-cats a:hover { background: #fffdf2; }
.sidebar-cats .ico { width: 22px; margin-right: 10px; text-align: center; color: var(--muted); }
.sidebar-cats .left { display: flex; align-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.7fr .9fr; gap: 16px; margin-bottom: 22px; }
.slider {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 420px; background: #fff6e9;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  display: grid; grid-template-columns: 1fr .9fr; align-items: center;
}
.slide.active { opacity: 1; position: relative; }
.slide-copy { padding: 48px 40px; }
.slide-copy .exclusive { font-size: 12px; letter-spacing: .4px; color: var(--muted); margin-bottom: 10px; }
.slide-copy .off {
  display: inline-block; background: var(--yellow); color: var(--dark);
  font-weight: 800; font-size: 22px; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
}
.slide-copy h2 { font-size: 36px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.4px; }
.slide-copy p { color: var(--muted); margin-bottom: 16px; }
.slide-copy .from { font-size: 15px; margin-bottom: 18px; }
.slide-copy .from b { color: var(--red); font-size: 22px; }
.slide-img { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.slide-img img { max-height: 400px; object-fit: contain; }
.slider-dots { position: absolute; left: 40px; bottom: 22px; display: flex; gap: 8px; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; background: #d8d8e4;
}
.slider-dots button.active { background: var(--dark); }

.hero-banners { display: grid; gap: 16px; }
.banner-card {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 202px;
  background: #f6f6f6; color: #fff;
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-card .copy { position: relative; z-index: 1; padding: 22px 22px; max-width: 62%; }
.banner-card .eyebrow { font-size: 11px; letter-spacing: .4px; opacity: .9; margin-bottom: 4px; }
.banner-card h3 { font-size: 22px; color: #fff; margin: 4px 0 8px; }
.banner-card .only { font-size: 12px; }
.banner-card .only b { color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--dark); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 18px; font-weight: 600; font-size: 13px;
}
.btn:hover { background: #111; color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--dark); }
.btn-outline {
  background: #fff; color: var(--dark); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--dark); color: var(--dark); }
.btn-full { width: 100%; }

/* App features */
.app-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--gray); border-radius: 8px; padding: 18px 10px; margin-bottom: 28px;
}
.app-features .item { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.app-features .ico {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--dark); flex-shrink: 0;
}
.app-features p { margin: 0; font-size: 13px; font-weight: 500; color: var(--dark); }

/* Sections */
.section { margin-bottom: 34px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px;
}
.section-head h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.view-all { color: var(--muted); font-weight: 600; font-size: 13px; }
.view-all:hover { color: var(--dark); }

.trending-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 16px; }
.trend-list { display: grid; gap: 10px; }
.trend-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px;
}
.trend-item img { width: 84px; height: 76px; object-fit: contain; }
.trend-item h4 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.price { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.price .old { color: var(--muted-2); font-weight: 500; text-decoration: line-through; font-size: 13px; }
.price .cur { color: var(--red); font-size: 16px; }
.price .cur.plain { color: var(--dark); }

.testimonial {
  background: var(--gray); border-radius: 8px; padding: 28px 22px; height: 100%;
}
.testimonial .label { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.testimonial h3 { font-size: 22px; margin-bottom: 10px; }
.testimonial p { color: var(--muted); }
.testi-user { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-user strong { display: block; }
.testi-user span { color: var(--muted); font-size: 12px; }

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.product-grid.cols-5 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  border: 1px solid var(--border); background: #fff; padding: 16px 14px 18px;
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  margin: 0 -1px -1px 0;
}
.product-card:hover { z-index: 2; box-shadow: 0 8px 30px rgba(32,36,53,.1); }
.pc-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.pc-badges span {
  display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; width: fit-content;
}
.pc-badges .organic { background: var(--green); }
.pc-badges .recommended { background: var(--blue); }
.pc-actions {
  position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(6px); transition: .2s; z-index: 2;
}
.product-card:hover .pc-actions { opacity: 1; transform: none; }
.pc-actions button, .pc-actions a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; color: var(--dark);
}
.pc-actions button:hover, .pc-actions a:hover { background: var(--yellow); border-color: var(--yellow); }
.pc-image { height: 180px; display: grid; place-items: center; margin: 8px 0 12px; }
.pc-image img { max-height: 170px; object-fit: contain; }
.pc-title { font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 38px; margin-bottom: 6px; }
.pc-title:hover { color: var(--dark); }
.stock { color: var(--green); font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.stock.out { color: var(--red); }
.rating { color: #ffc107; font-size: 12px; margin-bottom: 8px; }
.rating span { color: var(--muted); margin-left: 6px; }
.pc-unit { color: var(--muted); font-size: 12px; }
.add-cart {
  margin-top: auto; width: 100%; height: 38px; border-radius: 6px;
  border: 1px solid var(--yellow); background: #fff; color: var(--dark);
  font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-cart:hover { background: var(--yellow); }

/* Health banner */
.health-banner {
  border-radius: 8px; overflow: hidden; position: relative; min-height: 150px; margin-bottom: 30px;
}
.health-banner img { width: 100%; height: 160px; object-fit: cover; }
.health-banner .copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; }
.health-banner h4 { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.health-banner h3 { font-size: 24px; max-width: 420px; }

/* Hot product */
.hot-box {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  border: 1px solid var(--border); border-radius: 8px; padding: 20px; align-items: center;
}
.hot-box img { width: 100%; max-height: 240px; object-fit: contain; }
.hot-meta .off { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.hot-meta .price { margin: 10px 0; }
.countdown { display: flex; gap: 10px; margin: 16px 0; }
.countdown .box {
  background: var(--gray); border-radius: 6px; min-width: 64px; text-align: center; padding: 10px 8px;
}
.countdown .box b { display: block; font-size: 20px; }
.countdown .box span { font-size: 11px; color: var(--muted); }
.remain { color: var(--muted); font-size: 12px; }

.coupon-bar {
  background: #fff8e0; border: 1px dashed #f0c400; border-radius: 8px;
  padding: 14px 20px; margin: 20px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.coupon-bar strong { color: var(--red); }

/* Weekend banners */
.weekend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.weekend .banner-card { min-height: 220px; color: var(--dark); }
.weekend .banner-card h3 { color: var(--dark); font-size: 26px; }
.weekend .banner-card .eyebrow { color: var(--red); font-weight: 700; }
.weekend .copy { max-width: 50%; color: var(--dark); }

/* Category carousel */
.cat-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.cat-item { text-align: center; padding: 10px 6px; }
.cat-item img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px;
  border: 1px solid var(--border);
}
.cat-item h4 { font-size: 12px; font-weight: 600; }
.cat-item span { color: var(--muted); font-size: 11px; }

/* Breadcrumb */
.page-title { padding: 8px 0 20px; }
.page-title h1 { font-size: 28px; margin-bottom: 6px; }
.crumbs { color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--dark); }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.widget { border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.widget h4 { font-size: 14px; margin-bottom: 12px; text-transform: uppercase; }
.widget a, .widget label { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: var(--dark); }
.widget a:hover { color: var(--yellow-dark); }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; color: var(--muted);
}
.shop-toolbar select { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px; padding: 0 10px;
}
.pagination .active span, .pagination a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }

/* Product single */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery-main {
  border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: grid; place-items: center; min-height: 420px;
}
.gallery-main img { max-height: 400px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img {
  width: 78px; height: 70px; object-fit: contain; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; padding: 4px;
}
.gallery-thumbs img.active { border-color: var(--yellow); }
.ps-brand { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.ps-title { font-size: 28px; margin-bottom: 10px; }
.ps-short { color: var(--muted); margin: 12px 0 16px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty-box { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-box button { width: 36px; height: 42px; border: 0; background: var(--gray); }
.qty-box input { width: 50px; border: 0; text-align: center; outline: none; }
.meta-list { margin: 16px 0; color: var(--muted); }
.meta-list li { margin-bottom: 4px; }
.meta-list b { color: var(--dark); }
.share-row { display: flex; gap: 8px; margin: 14px 0; }
.share-row a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gray); display: grid; place-items: center;
}
.info-boxes { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
.info-boxes li { padding: 6px 0; border-bottom: 1px solid var(--gray); }
.info-boxes li:last-child { border: 0; }
.tabs { border-top: 1px solid var(--border); padding-top: 24px; }
.tab-nav { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-nav button { background: none; border: 0; padding: 10px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tab-nav button.active { color: var(--dark); border-color: var(--yellow); }
.tab-panel { display: none; color: var(--muted); line-height: 1.7; }
.tab-panel.active { display: block; }
.review-item { border-bottom: 1px solid var(--gray); padding: 14px 0; }
.review-form { display: grid; gap: 10px; max-width: 560px; margin-top: 16px; }
.review-form input, .review-form textarea, .review-form select,
.form-control {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 11px 12px; outline: none;
}
.form-control:focus, .review-form input:focus, .review-form textarea:focus { border-color: var(--dark); }

/* Cart / checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 28px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 12px; }
.cart-prod img { width: 70px; height: 64px; object-fit: contain; }
.summary { border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray); }
.summary-row.total { font-size: 18px; font-weight: 700; border: 0; padding-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.pay-box { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin: 12px 0; }

/* Auth */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.auth-card { border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.auth-card h2 { margin-bottom: 16px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.account-nav a { display: block; padding: 10px 12px; border: 1px solid var(--border); margin-bottom: -1px; }
.account-nav a.active, .account-nav a:hover { background: var(--yellow); }

/* About / contact */
.about-hero { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.about-hero img { width: 100%; height: 320px; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.contact-info .box { border: 1px solid var(--border); border-radius: 8px; padding: 22px; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .body { padding: 16px; }
.blog-card h3 { font-size: 16px; margin-bottom: 8px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-top { padding: 40px 0 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--dark); }
.footer-phone { font-size: 22px; font-weight: 700; color: var(--dark); margin: 10px 0 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px;
}
.pay-icons { display: flex; gap: 6px; }
.pay-icons span {
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 10px; font-weight: 700; color: var(--dark);
}

/* Newsletter */
.newsletter {
  background: var(--gray); padding: 28px 0;
}
.newsletter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.newsletter h3 { font-size: 20px; }
.newsletter form { display: flex; background: #fff; border-radius: 6px; overflow: hidden; min-width: 420px; border: 1px solid var(--border); }
.newsletter input { flex: 1; border: 0; padding: 12px 14px; outline: none; }
.newsletter button { border: 0; background: var(--dark); color: #fff; padding: 0 20px; font-weight: 600; }

/* Mini cart */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; display: none; }
.overlay.open { display: block; }
.mini-cart, .location-modal, .cats-drawer {
  position: fixed; top: 0; right: 0; width: 380px; height: 100%; background: #fff;
  z-index: 100; transform: translateX(100%); transition: .25s; display: flex; flex-direction: column;
}
.mini-cart.open, .location-modal.open { transform: none; }
.mc-head, .lm-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mc-body { flex: 1; overflow: auto; padding: 12px 18px; }
.mc-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray); }
.mc-item img { width: 64px; height: 58px; object-fit: contain; }
.mc-foot { padding: 16px 18px; border-top: 1px solid var(--border); }
.location-modal { left: 50%; top: 50%; right: auto; width: 440px; height: auto; transform: translate(-50%, -50%) scale(.96); border-radius: 10px; max-width: calc(100% - 24px); display: none; }
.location-modal.open { display: block; transform: translate(-50%, -50%); }
.location-modal .lm-body { padding: 18px; }
.location-modal select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; }

/* Quick view */
.qv-modal {
  position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px;
}
.qv-modal.open { display: flex; }
.qv-box { background: #fff; border-radius: 10px; max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; position: relative; }
.qv-box .close-qv { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 22px; }

/* Flash */
.flash {
  position: fixed; right: 18px; bottom: 18px; background: var(--dark); color: #fff;
  padding: 12px 16px; border-radius: 8px; z-index: 120; box-shadow: var(--shadow);
}
.flash.error { background: var(--red); }

/* Mobile bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
  border-top: 1px solid var(--border); z-index: 70; grid-template-columns: repeat(5, 1fr);
}
.mobile-bar a { text-align: center; padding: 8px 4px 6px; font-size: 10px; color: var(--dark); position: relative; }
.mobile-bar svg { display: block; margin: 0 auto 3px; }

.mobile-toggle, .mobile-search { display: none; background: none; border: 0; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #16181f; color: #cfd2dc; padding: 20px 0; }
.admin-side h2 { color: var(--yellow); padding: 0 20px 18px; font-size: 20px; }
.admin-side a { display: block; padding: 10px 20px; color: #cfd2dc; }
.admin-side a:hover, .admin-side a.active { background: #22252f; color: #fff; }
.admin-main { background: #f4f5f8; padding: 24px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border-radius: 10px; padding: 18px; }
.stat b { display: block; font-size: 24px; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--gray); text-align: left; }
.table th { background: #fafbfe; font-size: 12px; color: var(--muted); }
.admin-form { background: #fff; padding: 22px; border-radius: 10px; display: grid; gap: 12px; max-width: 860px; }
.check-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Empty */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

@media (max-width: 1200px) {
  .home-layout, .shop-layout { grid-template-columns: 1fr; }
  .sidebar-cats { display: none; }
  .hero { grid-template-columns: 1fr; }
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .trending-grid, .hot-box { grid-template-columns: 1fr; }
  .header-location { display: none; }
}
@media (max-width: 900px) {
  .header-nav, .nav-right { display: none; }
  .mobile-toggle, .mobile-search { display: grid; place-items: center; }
  .header-search { display: none; }
  .header-search.mobile-open {
    display: block; position: absolute; left: 20px; right: 20px; top: 78px; z-index: 20;
  }
  .primary-menu.mobile-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border);
    z-index: 40; padding: 8px 0 16px;
  }
  .site-header { position: relative; }
  .product-grid, .product-grid.cols-5, .blog-grid, .auth-grid, .cart-layout, .checkout-layout,
  .product-single, .about-grid, .account-layout, .weekend, .app-features, .contact-info,
  .form-grid, .stat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .newsletter-row { flex-direction: column; align-items: stretch; }
  .newsletter form { min-width: 0; }
  .mobile-bar { display: grid; }
  .site-content { padding-bottom: 90px; }
  .slide { grid-template-columns: 1fr; }
  .slide-copy { padding: 28px 22px 10px; }
  .slide-copy h2 { font-size: 26px; }
  .ha-item span { display: none; }
}
@media (max-width: 640px) {
  .product-grid, .product-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .container { width: calc(100% - 24px); }
}
