/* 1. CORE FONTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap');

:root {
    --primary-pink: #ff3f6c;    /* Vibrant Modern Pink */
    --hover-pink: #d63384;
    --text-dark: #282c3f;
    --text-muted: #696b79;
    --bg-light: #fafbfc;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. CORE FONTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap');

:root {
    --primary-pink: #ff3f6c;
    --hover-pink: #d63384;
    --text-dark: #282c3f;
    --text-muted: #696b79;
    --bg-light: #fafbfc;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-img{ height: 50px;}

body {
    font-family: 'Assistant', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 80px; 
    overflow-x: hidden;
}

/* 2. RESPONSIVE NAVBAR */
.navbar {
    min-height: 80px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1050;
}

/* Fix for badge-count positioning */
.action-item {
    position: relative; /* CRITICAL FIX */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: 0; /* Adjusted for better alignment */
    background: var(--primary-pink);
    color: white;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}

/* 3. HERO SLIDER RESPONSIVENESS */
.hero-slide {
    height: 500px;
    background: #000;
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .navbar { min-height: 60px; }
    .hero-slide { height: 250px; }
    .header-actions .action-item span:not(.badge-count) { 
        display: none; /* Hide text labels on mobile for space */
    }
}

/* 4. SHOP BY CATEGORY (Horizontal Scroll on Mobile) */
.category-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* Smooth swipe for iOS */
}

.category-wrapper::-webkit-scrollbar { display: none; }

.cat-item {
    flex: 0 0 auto; /* Prevents items from shrinking */
    width: 140px; 
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

/* 5. PRODUCT GRID (2 Columns on Mobile) */
#product-container .col-6 {
    padding: 8px; /* Consistent spacing for mobile grid */
}

.product-card {
    border: none;
    transition: var(--transition);
}

/* Price & Font responsiveness */
@media (max-width: 576px) {
    .brand-name { font-size: 14px !important; }
    .product-desc { font-size: 11px !important; }
    .current-price { font-size: 13px !important; }
    .discount { font-size: 10px !important; }
}

/* 6. FOOTER RESPONSIVENESS */
@media (max-width: 991px) {
    .footer-container { text-align: center; }
    .social-icons { justify-content: center; }
    .store-button { width: 100%; max-width: 250px; margin: 10px auto; }
    .newsletter-section { padding: 20px !important; }
}

/* 7. ANIMATIONS & HOVERS */
.product-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.p-img {
    transition: transform 0.5s ease;
    width: 100%;
}

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

/* Update your existing category-wrapper class */
.category-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scroll-behavior: smooth; /* Makes the sliding transition smooth */
    -webkit-overflow-scrolling: touch;
}

/* For Desktop: Show a very thin, clean scrollbar on hover */
.category-wrapper::-webkit-scrollbar {
    height: 5px;
}

.category-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}

.category-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* Hide scrollbar by default, show on hover for a cleaner look */
@media (min-width: 992px) {
    .category-wrapper::-webkit-scrollbar {
        display: none; 
    }
    .category-wrapper:hover::-webkit-scrollbar {
        display: block;
    }
}

/* Filter Headings */
.filter-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

/* Custom Checkbox Styling */
.custom-check {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.custom-check .form-check-input {
    width: 16px;
    height: 16px;
    border: 2px solid #d4d5d9;
    cursor: pointer;
}

.custom-check .form-check-input:checked {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.custom-check .form-check-label {
    font-size: 14px;
    color: var(--text-dark);
    margin-left: 8px;
    cursor: pointer;
}

.custom-check .count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Attractive Color Swatches */
.color-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swatch-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.swatch-item:hover {
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.swatch-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Price Filter Styling */
.price-item {
    display: block;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.price-item:hover {
    background: #f5f5f6;
}

.price-item input:checked + span {
    color: var(--primary-pink);
    font-weight: 700;
}

/* Mobile Filter Button (Visible only on mobile) */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
}

.hover-actions {
    position: absolute;
    bottom: -50px; /* Hidden below image */
    left: 0;
    width: 100%;
    transition: var(--transition);
}

.product-card:hover .hover-actions {
    bottom: 0; /* Slides up on hover */
}

.product-card:hover .p-img {
    filter: brightness(0.9);
}

/* 1. PRODUCT CARD CONTAINER */
.product-card {
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 20px;
}

/* 2. IMAGE WRAPPER & ASPECT RATIO */
.product-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4; /* Standard Fashion Ratio */
    overflow: hidden;
    background-color: #f9f9f9;
}

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

.product-card:hover .p-img {
    transform: scale(1.08); /* Slow zoom on hover */
}

/* 3. HOVER OVERLAY (Add to Bag) */
.hover-overlay {
    position: absolute;
    bottom: -60px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover .hover-overlay {
    bottom: 0;
}

.btn-pink-full {
    background: var(--primary-pink);
    color: white;
    border: none;
    width: 100%;
    font-weight: 700;
    font-size: 12px;
    padding: 10px;
    border-radius: 2px;
}

/* 4. RATING & WISHLIST */
.rating-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 5;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #696b79;
    z-index: 5;
}

.wishlist-icon:hover { color: var(--primary-pink); }
.wishlist-icon.active { color: var(--primary-pink); font-weight: 900; }

/* 5. TEXT INFO SECTION */
.brand-name {
    font-size: 16px;
    font-weight: 800;
    color: #282c3f;
    letter-spacing: 0.3px;
}

.product-desc {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #535766;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.curr-price {
    font-size: 14px;
    font-weight: 800;
    color: #282c3f;
}

.old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #7e818c;
}

.discount-tag {
    font-size: 12px;
    color: #ff905a;
    font-weight: 700;
}

/* 6. RESPONSIVE ADJUSTMENTS */
@media (max-width: 576px) {
    .brand-name { font-size: 14px; }
    .product-desc { font-size: 11px; }
    .curr-price { font-size: 12px; }
    .hover-overlay { display: none; } /* Hide hover buttons on mobile for tap focus */
}

body {
    font-family: 'Assistant', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 80px; /* Space for fixed navbar */
    overflow-x: hidden;
}

/* 2. REFINED NAVBAR (Glassmorphism) */
.navbar {
    height: 80px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1050;
}

.search-container {
    max-width: 550px;
    margin: 0 auto;
}

.search-container input {
    border: 1px solid #eaeaec !important;
    background: #f5f5f6 !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 14px;
    height: 40px;
}

.search-container .input-group-text {
    background: #f5f5f6;
    border: 1px solid #eaeaec;
    border-radius: 8px 0 0 8px;
}

.header-actions .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    transition: var(--transition);
}

.header-actions .action-item:hover {
    color: var(--primary-pink);
    transform: translateY(-2px);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--primary-pink);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 50%;
}

/* 3. HERO SLIDER (Ken Burns Animation) */
.hero-slide {
    height: 500px;
    background: #000;
    overflow: hidden;
}

.hero-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 8s ease-out; /* Slow zoom effect */
}

.carousel-item.active img {
    transform: scale(1.1);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

/* 4. SHOP BY CATEGORY (Attractive Pill Design) */
.category-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scrollbar-width: none;
}

.category-wrapper::-webkit-scrollbar { display: none; }

.cat-item {
    min-width: 150px;
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: var(--transition);
}

.cat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(255, 63, 108, 0.15);
    border-color: var(--primary-pink);
}

.cat-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-pink-sm {
    background: var(--primary-pink);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 20px;
    border: none;
    transition: var(--transition);
}

/* 5. PRODUCT CARDS & FILTERS */
.product-card {
    border: none;
    border-radius: 0;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #ccc;
    transition: var(--transition);
}

.wishlist-icon:hover {
    color: var(--primary-pink);
    transform: scale(1.1);
}

.filter-group h6 {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* 6. MODERN FOOTER */
.footer-container {
    background-color: var(--bg-light);
    border-top: 1px solid #eaeaec;
}

.newsletter-section {
    background: #fff0f5;
    border: 1px dashed var(--primary-pink);
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary-pink);
    padding-left: 5px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: white;
    color: var(--text-muted);
    border: 1px solid #eaeaec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

.store-button {
    background: #282c3f;
    color: white;
    border-radius: 5px;
    padding: 10px;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 7. UTILITIES */
.text-pink { color: var(--primary-pink) !important; }
.cursor-pointer { cursor: pointer; }

@media (max-width: 991px) {
    .navbar { height: auto; }
    .hero-slide { height: 300px; }
}
/* Animation for product loading */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover zoom for product images */
.p-img {
    transition: transform 0.5s ease;
}
.product-card:hover .p-img {
    transform: scale(1.08);
}

/* Wishlist transition */
.wishlist-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Transition effects */
#dynamicHeader, #headerLogo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled Header Style */
.header-active {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

.header-active #headerLogo {
    height: 38px !important; /* Smaller logo on scroll */
}

/* Dropdown Customization */
.dropdown-toggle::after {
    display: none; /* Hide default arrow */
}

.dropdown-menu {
    border-radius: 8px;
    top: 100%;
}

.dropdown-item:hover {
    background-color: #fff0f5;
    color: var(--primary-pink);
}

/* Utility */
.cursor-pointer { cursor: pointer; }

