/* Product Detail Page Styles */

body {
    background-color: #FFFDF8;
}

.product-detail-container {
    padding-top: 2rem;
    padding-bottom: 8rem;
}

/* --- Left Column: Gallery --- */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    width: 100%;
    background-color: transparent;
    overflow: hidden;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: opacity 0.3s ease;
}

.thumbnail-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.thumbnail-item {
    flex: 0 0 calc(16.666% - 7px);
    /* 6 thumbnails */
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #100F0F;
}

/* --- Right Column: Info --- */
.product-info-panel {
    padding-left: 2.5rem;
}

@media (max-width: 1080px) {
    .product-detail-container .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-info-panel {
        padding-left: 0;
        margin-top: 2.5rem;
    }
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #100F0F;
    margin-bottom: 0.25rem;
}

.detail-status {
    font-size: 0.875rem;
    color: #616161;
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #100F0F;
    margin-bottom: 1.5rem;
}

.detail-divider {
    border-top: 1px solid #B8B8B8;
    margin: 0.5rem 0 1.5rem 0;
    opacity: 1;
}

/* Swatches */
.picker-section {
    margin-bottom: 1.5rem;
}

.picker-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #100F0F;
    margin-bottom: 0.75rem;
}

.picker-label span {
    font-weight: 400;
    color: #100F0F;
    margin-left: 0.25rem;
}

.color-swatches {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s ease;
}

.color-btn.active {
    border-color: #100F0F;
}

.color-fill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #616161;
    display: block;
}

/* Color definitions */
.bg-white-swatch {
    background-color: #FFFFFF;
}

.bg-gray-swatch {
    background-color: #B2B2B2;
}

.bg-blue-swatch {
    background-color: #E2F4F5;
}

.bg-green-swatch {
    background-color: #DCECD7;
}

.bg-black-swatch {
    background-color: #111111;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #B8B8B8;
    background-color: transparent;
    color: #100F0F;
    font-size: 0.8125rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #100F0F;
}

.size-btn.active {
    background-color: #100F0F;
    color: #FFFFFF;
    border-color: #100F0F;
}

/* Size Guide */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #100F0F;
    font-size: 0.8125rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.size-guide-link:hover {
    color: #616161;
}

.size-guide-link i {
    font-size: 0.9rem;
}

/* Purchase Actions */
.purchase-actions {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

@media (max-width: 767.98px) {
    .purchase-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: center;
    }

    .purchase-actions > .position-relative {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .btn-add-cart,
    .btn-buy-now {
        height: 50px;
        font-size: 0.85rem;
        padding: 0 4px;
    }
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #B8B8B8;
    border-radius: 50rem;
    height: 48px;
    padding: 0 16px;
    background-color: transparent;
}

.quantity-btn {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #100F0F;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    width: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #100F0F;
    outline: none;
}

/* Buy buttons */
.btn-add-cart {
    flex: 1;
    height: 48px;
    border-radius: 50rem;
    border: 1px solid transparent;
    background-color: #E3E3E3;
    color: #100F0F;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #100F0F;
    color: #FFFFFF;
}

.btn-buy-now {
    flex: 1;
    height: 48px;
    border-radius: 50rem;
    border: 1px solid transparent;
    background-color: #100F0F;
    color: #FFFDF8;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background-color: #FFFDF8;
    color: #100F0F;
    border-color: #100F0F;
}

.policy-box {
    border: 1px solid #B8B8B8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.policy-icon {
    font-size: 1.1rem;
    color: #100F0F;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.policy-text {
    font-size: 0.8125rem;
    color: #100F0F;
    line-height: 1.4;
}

/* Accordion */
.detail-accordion {
    border-top: 1px solid #B8B8B8;
}

.detail-accordion:last-of-type {
    border-bottom: 1px solid #B8B8B8;
    margin-bottom: 3rem;
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #100F0F;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-trigger i {
    transition: transform 0.3s ease;
}

.accordion-trigger.active i {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-panel.show {
    max-height: 500px;
    /* arbitrary height to slide down */
}

.accordion-body {
    padding-bottom: 1.25rem;
}

.accordion-body ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.accordion-body li {
    font-size: 0.95rem;
    font-weight: 300;
    color: #100F0F;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.accordion-body li::marker {
    color: #100F0F;
}

/* --- Similar Products Section --- */
.similar-products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #100F0F;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.similar-slider-container {
    position: relative;
    padding: 0;
}

.similar-slider-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.similar-slider-track::-webkit-scrollbar {
    display: none;
}

.similar-slider-item {
    flex: 0 0 calc(20% - 6.4px);
    /* 5 items on desktop */
}

@media (max-width: 1080px) {
    .similar-slider-item {
        flex: 0 0 calc(33.333% - 5.3px);
        /* 3 items */
    }
}

@media (max-width: 767.98px) {
    .similar-slider-item {
        flex: 0 0 calc(50% - 4px);
        /* 2 items */
    }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 0;
    color: #B8B8B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background-color: #f8f8f8;
    color: #100F0F;
}

.slider-arrow i {
    font-size: 0.75rem;
}

.slider-arrow-left {
    left: 0;
}

.slider-arrow-right {
    right: 0;
}