:root {
  --navy: #131921;
  --navy-mid: #232f3e;
  --navy-deep: #0f1111;
  --orange: #febd69;
  --orange-hot: #f3a847;
  --orange-btn: #ff9900;
  --bg: #eaeded;
  --card: #ffffff;
  --text: #0f1111;
  --muted: #565959;
  --link: #007185;
  --border: #d5d9d9;
  --green: #067d62;
  --star: #ffa41c;
  --trust: #e7f4f5;
  --radius: 4px;
  --max: 1500px;
  --font: "Amazon Ember", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

/* Header */
.top-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
}

.logo:hover,
.deliver:hover,
.account-box:hover,
.orders-link:hover,
.cart-link:hover,
.lang:hover {
  border-color: #fff;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text .star-dot {
  color: #4fc3f7;
  font-size: 0.7em;
  vertical-align: super;
}

.deliver {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  flex-shrink: 0;
  line-height: 1.15;
}

.deliver small {
  display: block;
  color: #ccc;
  font-size: 0.72rem;
}

.deliver strong {
  font-size: 0.88rem;
}

.search-form {
  flex: 1;
  display: flex;
  min-width: 0;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.search-form select {
  border: none;
  background: #e6e6e6;
  padding: 0 10px;
  color: #555;
  border-right: 1px solid #cdcdcd;
  max-width: 70px;
  cursor: pointer;
}

.search-form input {
  flex: 1;
  border: none;
  padding: 0 12px;
  min-width: 0;
  outline: none;
}

.search-form button {
  width: 46px;
  border: none;
  background: var(--orange);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-form button:hover {
  background: var(--orange-hot);
}

.search-form:focus-within {
  outline: 3px solid var(--orange-hot);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang,
.account-box,
.orders-link,
.cart-link {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  line-height: 1.15;
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
}

.account-box small,
.orders-link small {
  display: block;
  font-size: 0.72rem;
  color: #ccc;
}

.account-box strong,
.orders-link strong {
  font-size: 0.88rem;
}

.cart-link {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  font-weight: 700;
}

.cart-badge {
  position: absolute;
  top: 0;
  left: 18px;
  color: var(--orange-hot);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-icon {
  font-size: 1.6rem;
  line-height: 1;
}

/* Subnav */
.subnav {
  background: var(--navy-mid);
  color: #fff;
  padding: 0 12px;
}

.subnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  overflow-x: auto;
}

.subnav a {
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 0.88rem;
  border: 1px solid transparent;
  border-radius: 2px;
}

.subnav a:hover {
  border-color: #fff;
}

.subnav .all-btn {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subnav .seller-cta {
  margin-left: auto;
  font-weight: 700;
  color: #febd69;
}

/* Hero */
.hero-wrap {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}

.cat-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cat-sidebar h3 {
  padding: 4px 16px 10px;
  font-size: 0.95rem;
}

.cat-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text);
}

.cat-sidebar a:hover {
  background: #f0f2f2;
  color: var(--link);
}

.cat-sidebar .ico {
  width: 22px;
  text-align: center;
  opacity: 0.85;
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(105deg, #0b1f3a 0%, #1a3a5c 42%, #2d5a87 100%);
  color: #fff;
}

.hero-slides {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 28px 48px;
  gap: 20px;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-copy p {
  color: #d6e4f0;
  margin-bottom: 18px;
  font-size: 1rem;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #f7dfa5, var(--orange-hot));
  color: #111;
  border: 1px solid #a88734;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-orange:hover {
  background: linear-gradient(180deg, #f5d78e, #ee9a2e);
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.hero-visual img:nth-child(2) {
  transform: translateY(-18px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  color: #111;
}

.hero-nav:hover {
  background: #fff;
}

.hero-nav.prev {
  left: 8px;
}

.hero-nav.next {
  right: 8px;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

/* Trust strip */
.trust-strip {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 0 12px;
}

.trust-strip-inner {
  background: var(--card);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.trust-item .ti {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6ff;
  display: grid;
  place-items: center;
  color: #1a5fb4;
  font-size: 1.1rem;
}

/* Feature grid */
.feature-grid {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.cat-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.cat-icons a {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.cat-icons .circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #f0f4f8;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.cat-icons a:hover .circle {
  transform: scale(1.06);
  background: #e3eef8;
}

.deal-img,
.product-card-img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 10px;
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
}

.price small {
  font-size: 0.75rem;
  vertical-align: super;
}

.mrp {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 4px;
}

.off {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.rating {
  color: var(--star);
  font-size: 0.85rem;
  margin: 4px 0;
}

.countdown {
  margin-top: auto;
  background: #fff4e5;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.82rem;
  text-align: center;
}

.countdown strong {
  color: #b12704;
  letter-spacing: 0.04em;
}

.card-link {
  margin-top: auto;
  color: var(--link);
  font-size: 0.85rem;
}

.card-link:hover {
  color: #c45500;
  text-decoration: underline;
}

.pay-card {
  background: linear-gradient(160deg, #f7fbff, #eef5ff);
}

.pay-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.pay-icons div {
  background: #fff;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.78rem;
  border: 1px solid #e8eef5;
}

.pay-icons span {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

/* Promo banners */
.promo-row {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 24px;
  color: #fff;
  position: relative;
}

.promo-banner.electronics {
  background: linear-gradient(120deg, #1a237e, #283593 50%, #3949ab);
}

.promo-banner.fashion {
  background: linear-gradient(120deg, #4a148c, #6a1b9a 45%, #8e24aa);
}

.promo-banner h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.promo-banner p {
  opacity: 0.9;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.promo-visual {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.promo-visual img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 12px;
}

.section-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 1.25rem;
}

.section-head a {
  color: var(--link);
  font-size: 0.9rem;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.product-item {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-item:hover {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-item h4 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.category-circles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  text-align: center;
}

.category-circles a {
  font-size: 0.8rem;
}

.category-circles .big-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #f3f6f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #e8eef3;
  transition: transform 0.2s ease, border-color 0.2s;
}

.category-circles a:hover .big-circle {
  transform: translateY(-3px);
  border-color: var(--orange-hot);
}

.category-circles img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  align-items: center;
}

.brand-logo {
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-mid);
  padding: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.brand-logo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.offer-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fafbfc);
}

.offer-card .oi {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eef6ff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.offer-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.offer-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Footer trust */
.footer-trust {
  background: #d4e9f7;
  margin-top: 24px;
  padding: 22px 12px;
}

.footer-trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  text-align: center;
}

.footer-trust-inner div {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.footer-trust-inner span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

/* Newsletter */
.newsletter {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 12px;
}

.newsletter-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.newsletter h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
}

.newsletter-form button {
  background: var(--orange-btn);
  border: none;
  color: #111;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--orange-hot);
}

.app-download {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-badge {
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.75rem;
  min-width: 140px;
}

.app-badge strong {
  display: block;
  font-size: 0.9rem;
}

.qr {
  width: 72px;
  height: 72px;
  background:
    linear-gradient(#111 0 0) 0 0 / 20% 20%,
    linear-gradient(#111 0 0) 100% 0 / 20% 20%,
    linear-gradient(#111 0 0) 0 100% / 20% 20%,
    linear-gradient(#111 0 0) 40% 40% / 20% 20%,
    #eee;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Main footer */
.site-footer {
  background: var(--navy-mid);
  color: #ddd;
  padding: 36px 12px 20px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #bbb;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.socials a:hover {
  background: var(--orange-hot);
  color: #111;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #bbb;
  padding: 4px 0;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: #999;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-chip {
  background: #fff;
  color: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.back-top {
  display: block;
  text-align: center;
  background: #37475a;
  color: #fff;
  padding: 14px;
  font-size: 0.9rem;
  margin-top: 24px;
}

.back-top:hover {
  background: #485769;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid .card:first-child {
    grid-column: span 3;
  }

  .product-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-circles {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .cat-sidebar {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-visual {
    display: none;
  }

  .deliver,
  .lang,
  .orders-link {
    display: none;
  }

  .promo-row,
  .offers-grid,
  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .app-download {
    justify-content: flex-start;
  }

  .footer-trust-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .account-box small {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid .card:first-child {
    grid-column: span 2;
  }

  .promo-row,
  .offers-grid,
  .trust-strip-inner,
  .product-row {
    grid-template-columns: 1fr;
  }

  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-visual {
    justify-content: flex-start;
  }

  .category-circles {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-circles .big-circle {
    width: 70px;
    height: 70px;
  }

  .brand-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-trust-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .subnav-inner {
    display: none;
  }

  .subnav.open .subnav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .subnav .seller-cta {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
