:root {
    --brand: #111;
    --border: #e5e5e5;
    --muted: #6c757d;
    --accent: #d8c29d;
}
.bg-img {
    background-image: var(--bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Product page core */
.product h1 {
    font-weight: 600;
}
.product .rating i {
    font-size: 0.85rem;
}
.product .color-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    background: var(--sw);
    padding: 0;
    border-radius: 50% !important;
    cursor: pointer;
    transition: 0.2s;
}
.product .color-swatch.active {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.product .size-group .size-btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-color: var(--border);
    background: #fff;
    border-radius: 4px !important;
    margin: 0 0.5rem !important;
}
.product .size-group .size-btn.active,
.product .size-group .size-btn:hover {
    background: #b59366;
    color: #fff;
    border-color: #b59366;
}
.product .qty {
    border-color: var(--border);
    border-radius: 0 !important;
}
.product .qty .btn {
    border-radius: 0 !important;
}
.product .qty input {
    font-weight: 600;
}
.product .perk {
    background: #fff;
}
.product .perks-box {
    background: #fff;
    border-color: var(--border);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}
.product .perks-box .perk-row {
    background: #fff;
}
.product .perks-box .perk-row + .perk-row {
}
.product .perks-box hr {
    border-color: var(--border);
    opacity: 0.6;
}
.product .coloreddd {
    background: #b59366;
    color: #ffffff;
}
.product .inputnumber:focus,
.product .inputnumber:focus-visible {
    box-shadow: none !important;
    border: none !important;
}
.product .perk i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #fff;
}
.product .thumb img {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
}
.product .thumb {
    display: block;
    position: relative;
}
.product .thumb.active img {
    border-color: #111;
}
.product .thumb:hover img {
    border-color: #111;
}
.product .card-body {
    padding: 0.75rem 0.5rem;
}
.product .card-body .small {
    font-weight: 500;
}

/* Serenity banner */
.serenity-banner img {
    object-fit: cover;
    min-height: 260px;
}
.serenity-banner h3 {
    font-weight: 600;
}

/* Details & Care Tabs */
#productTabs {
    padding: 0;
    border-radius: 4px;
}

#productTabs .nav-link {
    color: #6c757d;
    border: none !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

#productTabs .nav-link:hover {
    color: #111;
    border-bottom-color: #e5e5e5;
}

#productTabs .nav-link.active {
    color: #111;
    border-bottom: 1px solid #e0b46b !important;
    /* border-bottom-color: #E0B46B; */
    background-color: #e0b46b14;
    border-radius: 4px;
}

/* Details Tab Background */
.details-content-bg {
    background-color: #e0b46b14;
    border-radius: 4px;
}

/* Details List */
.details-list {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #111;
    margin-left: 12px;
}

.details-list li {
    color: #111;
    font-weight: 400;
}

.details-list .bullet {
    margin-right: 0.5rem;
    color: #111;
}

.details-content-bg h6 {
    color: #111;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

/* Care List */
.care-list li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.care-list i {
    color: #b59366;
    font-size: 1.1rem;
}
.relateditems img {
    /* width: 270px; */
    height: 320px;
    object-fit: cover;
}
.card-body {
    text-align: center;
}
.care-list strong {
    color: #111;
    font-weight: 600;
}

/* Tab Pane transitions */
.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Size Guide Modal - Exact Image Recreation */
#sizeGuideModal .modal-body {
    background: #fff;
    padding: 1.5rem !important;
}
#sizeGuideModal .modal-title {
    letter-spacing: 0.5px;
    color: #333;
}

/* Size Guide Layout */
.size-guide-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    min-height: 400px;
}

/* Left Side: Visual Diagram */
.size-diagram {
    position: relative;
    /* width: 60%;
  height: 400px; */
    /* background: #f8f9fa; */
    /* border: 1px solid #B2B2B2; */
    /* border-radius: 8px; */
    /* padding: 1rem; */
}

/* Size Rectangles */
.size-rect {
    position: absolute;
    background: #fff;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
}

.size-rect:hover {
    background: #f0f8ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.size-rect.highlighted {
    background: #fff3cd;
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Bath Sheet (XL) - Largest, top-right */
.bath-sheet {
    width: 160px;
    height: 100px;
    top: 20px;
    right: 20px;
}

/* Bath Towel (L) - Large, center */
.bath-towel {
    width: 130px;
    height: 85px;
    top: 80px;
    left: 50px;
}

/* Hand Towel (M) - Medium, center-left */
.hand-towel {
    width: 100px;
    height: 70px;
    top: 140px;
    left: 20px;
}

/* Guest Towel (S) - Small, bottom-left */
.guest-towel {
    width: 80px;
    height: 55px;
    top: 240px;
    left: 30px;
}

/* Face Towel (XS) - Smallest, bottom-left corner */
.face-towel {
    width: 60px;
    height: 45px;
    top: 320px;
    left: 15px;
}

.size-name {
    font-weight: 600;
    font-size: 0.65rem;
    margin-bottom: 2px;
}

.size-dimensions {
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 2px;
}

.size-code {
    font-weight: 700;
    font-size: 0.8rem;
    color: #007bff;
}

/* Right Side: Descriptions */
.size-descriptions {
    width: 40%;
    padding: 1rem 0;
}

.desc-item {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

.desc-item:hover {
    background: #e7f3ff;
    transform: translateX(5px);
}

.desc-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.desc-size {
    font-size: 0.8rem;
    color: #007bff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.desc-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .size-guide-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .size-diagram,
    .size-descriptions {
        width: 100%;
    }

    /* .size-diagram {
    height: 300px;
  } */

    /* Adjust rectangle sizes for mobile */
    .bath-sheet {
        width: 120px;
        height: 75px;
        top: 15px;
        right: 15px;
    }

    .bath-towel {
        width: 100px;
        height: 65px;
        top: 60px;
        left: 40px;
    }

    .hand-towel {
        width: 80px;
        height: 55px;
        top: 110px;
        left: 15px;
    }

    .guest-towel {
        width: 65px;
        height: 45px;
        top: 180px;
        left: 25px;
    }

    .face-towel {
        width: 50px;
        height: 35px;
        top: 240px;
        left: 10px;
    }

    .desc-item {
        margin-bottom: 1rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .product .size-group {
        display: flex;
        flex-wrap: wrap;
        margin: 0 0.5rem !important;
    }
    .product .size-group .size-btn {
        flex: 1 0 18%;
    }
    .serenity-banner img {
        min-height: 220px;
    }
}

/* Related Items hover overlay */
.related-card .related-thumb {
    position: relative;
    overflow: hidden;
}
.related-card .related-thumb img {
    transition: 0.35s ease;
}
.related-card .related-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}
.related-card:hover .related-overlay {
    opacity: 1;
    visibility: visible;
}
.related-card:hover .related-thumb img {
    filter: brightness(0.55);
    transform: scale(1.03);
}
.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #00000030;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    transition: 0.25s ease;
    color: #00000090;
    border-color: #b59366;
    color: #b59366;
}
.icon-btn:hover {
    border-color: #614f38cc;
    color: #614f38cc;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12);
}
.icon-btn:active {
    transform: scale(0.94);
}
/* .btn:hover, .btn:active, .btn:focus-visible{
  background-color: inherit !important;
} */
.btn:hover svg {
    fill: #b59366;
}

.btn:hover svg path {
    fill: rgb(255, 255, 255);
}

.btn:hover svg path {
    stroke: rgb(255, 255, 255);
}
