/* Care Guide Detail Page Styles */
.care-guide-detail-wrapper {
    background-color: var(--stone-beige, #D2C8BC);
    min-height: 100vh;
    padding: 10px 37px 100px 37px;
}

.care-guide-detail-wrapper .container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 37px;
    padding-right: 37px;
}

.care-guide-detail-content {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hide title when inside text container (for desktop layout) */
.care-guide-detail-text .care-guide-detail-title {
    display: none;
}

.care-guide-detail-text {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    order: 1; /* Default order for desktop */
}

.care-guide-detail-title-mobile {
    display: none; /* Hidden on desktop */
}

.care-guide-detail-title-desktop {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 49.88px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    margin: 0 0 30px 0;
    padding: 0;
}

.care-guide-detail-title {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 49.88px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    margin: 0 0 30px 0;
    padding: 0;
}

.care-guide-detail-instructions {
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.6;
    color: var(--espresso-black, #231010);
    margin-bottom: 30px;
}

.care-guide-detail-instructions h2 {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--WARM-CARAMEL, #90674D);
    margin: 25px 0 0 0;
}

.care-guide-detail-instructions h2:first-child {
    margin-top: 0;
}

.care-guide-detail-instructions h2.drying-care {
    font-family: 'Aileron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ESPRESSO-BLACK, #231010);
    margin: 20px 0 0 0;
}

.care-guide-detail-instructions h3 {
    font-family: 'Aileron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ESPRESSO-BLACK, #231010);
    margin: 20px 0 0 0;
}

.care-guide-detail-instructions p {
    margin-bottom: 12px;
    font-size: 12px;
}

.care-guide-detail-instructions ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.care-guide-detail-instructions li {
    margin-bottom: 8px;
    font-size: 12px;
}

.care-guide-detail-instructions strong {
    font-weight: 700;
    color: var(--espresso-black, #231010);
}

.care-guide-detail-back-button {
    display: inline-block;
    padding: 12px 40px;
    border: 0.5px solid var(--espresso-black, #231010);
    background-color: transparent;
    color: var(--espresso-black, #231010);
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 40px;
    text-align: center;
    width: 50%;
}

.care-guide-detail-back-button:hover {
    background-color: var(--espresso-black, #231010);
    color: var(--stone-beige, #D2C8BC);
}

.care-guide-detail-image-wrapper {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 500px;
    order: 2; /* Default order for desktop */
}

.care-guide-detail-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: soft-light;
}

.care-guide-item-care-box {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    max-width: 300px;
    z-index: 10;
    mix-blend-mode: normal !important;
    isolation: isolate;
    will-change: transform;
}

.care-guide-item-care-title {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--espresso-black, #231010);
    margin: 0 0 15px 0;
    padding: 0;
}

.care-guide-item-care-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.care-symbol {
    width: auto;
    /* object-fit: contain; */
    max-width: 100%;
    mix-blend-mode: normal;
}

.care-guide-item-care-composition {
    font-family: 'Aileron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--espresso-black, #231010);
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .care-guide-detail-wrapper .container {
        padding-left: 37px;
        padding-right: 37px;
    }
}

@media (max-width: 991px) {
    .care-guide-detail-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .care-guide-detail-text,
    .care-guide-detail-image-wrapper {
        flex: 1 1 100%;
    }
    
    /* Hide desktop title, show mobile title */
    .care-guide-detail-title-desktop {
        display: none;
    }
    
    .care-guide-detail-title-mobile {
        display: block;
        order: 1;
        width: 100%;
        margin-bottom: 8px;
        font-family: 'The Year of the Camel', serif;
        font-weight: 400;
        font-size: 49.88px;
        line-height: normal;
        color: var(--espresso-black, #231010);
    }
    
    /* Reorder elements on mobile: title first, then image, then text */
    .care-guide-detail-image-wrapper {
        order: 2;
    }
    
    .care-guide-detail-text {
        order: 3;
    }
    
    .care-guide-detail-instructions {
        order: 1; /* First in text container */
    }
    
    .care-guide-detail-back-button {
        order: 2; /* Second in text container */
    }
    
    .care-guide-item-care-box {
        position: absolute;
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
        margin-top: 0;
        max-width: 300px;
    }
    
    .care-guide-item-care-symbols {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .care-guide-detail-wrapper {
        padding: 40px 0 60px 0;
    }
    
    .care-guide-detail-wrapper .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .care-guide-detail-title-mobile {
        font-size: 30px;
        order: 1;
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .care-guide-detail-title-desktop {
        display: none;
    }
    
    .care-guide-detail-image-wrapper {
        order: 2;
        margin-bottom: 30px;
    }
    
    .care-guide-detail-text {
        order: 3;
    }
    
    .care-guide-detail-instructions {
        order: 1; /* First in text container */
    }
    
    .care-guide-detail-instructions h2,
    .care-guide-detail-instructions h3 {
        font-size: 16px;
    }
    
    .care-guide-detail-back-button {
        order: 2; /* Second in text container */
        width: 100% !important;
    }
    
    .care-guide-item-care-box {
        position: absolute;
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
        max-width: 280px;
        width: auto;
    }
    
    .care-guide-item-care-symbols {
        justify-content: center;
        align-items: center;
        display: flex;
    }
    
    .care-symbol {
        display: block;
        margin: 0 auto;
        /* Keep original size - no height override */
        width: auto;
    }
}

/* RTL Support */
[dir="rtl"] .care-guide-detail-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .care-guide-item-care-box {
    right: auto;
    left: 40px;
}

[dir="rtl"] .care-guide-detail-instructions h3 {
    font-family: 'The Year of the Camel', serif;
}

[dir="rtl"] .care-guide-detail-instructions h2.drying-care {
    font-family: 'The Year of the Camel', serif;
}

@media (max-width: 991px) {
    [dir="rtl"] .care-guide-detail-content {
        flex-direction: column;
    }
    
    [dir="rtl"] .care-guide-item-care-box {
        left: auto;
    }
}

