/* Shopeezyy — matching approved layout */
:root {
  --navy: #1a2238;
  --navy-deep: #0f1524;
  --navy-mid: #243049;
  --yellow: #f5c518;
  --yellow-hover: #e0b100;
  --text: #253046;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --red: #e11d48;
  --green: #16a34a;
  --container: 1280px;
  --radius: 8px;
  --font: "Poppins", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
ul { list-style: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--yellow); padding: 8px 12px; z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-deep);
  color: #c8ceda;
  font-size: 12px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #c8ceda; }
.topbar a:hover { color: var(--yellow); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar select {
  background: transparent; border: 0; color: #c8ceda; cursor: pointer; outline: none;
}

/* ===== Header main ===== */
.header-main {
  background: var(--navy);
  padding: 18px 0;
}
.header-main .container {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #fff;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text strong {
  display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.brand-text span {
  display: block; font-size: 10px; color: var(--yellow); letter-spacing: 0.08em; font-weight: 600; margin-top: 2px;
}

.search-form {
  display: flex; align-items: stretch; background: #fff; border-radius: 6px; overflow: hidden;
  height: 48px;
}
.search-form select {
  border: 0; border-right: 1px solid var(--border); padding: 0 12px; min-width: 140px;
  color: var(--text); background: #fff; cursor: pointer;
}
.search-form input {
  flex: 1; border: 0; padding: 0 16px; outline: none; min-width: 0;
}
.search-form button {
  width: 52px; border: 0; background: var(--yellow); color: var(--navy); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.search-form button:hover { background: var(--yellow-hover); }
.search-form button svg { width: 20px; height: 20px; }

.header-actions {
  display: flex; align-items: center; gap: 18px;
}
.header-action {
  display: flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap;
}
.header-action .ico {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; position: relative; flex-shrink: 0;
}
.header-action .ico svg { width: 18px; height: 18px; }
.header-action .meta { display: flex; flex-direction: column; line-height: 1.2; }
.header-action .meta small { font-size: 11px; color: #aab3c5; }
.header-action .meta b { font-size: 13px; font-weight: 600; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 10px;
  font-weight: 700; display: grid; place-items: center;
}

/* ===== Nav ===== */
.nav-bar { background: var(--navy-mid); }
.nav-bar .container {
  display: flex; align-items: center; gap: 8px; min-height: 52px;
}
.btn-departments {
  display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: 13px; padding: 0 18px; height: 52px; border: 0; cursor: pointer;
}
.btn-departments svg { width: 18px; height: 18px; }
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1; padding-left: 12px;
}
.main-nav a {
  color: #fff; padding: 14px 14px; font-weight: 500; font-size: 14px; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--yellow); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--yellow);
}
.hotline {
  display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; white-space: nowrap; margin-left: auto;
}
.hotline svg { color: var(--yellow); width: 18px; height: 18px; }
.hotline span { color: #aab3c5; font-weight: 400; font-size: 12px; }
.mobile-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 40px; height: 40px; border-radius: 6px; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(15,21,36,.92) 0%, rgba(15,21,36,.55) 48%, rgba(15,21,36,.25) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
  min-height: 420px;
  color: #fff;
  overflow: hidden;
}
.hero .container {
  display: grid; align-items: center; min-height: 420px; padding-block: 48px;
  position: relative; z-index: 1;
}
.hero-content { max-width: 560px; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.1; margin-bottom: 12px;
}
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: 16px; color: #d7dce8; margin-bottom: 22px; }
.hero-features {
  display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 28px;
}
.hero-features li {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8ecf5;
}
.hero-features .dot {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(245,197,24,.15);
  border: 1px solid rgba(245,197,24,.45); display: grid; place-items: center; color: var(--yellow);
}
.hero-features .dot svg { width: 14px; height: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy);
  font-weight: 700; padding: 12px 22px; border-radius: 6px; border: 0; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.hero-dots button.active { background: var(--yellow); width: 24px; border-radius: 999px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(4px); z-index: 2;
}
.hero-arrow:hover { background: var(--yellow); color: var(--navy); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-arrow svg { width: 18px; height: 18px; }

/* ===== Features strip ===== */
.features-strip {
  background: #fff; border-bottom: 1px solid var(--border); padding: 28px 0;
}
.features-strip .container {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
}
.feature-item + .feature-item { border-left: 1px solid var(--border); }
.feature-ico {
  width: 44px; height: 44px; border-radius: 50%; background: #fff8e1; color: #c9a000;
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-item strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.feature-item span { font-size: 12px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px;
}
.section-head h2 {
  font-size: 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.section-tools { display: flex; align-items: center; gap: 12px; }
.view-all { color: var(--muted); font-weight: 500; font-size: 13px; }
.view-all:hover { color: var(--navy); }
.nav-arrows { display: flex; gap: 6px; }
.nav-arrows button {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border); background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--text);
}
.nav-arrows button:hover { border-color: var(--yellow); background: var(--yellow); }

/* Categories */
.cat-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
}
.cat-card {
  background: var(--bg-soft); border-radius: 12px; padding: 18px 10px 14px;
  text-align: center; transition: .2s; border: 1px solid transparent;
}
.cat-card:hover { background: #fff; border-color: var(--yellow); box-shadow: 0 8px 24px rgba(15,21,36,.08); transform: translateY(-2px); }
.cat-card .thumb {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 16px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .thumb.more {
  background: var(--navy); color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 2px;
}
.cat-card strong { display: block; font-size: 13px; font-weight: 600; }

/* Deal + Best sellers */
.split-section .container {
  display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: stretch;
}
.deal-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: #fff;
  display: flex; flex-direction: column;
}
.deal-card .label {
  display: inline-block; background: #fff3cd; color: #9a7200; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; width: fit-content;
}
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px;
}
.countdown div {
  background: var(--navy); color: #fff; border-radius: 8px; text-align: center; padding: 10px 4px;
}
.countdown strong { display: block; font-size: 18px; line-height: 1; }
.countdown span { font-size: 10px; color: #aab3c5; text-transform: uppercase; }
.deal-media {
  position: relative; background: var(--bg-soft); border-radius: 10px; padding: 20px; margin-bottom: 14px;
  min-height: 180px; display: grid; place-items: center;
}
.deal-media img { max-height: 160px; object-fit: contain; }
.off-badge {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
}
.deal-card h3 { font-size: 16px; margin-bottom: 8px; }
.stars { color: #f5c518; font-size: 12px; letter-spacing: 1px; margin-bottom: 8px; }
.stars span { color: var(--muted); margin-left: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price .now { color: var(--red); font-size: 22px; font-weight: 800; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.stock { margin-top: auto; padding-top: 14px; }
.stock-bar {
  height: 6px; background: #eee; border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}
.stock-bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--yellow), #f59e0b); }
.stock-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.bestsellers { border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 8px; background: #fff; }
.bestsellers .section-head { margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-weight: 500;
}
.tabs button.active, .tabs button:hover { background: #fff8e1; color: var(--navy); font-weight: 600; }
.product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.product-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fff;
  transition: .2s; position: relative;
}
.product-card:hover { box-shadow: 0 10px 28px rgba(15,21,36,.08); border-color: #f5d76e; }
.product-card .tag {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px; color: #fff;
}
.product-card .tag.new { background: var(--green); }
.product-card .tag.sale { background: var(--red); }
.product-card .media {
  height: 130px; display: grid; place-items: center; background: var(--bg-soft); border-radius: 8px; margin-bottom: 10px;
}
.product-card .media img { max-height: 110px; object-fit: contain; }
.product-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; min-height: 36px; }
.product-card .price .now { font-size: 16px; }
.product-card .stars { margin-bottom: 0; }

/* Promo banners */
.promo-row .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.promo-banner {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 180px;
  color: #fff; padding: 28px 32px; display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
}
.promo-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,21,36,.88) 0%, rgba(15,21,36,.45) 70%, rgba(15,21,36,.2) 100%);
}
.promo-banner .inner { position: relative; z-index: 1; max-width: 280px; }
.promo-banner h3 { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.promo-banner p { color: #c8ceda; margin-bottom: 16px; font-size: 13px; }
.promo-a { background-image: url("../images/promo-prime.jpg"); }
.promo-b { background-image: url("../images/promo-deals.jpg"); }

/* Vendors */
.vendor-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.vendor-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 12px; text-align: center;
  background: #fff; transition: .2s;
}
.vendor-card:hover { border-color: var(--yellow); box-shadow: 0 8px 20px rgba(15,21,36,.06); }
.vendor-logo {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff;
}
.vendor-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.vendor-card span { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aab3c5; margin-top: 20px; }
.footer-main { padding: 48px 0 28px; }
.footer-main .container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 28px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-mid); color: #fff;
  display: grid; place-items: center; transition: .2s;
}
.socials a:hover { background: var(--yellow); color: var(--navy); }
.socials svg { width: 14px; height: 14px; }
.footer-col h4 {
  color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { font-size: 13px; }
.footer-col a:hover { color: var(--yellow); }
.newsletter-form {
  display: flex; gap: 0; margin-bottom: 14px; border-radius: 6px; overflow: hidden;
}
.newsletter-form input {
  flex: 1; border: 0; padding: 11px 12px; outline: none; min-width: 0;
}
.newsletter-form button {
  border: 0; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 0 14px; cursor: pointer;
}
.payments { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip {
  background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 8px;
  border-radius: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--yellow); }

/* Responsive */
@media (max-width: 1100px) {
  .header-main .container { grid-template-columns: 1fr; }
  .search-form { order: 3; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .split-section .container { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .vendor-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .features-strip .container { grid-template-columns: 1fr 1fr; }
  .feature-item + .feature-item { border-left: 0; }
}
@media (max-width: 760px) {
  .main-nav, .hotline, .header-action .meta small { display: none; }
  .mobile-toggle { display: grid; place-items: center; margin-left: auto; }
  .nav-bar .container { justify-content: space-between; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); padding: 12px; z-index: 50;
  }
  .nav-bar { position: relative; }
  .cat-grid, .product-grid, .vendor-grid, .promo-row .container, .features-strip .container {
    grid-template-columns: 1fr 1fr;
  }
  .hero-arrow { display: none; }
  .footer-main .container { grid-template-columns: 1fr; }
}
