@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-Regular.ttf'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-Medium.ttf'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-SemiBold.ttf'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-Bold.ttf'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-ExtraBold.ttf'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Poppins'; src: url('Poppins/Poppins-Black.ttf'); font-weight: 900; font-style: normal; }

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

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --paper: #faf8f6;
  --gray-bg: #f4f4f4;
  --gray-light: #eeeeee;
  --gray-border: #dedede;
  --gray-mid: #8f8f8f;
  --gray-text: #555555;
  --teal: #1b7ea6;
  --pink: #e05c8a;
  --star: #f5a623;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input { font-family: 'Poppins', sans-serif; }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 40px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.55; }

.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icons button {
  position: relative;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-icons svg {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.8;
}

.cart-badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.breadcrumb {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-mid);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--gray-mid);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { color: var(--black); font-weight: 600; }

.breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-mid);
  fill: none;
  stroke-width: 2;
}

.product-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 60px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gray-light);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb.active { border-color: var(--black); }
.thumb:hover { transform: translateY(-1px); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.main-img-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--product-bg, var(--gray-light));
  border-radius: 20px;
  aspect-ratio: 1 / 1;
}

.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(28px, 5vw, 48px);
}

.product-info { padding-top: 8px; }

.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.prod-tag {
  color: var(--product-accent, var(--teal));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prod-tag + .prod-tag::before {
  content: '·';
  margin-right: 10px;
}

.prod-title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: 14px;
}

.prod-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stars {
  color: var(--star);
  font-size: 17px;
  letter-spacing: 1px;
}

.prod-rating { font-size: 14px; font-weight: 700; }
.prod-reviews { font-size: 13px; color: var(--gray-mid); }

.prod-desc {
  max-width: 62ch;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ededed;
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.price-current {
  font-size: 32px;
  font-weight: 900;
}

.price-old {
  color: var(--gray-mid);
  font-size: 16px;
  text-decoration: line-through;
}

.price-installment {
  margin-bottom: 28px;
  color: var(--gray-mid);
  font-size: 13px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.qty-label {
  font-size: 14px;
  font-weight: 700;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--gray-border);
  border-radius: 100px;
}

.qty-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--black);
  cursor: pointer;
  font-size: 20px;
  transition: background 0.15s;
}

.qty-btn:hover { background: var(--gray-light); }

.qty-num {
  min-width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.btn-cart, .btn-checkout, .sticky-add {
  border: none;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.btn-cart {
  width: 100%;
  min-height: 58px;
  padding: 17px 18px;
  margin-bottom: 20px;
}

.btn-cart:hover, .btn-checkout:hover, .sticky-add:hover {
  background: #262626;
  transform: translateY(-1px);
}

.shipping-calc {
  padding: 20px;
  margin-bottom: 24px;
  background: var(--gray-bg);
  border-radius: 14px;
}

.shipping-calc p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
}

.shipping-calc svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.8;
}

.shipping-row {
  display: flex;
  gap: 10px;
}

.shipping-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  outline: none;
}

.shipping-input:focus { border-color: var(--black); }

.btn-calc {
  padding: 12px 18px;
  background: var(--black);
  border: none;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shipping-result {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--gray-border);
  padding-top: 12px;
}

.shipping-result.show {
  display: grid;
  gap: 8px;
}

.shipping-result-error {
  display: none;
  margin-top: 10px;
  color: #c44747;
  font-size: 12px;
  font-weight: 700;
}

.shipping-result-error.show {
  display: block;
}

.shipping-option-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #3d3d3d;
  font-size: 13px;
}

.shipping-option-line strong {
  color: var(--black);
  font-weight: 800;
}

.shipping-option-time {
  display: block;
  margin-top: 1px;
  color: var(--gray-mid);
  font-size: 11px;
  font-weight: 600;
}

.shipping-option-price {
  flex-shrink: 0;
  font-weight: 900;
}

.shipping-option-price.free {
  color: var(--product-accent, var(--teal));
}

.trust-badges {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--product-accent, var(--teal));
  fill: none;
  stroke-width: 1.8;
}

.accordion {
  border-top: 1px solid #ededed;
}

.accordion-item {
  border-bottom: 1px solid #ededed;
}

.accordion-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--black);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.accordion-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--black);
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s;
}

.accordion-btn.open svg { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding-bottom: 18px;
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.accordion-body.open { display: block; }

.detail-band {
  background: var(--paper);
  padding: 72px 60px;
}

.detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.detail-media {
  overflow: hidden;
  border-radius: 20px;
  background: var(--product-bg, var(--gray-light));
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 36px;
}

.section-label {
  display: block;
  margin-bottom: 14px;
  color: var(--product-accent, var(--teal));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.05;
}

.section-sub {
  max-width: 62ch;
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--product-accent, var(--teal));
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: 440px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -4px 0 40px rgba(0,0,0,0.14);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #eeeeee;
}

.cart-header h2 { font-size: 20px; font-weight: 800; }

.cart-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  color: #444;
  cursor: pointer;
  font-size: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}

.cart-empty {
  padding: 64px 0;
  color: var(--gray-mid);
  font-size: 14px;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gray-light);
  border-radius: 12px;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-name { margin-bottom: 3px; font-size: 14px; font-weight: 700; }
.cart-item-price { margin-bottom: 12px; color: var(--gray-mid); font-size: 13px; }

.cart-item-qty {
  width: fit-content;
  display: flex;
  align-items: center;
  border: 1.5px solid #dddddd;
  border-radius: 100px;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--black);
  cursor: pointer;
  font-size: 17px;
}

.cart-qty-num {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #bbbbbb;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cart-item-total { font-size: 14px; font-weight: 800; }

.cart-footer {
  flex-shrink: 0;
  padding: 20px 28px 36px;
  border-top: 1px solid #eeeeee;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
}

.cart-freight {
  margin-bottom: 20px;
  color: var(--gray-mid);
  font-size: 12px;
}

.btn-checkout {
  width: 100%;
  min-height: 56px;
  padding: 16px;
}

.mobile-sticky {
  display: none;
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 60px 34px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-tagline {
  max-width: 360px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .product-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 32px 62px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  body { padding-bottom: 86px; }

  nav {
    height: 58px;
    padding: 0 18px;
  }

  .nav-logo img { height: 24px; }
  .nav-links { display: none; }

  .breadcrumb {
    padding: 14px 20px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .product-wrap {
    display: block;
    padding: 0 0 42px;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .main-img-wrap {
    order: 1;
    width: 100%;
    border-radius: 0;
  }

  .main-img-wrap img {
    padding: 30px;
  }

  .thumbs {
    order: 2;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 12px 20px;
    scrollbar-width: none;
  }

  .thumbs::-webkit-scrollbar { display: none; }

  .thumb {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .product-info {
    padding: 18px 20px 0;
  }

  .prod-tags { margin-bottom: 14px; }
  .prod-title { font-size: 29px; }
  .prod-stars { gap: 6px; margin-bottom: 18px; }
  .prod-desc { font-size: 14px; margin-bottom: 22px; padding-bottom: 22px; }
  .price-current { font-size: 27px; }
  .price-installment { margin-bottom: 22px; }

  .qty-row {
    justify-content: space-between;
  }

  .btn-cart {
    display: none;
  }

  .shipping-calc {
    padding: 16px;
  }

  .shipping-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-calc {
    min-height: 46px;
  }

  .accordion-btn {
    min-height: 56px;
    font-size: 12px;
  }

  .detail-band {
    padding: 42px 20px;
  }

  .detail-media {
    border-radius: 16px;
  }

  .detail-media img {
    padding: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -10px 28px rgba(0,0,0,0.08);
  }

  .sticky-info {
    min-width: 0;
  }

  .sticky-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
  }

  .sticky-price {
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 700;
  }

  .sticky-add {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
  }

  .cart-item-img {
    width: 72px;
    height: 72px;
  }

  footer {
    padding: 38px 20px 28px;
  }

  .footer-inner {
    display: grid;
    gap: 26px;
  }
}
