:root {
  --navy: #0f2a4d;
  --blue: #1553a3;
  --blue-soft: #e8f1ff;
  --orange: #f59e0b;
  --orange-deep: #f97316;
  --yellow-soft: #fff7df;
  --text: #172033;
  --muted: #667085;
  --line: #e4e9f2;
  --page: #f5f7fb;
  --white: #ffffff;
  --green: #16a34a;
  --red: #e11d48;
  --shadow: 0 18px 44px rgba(15, 42, 77, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 42, 77, 0.08);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 180px;
  background: linear-gradient(180deg, #eff6ff, rgba(239, 246, 255, 0));
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 9px max(18px, calc((100vw - 1200px) / 2));
  font-size: 0.88rem;
}

.top-links {
  display: flex;
  gap: 18px;
  color: #dbeafe;
  white-space: nowrap;
}

.top-links a:hover {
  color: var(--orange);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-wrap,
.category-nav,
.section-pad,
.promo-strip,
.footer-main,
.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header-wrap {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(21, 83, 163, 0.22);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  height: 48px;
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
}

.search-box button,
.newsletter-form button,
.primary-cta,
.register-btn {
  background: var(--orange-deep);
  color: var(--white);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-box button {
  padding: 0 22px;
}

.search-box button:hover,
.newsletter-form button:hover,
.primary-cta:hover,
.register-btn:hover {
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.26);
  transform: translateY(-1px);
}

.header-icons,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--navy);
}

.icon-btn span {
  font-size: 1.08rem;
  line-height: 1;
}

.icon-btn small {
  font-size: 0.68rem;
  color: var(--muted);
}

.cart-btn strong {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  border: 2px solid var(--white);
}

.login-btn,
.register-btn,
.secondary-cta,
.add-cart {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 800;
}

.login-btn {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  color: #344054;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.91rem;
}

.category-nav a:hover,
.category-nav .promo-link {
  background: var(--yellow-soft);
  color: #b45309;
}

.section-pad {
  padding: 32px 0;
}

.section-pad.compact {
  padding-top: 24px;
  padding-bottom: 24px;
}

.marketplace-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: stretch;
}

.app-panel,
.main-promo-banner,
.side-promos a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.app-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #e8f1ff);
}

.app-panel span,
.app-panel p {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-panel strong {
  display: block;
  margin: 4px 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.app-panel button {
  width: 100%;
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
}

.main-promo-banner {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #0f2a4d, #1553a3);
  color: var(--white);
}

.main-promo-banner h1 {
  color: var(--white);
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.main-promo-banner p {
  max-width: 560px;
  margin-top: 12px;
  color: #dbeafe;
}

.main-promo-banner .eyebrow {
  color: #fde68a;
}

.main-promo-banner img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.22);
}

.side-promos {
  display: grid;
  gap: 16px;
}

.side-promos a {
  display: grid;
  align-content: end;
  min-height: 132px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(15,42,77,0.02), rgba(15,42,77,0.78)),
    url("assets/electromart/products/smart-tv-55-4k.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.side-promos a:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(15,42,77,0.02), rgba(15,42,77,0.78)),
    url("assets/electromart/products/wireless-headphone.jpg");
}

.side-promos strong {
  font-size: 1.1rem;
}

.side-promos span {
  font-size: 0.86rem;
  color: #dbeafe;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-heading span {
  display: inline-block;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
}

h1 {
  max-width: 680px;
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 16px;
  color: #475467;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.secondary-cta {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-badges span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 760;
  font-size: 0.9rem;
  box-shadow: var(--soft-shadow);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21, 83, 163, 0.12), rgba(245, 158, 11, 0.2)),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "Diskon sampai 45%";
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--orange-deep);
  color: var(--white);
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.26);
}

.visual-card {
  position: absolute;
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  object-fit: cover;
  object-position: center;
}

.hero-visual .tv {
  left: 54px;
  top: 86px;
  width: 190px;
  height: 118px;
}

.hero-visual .tv span {
  width: 150px;
  height: 82px;
  border: 9px solid var(--navy);
  border-radius: 7px;
  background: linear-gradient(135deg, #60a5fa, #dbeafe);
  box-shadow: inset 0 -16px 0 rgba(255,255,255,0.35);
}

.hero-visual .tv::after {
  content: "";
  position: absolute;
  bottom: 17px;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.hero-visual .fridge {
  right: 58px;
  top: 64px;
  width: 120px;
  height: 210px;
}

.hero-visual .fridge span {
  width: 72px;
  height: 158px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e2e8f0, #ffffff 52%, #cbd5e1);
  border: 3px solid #cbd5e1;
}

.hero-visual .fridge span::before,
.hero-visual .fridge span::after {
  content: "";
  position: absolute;
  right: 32px;
  width: 4px;
  height: 42px;
  border-radius: 99px;
  background: #64748b;
}

.hero-visual .fridge span::before {
  top: 58px;
}

.hero-visual .fridge span::after {
  top: 116px;
}

.hero-visual .washer {
  right: 162px;
  bottom: 42px;
  width: 126px;
  height: 142px;
}

.hero-visual .washer span {
  width: 78px;
  height: 94px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border: 3px solid #cbd5e1;
}

.hero-visual .washer span::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 50px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle, #93c5fd 42%, var(--navy) 44%, var(--navy) 54%, #e2e8f0 56%);
}

.hero-visual .phone {
  left: 88px;
  bottom: 64px;
  width: 92px;
  height: 142px;
}

.hero-visual .phone span {
  width: 54px;
  height: 104px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--navy), #2563eb);
  border: 5px solid #0b1220;
}

.hero-visual .laptop {
  left: 202px;
  bottom: 88px;
  width: 164px;
  height: 92px;
}

.hero-visual .laptop span {
  width: 118px;
  height: 62px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(135deg, #dbeafe, #38bdf8);
  border: 8px solid #334155;
}

.hero-visual .laptop::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 142px;
  height: 10px;
  border-radius: 0 0 8px 8px;
  background: #94a3b8;
}

.hero-visual .headphone {
  right: 56px;
  bottom: 56px;
  width: 94px;
  height: 94px;
}

.hero-visual .headphone span {
  width: 58px;
  height: 48px;
  border: 8px solid var(--orange-deep);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
}

.hero-visual .headphone span::before,
.hero-visual .headphone span::after {
  content: "";
  position: absolute;
  bottom: 22px;
  width: 16px;
  height: 30px;
  border-radius: 7px;
  background: var(--navy);
}

.hero-visual .headphone span::before {
  left: 24px;
}

.hero-visual .headphone span::after {
  right: 24px;
}

.hero-visual .ac {
  left: 246px;
  top: 58px;
  width: 150px;
  height: 70px;
}

.hero-visual .ac span {
  width: 112px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #dbeafe);
  border: 3px solid #bfdbfe;
}

.hero-visual .ac span::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: 21px;
  width: 70px;
  height: 5px;
  border-radius: 99px;
  background: #60a5fa;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 0;
  margin-bottom: 8px;
}

.promo-strip article,
.category-grid a,
.product-card,
.benefit-grid article,
.brand-grid span,
.testimonial-grid article,
.newsletter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.promo-strip article {
  min-height: 104px;
  padding: 16px;
  border-left: 4px solid var(--orange);
  background: linear-gradient(135deg, #ffffff, #fff7df);
}

.promo-strip strong,
.promo-strip span {
  display: block;
}

.promo-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.view-all {
  margin-left: auto;
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

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

.category-grid a {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.category-grid a::before {
  content: "";
  width: 44px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-soft), #fed7aa);
  background-size: cover;
  background-position: center;
  border: 1px solid #bfdbfe;
}

.category-grid a:nth-child(1)::before { background-image: url("assets/electromart/products/smart-tv-55-4k.jpg"); }
.category-grid a:nth-child(2)::before { background-image: url("assets/electromart/products/wireless-headphone.jpg"); }
.category-grid a:nth-child(3)::before { background-image: url("assets/electromart/products/kulkas-2-pintu-inverter.jpg"); }
.category-grid a:nth-child(4)::before { background-image: url("assets/electromart/products/smartphone-5g-pro.jpg"); }
.category-grid a:nth-child(5)::before { background-image: url("assets/electromart/products/smart-home-hub.jpg"); }
.category-grid a:nth-child(6)::before { background-image: url("assets/electromart/products/smartwatch-active.jpg"); }
.category-grid a:nth-child(7)::before { background-image: url("assets/electromart/products/ac-low-watt-1pk.jpg"); }
.category-grid a:nth-child(8)::before { background-image: url("assets/electromart/products/mesin-cuci-front-load.jpg"); }
.category-grid a:nth-child(9)::before { background-image: url("assets/electromart/products/kulkas-2-pintu-inverter.jpg"); }
.category-grid a:nth-child(10)::before { background-image: url("assets/electromart/products/gaming-monitor-27.jpg"); }
.category-grid a:nth-child(11)::before { background-image: url("assets/electromart/products/mirrorless-camera-kit.jpg"); }
.category-grid a:nth-child(12)::before { background-image: url("assets/electromart/products/laptop-ultrabook-14.jpg"); }

.category-grid a:hover,
.product-card:hover,
.benefit-grid article:hover,
.testimonial-grid article:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
}

.flash-sale {
  padding-left: max(0px, calc((100vw - 1200px) / 2));
  padding-right: max(0px, calc((100vw - 1200px) / 2));
  width: auto;
  background: linear-gradient(135deg, #102a4f, #1553a3);
  color: var(--white);
}

.flash-sale .section-heading {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.flash-sale h2,
.flash-sale .section-heading span {
  color: var(--white);
}

.countdown {
  display: flex;
  gap: 8px;
}

.countdown div {
  display: grid;
  place-items: center;
  min-width: 68px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.countdown strong {
  font-size: 1.18rem;
}

.countdown small {
  color: #dbeafe;
}

.product-grid {
  display: grid;
  gap: 12px;
}

.sale-grid,
.recommendation-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 850;
}

.discount {
  position: absolute;
  top: auto;
  right: 10px;
  bottom: 142px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 850;
}

.product-art {
  min-height: 142px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff, #f8fafc 52%, #fff7ed);
  border: 1px solid #edf2f7;
  overflow: hidden;
}

.product-art img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #fff;
  transition: transform 220ms ease;
}

.product-card:hover .product-art img {
  transform: scale(1.04);
}

.shape.tv {
  width: 118px;
  height: 74px;
  border: 8px solid var(--navy);
  border-radius: 7px;
  background: linear-gradient(135deg, #60a5fa, #dbeafe);
}

.shape.tv::after,
.shape.laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 68px;
  height: 7px;
  border-radius: 99px;
  background: #94a3b8;
}

.shape.phone {
  width: 58px;
  height: 106px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy), #2563eb);
  border: 5px solid #101828;
}

.shape.laptop {
  width: 126px;
  height: 78px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dbeafe, #38bdf8);
  border: 9px solid #334155;
}

.shape.fridge {
  width: 66px;
  height: 124px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e2e8f0, #fff, #cbd5e1);
  border: 3px solid #cbd5e1;
}

.shape.ac {
  width: 126px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #dbeafe);
  border: 3px solid #bfdbfe;
}

.shape.washer {
  width: 82px;
  height: 104px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border: 3px solid #cbd5e1;
}

.shape.washer::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle, #93c5fd 42%, var(--navy) 44%, var(--navy) 54%, #e2e8f0 56%);
}

.shape.headphone {
  width: 82px;
  height: 70px;
  border: 9px solid var(--orange-deep);
  border-bottom: 0;
  border-radius: 46px 46px 0 0;
}

.shape.headphone::before,
.shape.headphone::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 18px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
}

.shape.headphone::before {
  left: -12px;
}

.shape.headphone::after {
  right: -12px;
}

.shape.watch {
  width: 54px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), #2563eb);
  border: 6px solid #0f172a;
}

.shape.watch::before,
.shape.watch::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 18px;
  height: 28px;
  background: #334155;
}

.shape.watch::before {
  top: -30px;
  border-radius: 8px 8px 2px 2px;
}

.shape.watch::after {
  bottom: -30px;
  border-radius: 2px 2px 8px 8px;
}

.shape.camera {
  width: 94px;
  height: 66px;
  border-radius: 12px;
  background: #334155;
}

.shape.camera::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 13px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle, #93c5fd 35%, #0f172a 37%, #0f172a 58%, #64748b 60%);
}

.shape.speaker {
  width: 70px;
  height: 114px;
  border-radius: 16px;
  background: var(--navy);
}

.shape.speaker::before,
.shape.speaker::after {
  content: "";
  position: absolute;
  left: 19px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle, #94a3b8 30%, #1e293b 32%);
}

.shape.speaker::before {
  top: 17px;
}

.shape.speaker::after {
  bottom: 17px;
}

.shape.smart {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
  border: 7px solid var(--white);
  box-shadow: inset 0 0 0 2px #bfdbfe;
}

.shape.smart::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 27px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 28px 0 0 var(--orange), 14px 26px 0 var(--green);
}

.product-card h3 {
  min-height: 40px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-code {
  min-height: 18px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  margin: 6px 0 0;
  color: #eab308;
  font-size: 0.78rem;
}

.price-normal {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.78rem;
}

.price-sale {
  display: block;
  margin: 6px 0 2px;
  color: var(--red);
  font-size: 1.04rem;
  font-weight: 900;
}

.discount-inline {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.product-meta span:last-child {
  color: var(--green);
}

.add-cart {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  transition: transform 180ms ease, background 180ms ease;
  margin-top: 10px;
  padding: 9px 10px;
  font-size: 0.85rem;
}

.add-cart:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tabs button {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--white);
  color: #344054;
  border: 1px solid var(--line);
  font-weight: 750;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.result-info {
  min-height: 24px;
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefit-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-grid article,
.testimonial-grid article {
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.benefit-grid strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.benefit-grid p,
.testimonial-grid p,
.footer p {
  margin-top: 8px;
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.brand-grid span {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: #344054;
  font-size: 1.06rem;
  font-weight: 900;
}

.stars {
  color: #eab308;
  margin-bottom: 8px;
}

.testimonial-grid strong {
  display: block;
  margin-top: 16px;
  color: var(--navy);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.newsletter-form input {
  min-width: 0;
  padding: 0 15px;
  border: 0;
  outline: 0;
}

.newsletter-form button {
  padding: 0 22px;
}

.footer {
  margin-top: 26px;
  background: #0b1f3a;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0 28px;
}

.footer-brand {
  color: var(--white);
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #dbeafe;
}

.footer a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  color: #bfdbfe;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .header-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 2;
  }

  .auth-actions {
    display: none;
  }

  .category-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px 16px;
  }

  .category-nav.open {
    display: flex;
  }

  .marketplace-hero,
  .hero {
    grid-template-columns: 1fr;
  }

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

  .main-promo-banner img {
    height: 210px;
    margin-top: 18px;
  }

  .side-promos {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 360px;
  }

  .promo-strip,
  .category-grid,
  .benefit-grid,
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .sale-grid,
  .recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-bar {
    display: block;
    text-align: center;
  }

  .top-links {
    justify-content: center;
    margin-top: 6px;
    gap: 12px;
    font-size: 0.8rem;
  }

  .header-wrap {
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-icons .icon-btn:not(.cart-btn) {
    display: none;
  }

  .icon-btn {
    min-width: 50px;
  }

  .section-pad {
    padding: 38px 0;
  }

  .hero {
    gap: 24px;
  }

  .marketplace-hero {
    gap: 12px;
  }

  .main-promo-banner {
    padding: 20px;
    min-height: 0;
  }

  .main-promo-banner img {
    height: 170px;
  }

  .app-panel {
    padding: 16px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .visual-card {
    transform: scale(0.82);
  }

  .hero-visual .tv {
    left: 18px;
    top: 74px;
  }

  .hero-visual .ac {
    left: 150px;
    top: 48px;
  }

  .hero-visual .fridge {
    right: 8px;
    top: 72px;
  }

  .hero-visual .phone {
    left: 34px;
    bottom: 40px;
  }

  .hero-visual .laptop {
    left: 126px;
    bottom: 60px;
  }

  .hero-visual .washer {
    right: 86px;
    bottom: 24px;
  }

  .hero-visual .headphone {
    right: 8px;
    bottom: 36px;
  }

  .section-heading.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .countdown,
  .filter-tabs {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .promo-strip,
  .category-grid,
  .sale-grid,
  .recommendation-grid,
  .benefit-grid,
  .brand-grid,
  .testimonial-grid,
  .newsletter,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    display: block;
    padding: 22px;
  }

  .newsletter-form {
    margin-top: 16px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .header-wrap,
  .category-nav,
  .section-pad,
  .promo-strip,
  .footer-main,
  .footer-bottom,
  .sale-grid,
  .recommendation-grid {
    width: min(100% - 24px, 1200px);
  }

  .search-box {
    height: 44px;
  }

  .search-box button {
    padding: 0 14px;
  }

  .hero-actions a {
    width: 100%;
  }

  .promo-strip,
  .category-grid,
  .benefit-grid,
  .brand-grid,
  .testimonial-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .sale-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .side-promos {
    grid-template-columns: 1fr;
  }

  .main-promo-banner h1 {
    font-size: 1.8rem;
  }

  .product-card {
    padding: 8px;
  }

  .product-art {
    min-height: 130px;
  }

  .product-art img {
    height: 126px;
  }

  .product-card h3 {
    min-height: 54px;
    font-size: 0.8rem;
  }

  .add-cart {
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
    height: auto;
  }

  .newsletter-form input,
  .newsletter-form button {
    height: 46px;
  }
}
