/* detail.css - Detail page specific styles */

.main-detail {
    padding-top: 0;
    width: 100%;
    position: relative;
    display: block;
}

/* Product Main Section */
.product-main {
    padding: 80px 0 60px;
    position: relative;
    display: block;
    clear: both;
}

.product-main-inner {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-slider-container {
    position: relative;
    width: 100%;
}

.product-slider {
    width: 100%;
    background: transparent;
    border: none;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
}

.slider-item {
    flex: 0 0 100%;
    height: 342px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
}

.nav-line {
    height: 2px;
    background-color: #EFEFEF;
    /* design background color */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-line .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #AF6F44;
    /* design filling color */
    transition: width 0.1s linear;
}

/* Exact widths from design for lines */
.nav-line:nth-child(1) {
    width: 75px;
}

.nav-line:nth-child(2) {
    width: 58px;
}

.nav-line:nth-child(3) {
    width: 78px;
}

.product-info {
    flex: 1;
    padding-top: 10px;
    padding-left: 60px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-info .product-rate {
    display: flex;
    align-items: center;
    gap: 15.7px;
    font-family: var(--font-primary);
    font-size: 11.84px;
    letter-spacing: 1.184px;
    text-transform: uppercase;
    color: #2a190e;
}

.product-info .product-rate img {
    width: 15.7px;
    height: 15.7px;
}

.product-category-sku {
    font-family: var(--font-primary);
    font-size: 11.84px;
    letter-spacing: 1.184px;
    text-transform: uppercase;
    color: #2a190e;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 25px;
    font-weight: 400;
    /* Ensuring Regular weight as per design */
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #2a190e;
    margin-bottom: 16px; /* Reduced gap */
    line-height: 1.4;
}

.product-price {
    font-family: var(--font-primary);
    font-size: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #af6f44;
    margin-bottom: 24px; /* Reduced gap */
}

.product-description-short {
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    color: #2a190e;
    line-height: 1.2;
    margin-bottom: 32px; /* Reduced gap */
    max-width: 421px;
}

.product-actions {
    display: flex;
    gap: 22px;
    align-items: center;
}

.btn-add-to-bag {
    flex: 1;
    height: 52px;
    background-color: #af6f44;
    color: #fefefe;
    border: none;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-to-bag:hover {
    background-color: #965d3a;
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    background: none;
    border: 1px solid #af6f44;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-wishlist svg {
    width: 32px;
    height: 28px;
    overflow: visible;
}

.btn-wishlist svg path {
    fill: transparent;
    stroke: #af6f44;
    stroke-width: 1.6;
    stroke-linejoin: round;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.btn-wishlist:hover svg path,
.btn-wishlist.is-wishlisted svg path {
    fill: #af6f44;
}

.btn-wishlist:hover {
    background-color: transparent;
}



/* Detail Banner (full-width showcase image) */
.detail-banner {
    width: 100%;
    display: block;
    height: 750px;
    overflow: hidden;
}

.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Detail Split Sections (Flora Earring + Rose Gold) */
.detail-split {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
}

.detail-split--text-left {
    padding-top: 106px;
    padding-bottom: 29px;
}

.detail-split--image-left {
    padding-top: 0;
    padding-bottom: 100px;
}

/* ── Section 1: text left, image right ──
   Design: page 1440px, text content at x=125 w=549, image at x=804 w=532 h=628
   Text column = 804px wide | Image column = 532px + 104px right margin = 636px
*/
.detail-split--text-left .detail-split__text {
    flex: 0 0 804px;
    padding: 95px 130px 95px 125px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    box-sizing: border-box;
}

.detail-split--text-left .detail-split__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 104px;
}

.detail-split__image-box {
    width: min(532px, 100%);
    /* Caps at 532px but shrinks on narrow columns */
    height: auto;
    aspect-ratio: 532 / 628;
    /* Maintains proportion at all sizes */
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-split__image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.3);
}


/* ── Section 2: image left, text right ──
   Design: image at x=80 w=640 h=756, text at x=789 w=549
   Image column = 720px (80+640) | Text column starts at 789px
*/
.detail-split--image-left .detail-split__image {
    flex: 0 0 720px;
    height: 756px;
    padding-left: 80px;
    overflow: hidden;
    box-sizing: border-box;
    align-self: flex-start;
}

.detail-split--image-left .detail-split__image img {
    width: 640px;
    height: 756px;
    object-fit: cover;
    display: block;
}

.detail-split--image-left .detail-split__text {
    flex: 1;
    padding: 123px 94px 123px 69px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    box-sizing: border-box;
}

/* Shared text styles */
.detail-split__label {
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 0.0736px;
    text-transform: uppercase;
    color: #af6f44;
    line-height: 55px;
    height: 33px;
    display: block;
    margin: 0;
    overflow: visible;
}

.detail-split__title {
    font-family: var(--font-primary);
    font-size: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #2a190e;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

.detail-split__desc {
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 0.32px;
    line-height: 2;
    color: #2a190e;
    width: 548px;
    max-width: 100%;
    margin: 0;
}

/* Related Products Section */
.related-products-section {
    padding: 100px 0;
}

.related-products-section .container {
    overflow: visible;
}

.related-products-title {
    font-family: var(--font-primary);
    font-size: 40px;
    letter-spacing: 0.184px;
    text-transform: uppercase;
    color: #2a190e;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
    font-style: normal;
}

.related-products-slider {
    display: flex;
    gap: 24px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.related-products-slider::-webkit-scrollbar {
    display: none;
}

.related-products-slider .product-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    height: 595px;
    border-color: #efefef;
    scroll-snap-align: start;
}


.related-products-slider .product-rate {
    gap: 15.87px;
    font-size: 11.9px;
    letter-spacing: 1.19px;
    color: #2a190e;
    white-space: nowrap;
}

.related-products-slider .product-rate img {
    width: 15.87px;
    height: 15.87px;
}

.related-products-slider .product-badge {
    padding: 7.9px 15.87px;
    border-color: rgba(42, 25, 14, 0.24);
    font-size: 11.9px;
    letter-spacing: 1.19px;
    color: #2a190e;
    white-space: nowrap;
}

.related-products-slider .product-bottom-info {
    gap: 15.87px;
}

.related-products-slider .product-price {
    color: #af6f44;
    font-size: 19.84px;
    letter-spacing: 1.98px;
    margin-bottom: 0; /* Reset margin leak from main product-price */
}

.related-products-slider .product-name {
    font-size: 15.87px;
    letter-spacing: 1.59px;
    color: #2a190e;
}

@media (max-width: 1200px) {
    .related-products-slider .product-top-info {
        left: 12px;
        right: 12px;
        top: 16px;
        gap: 6px;
    }

    .related-products-slider .product-rate {
        font-size: 9px;
        gap: 4px;
        letter-spacing: 0.8px;
    }

    .related-products-slider .product-rate img {
        width: 12px;
        height: 12px;
    }

    .related-products-slider .product-badge {
        font-size: 9px;
        padding: 5px 10px;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 1024px) {
    .related-products-slider {
        gap: 16px;
    }
    
    .related-products-slider .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }

    .product-main-inner {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .product-gallery {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .slider-item {
        height: 280px;
    }

    .watch-detail-page .slider-item {
        height: 340px;
    }

    .product-info {
        padding-top: 0;
        padding-left: 0;
        width: 100%;
    }

    .product-description-short {
        max-width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-split {
        flex-direction: column;
    }

    .detail-split--image-left {
        flex-direction: column-reverse;
    }

    .detail-split--text-left {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .detail-split--image-left {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .detail-split--text-left .detail-split__text,
    .detail-split--image-left .detail-split__text {
        flex: none;
        width: 100%;
        padding: 32px 24px;
        box-sizing: border-box;
    }

    .detail-split__desc {
        width: 100%;
    }

    .detail-split--text-left .detail-split__image,
    .detail-split--image-left .detail-split__image {
        flex: none;
        width: 100%;
        height: auto;
        padding: 0 24px;
        align-self: auto;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        /* Center the image box on tablet/mobile */
    }

    .detail-split__image-box {
        width: min(532px, 100%);
        height: auto;
        aspect-ratio: 532 / 628;
    }

    /* Reset scale zoom when stacked — full image visible */
    .detail-split__image-box img {
        transform: none;
    }

    .detail-split--image-left .detail-split__image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .related-products-slider {
        gap: 12px;
    }

    .slider-item {
        height: 220px;
    }

    .watch-detail-page .slider-item {
        height: 280px;
    }

    .product-price {
        font-size: 32px;
    }

    .detail-banner {
        height: 400px;
    }

    .detail-split--text-left,
    .detail-split--image-left {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .detail-split--text-left .detail-split__text,
    .detail-split--image-left .detail-split__text {
        padding: 24px 20px;
    }

    .detail-split--text-left .detail-split__image,
    .detail-split--image-left .detail-split__image {
        padding: 0 20px;
    }

    .detail-split__title {
        font-size: 28px;
    }

    .related-products-slider .product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .related-products-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .btn-add-to-bag {
        font-size: 13px;
        letter-spacing: 1px;
    }
}

/* Intermediate Laptop/Desktop responsiveness (1025px to 1300px) */
@media (max-width: 1300px) and (min-width: 1025px) {
    .detail-split--text-left .detail-split__text {
        flex: 1 1 50%;
        padding: 60px 40px;
    }

    .detail-split--text-left .detail-split__image {
        flex: 1 1 50%;
        padding-right: 40px;
        justify-content: center;
    }

    .detail-split__image-box {
        width: 100%;
        max-width: 532px;
    }

    .detail-split--image-left .detail-split__image {
        flex: 1 1 50%;
        padding-left: 40px;
        height: auto;
    }

    .detail-split--image-left .detail-split__image img {
        width: 100%;
        max-width: 640px;
        height: auto;
    }

    .detail-split--image-left .detail-split__text {
        flex: 1 1 50%;
        padding: 60px 40px;
    }
}