/* Product detail page */

/*
 * Fixed navbar clearance + gap below nav (not navbar height itself).
 */
.sk-main > .sk-product-page:first-child {
    padding-top: calc(var(--sk-navbar-height) + 50px) !important;
}

.sk-product-page__title {
    font-family: var(--sk-font-heading, inherit);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.sk-product-page__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #157347;
    margin-bottom: 0.25rem;
}

.sk-product-page__compare {
    font-size: 0.9375rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.sk-product-page__meta-line {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.sk-product-page__stock {
    font-weight: 500;
}

.sk-product-page__stock.is-in-stock {
    color: #888;
}

.sk-product-page__stock.is-out-of-stock {
    color: #b02a37;
}

.sk-product-page__short-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Gallery — centered image, thumbnails below */
.sk-product-gallery__stage {
    position: relative;
    /* Side gutters so chevrons sit at the image edge without covering the photo */
    padding-inline: 2.75rem;
}

.sk-product-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 380px;
    padding: 0.75rem;
    margin: 0;
    background: #f7f7f7;
    border: 1px solid #eee;
    cursor: zoom-in;
    text-align: center;
}

.sk-product-gallery__main:hover .sk-product-gallery__zoom-hint {
    opacity: 1;
}

.sk-product-gallery__hero {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    pointer-events: none;
}

.sk-product-gallery__zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ddd;
    color: #555;
    font-size: 0.75rem;
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.sk-product-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sk-product-gallery__nav:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.sk-product-gallery__nav:active {
    transform: translateY(-50%) scale(0.96);
}

/* Parked in the stage gutter — edge of the image frame, still on-screen */
.sk-product-gallery__nav--prev {
    left: 0.15rem;
}

.sk-product-gallery__nav--next {
    right: 0.15rem;
}

.sk-product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
}

.sk-product-gallery__thumb {
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
    padding: 0.25rem;
    border: 2px solid transparent;
    background: #f7f7f7;
    cursor: pointer;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-product-gallery__thumb.is-active {
    border-color: #1a1a1a;
}

.sk-product-gallery__thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
}

/* Fullscreen gallery lightbox */
body.sk-lightbox-open {
    overflow: hidden;
}

.sk-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-gallery-lightbox[hidden] {
    display: none !important;
}

.sk-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.sk-gallery-lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3.5rem 4rem;
    pointer-events: none;
}

.sk-gallery-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    user-select: none;
}

.sk-gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.sk-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.sk-gallery-lightbox__nav--prev {
    left: 1rem;
}

.sk-gallery-lightbox__nav--next {
    right: 1rem;
}

.sk-gallery-lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
}

/* Order box — H2, options, qty, buttons, social proof */
.sk-product-order {
    margin-top: 0.5rem;
}

.sk-buy-panel {
    --sk-theme-orange: #8B4513;
    --sk-order-border: color-mix(in srgb, var(--sk-theme-orange) 38%, #fff);
    margin-top: 0.25rem;
    padding: 1.15rem 1.25rem 1rem;
    background: #f3f3f3;
    border: 5px solid #e0c4a8;
    border: 5px solid color-mix(in srgb, var(--sk-theme-orange) 38%, #fff);
    border-radius: 0;
}

.sk-buy-panel__title {
    font-family: var(--sk-font-heading, inherit);
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.sk-product-options {
    margin-bottom: 0.85rem;
}

.sk-product-options__label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.45rem;
}

/* Gray order row — qty + buttons */
.sk-buy-panel__order-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.sk-buy-panel__field {
    margin-bottom: 0;
}

.sk-buy-panel__field--qty {
    flex: 0 0 auto;
}

.sk-qty-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.sk-qty-control__btn {
    width: 2.25rem;
    border: 0;
    background: #eee;
    color: #444;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.sk-qty-control__btn:hover {
    background: #e2e2e2;
}

.sk-qty-control__input {
    width: 2.75rem;
    border: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.45rem 0;
    -moz-appearance: textfield;
}

.sk-qty-control__input::-webkit-outer-spin-button,
.sk-qty-control__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sk-buy-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex: 1 1 auto;
    margin-top: 0;
}

.sk-buy-panel__btn {
    flex: 1 1 auto;
    min-width: 9rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 4px;
}

.sk-buy-panel__btn--online {
    background-color: var(--bs-primary, #8B4513) !important;
    border-color: var(--bs-primary, #8B4513) !important;
    color: #fff !important;
}

.sk-buy-panel__btn--online:hover:not(:disabled) {
    background-color: #723a0f !important;
    border-color: #723a0f !important;
    color: #fff !important;
}

.sk-buy-panel__btn--whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.sk-buy-panel__btn--whatsapp:hover,
.sk-buy-panel__btn--whatsapp:focus {
    background-color: #20bd5a !important;
    border-color: #20bd5a !important;
    color: #fff !important;
}

.sk-buy-panel__proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    color: #555;
}

.sk-buy-panel__proof-delivery {
    font-weight: 600;
    color: #555;
}

.sk-buy-panel__proof-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.sk-buy-panel__stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #f5b301;
    font-size: 0.9rem;
    line-height: 1;
}

.sk-buy-panel__stars .fa-star {
    font-size: 0.9rem;
}

.sk-buy-panel__proof-score {
    color: #777;
}

.sk-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.sk-color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #444;
    margin: 0;
}

.sk-color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sk-color-swatch__dot {
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sk-color-swatch.is-selected .sk-color-swatch__dot {
    border-color: #1a1a1a;
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.sk-color-swatch__name {
    font-size: 0.75rem;
}

.sk-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sk-size-chip {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.sk-size-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sk-size-chip span {
    display: inline-block;
    min-width: 3rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.2;
}

.sk-size-chip.is-selected span,
.sk-size-chip input:checked + span {
    color: #1a1a1a;
    border-color: #8B4513;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(139, 69, 19, 0.35);
}

.sk-size-chip:hover span {
    border-color: #bbb;
}

/* Full-width product SEO section */
.sk-product-seo {
    background: #fafafa;
}

.sk-product-seo__inner {
    max-width: 100%;
    color: #555;
    font-size: 0.875rem;
    line-height: 1.75;
}

.sk-product-seo__inner h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

.sk-product-seo__inner h2:first-child {
    margin-top: 0;
}

.sk-product-seo__inner h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 1.25rem 0 0.5rem;
}

.sk-product-seo__inner p {
    margin-bottom: 0.85rem;
}

.sk-product-seo__inner ul,
.sk-product-seo__inner ol {
    margin-bottom: 0.85rem;
    padding-left: 1.25rem;
}

/* Checkout */
.sk-checkout-summary {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1.25rem;
}

.sk-checkout-summary__img {
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.sk-checkout-summary__price {
    font-weight: 700;
    color: #157347;
    font-size: 1.125rem;
}

.sk-checkout-form-wrap {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .sk-product-gallery__main {
        min-height: 580px;
        height: 580px;
    }

    .sk-product-gallery__hero {
        max-height: 540px;
    }
}

@media (max-width: 991.98px) {
    .sk-product-gallery__stage {
        padding-inline: 2.15rem;
    }

    .sk-product-gallery__main {
        min-height: 300px;
        height: auto;
    }

    .sk-product-gallery__hero {
        max-height: 320px;
    }

    .sk-product-gallery__nav {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.875rem;
    }

    .sk-product-gallery__nav--prev {
        left: 0.1rem;
    }

    .sk-product-gallery__nav--next {
        right: 0.1rem;
    }

    .sk-buy-panel__order-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sk-buy-panel__actions {
        flex-direction: column;
    }

    .sk-buy-panel__btn {
        width: 100%;
    }

    .sk-gallery-lightbox__stage {
        padding: 3rem 2.75rem;
    }

    .sk-gallery-lightbox__nav--prev {
        left: 0.35rem;
    }

    .sk-gallery-lightbox__nav--next {
        right: 0.35rem;
    }
}
