.product-white-layout {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.product-white-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    align-items: start;
}

.product-gallery-column {
    position: relative;
    background: #f8f8f8;
    min-height: 100vh;
}

.product-gallery-vertical {
    width: 100%;
}

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

.gallery-image-item {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   RIGHT COLUMN - PRODUCT INFO (STICKY)
   ============================================ */

/* Ensure no ancestor clips the sticky context */
.catalog-product-view .page-main,
.catalog-product-view .columns,
.catalog-product-view .column.main {
    overflow: visible;
}

.product-info-column {
    position: sticky;
    top: var(--header-height, 60px);
    height: calc(100vh - var(--header-height, 60px));
    overflow-y: auto;
    background: #ffffff;
    padding: 3rem 4rem;
}

.product-info-column::-webkit-scrollbar {
    width: 4px;
}

.product-info-column::-webkit-scrollbar-track {
    background: transparent;
}

.product-info-column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.product-info-column::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.product-info-header {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    color: #000;
}

.price-box {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
}

.product-short-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.product-attributes-list {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.product-attribute-item {
    display: flex;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-attribute-item .attribute-label {
    text-transform: uppercase;
    font-weight: 400;
    color: #000;
    min-width: 90px;
}

.product-attribute-item .attribute-value {
    color: #000;
    font-weight: 300;
}

.product-options-wrapper {
    margin-bottom: 2rem;
}

.swatch-attribute {
    margin-bottom: 2rem;
}

.swatch-attribute-label {
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    color: #000;
}

.swatch-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.swatch-option {
    min-width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #000;
    background: #fff;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 400;
    color: #000;
    position: relative;
    letter-spacing: 0.05em;
}

.swatch-option:hover {
    background: #f5f5f5;
}

.swatch-option.selected {
    border-color: #000;
    background: #000;
    color: #fff;
    border-width: 2px;
}

.swatch-option.text {
    min-width: auto;
    padding: 0 1.25rem;
    height: 3.5rem;
}

.swatch-option.color {
    border-radius: 0;
    width: 3.5rem;
}

.product-add-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-addto-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.action.towishlist,
.action.tocompare {
    background: none;
    border: none;
    padding: 0;
    color: #000;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.action.towishlist:hover,
.action.tocompare:hover {
    opacity: 0.6;
}

.action.towishlist svg,
.action.tocompare svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.product-options-wrapper .actions {
    display: block;
    width: 100%;
}

.product-options-wrapper .tocart {
    width: 100%;
    min-height: 3.25rem;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.product-options-wrapper .tocart:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.product-options-wrapper .tocart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e0e0e0;
    color: #999;
    border-color: #e0e0e0;
}

.product-content-tabs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.content-link {
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: left;
    width: 100%;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.content-link:hover {
    color: #666;
}

/* Native <dialog> modal — full-width two-column, top layer via showModal() */
dialog.product-modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    inset: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

dialog.product-modal::backdrop {
    background: transparent;
}

/* Two-column grid matching the product page layout */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

/* Left column — 10% black overlay over the image area (click to close) */
.product-modal-backdrop-panel {
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Right column — white content panel */
dialog.product-modal .product-modal-content {
    background: #fff;
    height: 100%;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.modal-title {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #000;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #666;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 2rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modal-body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-body h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #000;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.modal-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
}

.modal-body strong {
    font-weight: 600;
    color: #000;
}

.modal-body a {
    color: #000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-body a:hover {
    color: #666;
}

@media (max-width: 1024px) {
    .product-white-container {
        grid-template-columns: 1fr;
    }

    .product-gallery-column {
        min-height: auto;
    }

    .product-info-column {
        position: relative;
        height: auto;
        overflow-y: visible;
        padding: 3rem 2rem;
    }

    .gallery-images-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Mobile: full-width modal, hide left overlay panel */
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-backdrop-panel {
        display: none;
    }

    dialog.product-modal .product-modal-content {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .product-info-column {
        padding: 2rem 1.5rem;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .gallery-images-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 0.875rem;
    }
}

/* ============================================
   PRODUCT LABELS (White_Labels module)
   ============================================ */

.styl-label {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.4;
    border-style: solid;
    /* bg-color, color, border-color, border-width are set inline per label */
}

/* rect — sharp corners (default) */
.styl-label--rect {
    border-radius: 0;
}

/* rect-rounded — soft rectangle */
.styl-label--rect-rounded {
    border-radius: 3px;
}

/* pill — fully rounded capsule */
.styl-label--pill {
    border-radius: 9999px;
}

/* tag — arrow-shaped label with a pointed right edge */
.styl-label--tag {
    border-radius: 0;
    padding-right: 1rem;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

html {
    overflow-x: clip;
}

[x-cloak] {
    display: none !important;
}
