@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #8B0E2A; /* Deep Burgundy */
    --primary-dark: #660a1e;
    --secondary: #E91E63; /* Pink */
    --secondary-hover: #d81557;
    --bg-light: #FAF5F7; /* Light background */
    --bg-white: #ffffff;
    --text-dark: #1F1F1F;
    --text-muted: #6b7280;
    --accent: #FFC107; /* Gold */
    --border-color: rgba(139, 14, 42, 0.15); /* Tinted border */
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 4px 10px rgba(139, 14, 42, 0.05);
    --shadow-md: 0 8px 25px rgba(139, 14, 42, 0.08);
    --shadow-lg: 0 15px 35px rgba(139, 14, 42, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* ── Typography Overrides ── */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }

/* ── Glassmorphism ── */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.glass-burgundy {
    background: rgba(139, 14, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Navbar ── */
.navbar-top {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--bg-white) !important;
}

/* Search Input inside Navbar */
.search-wrapper {
    position: relative;
    width: 250px;
}
.search-wrapper input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: var(--radius-pill);
    padding: 8px 16px 8px 40px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.search-wrapper input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-wrapper input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}
.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
}
#searchDropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

/* Icons */
.icon-btn {
    color: var(--bg-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    transition: transform 0.2s;
}
.icon-btn:hover {
    transform: translateY(-2px);
    color: var(--bg-white);
}
.badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Buttons ── */
.btn-pink {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}
.btn-pink:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: var(--bg-white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--bg-white);
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
    border-color: rgba(255,255,255,0.8);
}

/* ── Hero Section ── */
.hero-wrapper {
    background: linear-gradient(135deg, #710920 0%, #8B0E2A 50%, #A61637 100%);
    color: var(--bg-white);
    padding: 120px 0 150px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--bg-white);
}
.hero-title span {
    color: var(--secondary);
}
.hero-trust-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Product Cards ── */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-light);
    margin-bottom: 16px;
}
.product-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}
.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}
.badge-tag {
    background: rgba(233, 30, 99, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

/* ── Neumorphic Categories ── */
.cat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 15px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(139, 14, 42, 0.05), -5px -5px 15px rgba(255,255,255,1);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    border: 1px solid rgba(139, 14, 42, 0.02);
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(139, 14, 42, 0.08), -8px -8px 20px rgba(255,255,255,1);
}
.cat-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* ── Forms (Checkout & Cart) ── */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid rgba(0,0,0,0.1); /* Prominent borders */
    padding: 12px 16px;
    background: var(--bg-white);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    outline: none;
}
label.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ── Animations ── */
.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
.page-header {
    background: var(--bg-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* Custom Scrollbar for hiding */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Responsive Mobile ── */
@media (min-width: 992px) {
    .rounded-lg-pill {
        border-radius: var(--radius-pill) !important;
    }
}
@media (max-width: 991.98px) {
    .hero-wrapper {
        padding: 100px 0 80px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .navbar-collapse {
        background: rgba(139, 14, 42, 0.98);
        padding: 1.5rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .navbar-collapse .nav-link {
        margin: 8px 0;
    }
}
