.single-product-page {
    padding: 18px 0 56px;
}

.single-product-hero {
    padding-bottom: 26px;
}

.single-product-shell {
    padding: 30px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.14), rgba(78, 205, 196, 0.12), rgba(255, 107, 107, 0.1));
    box-shadow: 0 18px 34px rgba(90, 97, 138, 0.1);
}

.product-gallery-card,
.product-detail-card,
.info-card,
.related-card {
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(90, 97, 138, 0.1);
}

.product-gallery-card,
.product-detail-card {
    border-radius: 30px;
    padding: 20px;
}

.product-gallery-layout {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.product-thumb-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-thumb-viewport {
    overflow: hidden;
}

.product-thumb-column {
    max-height: 452px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: none;
}

.product-thumb-column::-webkit-scrollbar {
    display: none;
}

.thumb-nav-btn {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 247, 238, 0.9);
    color: #2f3550;
    box-shadow: 0 10px 20px rgba(90, 97, 138, 0.08);
}

.product-main-image {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 247, 238, 0.9);
}

.product-main-image img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.product-thumb {
    border: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 247, 238, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-thumb.active {
    box-shadow: inset 0 0 0 2px #ff6b6b;
}

.product-thumb:hover {
    transform: translateY(-2px);
}

.product-thumb img {
    width: 100%;
    height: 86px;
    object-fit: contain;
    display: block;
}

.detail-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-detail-card h1,
.related-head h2,
.info-card h3 {
    font-family: 'Baloo 2', cursive;
    color: #2f3550;
}

.product-detail-card h1 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.detail-rating span {
    color: #2f3550;
    font-weight: 800;
}

.detail-rating i {
    color: #ffb703;
}

.detail-rating small,
.detail-copy {
    color: #6f7693;
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.detail-price strong {
    font-size: 2rem;
    color: #2f3550;
}

.detail-price small {
    color: #6f7693;
    font-weight: 700;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(78, 205, 196, 0.14);
    color: #2f3550;
    font-weight: 800;
}

.detail-copy {
    margin-bottom: 22px;
    line-height: 1.75;
}

.detail-block + .detail-block {
    margin-top: 20px;
}

.detail-block h3 {
    margin-bottom: 12px;
    font-family: 'Baloo 2', cursive;
    color: #2f3550;
}

.option-row,
.color-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-pill {
    border: 0;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(47, 53, 80, 0.06);
    color: #2f3550;
    font-weight: 800;
}

.option-pill.active {
    background: linear-gradient(90deg, #ff6b6b, #ff8b8b);
    color: #ffffff;
}

.color-dot {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 5px 12px rgba(90, 97, 138, 0.1);
}

.color-dot.active {
    transform: scale(1.04);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 3px #2f3550, 0 8px 18px rgba(90, 97, 138, 0.14);
}

.color-dot:focus-visible {
    transform: scale(1.04);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 3px #2f3550, 0 8px 18px rgba(90, 97, 138, 0.14);
}

.color-dot.coral { background: #ffb6b9; }
.color-dot.mint { background: #b8f2e6; }
.color-dot.sun { background: #ffe66d; }
.color-dot.lilac { background: #cdb4ff; }

.purchase-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.qty-box {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(47, 53, 80, 0.06);
    overflow: hidden;
}

.qty-box button,
.qty-box span {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #2f3550;
    font-weight: 800;
}

.buy-btn {
    border: 0;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
}

.add-cart-btn {
    background: linear-gradient(90deg, #ff6b6b, #ff8b8b);
    color: #ffffff;
}

.buy-now-btn {
    background: linear-gradient(90deg, #4ecdc4, #7ce1d9);
    color: #ffffff;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.meta-box {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 247, 238, 0.9);
    color: #2f3550;
    font-weight: 800;
}

.meta-box i {
    color: #ff6b6b;
}

.product-extra-section,
.related-products-section {
    padding-top: 10px;
}

.related-products-section {
    padding-top: 28px;
}

.info-card {
    height: 100%;
    padding: 24px;
    border-radius: 28px;
}

.info-card h3 {
    margin-bottom: 14px;
}

.info-card ul {
    margin: 0;
    padding-left: 18px;
    color: #6f7693;
    line-height: 1.8;
}

.related-head {
    margin-bottom: 24px;
}

.related-head h2 {
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.related-card {
    height: 100%;
    padding: 14px;
    border-radius: 26px;
}

.related-image-wrap {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.related-image-wrap img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    display: block;
}

.related-content {
    padding: 16px 4px 4px;
}

.related-content span {
    display: inline-block;
    margin-bottom: 8px;
    color: #6f7693;
    font-size: 0.82rem;
    font-weight: 700;
}

.related-content h3 {
    margin: 0 0 10px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    color: #2f3550;
}

.related-content strong {
    color: #2f3550;
}

.coral-bg { background: linear-gradient(180deg, rgba(253, 226, 228, 0.9), #ffffff 68%); }
.mint-bg { background: linear-gradient(180deg, rgba(217, 248, 244, 0.92), #ffffff 68%); }
.sun-bg { background: linear-gradient(180deg, rgba(255, 242, 184, 0.92), #ffffff 68%); }
.lilac-bg { background: linear-gradient(180deg, rgba(233, 221, 255, 0.92), #ffffff 68%); }

@media (max-width: 991px) {
    .single-product-shell {
        padding: 22px;
        border-radius: 28px;
    }

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

    .product-main-image {
        min-height: 380px;
    }
}

@media (max-width: 767px) {
    .single-product-page {
        padding: 12px 0 40px;
    }

    .single-product-shell {
        padding: 16px;
        border-radius: 22px;
    }

    .product-gallery-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-thumb-carousel {
        order: 2;
    }

    .product-thumb-viewport {
        overflow-x: auto;
    }

    .product-thumb-column {
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
    }

    .thumb-nav-btn {
        display: none;
    }

    .product-gallery-card,
    .product-detail-card,
    .info-card,
    .related-card {
        border-radius: 22px;
    }

    .product-main-image {
        min-height: 240px;
        padding: 12px;
        border-radius: 18px;
    }

    .product-main-image img {
        max-height: 220px;
    }

    .product-thumb img {
        height: 62px;
    }

    .product-detail-card h1 {
        font-size: 1.8rem;
    }

    .detail-price strong {
        font-size: 1.5rem;
    }

    .purchase-row {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .related-image-wrap {
        min-height: 150px;
        padding: 10px;
    }

    .related-image-wrap img {
        max-height: 130px;
    }

    .related-content h3 {
        font-size: 0.98rem;
    }
}
