.product-page {
  background: #fff;
}

.product-page .site-header {
  margin-bottom: 16px;
}

.product-main {
  padding: 8px 0 0;
}

.product-detail {
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.product-detail:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 26px;
  color: #7c838f;
  font-size: 13px;
  font-weight: 700;
}

.product-breadcrumb a:hover,
.product-breadcrumb span {
  color: #202631;
}

.product-breadcrumb i {
  color: #b6bdc7;
  font-size: 11px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 56px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-main-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: #f5f5f5;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 40px rgb(17 19 23 / 15%);
  isolation: isolate;
}

.product-main-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 122, 0, 0.08));
  content: "";
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.product-main-media:hover::after {
  opacity: 1;
}

.product-main-media .product-img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.product-main-media:hover .product-img {
  transform: scale(1.025);
}

.preview-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(17, 19, 23, 0.82);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-main-media:hover .preview-hint,
.product-main-media:focus-visible .preview-hint {
  opacity: 1;
  transform: translateY(0);
}

.thumbnail-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-thumb,
.thumb-nav {
  border: 0;
  background: transparent;
}

.product-thumb {
  overflow: hidden;
  padding: 0;
  background: #f2f3f5;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 19, 23, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.84;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-thumb:hover,
.product-thumb.is-active {
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.16);
  transform: translateY(-2px);
}

.product-thumb:hover img {
  transform: scale(1.08);
}

.thumb-nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #202631;
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.thumb-nav:hover {
  color: var(--white);
  background: var(--orange);
  transform: scale(1.08);
}

.product-summary {
  padding-top: 6px;
}

.product-category {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-summary h1 {
  margin: 0;
  color: #0d1118;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: #5f6874;
  font-size: 14px;
  font-weight: 700;
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--orange);
}

.product-rating strong {
  color: #202631;
}

.detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.detail-price span,
.detail-price strong {
  color: var(--orange);
  font-weight: 900;
}

.detail-price span {
  font-size: 21px;
}

.detail-price strong {
  font-size: 42px;
  line-height: 1;
}

.detail-price del {
  color: #8f97a3;
  font-size: 18px;
  font-weight: 700;
}

.detail-price em {
  display: inline-grid;
  place-items: center;
  min-width: 55px;
  height: 28px;
  color: var(--white);
  background: var(--orange);
  border-radius: 7px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.product-intro {
  max-width: 620px;
  margin: 28px 0 24px;
  color: #606976;
  font-size: 16px;
  line-height: 1.75;
}

.feature-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.feature-inline li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5c6571;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.feature-inline img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.option-block {
  margin-top: 26px;
}

.option-block h2,
.size-heading h2 {
  margin: 0;
  color: #202631;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.color-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.color-dot {
  width: 37px;
  height: 37px;
  padding: 0;
  background: var(--swatch);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d7dce3, 0 8px 16px rgba(17, 19, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.color-dot:hover,
.color-dot.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--orange), 0 12px 22px rgba(255, 122, 0, 0.18);
}

.size-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.size-heading a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #202631;
  font-size: 14px;
  font-weight: 800;
}

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

.size-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(62px, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.size-options button {
  min-height: 42px;
  color: #202631;
  background: #fff;
  border: 1px solid #dbe1e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.size-options button:hover,
.size-options button.is-selected {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.product-actions {
  display: grid;
  grid-template-columns: 160px minmax(260px, 1fr);
  gap: 54px;
  align-items: end;
  margin-top: 28px;
}

.quantity-field span {
  display: block;
  margin-bottom: 9px;
  color: #202631;
  font-size: 13px;
  font-weight: 900;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 56px 44px;
  width: max-content;
  overflow: hidden;
  border: 1px solid #dbe1e8;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 19, 23, 0.07);
}

.quantity-btn,
.quantity-value {
  display: grid;
  place-items: center;
  height: 42px;
  color: #111317;
  background: #fff;
  border: 0;
  font-size: 16px;
  font-weight: 900;
}

.quantity-value {
  border-left: 1px solid #e8edf2;
  border-right: 1px solid #e8edf2;
}

.quantity-btn:hover {
  color: var(--orange);
  background: #fff7f0;
}

.buy-actions {
  display: grid;
  gap: 11px;
}

.product-add-cart.add-cart,
.buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.product-add-cart.add-cart {
  height: auto;
  color: var(--white);
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.22);
}

.product-add-cart.add-cart:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.buy-now {
  color: var(--orange);
  background: #fff;
  border: 1px solid var(--orange);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.buy-now:hover {
  color: var(--white);
  background: var(--orange);
  transform: translateY(-2px);
}

.shipping-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 26px;
  background: #f8f8f9;
  border: 1px solid #eef1f4;
  border-radius: 10px;
}

.shipping-strip div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 15px;
}

.shipping-strip div + div {
  border-left: 1px solid #e6ebf0;
}

.shipping-strip img {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.shipping-strip strong {
  color: #202631;
  font-size: 12px;
  font-weight: 900;
}

.shipping-strip span {
  color: #606976;
  font-size: 11px;
  font-weight: 700;
}

.product-info-card,
.size-guide-card {
  padding: 54px 0 0;
}

.info-panel,
.size-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(17, 19, 23, 0.04);
}

.info-tab {
  display: grid;
  place-items: center;
  padding: 22px 20px 0;
}

.info-tab h2 {
  position: relative;
  min-width: 270px;
  margin: 0;
  padding-bottom: 19px;
  color: #202631;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.info-tab h2::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  content: "";
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.78fr 0.88fr;
  gap: 38px;
  padding: 32px 38px 38px;
}

.info-grid > article + article {
  border-left: 1px solid #e4e9ef;
  padding-left: 36px;
}

.info-grid h3,
.size-panel h2,
.size-tips h3 {
  margin: 0 0 22px;
  color: #202631;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.description-copy p {
  margin: 0 0 18px;
  color: #616a76;
  font-size: 14px;
  line-height: 1.75;
}

.why-box,
.size-tips {
  background: linear-gradient(135deg, #fff5ec, #fff);
  border: 1px solid #ffead8;
  border-radius: 10px;
}

.why-box {
  margin-top: 26px;
  padding: 24px;
}

.why-box h4 {
  margin: 0 0 14px;
  color: #202631;
  font-size: 14px;
  font-weight: 900;
}

.why-box ul,
.care-list ul,
.size-tips ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.why-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #616a76;
  font-size: 13px;
  font-weight: 700;
}

.why-box li + li {
  margin-top: 9px;
}

.why-box i {
  color: var(--orange);
  margin-top: 2px;
}

.spec-list dl {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 12px 16px;
  margin: 0;
  color: #4f5965;
  font-size: 13px;
}

.spec-list dt {
  color: #202631;
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
}

.care-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 16px;
  color: #59636f;
  font-size: 14px;
  font-weight: 700;
}

.care-list li + li {
  margin-top: 28px;
}

.care-list img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.size-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.1fr 0.62fr;
  gap: 34px;
  align-items: center;
  padding: 38px;
}

.guide-image img {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  color: #202631;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.size-table th,
.size-table td {
  padding: 14px 12px;
  border: 1px solid #e0e5eb;
}

.size-table thead th {
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 900;
}

.size-table tbody th {
  color: var(--orange);
  font-weight: 900;
}

.size-tips {
  align-self: center;
  padding: 28px 24px;
}

.size-tips li {
  position: relative;
  padding-left: 15px;
  color: #626b77;
  font-size: 13px;
  font-weight: 700;
}

.size-tips li + li {
  margin-top: 16px;
}

.size-tips li::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  content: "";
}

.size-tips p {
  margin: 28px 0 0;
  padding: 18px;
  color: #5d6570;
  background: #fff7ef;
  border: 1px solid #ffe1c3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.related-products {
  padding: 72px 0 76px;
}

.related-heading {
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}

.related-heading h2 {
  margin: 0;
  color: #171b23;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.related-heading span {
  color: var(--orange);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 24, 0.76);
  border: 0;
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(760px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.modal-dialog img {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #f5f5f5;
}

.modal-dialog p {
  margin: 0;
  padding: 15px 20px;
  color: #202631;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(17, 19, 23, 0.88);
  border: 0;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}

.modal-close:hover {
  background: var(--orange);
  transform: rotate(90deg);
}

.flying-img {
  position: fixed;
  z-index: 300;
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 18px 38px rgba(17, 19, 23, 0.22);
}

@media (max-width: 1180px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .product-summary {
    padding-top: 0;
  }

  .product-actions {
    grid-template-columns: 150px minmax(260px, 420px);
    gap: 28px;
  }

  .info-grid,
  .size-panel {
    grid-template-columns: 1fr;
  }

  .info-grid > article + article {
    border-top: 1px solid #e4e9ef;
    border-left: 0;
    padding-top: 28px;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  /* Hide scrollbars on mobile */
  ::-webkit-scrollbar {
    display: none !important;
  }
  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .product-page .site-header {
    margin-bottom: 4px;
  }

  .product-main {
    padding-top: 4px;
    padding-bottom: 104px; /* Added spacing so floating bar doesn't block footers */
  }

  .product-breadcrumb {
    gap: 7px;
    margin-bottom: 16px;
    font-size: 11px;
  }

  .product-main-media {
    border-radius: 16px;
  }

  .product-main-media .product-img {
    aspect-ratio: 1 / 1.12;
  }

  .thumbnail-row {
    grid-template-columns: 24px 1fr 24px;
    gap: 8px;
    margin-top: 16px;
  }

  .thumb-list {
    gap: 8px;
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    padding: 6px 4px 14px;
    margin-top: -6px;
    margin-bottom: -14px;
  }

  .thumb-nav {
    width: 24px;
    height: 24px;
  }

  .product-summary h1 {
    font-size: 31px;
  }

  .product-rating,
  .detail-price,
  .product-intro {
    margin-top: 18px;
  }

  .detail-price strong {
    font-size: 28px;
  }

  .product-intro {
    font-size: 14px;
  }

  .feature-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 22px;
  }

  .color-options {
    gap: 11px;
  }

  .color-dot {
    width: 34px;
    height: 34px;
  }

  .size-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .size-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-actions {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }

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

  .shipping-strip div + div {
    border-top: 1px solid #e6ebf0;
    border-left: 0;
  }

  .product-info-card,
  .size-guide-card {
    padding-top: 24px;
  }

  .info-tab {
    padding-top: 18px;
  }

  .info-tab h2 {
    min-width: 210px;
  }

  .info-grid,
  .size-panel {
    gap: 26px;
    padding: 24px 18px;
  }

  .why-box,
  .size-tips {
    padding: 20px;
  }

  .spec-list dl {
    grid-template-columns: 92px 1fr;
    gap: 10px 12px;
  }

  .care-list li {
    gap: 12px;
  }

  .care-list li + li {
    margin-top: 18px;
  }

  .size-table-wrap {
    overflow-x: auto;
  }

  .size-table {
    min-width: 620px;
  }

  .related-products {
    padding: 50px 0 54px;
  }

  .related-heading h2 {
    font-size: 26px;
  }

  .modal-dialog {
    width: 90vw;
    border-radius: 14px;
  }

  /* WhatsApp Float Position Adjust */
  .wa-float {
    bottom: 96px !important;
  }

  /* Creative Floating Bottom Action Bar */
  .floating-bar-mobile {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 100px); /* offscreen initially */
    width: calc(100% - 24px);
    max-width: 480px;
    height: 56px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 16px 36px rgba(17, 19, 23, 0.18), 0 2px 8px rgba(17, 19, 23, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 150;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    padding-right: 10px;
  }

  .floating-bar-mobile.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .floating-bar-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .floating-bar-label {
    font-size: 9px;
    color: #727986;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
    margin-bottom: 2px;
  }

  .floating-bar-price-tag {
    display: flex;
    align-items: baseline;
    gap: 5px;
  }

  .floating-price-now {
    font-size: 16px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1.1;
  }

  .floating-price-old {
    font-size: 11px;
    text-decoration: line-through;
    color: #8f97a3;
    font-weight: 700;
  }

  .floating-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .floating-btn-cart {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 122, 0, 0.25);
    background: rgba(255, 122, 0, 0.08);
    color: var(--orange);
    font-size: 17px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, border-color 0.2s ease;
  }

  .floating-btn-cart:active {
    transform: scale(0.88);
    background: rgba(255, 122, 0, 0.16);
  }

  .floating-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7a00, #ff5100);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px rgba(255, 81, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  }

  .floating-btn-buy:active {
    transform: scale(0.92);
    box-shadow: 0 4px 10px rgba(255, 81, 0, 0.12);
  }

  .floating-btn-buy i {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .product-summary h1 {
    font-size: 27px;
  }

  .size-options {
    gap: 9px;
  }

  .size-options button {
    min-height: 40px;
    font-size: 12px;
  }

  .product-add-cart.add-cart,
  .buy-now {
    min-height: 46px;
    font-size: 13px;
  }
}

/* Hide mobile floating bar on desktop */
@media (min-width: 768px) {
  .floating-bar-mobile {
    display: none !important;
  }
}
