body, html {
    overflow-x: hidden;
}

/* ===== Product Details ===== */
.breadcrumb {
    font-size: 13px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 14px !important;
    padding: 0 12px;
    border: 1px solid #eee7de;
    border-radius: 5px;
    background: #fcfaf7;
}

.product-breadcrumb .breadcrumb {
    align-items: center;
    gap: 2px;
    width: 100%;
}

.product-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #8b8177;
    line-height: 1.2;
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 8px;
    padding-left: 6px;
    color: #c3b6a8;
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-size: 10px;
    font-weight: 900;
}

.product-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8b8177 !important;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: #a4774d !important;
}

.product-breadcrumb a .fa-house {
    color: #a4774d;
    font-size: 11px;
}

.product-breadcrumb .breadcrumb-item.active {
    max-width: min(52vw, 520px);
    overflow: hidden;
    color: #302a25;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb a,
.breadcrumb-item.active {
    font-size: 13px;
}

.col-lg-4 h1 {
    font-size: 22px;
    line-height: 1.4;
}

/* SKU Copy Button */
.copy-btn {
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.copy-btn i {
    transition: all 0.3s ease;
}

.add-to-cart, .trial-room{
    background-color: var(--primary);
    color: white;
    border: var(--primary) solid 1px;
    padding: 12px 28px;
    border-radius: 0px;
}
.check-availability {
    font-size: 14px;
}

.trial-room {
    font-size: 14px;
}

.add-to-cart:hover,
.trial-room:hover {
    background-color: var(--secondary);
    color: #fff;
}

.product-description {
    color: #555;
    font-size: 0.95rem;
}

/* Simple Collapse Style - No extra color */
.custom-collapse {
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.collapse-header {
    padding: 10px 0;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapse-content {
    display: none;
    color: #555;
    font-size: 0.95rem;
}

.collapse-content.show {
    display: block;
}

/* Product Image Viewer */
.product-image-viewer {
    min-height: 520px;
}

.thumbnails {
    width: 78px;
    flex-shrink: 0;
}

.thumbnail {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

/* Main Image Area */
.main-image-wrapper {
    max-width: 100%;
}

.main-image-container {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;           /* Better proportion */
    border: 1px solid #eee;
    cursor: zoom-in;
    background: #f9f9f9;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    user-select: none;
    pointer-events: none;
}

.zoomed {
    cursor: grabbing;
}



/* Check Store Availability Button - Improved */
.check-availability {
    font-size: 15px;
    font-weight: 500;
    background-color: #ffe6cc;
    border: 1px solid var(--primary);
    color: #333;
    border-radius: 0px;
    transition: all 0.3s ease;
    text-align: left;
}

.check-availability:hover {
    background-color: #ffe6cc;
    border-color: var(--primary);
    color: #000;
}

.check-availability i {
    font-size: 1.1rem;
}

/* Size Chart Button */
.text-orange {
    color: var(--primary) !important;
}

.text-orange:hover {
    color: var(--secondary) !important;
}

/* Size Chart Modal */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#sizeChartModal .table {
    min-width: 500px; /* Forces horizontal scroll on small screens */
    margin-bottom: 0;
}

#sizeChartModal th,
#sizeChartModal td {
    padding: 12px 10px;
    font-size: 14.5px;
    white-space: nowrap;
}

#sizeChartModal th {
    font-weight: 600;
    color: #333;
}

/* Check Store Availability */

.check-store-modal p {
    margin-bottom: 6px;
}

.shop-info .table-responsive {
    max-height: 350px;
    overflow-y: auto;
}

.size-list label {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    font-weight: 500;
}
.size-list input[type="radio"] {
    margin-right: 12px;
    accent-color: #6c63ff;
}
.shop-info {
    display: none;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}
.shop-info.show {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .check-store-modal .custom-modal {
        max-width: 620px;
        width: 100%;
    }
}



@media (max-width: 576px) {
    #sizeChartModal .modal-xl {
        max-width: 95%;
    }
}

/* Buttons Responsive */

@media (min-width: 992px) {

    .buttons-container .col-lg-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 991px) {
    .buttons-container .col-12 {
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .thumbnail {
        height: 90px;
    }
    .product-image-viewer {
        min-height: 400px;
    }
}

/* Compact premium product details layout */
.container.pb-1 > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

.container.pb-1 {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
}

.container.pb-1 > nav {
    margin-bottom: 8px !important;
}

.container.pb-1 .col-lg-5 {
    padding: 12px 14px;
    margin-top: 0;
    align-self: flex-start;
    border: 1px solid #eee7de;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(42, 36, 27, .06);
}

.container.pb-1 .col-lg-5 h1 {
    font-size: 16px;
    line-height: 1.25;
    color: #202725;
    letter-spacing: .01em;
    margin-bottom: 6px !important;
}

.container.pb-1 .col-lg-5 > .d-flex.align-items-center.gap-2.my-2 {
    padding: 6px 0;
    margin: 4px 0 !important;
    border-top: 1px solid #eee7de;
    border-bottom: 1px solid #eee7de;
}

.container.pb-1 .col-lg-5 > .d-flex.align-items-center.gap-2.my-2 .fs-6 {
    color: #303633;
    font-size: 19px !important;
}

.container.pb-1 .col-lg-5 > p.fw-medium {
    margin-bottom: 6px !important;
    color: #6c726e;
}

.container.pb-1 .mb-3 {
    margin-bottom: 10px !important;
}

.container.pb-1 .size-btn {
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    border-color: #ded8ce;
    border-radius: 999px;
    background: #fff;
}

.container.pb-1 .size-btn.active,
.container.pb-1 .size-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.product-image-viewer {
    min-height: 0;
    gap: 10px !important;
}

.thumbnails {
    width: 150px;
    margin-left: 12px;
    gap: 8px !important;
}

.thumbnail {
    height: 140px;
    border-radius: 6px;
    border: 1px solid #e7e0d6;
}

.thumbnail:hover,
.thumbnail.active {
    border-width: 2px;
    box-shadow: 0 3px 10px rgba(255, 102, 0, .14);
}

.main-image-container {
    max-width: 460px;
    border: 1px solid #e7e0d6;
    border-radius: 8px;
    background: #faf9f6;
}

.buttons-container {
    margin-left: 0;
    margin-right: 0;
}

.buttons-container.row {
    margin-top: 4px !important;
}

.add-to-cart,
.trial-room,
.check-availability {
    border-radius: 6px;
    font-size: 13px;
}

.add-to-cart,
.trial-room {
    min-height: 36px;
    padding: 7px 12px !important;
}

.check-availability {
    min-height: 36px;
    padding: 7px 12px !important;
}

.product-description {
    margin-top: 10px !important;
    font-size: 0.85rem;
}

.custom-collapse {
    border: 1px solid #eee7de;
    border-radius: 7px;
    margin-top: 5px;
    padding: 0 12px;
}

.mt-4:has(> .custom-collapse) {
    margin-top: 10px !important;
}

.collapse-header {
    padding: 8px 0;
    font-size: 13.5px;
    color: #303633;
}

.collapse-content {
    padding: 0 0 8px;
    font-size: 0.85rem !important;
}

.container-fluid.px-4.px-md-5.pb-5.py-4 {
    padding-top: 10px !important;
    padding-bottom: 18px !important;
}

.container-fluid.px-4.px-md-5.pb-5.py-4 .products-section-title {
    font-size: 20px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .container.pb-1 {
        padding-top: 14px;
    }

    .container.pb-1 .col-lg-5 {
        padding: 12px;
        margin-top: 0;
    }

    .container.pb-1 .col-lg-5 h1 {
        font-size: 18px;
    }

    .product-image-viewer {
        flex-direction: column-reverse;
        gap: 10px !important;
    }

    .thumbnails {
        width: 100%;
        margin-left: 0;
        height: 64px;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto;
    }

    .thumbnail {
        width: 58px;
        height: 64px;
        flex: 0 0 58px;
    }

    .main-image-container {
        width: 100%;
        max-width: none;
        height: min(280px, calc(100vw - 90px));
        aspect-ratio: auto;
    }

    .buttons-container .col-12 {
        width: 50%;
        flex: 0 0 50%;
        margin-bottom: 0;
        padding-left: 4px;
        padding-right: 4px;
    }

    .buttons-container .col-12:first-child {
        padding-left: 0;
    }

    .buttons-container .col-12:last-child {
        padding-right: 0;
    }

    .product-description {
        margin-top: 12px !important;
    }
}