﻿*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --shopee-orange: #ee4d2d;
  --shopee-orange-dark: #d73211;
  --shopee-orange-light: #fff0ed;
  --shopee-bg: #f5f5f5;
  --shopee-white: #ffffff;
  --shopee-text: #222222;
  --shopee-text-secondary: #757575;
  --shopee-border: #e8e8e8;
  --shopee-star: #ffc019;
  --shopee-green: #00bfa5;
  --shopee-green-bg: #e8f5e9;
  --shopee-green-text: #2e7d32;
  --shopee-red: #cc0000;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--shopee-bg);
  color: var(--shopee-text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(180deg, #ee4d2d 0%, #f0562f 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.header__logo {
  max-height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--shopee-white);
}

/* ========== GALLERY ========== */
.gallery {
  position: relative;
  background: var(--shopee-white);
}

.gallery__main {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
}

.gallery__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.gallery__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.gallery__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.gallery__nav-btn:hover {
  background: rgba(0,0,0,0.55);
}

.gallery__nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery__nav-btn--prev { left: 8px; }
.gallery__nav-btn--next { right: 8px; }

.gallery__counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--shopee-white);
}

.gallery__thumbs::-webkit-scrollbar { display: none; }

.gallery__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.gallery__thumb--active {
  border-color: var(--shopee-orange);
  opacity: 1;
}

.gallery__thumb:hover {
  opacity: 1;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PRICE BAR ========== */
.price-bar {
  background: linear-gradient(135deg, #ee4d2d 0%, #f26848 50%, #f58b6e 100%);
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-bar__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.price-bar__label {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.price-bar__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-bar__old {
  font-size: 13px;
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 400;
}

.price-bar__current {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.price-bar__discount {
  background: #ffc400;
  color: #8B2500;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.price-bar__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.price-bar__sold {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  white-space: nowrap;
}

.price-bar__timer {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
  white-space: nowrap;
}

.price-bar__timer > span:first-child {
  margin-right: 4px;
}

.timer-block {
  background: rgba(255,255,255,0.2);
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ========== PRODUCT INFO ========== */
.product-info {
  padding: 14px 16px 0;
  background: var(--shopee-white);
}

.product-info__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.2px;
}

.badge--orange {
  background: var(--shopee-orange);
  color: #fff;
}

.badge--green {
  background: var(--shopee-green-bg);
  color: var(--shopee-green-text);
}

.product-info__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--shopee-text);
  margin-bottom: 12px;
  text-align: left;
}

.product-info__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--shopee-border);
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-display__stars {
  display: flex;
  gap: 1px;
}

.rating-display__stars svg {
  width: 14px;
  height: 14px;
}

.rating-display__score {
  font-size: 14px;
  color: var(--shopee-orange);
  font-weight: 600;
}

.meta-separator {
  width: 1px;
  height: 14px;
  background: rgba(0,0,0,0.12);
}

.meta-sold {
  font-size: 14px;
  color: var(--shopee-text-secondary);
}

.meta-heart {
  margin-left: auto;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}

.meta-heart:hover { transform: scale(1.15); }

.meta-heart svg {
  width: 22px;
  height: 20px;
}

/* ========== PERKS ========== */
.perks {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--shopee-white);
  flex-wrap: wrap;
}

.perk {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--shopee-green-bg);
  color: var(--shopee-green-text);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.perk svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.perk--highlight {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 14px;
}

.perk--highlight .perk__main {
  font-size: 14px;
  font-weight: 700;
}

.perk--highlight .perk__sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

/* ========== CTA BUTTON ========== */
.cta-section {
  padding: 12px 16px 16px;
  background: var(--shopee-white);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: var(--shopee-orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(238,77,45,0.35);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

.cta-btn:hover {
  background: var(--shopee-orange-dark);
  box-shadow: 0 4px 12px rgba(238,77,45,0.5);
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

/* ========== TRUST BADGES ========== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 18px 16px;
  background: var(--shopee-white);
  border-top: 1px solid var(--shopee-border);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.trust-badge svg {
  width: 26px;
  height: 26px;
  color: #999;
}

.trust-badge__text {
  font-size: 11px;
  color: var(--shopee-text-secondary);
  line-height: 1.35;
}

.trust-badge__text strong {
  display: block;
  color: var(--shopee-text);
  font-weight: 600;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  height: 10px;
  background: var(--shopee-bg);
}

/* ========== URGENCY TIMER ========== */
.urgency-bar {
  padding: 16px;
  background: var(--shopee-white);
  text-align: center;
}

.urgency-bar__text {
  font-size: 13px;
  font-weight: 700;
  color: var(--shopee-text);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.urgency-bar__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.urgency-timer-block {
  background: var(--shopee-red);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.urgency-timer-sep {
  color: var(--shopee-red);
  font-weight: 800;
  font-size: 22px;
}

/* ========== DESCRIPTION ========== */
.description-section {
  background: var(--shopee-white);
  padding: 20px 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--shopee-text);
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--shopee-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.desc-block {
  margin-bottom: 28px;
  text-align: center;
}

.desc-block:last-child {
  margin-bottom: 0;
}

.desc-block__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--shopee-text);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.desc-block__text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.desc-block__image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}

/* ========== REVIEWS ========== */
.reviews-section {
  background: var(--shopee-white);
}

.reviews-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviews-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-header__left h3 {
  font-size: 16px;
  font-weight: 700;
}

.reviews-header__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.reviews-header__stars svg {
  width: 13px;
  height: 13px;
}

.reviews-header__score {
  font-size: 14px;
  color: var(--shopee-orange);
  font-weight: 600;
  margin-left: 4px;
}

.reviews-header__link {
  font-size: 14px;
  color: var(--shopee-orange);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  cursor: pointer;
}

.review-card {
  padding: 14px 16px;
  border-top: 1px solid var(--shopee-border);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.review-card__name {
  font-size: 13px;
  font-weight: 400;
  color: var(--shopee-text-secondary);
}

.review-card__stars {
  display: flex;
  gap: 1px;
  margin-bottom: 6px;
}

.review-card__stars svg {
  width: 12px;
  height: 12px;
}

.review-card__tags {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--shopee-text-secondary);
}

.review-card__tags span {
  color: var(--shopee-text);
  font-weight: 500;
}

.review-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--shopee-text);
  text-align: left;
  margin-bottom: 10px;
}

.review-card__image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 10px;
}

.review-card__date {
  font-size: 12px;
  color: #aaa;
  text-align: left;
}

.reviews-more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-top: 1px solid var(--shopee-border);
  font-size: 14px;
  color: var(--shopee-orange);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.reviews-more:hover {
  background: var(--shopee-orange-light);
}

/* ========== CTA BOX ========== */
.cta-box {
  background: var(--shopee-bg);
  padding: 16px;
}

.cta-box__inner {
  background: var(--shopee-white);
  border: 1px solid var(--shopee-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-box__top {
  background: var(--shopee-orange);
  padding: 14px 16px;
  text-align: center;
}

.cta-box__top-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cta-box__body {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-box__image {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  background: #fafafa;
  border: 1px solid var(--shopee-border);
}

.cta-box__details {
  flex: 1;
  text-align: center;
}

.cta-box__rating {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--shopee-star);
}

.cta-box__price-old {
  font-size: 13px;
  color: var(--shopee-text-secondary);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.cta-box__price-now {
  font-size: 22px;
  font-weight: 800;
  color: var(--shopee-orange);
  margin-bottom: 4px;
}

.cta-box__offer {
  font-size: 12px;
  color: var(--shopee-text-secondary);
  margin-bottom: 14px;
}

.cta-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shopee-orange);
  color: #fff;
  border-radius: 24px;
  padding: 11px 32px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(238,77,45,0.3);
}

.cta-box__btn:hover {
  background: var(--shopee-orange-dark);
  box-shadow: 0 4px 12px rgba(238,77,45,0.45);
}

.cta-box__payment {
  max-width: 180px;
  margin: 14px auto 0;
}

.cta-box__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--shopee-border);
}

.cta-box__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--shopee-text);
}

.cta-box__check svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--shopee-green);
}

/* ========== FOOTER ========== */
.footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 24px 16px 16px;
}

.footer__breadcrumb {
  font-size: 13px;
  margin-bottom: 20px;
  color: #999;
}

.footer__breadcrumb a {
  color: #ddd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__link {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 7px;
  text-align: left;
  transition: color 0.15s;
  cursor: pointer;
}

.footer__link:hover { color: #fff; }

.footer__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 7px;
  text-align: left;
}

.footer__info svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer__socials {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.footer__socials svg {
  width: 18px;
  height: 18px;
  color: #999;
  cursor: pointer;
  transition: color 0.15s;
}

.footer__socials svg:hover { color: #fff; }

.footer__payment {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #444;
}

.footer__payment-title {
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__payment-img {
  max-width: 200px;
  margin: 0 auto;
  opacity: 0.85;
}

.footer__bottom {
  text-align: center;
  font-size: 11px;
  color: #777;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #444;
}

/* ========== FIXED BOTTOM BAR ========== */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  height: 54px;
  background: var(--shopee-white);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
}

.fixed-bottom__chat,
.fixed-bottom__cart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--shopee-green);
  color: #fff;
  border: none;
  gap: 2px;
  transition: background 0.15s;
}

.fixed-bottom__chat:hover,
.fixed-bottom__cart:hover {
  background: #00a895;
}

.fixed-bottom__chat svg,
.fixed-bottom__cart svg {
  width: 20px;
  height: 20px;
}

.fixed-bottom__chat span,
.fixed-bottom__cart span {
  font-size: 10px;
  font-weight: 500;
}

.fixed-bottom__sep {
  width: 1px;
  background: rgba(255,255,255,0.3);
  align-self: center;
  height: 28px;
}

.fixed-bottom__buy {
  flex: 2.5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shopee-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}

.fixed-bottom__buy:hover {
  background: var(--shopee-orange-dark);
}

/* ========== BOTTOM SPACER ========== */
.bottom-spacer {
  height: 54px;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 601px) {
  .fixed-bottom {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .price-bar {
    flex-direction: column;
    gap: 10px;
  }

  .price-bar__right {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 12px;
  }

  .price-bar__current {
    font-size: 24px;
  }

  .trust-badges {
    gap: 16px;
  }

  .cta-box__body {
    flex-direction: column;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .price-bar__current {
    font-size: 22px;
  }

  .urgency-timer-block {
    font-size: 18px;
    padding: 4px 8px;
    min-width: 34px;
  }

  .urgency-timer-sep {
    font-size: 18px;
  }
}
