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

:root {
    --page: var(--cv-page);
    --paper: var(--cv-paper);
    --ink: var(--cv-ink);
    --muted: var(--cv-muted);
    --line: var(--cv-line);
    --soft: var(--cv-soft);
    --accent: var(--cv-accent);
    --danger: var(--cv-sale);
    --radius: var(--cv-radius);
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: var(--cv-font-family);
    font-size: var(--cv-base-font-size);
    line-height: var(--cv-body-line-height);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--cv-header-bg);
    border-bottom: var(--cv-border-width) solid var(--line);
    backdrop-filter: blur(14px);
    transition: transform .24s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1220px;
    height: auto;
    min-height: 70px;
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.logo {
    color: var(--ink);
    font-size: 13px;
    font-weight: var(--cv-label-weight);
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-left {
    width: 100%;
}

.search-form {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
    display: flex;
}

.search-form input {
    width: 100%;
    height: 42px;
    border: var(--cv-border-width) solid var(--line);
    border-radius: var(--cv-input-radius);
    background: var(--paper);
    color: var(--ink);
    padding: 0 44px 0 14px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--ink);
}

.search_sbtn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--ink);
    color: var(--cv-button-text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 360px;
    overflow: auto;
    background: var(--paper);
    border: var(--cv-border-width) solid var(--line);
    border-radius: var(--radius);
    z-index: 30;
}

.search-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: var(--cv-border-width) solid var(--line);
}

.search-item:hover {
    background: var(--soft);
}

.search-item img {
    width: 50px;
    height: 62px;
    object-fit: cover;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.cart-icon,
.account-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: var(--cv-border-width) solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--cv-badge-bg);
    color: var(--cv-badge-text);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.container,
.container_na {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
}

.product-detail {
    padding: 34px 0 0;
}

.desktop-product-breadcrumb {
    display: none;
}

.product-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.product-left-workspace {
    display: contents;
}

.gallery-container { order: 1; }
.product-info { order: 2; }
.product-description-section { order: 3; }

.gallery-container {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    position: sticky;
    top: 98px;
}

.thumbnail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 2px;
}

.thumb {
    width: 68px;
    height: 88px;
    object-fit: cover;
    cursor: pointer;
    border: 0;
    background: var(--paper);
    opacity: .72;
}

.thumb.active,
.thumb:hover {
    outline: var(--cv-border-width) solid var(--ink);
    opacity: 1;
}

.main-image-container {
    position: relative;
    min-height: clamp(480px, 70vh, 720px);
    background: var(--paper);
    border: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    cursor: zoom-in;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-button-secondary-bg);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.nav:hover {
    background: var(--ink);
    color: var(--cv-button-text);
}

.nav.left { left: 12px; }
.nav.right { right: 12px; }

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

.breadcrumb {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-title {
    margin: 12px 0 12px;
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: var(--cv-heading-weight);
    line-height: 1.12;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.product-action-btn {
    min-height: 38px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-soft);
    color: var(--cv-ink);
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: var(--cv-button-font-size);
    font-weight: var(--cv-label-weight);
    cursor: pointer;
}

.product-action-btn.is-active {
    background: var(--cv-badge-bg);
    color: var(--cv-badge-text);
}

.price-wrapper {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 16px 0;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 24px;
    font-weight: 760;
}

.discount-tag {
    display: inline-flex;
    color: var(--cv-sale);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.shipping-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--cv-shipping);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.shipping-tag .fa-plane {
    transform: rotate(-45deg);
}

.promo-countdown {
    display: block;
    margin: -6px 0 14px;
    color: var(--cv-sale);
    font-size: 12px;
    font-weight: 750;
}

.extra-info {
    margin: 12px 0 18px;
}

.sku-copy-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    background: var(--paper);
    color: var(--muted);
    font-size: 12px;
}

.sku-label {
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sku-value {
    color: var(--ink);
    font-weight: 650;
}

.sku-copy-btn {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.color-selector,
.size-section,
.quantity-wrapper {
    margin: 22px 0;
}

.color-selector label,
.size-section label,
.quantity-wrapper label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-card {
    width: 74px;
    border: 0;
    background: var(--paper);
    padding: 7px;
    cursor: pointer;
    text-align: center;
}

.color-card.active,
.color-card:hover {
    outline: var(--cv-border-width) solid var(--ink);
}

.color-card img {
    width: 58px;
    height: 74px;
    object-fit: cover;
    margin: 0 auto 6px;
}

.color-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-option {
    min-width: 42px;
    height: 38px;
    padding: 0 13px;
    border: 0;
    background: var(--paper);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
}

.size-option.active,
.size-option:hover {
    background: var(--ink);
    color: var(--cv-button-text);
}

.desktop-variant-purchase {
    display: none;
}

.stock-status {
    margin: 16px 0;
}

.in-stock,
.out-stock {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.in-stock {
    background: var(--cv-badge-bg);
    color: var(--accent);
}

.out-stock {
    background: var(--cv-soft);
    color: var(--danger);
}

.short-description {
    margin: 14px 0;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: var(--soft);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
}

.quantity-input {
    width: 52px;
    height: 40px;
    border: 0;
    text-align: center;
    background: var(--paper);
    outline: none;
}

.add-to-cart-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--ink);
    color: var(--cv-button-text);
    font-weight: var(--cv-label-weight);
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

.shipping-window {
    margin-top: 16px;
    padding: 15px;
    border: 0;
    background: var(--paper);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.shipping-window__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shipping-window__range {
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
}

.product-description-section {
    margin-top: 54px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    border-top: var(--cv-border-width) solid var(--line);
    padding-top: 32px;
}

.product-app-banner { display: none; }

@media (min-width: 981px) {
    .product-app-banner { position: relative; width: min(1280px, calc(100% - 48px)); min-height: 190px; margin: 24px auto 0; padding: 26px clamp(24px, 3vw, 44px); display: grid; grid-template-columns: 80px minmax(0, 1fr) 132px; align-items: center; gap: clamp(20px, 2.5vw, 36px); overflow: hidden; background: #fff; color: #222; }
    .product-app-banner__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #666; font-size: 23px; font-weight: 300; cursor: pointer; }
    .product-app-banner__close:hover { color: #111; }
    .product-app-banner__icon { width: 80px; height: 80px; overflow: hidden; border-radius: 18px; background: #111; }
    .product-app-banner__icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .product-app-banner__copy > span { color: #666; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
    .product-app-banner__copy h2 { margin: 5px 0 7px; color: #222; font-size: clamp(20px, 2vw, 28px) !important; font-weight: 400 !important; letter-spacing: -.02em !important; }
    .product-app-banner__copy p { max-width: 560px; margin: 0; color: #666 !important; font-size: 12px; line-height: 1.5; }
    .product-app-banner__copy > a { width: max-content; margin-top: 13px; display: block; }
    .product-app-banner__copy > a img { width: 155px; height: auto; display: block; }
    .product-app-banner__qr { padding: 8px; display: flex; align-items: center; flex-direction: column; background: #fff; color: #333; }
    .product-app-banner__qr img { width: 112px; height: 112px; display: block; }
    .product-app-banner__qr span { margin-top: 5px; font-size: 10px; font-weight: 500; }
}

.product-gallery-sharing {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #555;
    font-size: 12px;
}

.product-gallery-sharing button,
.product-gallery-sharing a {
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 4px;
    background: #f3f3f3;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
}

.product-gallery-sharing button:hover,
.product-gallery-sharing a:hover {
    background: #e9e9e9;
    color: #111;
}

.product-description-section h2,
.specifications-title,
.related-products h2,
.view-all-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 560;
}

.full-description {
    color: var(--muted);
    line-height: 1.8;
}

.specifications-shell {
    grid-column: 1 / -1;
    width: 100%;
    background: var(--paper);
    border: 0;
    padding: 30px 0;
}

.tabular-description {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
}

.tabular-description table {
    width: 100%;
    max-width: none;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

.tabular-description th,
.tabular-description td {
    border: 0;
    padding: 16px 14px;
    text-align: left;
    vertical-align: top;
}

.tabular-description tr {
    border-bottom: 1px solid #e5e5e5;
}

.tabular-description tr:first-child {
    border-top: 1px solid #e5e5e5;
}

.tabular-description th {
    border-right: 1px solid #e5e5e5;
    background: transparent;
    width: 34%;
    font-weight: 560;
}

.related-products {
    margin: 64px 0 0;
}

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

.related-products .app-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.related-products .app-product-link {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.related-products .app-product-image {
    height: 240px;
    flex: 0 0 240px;
    overflow: hidden;
    background: #f2f2f2;
}

.related-products .app-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-products .app-product-copy {
    flex: 1;
    padding: 10px 11px 5px;
}

.related-products .app-product-type {
    display: block;
    overflow: hidden;
    color: #777;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-products .app-product-copy h3 {
    margin: 3px 0 4px;
    overflow: hidden;
    color: #555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-products .app-product-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 0 11px 10px;
    background: #fff;
}

.related-products .app-price {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.related-products .app-price strong {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.related-products .app-price del {
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

.related-products .app-product-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
}

.related-products .wishlist-btn,
.related-products .quick-add {
    position: static;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    color: #777 !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 22px !important;
    font-weight: 400 !important;
    box-shadow: none;
}

.related-products .wishlist-btn:hover,
.related-products .wishlist-btn.is-active,
.related-products .quick-add:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: #777 !important;
}

.savings-tag {
    color: var(--cv-sale);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.view-all-section {
    padding: 70px 0;
    text-align: center;
}

.view-all-section p {
    color: var(--muted);
    margin-bottom: 22px;
}

.view-all-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 18px;
    border: var(--cv-border-width) solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
}

.view-all-btn:hover {
    background: var(--ink);
    color: var(--cv-button-text);
}

.product-lower-description {
    margin-top: 42px;
    padding: 38px 0;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.product-lower-description h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 560;
}

.product-lower-description .full-description {
    max-width: 920px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.footer-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.app-footer { margin-top: 56px; padding: 48px 0 0; background: #fff; border-top: 1px solid #e6e6e6; color: #333; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.15fr 1.2fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.app-footer h3 { margin: 0 0 10px; color: #222; font-size: 14px; font-weight: 500; }
.app-footer .footer-subtitle { margin-top: 18px; }
.app-footer a { color: #444; font-size: 12px; font-weight: 300; line-height: 1.45; text-decoration: none; }
.app-footer a:hover { color: #111; text-decoration: underline; }
.footer-app { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; color: #333; }
.footer-app > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 6px; font-size: 17px; }
.footer-app span { display: flex; flex-direction: column; font-size: 12px; }
.footer-app small { color: #777; font-size: 10px; }
.footer-signups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 42px; padding-top: 32px; border-top: 1px solid #e5e5e5; }
.footer-signups section { min-width: 0; }
.footer-signups form, .whatsapp-signup { display: grid; grid-template-columns: 1fr auto; min-height: 42px; border: 1px solid #cfcfcf; background: #fff; }
.footer-signups input { min-width: 0; border: 0; outline: 0; padding: 0 13px; background: transparent; color: #333; font-size: 12px; }
.footer-signups button, .whatsapp-signup a { border: 0; border-left: 1px solid #111; padding: 0 18px; background: #111; color: #fff; font-size: 11px; font-weight: 400; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; }
.footer-signups p { margin: 9px 0 0; color: #666; font-size: 11px; }
.whatsapp-signup { grid-template-columns: auto 1fr auto; }
.whatsapp-signup > span { display: flex; align-items: center; padding: 0 12px; border-right: 1px solid #cfcfcf; color: #555; font-size: 12px; }
.footer-consent { margin-top: 24px; color: #777; font-size: 10px; line-height: 1.5; }
.footer-consent a { font-size: inherit; text-decoration: underline; }
.footer-bottom-wrap { width: 100%; margin-top: 30px; background: #111; color: #fff; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; }
.footer-bottom a { color: #f8f1fb; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2147483647;
    font-size: 12px;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-toast.is-error {
    background: var(--cv-sale);
}

.cart-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.cart-toast__text {
    line-height: 1.2;
}

.wishlist-auth {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.wishlist-auth.is-open {
    display: flex;
}

.wishlist-auth__backdrop {
    position: absolute;
    inset: 0;
    background: var(--cv-page);
}

.wishlist-auth__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    background: var(--paper);
    padding: 22px;
}

.wishlist-auth__panel h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 22px;
    font-weight: var(--cv-heading-weight);
    line-height: 1.1;
}

.wishlist-auth__panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.wishlist-auth__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.wishlist-auth__actions a,
.wishlist-auth__actions button {
    min-height: 40px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-button-secondary-bg);
    color: var(--cv-button-secondary-text);
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--cv-label-weight);
    text-decoration: none;
    cursor: pointer;
}

.wishlist-auth__actions a {
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
}

.wishlist-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2147483647;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    transition: opacity .2s ease, transform .2s ease;
}

.wishlist-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-lightbox-open {
    overflow: hidden;
}

.product-detail-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
    z-index: 2147483646;
}

.product-detail-lightbox.is-open {
    display: flex;
}

.product-detail-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.product-detail-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 1400px);
    height: 90vh;
    background: transparent;
    overflow: hidden;
}

.product-detail-lightbox__content,
.product-detail-lightbox__media {
    height: 100%;
}

.product-detail-lightbox__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-lightbox__main {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-lightbox__main img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .18s ease;
}

.product-detail-lightbox__controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(5px);
}

.product-detail-lightbox__control {
    border: 0;
    background: transparent;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.product-detail-lightbox__control:hover { background: rgba(255, 255, 255, .14); }

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-left {
        grid-column: 1 / -1;
        order: 3;
    }

    .search-form {
        width: 100%;
    }

    .product-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        position: static;
        grid-template-columns: 1fr;
    }

    .thumbnail-column {
        order: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        justify-content: center;
        padding: 0 0 4px;
    }

    .main-image-container {
        min-height: auto;
        aspect-ratio: 4 / 5;
    }

    .main-image {
        max-height: 70vh;
    }

    .product-description-section {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container,
    .container_na {
        width: calc(100% - 28px);
    }

    .header-inner {
        padding: 12px 14px;
        gap: 12px;
    }

    .logo {
        font-size: 12px;
    }

    .product-detail {
        padding-top: 18px;
    }

    .main-image-container {
        padding: 12px;
    }

    .thumb {
        width: 58px;
        height: 74px;
    }

    .product-title {
        font-size: 22px;
        line-height: 1.18;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .related-products .app-product-image {
        height: auto;
        flex-basis: auto;
        aspect-ratio: 1 / 1.2;
    }

    .related-products .app-product-copy {
        padding: 7px 8px 5px;
    }

    .related-products .app-product-copy h3,
    .related-products .app-price strong {
        font-size: 14px;
    }

    .related-products .app-product-foot {
        padding: 0 8px 7px;
    }

    .main-desktop-form {
        grid-template-columns: 1fr;
    }
}

/* Nihao-inspired desktop product workspace. Mobile keeps the established layout. */
@media (min-width: 901px) {
    .desktop-product-breadcrumb {
        display: block;
        width: min(1440px, calc(100% - 48px));
        min-height: 42px;
        margin: 0 auto;
        color: #666;
        font-size: 12px;
        font-weight: 400;
    }

    .desktop-product-breadcrumb ol {
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 10px;
        list-style: none;
    }

    .desktop-product-breadcrumb li {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .desktop-product-breadcrumb li + li::before {
        content: ">";
        color: #aaa;
    }

    .desktop-product-breadcrumb a:hover,
    .desktop-product-breadcrumb a:focus-visible {
        color: #111;
        outline: 0;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .desktop-product-breadcrumb [aria-current="page"] {
        color: #292929;
    }

    .product-info .breadcrumb {
        display: none;
    }
}

@media (min-width: 981px) {
    .product-detail {
        padding: 18px 0 0;
        background: #fff;
    }

    .product-detail > .container {
        width: 100%;
        max-width: none;
        padding: 0 28px 0 14px;
    }

    .product-wrapper {
        grid-template-columns: minmax(560px, 1.16fr) minmax(440px, .84fr);
        gap: clamp(28px, 3.2vw, 58px);
        height: calc(100vh - 160px);
        min-height: 620px;
        overflow: hidden;
    }

    .product-left-workspace {
        min-width: 0;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior-y: auto;
        scrollbar-width: none;
    }

    .product-left-workspace {
        display: block;
        padding-right: 8px;
    }

    .product-gallery-sharing {
        display: flex;
    }

    .gallery-container {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        top: auto;
    }

    .thumbnail-column {
        gap: 12px;
        max-height: calc(100vh - 136px);
        scrollbar-width: thin;
    }

    .thumb {
        width: 80px;
        height: 104px;
        border-radius: 8px;
        opacity: 1;
    }

    .thumb.active,
    .thumb:hover {
        outline: 2px solid #111;
        outline-offset: -2px;
    }

    .main-image-container {
        min-height: calc(100vh - 136px);
        max-height: 850px;
        padding: 12px;
        border-radius: 10px;
        background: #f7f7f7;
    }

    .main-image {
        width: 100%;
        height: 100%;
        max-height: calc(100vh - 160px);
        object-fit: contain;
        cursor: default;
    }

    .nav {
        width: 34px;
        height: 74px;
        border-radius: 9px;
        background: rgba(255, 255, 255, .94);
        color: #777;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    }

    .product-info {
        position: relative;
        min-width: 0;
        height: 100%;
        padding: 0 8px 0 0;
        display: block;
        overflow: hidden;
    }

    .product-info-scroll {
        min-width: 0;
        min-height: 0;
        height: 100%;
        padding: 18px 0 110px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior-y: auto;
        scrollbar-width: none;
    }

    .product-left-workspace::-webkit-scrollbar,
    .product-info-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .breadcrumb { order: 1; font-size: 12px; font-weight: 450; letter-spacing: 0; text-transform: none; }
    .product-title { order: 2; margin: 10px 0 4px; font-size: clamp(24px, 2vw, 32px); font-weight: 550; line-height: 1.3; }
    .extra-info { order: 3; margin: 8px 0 4px; }
    .price-wrapper { order: 4; margin: 12px 0 2px; }
    .promo-countdown { order: 5; margin: 6px 0; }
    .color-selector { order: 6; }
    .size-section { order: 7; }
    .desktop-variant-purchase { order: 8; }
    .stock-status { order: 9; }
    .short-description { order: 10; }
    .desktop-purchase-dock { order: 11; }
    .product-actions { order: 12; }
    .shipping-window { order: 13; }

    .sku-copy-row {
        padding: 0;
        background: transparent;
        gap: 6px;
        font-size: 12px;
    }

    .sku-label {
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }

    .sku-value { color: #777; font-weight: 400; }
    .product-title { font-size: clamp(18px, 1.35vw, 22px); }
    .current-price { font-size: 25px; font-weight: 560; }

    .color-selector,
    .size-section {
        margin: 20px 0 0;
        padding-top: 16px;
        border-top: 1px solid #ededed;
    }

    .color-selector {
        display: none;
    }

    .size-section {
        display: none;
    }

    .desktop-variant-purchase {
        display: block;
        margin-top: 20px;
        border-top: 1px solid #ededed;
    }

    .desktop-variant-purchase__heading,
    .desktop-variant-row {
        display: grid;
        grid-template-columns: 58px minmax(120px, 1fr) minmax(100px, auto) 132px;
        align-items: center;
        gap: 12px;
    }

    .desktop-variant-purchase__heading {
        grid-template-columns: minmax(190px, 1fr) minmax(100px, auto) 132px;
        padding: 13px 0 9px;
        color: #666;
        font-size: 13px;
        font-weight: 600;
    }

    .desktop-variant-purchase__heading span:first-child {
        grid-column: 1;
    }

    .desktop-variant-row {
        min-height: 82px;
        padding: 10px 0;
        border-top: 1px solid #ededed;
    }

    .desktop-variant-row img {
        width: 58px;
        height: 62px;
        border-radius: 5px;
        object-fit: cover;
        cursor: zoom-in;
    }

    .desktop-variant-row__name {
        color: #777;
        font-size: 13px;
    }

    .desktop-variant-row strong {
        color: #111;
        font-size: 13px;
        white-space: nowrap;
    }

    .desktop-row-quantity {
        display: grid;
        grid-template-columns: 38px 54px 38px;
        overflow: hidden;
        border: 1px solid #dedede;
        border-radius: 999px;
        background: #fff;
    }

    .desktop-row-qty-btn,
    .desktop-row-quantity-input {
        height: 38px;
        border: 0;
        background: #fff;
        text-align: center;
    }

    .desktop-row-qty-btn {
        cursor: pointer;
        font-size: 18px;
    }

    .color-selector label,
    .size-section label,
    .quantity-wrapper label {
        margin-bottom: 12px;
        color: #333;
        font-size: 15px;
        font-weight: 550;
        letter-spacing: 0;
        text-transform: none;
    }

    .color-options { gap: 12px; }
    .color-card { width: 84px; padding: 0; background: transparent; }
    .color-card img { width: 84px; height: 104px; border-radius: 6px; }
    .color-card.active, .color-card:hover { outline: 2px solid #111; outline-offset: 3px; }
    .color-card span { margin-top: 7px; font-size: 12px; }

    .size-option {
        min-width: 56px;
        height: 38px;
        border: 1px solid #dedede;
        border-radius: 4px;
        background: #fff;
    }

    .stock-status { margin: 16px 0 0; }
    .in-stock, .out-stock { padding-left: 0; background: transparent; font-weight: 500; }

    .desktop-purchase-dock {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 12;
        display: grid;
        grid-template-columns: 58px minmax(260px, 1fr);
        align-items: end;
        gap: 14px;
        margin: 0;
        padding: 14px 10px 16px;
        width: 100%;
        min-height: 86px;
        align-self: end;
        border-top: 1px solid #ededed;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 22px rgba(0, 0, 0, .045);
        backdrop-filter: blur(8px);
    }

    .desktop-purchase-dock.is-viewport-pinned {
        position: fixed;
        right: auto;
        bottom: 0;
        left: var(--dock-left);
        width: var(--dock-width);
    }

    .product-info-scroll > .quantity-wrapper,
    .desktop-purchase-dock .quantity-wrapper {
        display: none;
    }

    .desktop-purchase-dock .quantity-wrapper label {
        margin-bottom: 7px;
    }

    .product-dock-wishlist {
        width: 58px;
        height: 56px;
        border: 0;
        border-radius: 4px;
        background: #fff;
        color: #555;
        cursor: pointer;
        font-size: 26px;
    }

    .product-dock-wishlist:hover,
    .product-dock-wishlist.is-active {
        color: #a843d2;
    }

    .quantity-box {
        border: 1px solid #dedede;
        border-radius: 999px;
        background: #fff;
        overflow: hidden;
    }

    .qty-btn, .quantity-input { height: 38px; background: #fff; }

    .add-to-cart-btn {
        min-height: 56px;
        border-radius: 4px;
        background: #a843d2;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 450;
        box-shadow: none;
    }

    .add-to-cart-btn:hover {
        background: #9238bc;
    }

    .add-to-cart-btn:disabled {
        cursor: wait;
        opacity: .7;
    }

    .product-actions {
        margin: 12px 0 0;
        gap: 10px;
    }

    .product-action-btn {
        min-height: 40px;
        padding: 0 4px;
        background: transparent;
        font-weight: 400;
    }

    .product-action-btn:first-child i { font-size: 24px; }

    .shipping-window {
        margin-top: 12px;
        padding: 14px 0;
        border-top: 1px solid #ededed;
        background: transparent;
    }

    .product-description-section {
        width: 100%;
        margin-top: 38px;
        padding: 34px 0 48px;
    }
}
