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

:root {
    /* Brand Colors - Warm Amber Orange (GhorerBazar Inspired E-Commerce) */
    --primary: #e85a00;
    /* Warm Amber Orange (High-Conversion Brand Accent) */
    --primary-light: #ff7526;
    --primary-dark: #c44c00;
    --secondary: #1e293b;
    /* Premium Dark Charcoal / Slate */
    --secondary-light: #334155;
    --accent: #f59e0b;
    /* Golden Amber */

    /* Semantic Colors */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #0288d1;
    --star: #f59e0b;
    --discount: #e11d48;
    --out-of-stock: #64748b;

    /* Clean Modern E-Commerce Neutrals */
    --text-dark: #0f172a;
    --text-main: #1e293b;
    --text-gray: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    /* Crisp Modern Off-White */
    --bg-faint: #fff7ed;
    /* Very Soft Warm Amber Faint */
    --bg-white: #ffffff;
    --border: #e2e8f0;
    /* Crisp Neutral Gray Border */
    --border-light: #f1f5f9;

    /* Design Tokens */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(232, 90, 0, 0.12);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 6px;
    /* Clean subtle rounded corners */
    --radius-lg: 12px;
    --transition: all .25s ease;

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

    /* Layout Variables */
    --admin-sidebar-bg: #1e293b;
    --sidebar-w: 260px;
    --topbar-h: 70px;
    --sidebar-bg: #1e293b;
    --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;
}

/* Success Color (Green - for Stock, WhatsApp, Success Alerts) */
.text-success {
    color: #16a34a !important;
}

.bg-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.border-success {
    border-color: #16a34a !important;
}

.btn-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}

.btn-outline-success:hover {
    background-color: #16a34a !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.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 20px 15px !important;
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    /* Clean modern rounded corners */
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 25px rgba(232, 90, 0, 0.15) !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;
}