:root {
  --black: #0f1111;
  --dark: #1f2933;
  --line: #d5d9d9;
  --muted: #565959;
  --link: #007185;
  --orange: #ffa41c;
  --yellow: #ffd814;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 74px;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #c7511f;
  text-decoration: underline;
}

.promo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .75);
  animation: promoOverlayFade .35s ease both;
}

.promo-modal-overlay.is-hidden {
  display: none;
}

.promo-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 14px;
  background: var(--black);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  text-align: center;
  animation: promoModalPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes promoOverlayFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes promoModalPop {
  from {
    opacity: 0;
    transform: scale(.85) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.promo-modal::-webkit-scrollbar {
  display: none;
}

.promo-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.promo-close:hover {
  background: rgba(255, 255, 255, .3);
}

.promo-banner img {
  display: block;
  width: 100%;
  border-radius: 14px 14px 0 0;
}

.promo-body {
  padding: 20px 22px 26px;
}

.promo-title {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.promo-logo {
  display: block;
  width: 160px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.promo-tagline {
  margin: 0 0 20px;
  color: #ddd;
  font-size: 14px;
}

.promo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promo-btn {
  padding: 12px 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.promo-login {
  background: var(--dark);
  color: var(--white);
}

.promo-login:hover {
  background: #2d3b47;
  color: var(--white);
  text-decoration: none;
}

.promo-daftar {
  background: var(--yellow);
  color: var(--black);
}

.promo-daftar:hover {
  background: #e6c212;
  color: var(--black);
  text-decoration: none;
}

@media (max-width: 480px) {
  .promo-title {
    font-size: 18px;
  }

  .promo-logo {
    width: 140px;
  }
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 140px 120px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--black);
  color: var(--white);
}

.brand img {
  display: block;
  width: 132px;
  height: 44px;
  object-fit: contain;
}

.deliver {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.05;
}

.deliver small,
.quick-nav small {
  display: block;
  color: #ddd;
  font-size: 12px;
}

.deliver strong,
.quick-nav strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.pin {
  font-size: 28px;
}

.search {
  display: grid;
  grid-template-columns: 66px 1fr 58px;
  height: 50px;
  min-width: 0;
}

.search select,
.search input,
.search button {
  border: 0;
  font: inherit;
}

.search select {
  padding-left: 12px;
  color: #333;
  background: #e6e6e6;
  border-radius: 6px 0 0 6px;
}

.search input {
  min-width: 0;
  padding: 0 14px;
  font-size: 18px;
}

.search button {
  cursor: pointer;
  background: #febd69;
  border-radius: 0 6px 6px 0;
  font-size: 34px;
  line-height: 1;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.quick-nav a {
  color: var(--white);
}

.cart {
  position: relative;
  font-weight: 700;
  font-size: 18px;
}

.cart span {
  color: var(--orange);
  font-size: 22px;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 49px;
  padding: 0 18px;
  color: var(--white);
  background: var(--dark);
  overflow-x: auto;
  white-space: nowrap;
}

.menubar a {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.promo-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  min-height: 69px;
  padding: 0 16%;
  border-bottom: 1px solid var(--line);
}

.promo-strip strong {
  justify-self: end;
}

.promo-items {
  display: flex;
  align-items: center;
  gap: 28px;
}

.promo-items img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.promo-items img:first-child {
  width: 130px;
}

main {
  padding: 0 24px 40px;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--black);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .3);
}

.bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 24px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.bottom-icon {
  font-size: 18px;
}

.bottom-chat {
  background: var(--dark);
}

.bottom-chat:hover {
  background: #2d3b47;
  color: var(--white);
  text-decoration: none;
}

.bottom-login {
  background: transparent;
  border: 2px solid var(--white);
}

.bottom-login:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  text-decoration: none;
}

.bottom-daftar {
  background: var(--yellow);
  color: var(--black);
}

.bottom-daftar:hover {
  background: #e6c212;
  color: var(--black);
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 40px 0 28px;
  font-size: 14px;
  color: #2d3b47;
}

.product-layout {
  display: grid;
  grid-template-columns: 56px minmax(360px, 34vw) minmax(420px, 1fr) 305px;
  gap: 24px;
  align-items: start;
}

.thumbs {
  display: grid;
  gap: 10px;
}

.thumb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  border: 1px solid #8f9696;
  border-radius: 10px;
  font-weight: 700;
}

.thumb.active {
  border: 2px solid var(--link);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.video {
  height: 68px;
  gap: 4px;
  background: #111;
  color: var(--white);
}

.thumb.video small {
  color: #555;
  background: var(--white);
  font-size: 10px;
  width: 100%;
  text-align: center;
}

.gallery {
  position: sticky;
  top: 12px;
  min-width: 0;
  text-align: center;
}

.main-image {
  width: 100%;
  max-height: 590px;
  object-fit: contain;
  display: block;
}

.share {
  position: absolute;
  top: 16px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.gallery p {
  margin: 8px 0 0;
  color: var(--link);
}

.details h1 {
  margin: 0 0 6px;
  font-size: 31px;
  line-height: 1.28;
  font-weight: 400;
}

.brand-link {
  display: inline-block;
  margin-bottom: 8px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.stars {
  color: #ff9900;
  letter-spacing: 1px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 14px 0;
}

.price .currency {
  padding-top: 8px;
  font-size: 16px;
}

.price strong {
  font-size: 36px;
  line-height: .95;
  font-weight: 400;
}

.price sup {
  padding-top: 2px;
  font-size: 14px;
}

.price.compact strong {
  font-size: 36px;
}

.shipping {
  color: #374151;
  font-size: 18px;
  line-height: 1.35;
}

.variants p {
  margin-bottom: 8px;
  color: var(--muted);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
}

.variant {
  min-height: 96px;
  padding: 12px 8px;
  text-align: left;
  background: var(--white);
  border: 1px solid #8f9696;
  border-radius: 8px;
  cursor: pointer;
}

.variant.selected {
  border: 3px solid #2162a1;
}

.variant strong,
.variant span {
  display: block;
  overflow-wrap: anywhere;
}

.variant strong {
  margin-bottom: 12px;
  font-size: 17px;
}

.variant span {
  font-size: 14px;
}

.specs {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
  font-size: 18px;
}

.specs div,
.seller div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.specs dt {
  font-weight: 700;
}

.specs dd,
.seller dd {
  margin: 0;
}

.buy-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.buy-box p {
  margin: 12px 0;
}

.delivery strong {
  display: block;
  font-size: 18px;
}

.location {
  display: inline-block;
  margin: 6px 0 10px;
}

.stock {
  color: #007600;
  font-size: 24px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 14px 0;
  padding: 8px 14px;
  border: 1px solid #a6a6a6;
  border-radius: 8px;
  background: #f7fafa;
}

.quantity select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.add,
.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin: 6px 0;
  border: 0;
  border-radius: 22px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  color: #111;
}

.add {
  background: var(--yellow);
}

.buy {
  background: var(--orange);
}

.seller {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
}

.seller div {
  grid-template-columns: 72px 1fr;
}

.seller dt {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .product-layout {
    grid-template-columns: 56px minmax(300px, 42vw) 1fr;
  }

  .buy-box {
    grid-column: 2 / -1;
  }

  .promo-strip {
    padding: 0 24px;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .quick-nav {
    justify-content: space-between;
    gap: 12px;
  }

  .promo-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }

  .promo-strip strong {
    justify-self: start;
  }

  .promo-items {
    overflow-x: auto;
  }

  main {
    padding: 0 16px 32px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-row: 2;
    grid-template-columns: repeat(6, 52px);
    overflow-x: auto;
  }

  .gallery {
    position: relative;
  }

  .details h1 {
    font-size: 24px;
  }

  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buy-box {
    grid-column: auto;
  }
}

.faq {
  max-width: 900px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer {
  margin-top: 48px;
  color: var(--white);
  background: var(--dark);
}

.back-to-top {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  cursor: pointer;
  background: #37475a;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.back-to-top:hover {
  background: #485769;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 24px;
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.footer-col a {
  color: #ddd;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-apps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 32px;
  text-align: center;
}

.footer-apps p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #ddd;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid #6b7785;
  border-radius: 8px;
  color: var(--white);
  background: #0f1111;
}

.app-badge:hover {
  color: var(--white);
  background: #26333f;
  text-decoration: none;
}

.app-badge span {
  display: grid;
  text-align: left;
  line-height: 1.15;
}

.app-badge small {
  font-size: 10px;
  color: #ccc;
}

.app-badge strong {
  font-size: 16px;
  font-weight: 700;
}

.footer-divider {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid #3a4753;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.footer-logo {
  width: 100px;
  object-fit: contain;
}

.footer-locale {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #ddd;
}

.footer-legal {
  padding: 16px 24px 32px;
  text-align: center;
  background: #0f1111;
}

.footer-legal nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-legal a {
  color: #ddd;
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-legal p {
  margin: 0;
  color: #999;
  font-size: 12px;
}

@media (max-width: 700px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .search {
    grid-template-columns: 58px 1fr 52px;
  }

  .menubar {
    gap: 18px;
  }

  .breadcrumb {
    padding-top: 24px;
  }

  .variant-grid {
    grid-template-columns: 1fr;
  }

  .specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
