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

body {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  color: #282828;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

html.modal-open,
body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* Top transition banner */
.header-banner img {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 125;
  object-fit: cover;
}

/* Header */
.navbar {
  border-bottom: 1px solid #efefef;
}

.navbar__main {
  padding: 15px 0;
}

.navbar__main .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar__logo img {
  width: 250px;
}

.navbar__search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
}

.search-input {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  overflow: hidden;
  height: 50px;
}

.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 15px 10px 50px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-input .icon {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  fill: #6b6b6b;
}

.search-wrap {
  position: relative;
  width: 100%;
}

.navbar__action {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #727272;
  font-weight: 600;
}

.btn-icon svg {
  width: 30px;
  height: 32px;
  margin-bottom: 2px;
}

.navbar__nav {
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.navbar__nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar__nav a {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #6b6b6b;
}

/* Alert bar */
.website-alert {
  background: #39ff14;
  color: #000;
  text-align: center;
  padding: 12px;
  font-size: 17px;
}

.website-alert a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
}

/* Hero */
.hero-banner {
  margin: 10px 0;
}

.hero-banner img {
  width: 100%;
  border-radius: 10px;
}

/* Featured */
.section-title {
  color: #ff6713;
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.product-card {
  border: 1px solid #f2f2f2;
  border-radius: 10px;
  overflow: hidden;
}

.product-card__img {
  position: relative;
  background: #fafafa;
}

.product-card__img img {
  width: 100%;
  aspect-ratio: 232 / 290;
  object-fit: cover;
}

.ribbon {
  position: absolute;
  top: 25px;
  left: -60px;
  width: 200px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transform: rotate(-45deg);
  text-transform: uppercase;
}

.ribbon--bestseller { background: #ffff58; color: #282828; }
.ribbon--lowprice { background: #f9243f; color: #fff; }

.product-card__body {
  padding: 8px;
}

.product-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5px 8px 8px;
  font-size: 12px;
  color: #727272;
}

.product-card__price {
  text-align: right;
}

.product-card__price .price {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #ff6713;
}

/* Transition modal overlay */
.transition-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  z-index: 1000;
}

.transition-modal__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.transition-modal__content a {
  display: block;
  line-height: 0;
}

.transition-modal__content picture,
.transition-modal__content img {
  width: 100%;
  display: block;
}

.transition-modal__content img {
  aspect-ratio: 10 / 8;
  object-fit: cover;
}

.transition-modal .countdown-text {
  color: #fff;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.transition-modal .countdown-text strong {
  font-weight: 700;
}

.ads-box-mobile {
  display: none;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar__search {
    display: none;
  }

  .ads-box-mobile {
    display: flex;
  }

  .navbar__nav {
    display: none;
  }

  .transition-modal__content img {
    aspect-ratio: 330 / 400;
  }
}

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

@media (max-width: 600px) {
  .transition-modal {
    padding: 15px;
  }
}
