/* ============================================================
   Shofiq Cosmetics — Theme Variables
   Centralized color system for a premium beauty brand feel
   ============================================================ */

:root {
    /* Brand Colors - Ice Cream Corner Palette */
    --primary: #FF8FAB; /* Sweet Strawberry Pink */
    --primary-light: #ffb3c1;
    --primary-dark: #fb6f92;
    --secondary: #F39C12; /* Creamy Mango / Honey */
    --secondary-light: #f5b041;
    --accent: #FFE5B4; /* Peach / Vanilla */
    /* Creamy Accent */

    /* Semantic Colors */
    --success: #2e7d32;
    --danger: #d32f2f;
    --warning: #ffa000;
    --info: #1976d2;
    --star: #fbc02d;
    --discount: #ff4081;
    --out-of-stock: #78909c;

    /* Ice Cream Neutrals */
    --text-dark: #2d3436;
    --text-main: #4a4a4a;
    --text-gray: #7d7d7d;
    --text-muted: #adadad;
    --bg-light: #fffaf0; /* Creamy White */
    /* Soft Vanilla Background */
    --bg-faint: #fff5e6; /* Very Soft Cream */
    /* Soft Cream Tint */
    --bg-white: #ffffff;
    --border: #ffe4c4; /* Bisque Border */
    --border-light: #fff8f0;

    /* Design Tokens */
    --shadow-sm: 0 4px 15px rgba(255, 143, 171, .1);
    --shadow-md: 0 10px 35px rgba(255, 143, 171, .15);
    --shadow-lg: 0 20px 60px rgba(255, 143, 171, .2);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-header: 'Hind Siliguri', sans-serif;

    /* Layout Variables */
    --admin-sidebar-bg: #2d2d2d;
    --sidebar-w: 260px;
    --topbar-h: 70px;
    --sidebar-bg: #1e293b; /* Premium Charcoal for Light Mode too */
    --sidebar-brand-bg: #0f172a;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-light: #0f172a; /* Deep Navy/Charcoal */
    --bg-faint: #1e293b;
    --bg-white: #1e293b; /* Card Background */
    --text-dark: #f8fafc;
    --text-main: #cbd5e1;
    --text-gray: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
    --sidebar-bg: #111827; /* Slightly lighter premium charcoal */
    --sidebar-brand-bg: #0b0f1a;
}

/* ============================================================
   Overrides for Global Theme Mapping
   Making sure all primary buttons across the site look alike
   ============================================================ */

.btn-primary,
.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Legacy 'success' used as brand color mapping */
.btn-success,
.bg-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.text-success {
    color: var(--primary) !important;
}

.border-success {
    border-color: var(--primary) !important;
}

.btn-outline-success:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Secondary Color Overrides (Electric Blue) */
.btn-secondary,
.bg-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: #0056e0 !important;
    border-color: #0056e0 !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

/* ============================================================
   FOOTER STYLING (Premium Deep Navy)
   ============================================================ */
.site-footer {
    background-color: #020617 !important; /* Deep Midnight Blue for premium contrast */
    color: #cbd5e1;
    padding: 70px 0 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary); /* Thin pink line at the very top of footer */
}

.footer-main {
    padding-bottom: 50px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 18px;
    font-size: 14.5px;
}

.footer-heading {
    color: white;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary); /* Electric Blue icons */
    font-size: 16px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #020617;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 40px 0 0;
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact p {
        justify-content: center;
    }
/* ============================================================
   HOME PAGE - CATEGORY CARDS HOVER
   ============================================================ */
.category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 25px 15px !important;
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important; /* Softer rounded corners */
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.04) !important;
    box-shadow: 0 15px 40px rgba(255, 77, 148, 0.25) !important;
    border-color: var(--primary) !important;
    background: white !important;
    z-index: 10;
}

.category-card .cat-icon {
    width: 80px !important; /* Larger icon container */
    height: 80px !important;
    border-radius: 50%;
    background: var(--bg-faint) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px !important;
    margin-bottom: 15px !important;
    transition: all 0.4s ease !important;
}

.category-card:hover .cat-icon {
    background: var(--primary) !important;
    color: white !important;
    transform: rotate(8deg);
}

.category-card:hover .cat-icon i,
.category-card:hover .cat-icon img {
    filter: brightness(0) invert(1);
}

.category-card span {
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
    display: block;
    margin-top: 5px;
}

.category-card:hover span {
    color: var(--primary) !important;
}

/* ============================================================
   PRODUCT CARDS HOVER
   ============================================================ */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.product-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1) !important;
}