﻿/* ==========================================================================
   BeautyCenter BD
   Premium Professional Shop / Home Page
   Modern Glassmorphism + Soft Gradient Design
   ========================================================================== */


/* ==========================================================================
   PAGE BASE
   ========================================================================== */

.shop-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: #24324A;
    background: radial-gradient( circle at 8% 8%, rgba(59, 130, 246, 0.13), transparent 30% ), radial-gradient( circle at 92% 10%, rgba(124, 58, 237, 0.12), transparent 30% ), radial-gradient( circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 35% ), linear-gradient( 135deg, #f8fbff 0%, #f6f4ff 45%, #f8fbff 100% );
    background-attachment: fixed;
}


    /* Soft blue decorative glow */

    .shop-page::before {
        content: "";
        position: fixed;
        width: 450px;
        height: 450px;
        top: -180px;
        left: -160px;
        background: radial-gradient( circle, rgba(59, 130, 246, 0.16) 0%, rgba(34, 211, 238, 0.08) 35%, transparent 70% );
        filter: blur(18px);
        pointer-events: none;
        z-index: 0;
    }


    /* Soft purple decorative glow */

    .shop-page::after {
        content: "";
        position: fixed;
        width: 500px;
        height: 500px;
        right: -220px;
        bottom: -220px;
        background: radial-gradient( circle, rgba(124, 58, 237, 0.14) 0%, rgba(167, 139, 250, 0.08) 35%, transparent 70% );
        filter: blur(22px);
        pointer-events: none;
        z-index: 0;
    }


    /* Keep content above decorative background */

    .shop-page > * {
        position: relative;
        z-index: 1;
    }


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-glass {
    position: relative;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58) );
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 42px 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}


    /* Hero decorative light */

    .hero-glass::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        top: -180px;
        right: -100px;
        background: radial-gradient( circle, rgba(124, 58, 237, 0.14), transparent 70% );
        filter: blur(12px);
        pointer-events: none;
    }


    /* Hero second light */

    .hero-glass::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        bottom: -140px;
        left: -80px;
        background: radial-gradient( circle, rgba(34, 211, 238, 0.12), transparent 70% );
        filter: blur(12px);
        pointer-events: none;
    }


/* Gradient title */

.title-grad {
    background: linear-gradient( 90deg, #2563EB 0%, #06B6D4 45%, #7C3AED 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   SEARCH
   ========================================================================== */

.search-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 15px;
    padding: 12px 16px;
    height: 50px;
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}


    .search-box:focus {
        outline: none;
        border-color: rgba(124, 58, 237, 0.45);
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08), 0 10px 30px rgba(124, 58, 237, 0.08);
    }


/* Search button */

.search-btn {
    height: 50px;
    min-width: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient( 135deg, #2563EB, #7C3AED );
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.22);
    transition: all 0.25s ease;
}


    .search-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
    }


/* ==========================================================================
   CATEGORIES
   ========================================================================== */

.category-wrapper {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 11px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.cat-pill {
    border-radius: 30px;
    padding: 9px 19px;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    display: inline-block;
    margin: 3px;
    transition: all 0.25s ease;
}


    /* Active category */

    .cat-pill.active {
        background: linear-gradient( 135deg, #2563EB, #7C3AED );
        color: #fff;
        box-shadow: 0 7px 20px rgba(79, 70, 229, 0.22);
    }


    /* Normal category */

    .cat-pill:not(.active) {
        background: rgba(255, 255, 255, 0.75);
        color: #4C1D95;
        border: 1px solid rgba(124, 58, 237, 0.13);
    }


    .cat-pill:hover {
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(31, 41, 55, 0.08);
    }


/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(31, 41, 55, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.90);
    transition: transform 0.30s ease, box-shadow 0.30s ease;
    overflow: hidden;
    height: 100%;
}


    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 50px rgba(31, 41, 55, 0.13), 0 0 0 1px rgba(124, 58, 237, 0.06);
    }


/* ==========================================================================
   PRODUCT IMAGE
   ========================================================================== */

.product-image-wrap {
    height: 205px;
    overflow: hidden;
    position: relative;
    background: linear-gradient( 145deg, #ffffff, #F1EEFF );
}


.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}


.product-card:hover .product-img {
    transform: scale(1.06);
}


/* Placeholder */

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 145deg, #ffffff, #F1EEFF );
    color: #7C3AED;
    font-size: 3rem;
}


/* ==========================================================================
   IMAGE OVERLAY
   ========================================================================== */

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.30) );
    opacity: 0;
    transition: opacity 0.25s ease;
}


.product-card:hover .image-overlay {
    opacity: 1;
}


/* Details button */

.details-btn {
    background: rgba(255, 255, 255, 0.94);
    color: #4C1D95;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
    transition: all 0.2s ease;
}


    .details-btn:hover {
        color: #4C1D95;
        transform: translateY(-2px);
    }


/* ==========================================================================
   DISCOUNT / STOCK BADGES
   ========================================================================== */

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient( 135deg, #06B6D4, #7C3AED );
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.18);
}


.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.70rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.stock-in {
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
}


.stock-low {
    background: rgba(255, 193, 7, 0.95);
    color: #3d3200;
}


.stock-out {
    background: rgba(108, 117, 125, 0.92);
    color: #fff;
}


/* ==========================================================================
   PRODUCT INFORMATION
   ========================================================================== */

.product-category {
    color: #64748B;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.product-name {
    color: #334155;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 43px;
    font-weight: 700;
    transition: color 0.2s ease;
}


    .product-name:hover {
        color: #7C3AED;
    }


.price-tag {
    font-size: 1.08rem;
    font-weight: 800;
    color: #4C1D95;
}


.old-price {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 0.78rem;
}


.save-text {
    color: #198754;
    font-size: 0.72rem;
    font-weight: 700;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-glass {
    border: none;
    border-radius: 11px;
    padding: 9px 13px;
    background: linear-gradient( 135deg, #2563EB, #7C3AED );
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
}


    .btn-glass:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
    }


.btn-cart {
    border: 1px solid rgba(124, 58, 237, 0.20);
    border-radius: 11px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #4C1D95;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}


    .btn-cart:hover {
        background: #F1EEFF;
        color: #4C1D95;
        transform: translateY(-1px);
    }


/* =========================================================
   PREMIUM PROMO TICKER
   ========================================================= */

.promo-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient( 90deg, #2F241F 0%, #5A4636 25%, #9A7B4F 50%, #5A4636 75%, #2F241F 100% );
    border-radius: 13px;
    padding: 11px 0;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(76, 29, 61, 0.18), inset 0 1px 0 rgba(255,255,255,0.25);
}


.promo-ticker-track {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
    letter-spacing: .25px;
    animation: promoScroll 22s linear infinite;
}


    .promo-ticker-track span {
        display: inline-block;
        padding: 0 40px;
    }


/* Animation */

@keyframes promoScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* ==========================================================================
   CART SUMMARY
   ========================================================================== */

.cart-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 24px;
    padding: 22px;
    margin-top: 40px;
    box-shadow: 0 15px 45px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}


.cart-title {
    font-weight: 800;
    color: #24324A;
    margin: 0;
}


.cart-count {
    background: linear-gradient( 135deg, #2563EB, #7C3AED );
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}


/* Cart table */

.cart-table-wrap {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid rgba(124, 58, 237, 0.08);
}


.cart-table {
    margin: 0;
    min-width: 720px;
}


    .cart-table thead th {
        background: rgba(124, 58, 237, 0.06);
        color: #4C1D95;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border: none;
        padding: 14px 15px;
        white-space: nowrap;
    }


    .cart-table tbody td {
        padding: 15px;
        vertical-align: middle;
        border-color: rgba(124, 58, 237, 0.07);
    }


/* ==========================================================================
   CART PRODUCT
   ========================================================================== */

.cart-product {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
}


.cart-product-img {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    object-fit: cover;
    border: 1px solid rgba(124, 58, 237, 0.12);
}


.cart-product-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    background: linear-gradient( 145deg, #fff, #F1EEFF );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C3AED;
    font-size: 1.4rem;
}


.cart-product-name {
    font-weight: 700;
    color: #24324A;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .cart-product-name:hover {
        color: #7C3AED;
    }


/* Quantity */

.qty-badge {
    display: inline-flex;
    min-width: 38px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 9px;
    background: #F1EEFF;
    color: #4C1D95;
    font-weight: 700;
}


.cart-total {
    font-size: 1.08rem;
    font-weight: 800;
    color: #4C1D95;
}


/* ==========================================================================
   CART FOOTER
   ========================================================================== */

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    flex-wrap: wrap;
}


.cart-grand-total {
    font-size: 1.35rem;
    font-weight: 800;
    color: #24324A;
}


    .cart-grand-total span {
        color: #7C3AED;
    }


/* View cart button */

.view-cart-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    background: linear-gradient( 135deg, #2563EB, #7C3AED );
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.20);
    transition: all 0.25s ease;
}


    .view-cart-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
    }


/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-cart {
    text-align: center;
    padding: 30px 15px;
    color: #64748B;
}


    .empty-cart i {
        font-size: 2.5rem;
        color: #A78BFA;
    }


.empty-products {
    text-align: center;
    padding: 70px 20px;
    color: #64748B;
}


    .empty-products i {
        font-size: 3rem;
        color: #A78BFA;
    }


/* ==========================================================================
   PRODUCT LOADER
   ========================================================================== */

.products-loader {
    display: none;
    text-align: center;
    padding: 30px 0;
    color: #4C1D95;
}


    .products-loader.is-active {
        display: block;
    }


    .products-loader .spinner-border {
        width: 2rem;
        height: 2rem;
    }


/* ==========================================================================
   END OF PRODUCTS
   ========================================================================== */

.products-end-message {
    display: none;
    text-align: center;
    padding: 24px 0 6px;
    color: #64748B;
    font-size: 0.85rem;
}


    .products-end-message.is-active {
        display: block;
    }


/* ==========================================================================
   ERROR MESSAGE
   ========================================================================== */

.products-error-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: #991B1B;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 14px;
    margin-top: 16px;
}


    .products-error-message.is-active {
        display: block;
    }


    .products-error-message .retry-load-btn {
        border: none;
        border-radius: 10px;
        padding: 7px 16px;
        background: linear-gradient( 135deg, #2563EB, #7C3AED );
        color: #fff;
        font-weight: 600;
        font-size: 0.82rem;
        margin-top: 10px;
        transition: all 0.2s ease;
    }


        .products-error-message .retry-load-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.20);
        }


/* ==========================================================================
   EXTRA PREMIUM DETAILS
   ========================================================================== */


/* Smooth selection */

::selection {
    background: rgba(124, 58, 237, 0.20);
    color: #312E81;
}


/* Scrollbar */

.shop-page ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


.shop-page ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
}


.shop-page ::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #60A5FA, #8B5CF6 );
    border-radius: 20px;
}


    .shop-page ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #3B82F6, #7C3AED );
    }


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767.98px) {

    .shop-page {
        background-attachment: scroll;
    }


    .hero-glass {
        padding: 30px 18px;
        border-radius: 22px;
    }


        .hero-glass h1 {
            font-size: 1.8rem;
        }


    .product-image-wrap {
        height: 175px;
    }


    .product-card {
        border-radius: 18px;
    }


    .product-name {
        font-size: 0.9rem;
    }


    .btn-glass,
    .btn-cart {
        font-size: 0.76rem;
        padding: 8px 9px;
    }


    .category-wrapper {
        border-radius: 16px;
        padding: 8px;
    }


    .cat-pill {
        padding: 8px 14px;
        font-size: 0.78rem;
    }


    .cart-panel {
        padding: 14px;
        border-radius: 18px;
    }


    .cart-footer {
        align-items: stretch;
        flex-direction: column;
    }


    .view-cart-btn {
        justify-content: center;
    }


    .shop-page::before {
        width: 280px;
        height: 280px;
    }


    .shop-page::after {
        width: 300px;
        height: 300px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .hero-glass {
        padding: 25px 15px;
    }


        .hero-glass h1 {
            font-size: 1.55rem;
        }


    .search-box {
        height: 46px;
        padding: 10px 13px;
    }


    .search-btn {
        height: 46px;
        min-width: 48px;
    }


    .product-image-wrap {
        height: 160px;
    }


    .price-tag {
        font-size: 1rem;
    }


    .cart-grand-total {
        font-size: 1.15rem;
    }
}
