/* 
    MODERN & DYNAMIC UI STYLES FOR CHIRCKUT
    Aesthetics: Google Fonts (Outfit), Soft Shadows, Glassmorphism, Micro-animations 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --secondary-color: #ec4899;
    --accent-color: #f43f5e;
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.4);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, #d946ef 100%);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ==========================================================================
   Product Card Redesign 
   ========================================================================== */
.product {
    background: var(--card-bg);
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

/* Product Image Area */
.product-image {
    background: #fdfdfd;
    padding: 10px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.5s ease;
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.product:hover .product-image img {
    transform: scale(1.05);
}

/* Info Section */
.infofe {
    padding: 15px !important;
    border: none !important;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#f_name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

#f_pro_name {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

#f_pro_name:hover {
    color: var(--primary-color);
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-product-price {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Discount Badge */
#discountpart {
    position: absolute;
    top: 15px !important;
    right: 15px !important;
    background: var(--gradient-accent) !important;
    border-radius: var(--radius-xl) !important;
    height: auto !important;
    width: auto !important;
    padding: 4px 12px;
    box-shadow: 0 4px 10px rgba(160, 32, 240, 0.3) !important;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

#discountparttwo {
    background: transparent !important;
    height: auto !important;
    width: auto !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdis {
    margin: 0 !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

/* Purchase Button on Card */
#purcheseBtn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#purcheseBtn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Animations 
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* ==========================================================================
   Category Sidebar & Icons
   ========================================================================== */
.side-menu .head {
    background: var(--gradient-primary) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px 20px;
}

.yamm.megamenu-horizontal .nav .dropdown {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.yamm.megamenu-horizontal .nav .dropdown:hover {
    background: var(--primary-light);
}

.yamm.megamenu-horizontal .nav .dropdown a {
    font-weight: 500;
    color: var(--text-main);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

/* Category Slider Item */
#cath {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

#cath:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

#catimg {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#cath:hover #catimg {
    transform: scale(1.1);
}

#catp {
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Section Headers 
   ========================================================================== */
.section-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h4 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.view-all-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Top Header adjustments for UI Polish
   ========================================================================== */
#menu {
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#menu ul li {
    padding: 0;
}

#menu ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 15px 25px;
    display: block;
    text-decoration: none;
    transition: background 0.3s ease;
}

#menu ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer & Bottom Navbar Polish
   ========================================================================== */
.footer,
.footer-bottom,
.bottom-navbar {
    background-color: var(--primary-dark) !important;
    color: var(--white) !important;
}

.footer a,
.footer-bottom a,
.bottom-navbar a {
    color: var(--primary-light) !important;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer-bottom a:hover,
.bottom-navbar a:hover {
    color: var(--white) !important;
}

/* ==========================================================================
   Additional Overrides for Theme Consistency
   ========================================================================== */

/* Cart Badge Number */
.nav-box-number {
    background: var(--accent-color) !important;
}

/* Homepage Order Now Button Override (style.css had higher specificity) */
button#purcheseBtn {
    background: var(--gradient-primary) !important;
    border: none !important;
}

/* Category Image Border Color */
#catimg {
    border-color: var(--primary-color) !important;
}

/* Base Bootstrap btn-primary Override */
.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}