/* 
    Jewel Nails - Products Collection Page
    Standardizing with Product Details Card Design
*/

:root {
    --color-noir: #111111;
    --color-gold: #c2a16d;
    --color-gold-light: #dfcba4;
    --color-gold-dark: #8c6a42;
    --color-silk: #fcfaf8;
    --color-star: #ffcc00;
    --color-glass: rgba(255, 255, 255, 0.85);
    --radius-premium: 18px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Floating Decorative Elements Style - GLOBAL SCOPE */
/* Ensure floating widgets (WhatsApp/Call) are ALWAYS on top */
.floating-widgets {
    z-index: 20000 !important;
}

/* Base level for decorations */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Low enough to be behind cards but above background */
    overflow: hidden;
}

/* Product cards should be ABOVE the decorations */
.product-card-mini {
    position: relative;
    z-index: 20;
    background: #fff; /* Ensure they have a background to hide what's behind */
}

/* Ensure only footer and header are on the very TOP */
.main-header {
    position: sticky !important;
    top: 0;
    z-index: 10001 !important;
    background: #ffffff !important;
}

.main-footer, footer {
    position: relative;
    z-index: 10001 !important;
    background: #0a0a0a !important;
}





/* Ensure floating widgets (WhatsApp/Call) are ALWAYS on top */
.floating-widgets {
    z-index: 20000 !important;
}

.decor-item {
    position: absolute;
    font-size: 40px;
    opacity: 0.45; /* Much more visible */
    animation: floatDecor 15s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
    text-shadow: 0 0 15px currentColor; /* Stronger glow in its own color */
}

/* Vibrant Colorful Palette */
.decor-1, .decor-5, .decor-9 { color: #d4af37; } /* Premium Gold */
.decor-2, .decor-6, .decor-10 { color: #eabdd3; } /* Hot Pink */
.decor-3, .decor-7, .decor-11 { color: #e7cbf3; } /* Neon Purple */
.decor-4, .decor-8, .decor-12 { color: #cff6f8; } /* Electric Cyan */

.decor-1 { top: 10%; left: 5%; font-size: 80px; transform: rotate(-15deg); }
.decor-2 { top: 20%; right: 5%; font-size: 50px; transform: rotate(10deg); animation-delay: 1s; }
.decor-3 { top: 35%; left: 10%; font-size: 70px; transform: rotate(25deg); animation-delay: 2s; }
.decor-4 { top: 50%; right: 8%; font-size: 40px; transform: rotate(-20deg); animation-delay: 3s; }
.decor-5 { top: 65%; left: 3%; font-size: 100px; transform: rotate(5deg); animation-delay: 4s; }
.decor-6 { top: 80%; right: 10%; font-size: 30px; transform: rotate(15deg); animation-delay: 5s; }
.decor-7 { top: 15%; left: 40%; font-size: 60px; transform: rotate(-10deg); animation-delay: 6s; }
.decor-8 { top: 75%; left: 45%; font-size: 85px; transform: rotate(30deg); animation-delay: 7s; }
.decor-9 { top: 90%; left: 15%; font-size: 45px; transform: rotate(-25deg); animation-delay: 8s; }
.decor-10 { top: 5%; right: 25%; font-size: 75px; transform: rotate(12deg); animation-delay: 9s; }
.decor-11 { top: 40%; right: 40%; font-size: 25px; animation-delay: 10s; }
.decor-12 { top: 60%; left: 50%; font-size: 30px; animation-delay: 11s; }

@keyframes floatDecor {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
}

/* Shop Hero */
.shop-hero {
    padding: 120px 20px 80px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/register-bg.png') center/cover;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.shop-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Products Layout */
.shop-container {
    padding: 60px 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

.shop-grid-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 40px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-noir);
}

.filter-list {
    list-style: none;
    padding: 0;
}

/* Price Range Slider */
.premium-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 5px;
    outline: none;
    margin: 20px 0;
}

.premium-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.premium-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(194, 161, 109, 0.4);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--color-gold);
}

.filter-item {
    margin-bottom: 15px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: var(--transition-premium);
    padding: 4px 0;
}

/* Hide native radio */
.filter-item input[type="radio"] {
    display: none;
}

/* Custom Radio Indicator */
.filter-item label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: var(--transition-premium);
    flex-shrink: 0;
}

/* Hover State */
.filter-item label:hover {
    color: var(--color-gold);
}

.filter-item label:hover::before {
    border-color: var(--color-gold-light);
}

/* Active/Selected State */
.filter-item input[type="radio"]:checked + span {
    color: var(--color-gold);
    font-weight: 700;
}

.filter-item input[type="radio"]:checked ~ span {
    color: var(--color-gold);
    font-weight: 700;
}

.filter-item input[type="radio"]:checked + label::before,
.filter-item label:has(input[type="radio"]:checked)::before {
    border-color: var(--color-gold);
    background: var(--color-gold);
    box-shadow: inset 0 0 0 3px #fff;
}

.active-filter {
    color: var(--color-gold);
    font-weight: 700;
}

/* Product Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.premium-select {
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    outline: none;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* --- PRODUCT CARD DESIGN --- */
.product-card-mini {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-card-mini:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.2), 0 0 20px rgba(212, 175, 55, 0.2);
}

.mini-img {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.product-card-mini:hover .mini-img img {
    transform: scale(1.1);
}

.mini-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mini-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #111;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-premium);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mini-wishlist:hover {
    transform: scale(1.15);
    background: #fff;
    color: #ff4d4d;
}


.mini-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px);
    color: #fff;
    transition: 0.5s;
    text-align: left;
    transform: translateY(40px);
}

.product-card-mini:hover .mini-info {
    transform: translateY(0);
}

.mini-stars { color: var(--color-star); font-size: 10px; margin-bottom: 10px; }
.mini-collection { font-size: 10px; color: var(--color-gold-light); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 5px; }
.mini-title { font-size: 19px; font-family: var(--font-heading); font-weight: 700; margin: 0 0 12px 0; }
.mini-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mini-price { font-size: 20px; font-weight: 700; }
.mini-old-price { font-size: 14px; color: rgba(255,255,255,0.4); text-decoration: line-through; }

.mini-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.product-card-mini:hover .mini-actions { opacity: 1; transform: translateY(0); }

.mini-add-btn, .mini-buy-btn {
    flex: 1;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 40px; /* Fixed height for consistency */
}

.mini-add-btn { 
    background: linear-gradient(135deg, #FFD700 0%, #FFEC8B 50%, #FFD700 100%) !important; 
    color: #000 !important; 
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
}

.mini-buy-btn { 
    background: linear-gradient(135deg, #F0C419 0%, #F5D76E 50%, #F0C419 100%); 
    color: #000 !important; 
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(240, 196, 25, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-add-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
    filter: brightness(1.1);
}

.mini-buy-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(240, 196, 25, 0.5);
    filter: brightness(1.1);
}

.mini-add-btn::before, .mini-buy-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(30deg);
    transition: 0.6s;
}

.mini-add-btn:hover::before, .mini-buy-btn:hover::before { left: 150%; }

/* Pagination */
.pagination-wrapper { margin-top: 60px; display: flex; justify-content: center; }
.pagination { display: flex; gap: 12px; align-items: center; }
.page-link { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #eee; text-decoration: none; color: #111; font-weight: 700; transition: 0.3s; }
.page-link.active { background: #111; color: #fff; }

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 992px) {
    .shop-grid-wrapper { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
}

@media (max-width: 580px) {
    .shop-hero { padding: 40px 10px 30px; }
    .shop-hero h1 { font-size: 2.2rem !important; line-height: 1.2 !important; margin-bottom: 10px !important; }
    .shop-hero p { margin-top: 0 !important; font-size: 0.9rem !important; }
    .shop-toolbar { display: flex; justify-content: center; margin-bottom: 20px; }
    .results-count { display: none; }
    .pagination-wrapper { display: none; }

    .shop-container { padding: 20px 10px !important; background: #fafafa; }
    .shop-container .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
    
    .shop-grid-wrapper, .products-grid { 
        width: 100% !important; 
        margin: 0 !important; 
        display: grid !important; 
        grid-template-columns: 1fr !important; 
        gap: 25px; 
    }

    .product-card-mini { height: 400px; border-radius: 24px; }
    .mini-info { padding: 30px 18px 18px; transform: translateY(0); }
    .mini-title { font-size: 16px !important; }
    .mini-actions { opacity: 1; transform: translateY(0); }
    .decor-item { font-size: 25px !important; opacity: 0.05 !important; }
}




/* --- Empty State --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    background: #fbfbfb;
    border-radius: 20px;
    border: 1px dashed #e0e0e0;
    margin: 40px auto;
}
.empty-state i {
    color: #e2e2e2;
    font-size: 70px;
    margin-bottom: 25px;
}
.empty-state p {
    font-size: 18px;
    color: #777;
    margin-bottom: 30px;
    font-weight: 500;
}
.empty-state .btn {
    background: #fff;
    border: 1.5px solid #111;
    color: #111;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.4s;
    font-size: 13px;
    display: inline-block;
}
.empty-state .btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

