/* ==========================================================================
   DesignsLab - Product Grid & Interactive Modal Styles
   Used across product category pages (Skincare, Haircare, Bodycare, etc.)
   ========================================================================== */

/* Product Grid Layout */
.dl-custom-product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.dl-prod-col {
    padding: 8px;
    box-sizing: border-box;
    width: 20%; /* 5 Columns on large screens */
    display: flex;
}

@media (max-width: 1399px) {
    .dl-prod-col {
        width: 25%; /* 4 Columns on standard desktops */
    }
}

@media (max-width: 991px) {
    .dl-prod-col {
        width: 33.333%; /* 3 Columns on tablets */
    }
}

@media (max-width: 640px) {
    .dl-custom-product-grid {
        margin: -5px;
    }
    .dl-prod-col {
        padding: 5px;
        width: 50%; /* 2 Columns on mobile devices */
    }
}

/* Product Card */
.dl-product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dl-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #25D366;
}

/* Product Image Box */
.dl-prod-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.dl-prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.dl-product-card:hover .dl-prod-img-box img {
    transform: scale(1.08);
}

.dl-view-badge {
    position: absolute;
    bottom: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.dl-prod-img-box:hover .dl-view-badge {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .dl-view-badge {
        display: none; /* Keep clean on small mobile */
    }
}

/* Product Card Content */
.dl-prod-content {
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .dl-prod-content {
        padding: 10px 8px 10px;
    }
}

.dl-prod-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .dl-prod-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
}

.dl-prod-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.dl-prod-title a:hover {
    color: #128C7E;
}

.dl-prod-desc {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .dl-prod-desc {
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
}

.dl-prod-tag {
    display: inline-block;
    margin-top: 4px;
    color: #0f172a;
    font-weight: 700;
    font-size: 11px;
}

@media (max-width: 640px) {
    .dl-prod-tag {
        font-size: 10px;
    }
}

/* Request a Quote Button on Card */
.dl-prod-quote-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
    transition: all 0.25s ease;
    margin-top: auto;
}

@media (max-width: 640px) {
    .dl-prod-quote-btn {
        font-size: 11px;
        padding: 7px 6px;
        border-radius: 6px;
        gap: 4px;
    }
}

.dl-prod-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%);
}

.dl-prod-quote-btn i {
    font-size: 14px;
}

/* ==========================================================================
   Interactive Product Modal Styles
   ========================================================================== */
.dl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dl-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dl-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-modal-overlay.active .dl-modal-container {
    transform: scale(1) translateY(0);
}

.dl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.dl-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.dl-modal-body {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    max-height: calc(90vh - 10px);
}

@media (max-width: 768px) {
    .dl-modal-body {
        flex-direction: column;
    }
}

.dl-modal-img-col {
    flex: 0 0 42%;
    background: #f8fafc;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .dl-modal-img-col {
        flex: none;
        width: 100%;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
}

.dl-modal-img-col img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.dl-modal-info-col {
    flex: 1;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .dl-modal-info-col {
        padding: 20px 18px 20px;
    }
}

.dl-modal-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    width: fit-content;
}

.dl-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

@media (max-width: 640px) {
    .dl-modal-title {
        font-size: 19px;
    }
}

.dl-modal-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
}

.dl-modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dl-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.dl-modal-list li {
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.dl-modal-list li i {
    color: #10b981;
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

.dl-modal-list.services-list li i {
    color: #6366f1;
}

.dl-modal-btn-wrap {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.dl-modal-quote-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.dl-modal-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%);
}

/* Minimal Category Quick Navigation Bar */
.dl-category-nav-wrap {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 16px 0;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.dl-category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-cat-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dl-cat-nav-btn i {
    font-size: 14px;
    color: #64748b;
    transition: color 0.22s ease-in-out;
}

.dl-cat-nav-btn:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dl-cat-nav-btn:hover i {
    color: #10b981;
}

/* Ensure smooth section scrolling without sticky header clipping */
#face-serums,
#face-cleansers,
#face-creams,
#toners-and-mists,
#hair-growth-oils,
#hair-shampoos,
#lip-balms,
#lip-scrubs,
#baby-oils,
#baby-washes,
#baby-lotions,
#body-lotions,
#body-washes,
#body-butters,
#body-scrubs,
#handcrafted-soaps,
#bath-salts,
#herbal-skincare,
#ayurvedic-haircare,
#herbal-bodycare,
#ayurvedic-soaps-salts,
#herbal-lipcare,
#herbal-babycare {
    scroll-margin-top: 110px;
}

@media (max-width: 991px) {
    #face-serums,
    #face-cleansers,
    #face-creams,
    #toners-and-mists,
    #hair-growth-oils,
    #hair-shampoos,
    #lip-balms,
    #lip-scrubs,
    #baby-oils,
    #baby-washes,
    #baby-lotions,
    #body-lotions,
    #body-washes,
    #body-butters,
    #body-scrubs,
    #handcrafted-soaps,
    #bath-salts,
    #herbal-skincare,
    #ayurvedic-haircare,
    #herbal-bodycare,
    #ayurvedic-soaps-salts,
    #herbal-lipcare,
    #herbal-babycare {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 767px) {
    .dl-category-nav-wrap {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    .dl-category-nav {
        gap: 8px;
    }
    .dl-cat-nav-btn {
        padding: 7px 14px;
        font-size: 12.5px;
    }
    #face-serums,
    #face-cleansers,
    #face-creams,
    #toners-and-mists,
    #hair-growth-oils,
    #hair-shampoos,
    #lip-balms,
    #lip-scrubs,
    #baby-oils,
    #baby-washes,
    #baby-lotions,
    #body-lotions,
    #body-washes,
    #body-butters,
    #body-scrubs,
    #handcrafted-soaps,
    #bath-salts,
    #herbal-skincare,
    #ayurvedic-haircare,
    #herbal-bodycare,
    #ayurvedic-soaps-salts,
    #herbal-lipcare,
    #herbal-babycare {
        scroll-margin-top: 80px;
    }
}






