/* ============================================
   MODERN.CSS - Clover Baking & e-Recipe
   Modern Design System
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #004225;
    --primary-dark: #002814;
    --primary-light: #e8f5e9;
    --primary-gradient: linear-gradient(135deg, #004225 0%, #002814 100%);
    --primary-gradient-reverse: linear-gradient(135deg, #002814 0%, #004225 100%);
    --primary-rgb: 0, 66, 37;
    --accent: #ffc107;
    --accent-dark: #e6a800;
    --accent-gradient: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text-color: #333333;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --shadow-green: 0 4px 15px rgba(0, 66, 37, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Cairo', sans-serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* === Preloader === */
#preloder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#preloder.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Navigation / Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-top-bar {
    background: var(--primary-gradient);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.header-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.header-top-bar a {
    color: var(--white);
    font-weight: 500;
    padding: 0 0.8rem;
    position: relative;
    opacity: 0.9;
    transition: var(--transition);
}

.header-top-bar a:hover {
    opacity: 1;
    color: var(--accent);
}

.header-top-bar a:not(:last-child)::after {
    content: '|';
    margin-left: 0.8rem;
    opacity: 0.3;
}

.header-top-bar .cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 4px;
    position: relative;
    top: -2px;
}

.header-main {
    padding: 0.8rem 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 50px;
    transition: var(--transition);
}

.header-logo:hover img {
    transform: scale(1.02);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-nav a {
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-actions .cart-btn {
    position: relative;
    color: var(--gray-700);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.header-actions .cart-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions .cart-btn .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions .user-dropdown .btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.header-actions .user-dropdown .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 66, 37, 0.4);
}

.header-actions .user-dropdown .btn i {
    margin-right: 0.4rem;
}

.dropdown-menu-modern {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-menu-modern .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-menu-modern .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu-modern .dropdown-divider {
    margin: 0.3rem 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-dark);
}

/* === Mobile Menu === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
}

.mobile-menu-panel.open {
    left: 0;
}

.mobile-menu-panel .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: var(--transition);
}

.mobile-menu-panel .close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-menu-panel .mobile-logo {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-panel .mobile-logo img {
    height: 40px;
}

.mobile-menu-panel .mobile-nav {
    list-style: none;
}

.mobile-menu-panel .mobile-nav li {
    margin-bottom: 0.3rem;
}

.mobile-menu-panel .mobile-nav a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-panel .mobile-nav a:hover,
.mobile-menu-panel .mobile-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-panel .mobile-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* === Hero Section === */
.hero-modern {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 66, 37, 0.9) 0%, 
        rgba(0, 40, 20, 0.85) 50%, 
        rgba(0, 66, 37, 0.8) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float-particle 8s infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn-primary {
    background: var(--accent-gradient);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.6);
    color: var(--primary-dark);
}

.hero-btn-secondary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    background: var(--gray-100);
    color: var(--primary);
}

.hero-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Hero Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 2;
}

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

/* === Product Cards === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.08);
}

.product-card .card-image .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .card-image .card-overlay {
    opacity: 1;
}

.product-card .card-image .card-overlay a {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    margin: 0 0.3rem;
}

.product-card .card-image .card-overlay a:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.product-card .card-image .badge-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card .card-image .badge-stock.available {
    background: rgba(0, 200, 83, 0.9);
    color: white;
}

.product-card .card-image .badge-stock.empty {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

.product-card .card-body {
    padding: 1.2rem;
}

.product-card .card-body .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.product-card .card-body .card-title a {
    color: inherit;
}

.product-card .card-body .card-title a:hover {
    color: var(--primary);
}

.product-card .card-body .card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.product-card .card-body .card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-slider .owl-item {
    padding: 0.5rem;
}

/* === Featured Product (Ogani-style cards) === */
.featured__item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.featured__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured__item__pic {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.featured__item:hover .featured__item__pic img {
    transform: scale(1.08);
}

.featured__item__pic__hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
    list-style: none;
    margin: 0;
    padding: 0;
}

.featured__item:hover .featured__item__pic__hover {
    opacity: 1;
}

.featured__item__pic__hover li a {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.featured__item__pic__hover li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.featured__item__text {
    padding: 1.2rem;
    text-align: center;
}

.featured__item__text h6 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.featured__item__text h6 a {
    color: var(--gray-800);
}

.featured__item__text h6 a:hover {
    color: var(--primary);
}

.featured__item__text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* === Buttons === */
.site-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-green);
}

.site-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 66, 37, 0.4);
    color: var(--white);
}

.site-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.site-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.site-btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.site-btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.primary-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-green);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 66, 37, 0.4);
    color: var(--white);
}

/* === Forms === */
.form-control-modern {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    width: 100%;
    font-family: var(--font-primary);
}

.form-control-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 66, 37, 0.15);
    outline: none;
}

.form-label-modern {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* === Breadcrumb === */
.breadcrumb-modern {
    background: var(--primary-gradient);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.breadcrumb-modern h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.breadcrumb-modern .breadcrumb-links {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.breadcrumb-modern .breadcrumb-links a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-modern .breadcrumb-links a:hover {
    color: var(--accent);
}

/* === Footer === */
.footer-modern {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.footer-modern .footer-top {
    padding: 4rem 0 2rem;
}

.footer-modern .footer-widget {
    margin-bottom: 2rem;
}

.footer-modern .footer-widget h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-modern .footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-modern .footer-widget p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.footer-modern .footer-widget i {
    width: 24px;
    color: var(--accent);
}

.footer-modern .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* === Comments Section === */
.comment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.comment-card:hover {
    box-shadow: var(--shadow-md);
}

.comment-item {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    transition: var(--transition);
}

.comment-item:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* === Modal === */
.modal-modern .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-modern .modal-header {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 1.2rem 1.5rem;
}

.modal-modern .modal-header .close {
    color: var(--white);
    opacity: 0.8;
    text-shadow: none;
}

.modal-modern .modal-header .close:hover {
    opacity: 1;
}

.modal-modern .modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* === Cart Page === */
.cart-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.cart-summary h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

/* === Status Badges === */
.badge-modern {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-modern.bg-warning {
    background: #fff3cd !important;
    color: #856404;
}

.badge-modern.bg-success {
    background: #d4edda !important;
    color: #155724;
}

.badge-modern.bg-info {
    background: #d1ecf1 !important;
    color: #0c5460;
}

.badge-modern.bg-danger {
    background: #f8d7da !important;
    color: #721c24;
}

/* === Tables === */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.table-modern thead th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: var(--transition);
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
}

/* === Recipe Cards === */
.recipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.recipe-card .recipe-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.recipe-card .recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.08);
}

.recipe-card .recipe-image .recipe-price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-green);
}

.recipe-card .recipe-body {
    padding: 1.2rem;
}

.recipe-card .recipe-body h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.recipe-card .recipe-body h5 a {
    color: var(--gray-800);
}

.recipe-card .recipe-body h5 a:hover {
    color: var(--primary);
}

.recipe-card .recipe-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* === Accordion === */
.accordion-modern .card {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-modern .card-header {
    background: var(--primary-gradient);
    padding: 0;
    border: none;
}

.accordion-modern .card-header button {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 1.2rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-modern .card-header button:hover {
    background: rgba(255,255,255,0.1);
}

.accordion-modern .card-body {
    padding: 1.2rem;
    background: var(--white);
}

/* === Contact Page === */
.contact-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.contact-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-widget .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-widget:hover .icon {
    background: var(--primary-gradient);
    color: var(--white);
}

.contact-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-widget p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* === Map === */
.map-modern {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-modern iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* === Pagination === */
.pagination-modern .page-link {
    border: none;
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.pagination-modern .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* === Alert === */
.alert-modern {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

/* === Section Spacing === */
section {
    padding: 5rem 0;
}

section.spad {
    padding: 5rem 0;
}

/* === Product Slider === */
.owl-carousel .owl-nav button {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.owl-carousel .owl-nav button:hover {
    transform: scale(1.1);
}

.owl-carousel .owl-dots .owl-dot span {
    background: var(--gray-300);
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: var(--transition);
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* === Chatbot === */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    transition: var(--transition);
    overflow: hidden;
}

.chatbot-container.minimized {
    height: 60px;
    border-radius: var(--radius-full);
    width: 60px;
}

.chatbot-container.minimized .chatbot-header span,
.chatbot-container.minimized .chatbot-body {
    display: none;
}

.chatbot-container.minimized .chatbot-header {
    justify-content: center;
    border-radius: var(--radius-full);
}

.chatbot-container.minimized #chatbot-toggle {
    font-size: 1.5rem;
}

.chatbot-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.chatbot-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-container.minimized .chatbot-body {
    display: none;
}

.chatbot-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.bot-message {
    background: var(--primary-light);
    color: var(--primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--primary-gradient);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    background: var(--white);
}

.chatbot-input-container input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.chatbot-input-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 66, 37, 0.15);
}

.chatbot-input-container button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.chatbot-input-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 66, 37, 0.4);
}

.chatbot-input-container button:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    box-shadow: none;
}

.typing-indicator {
    display: none;
    padding: 0.8rem 1rem;
    background: var(--primary-light);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
}

.typing-indicator.active {
    display: block;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* === Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* === Utility Classes === */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.shadow-green {
    box-shadow: var(--shadow-green);
}

.rounded-12 {
    border-radius: var(--radius-md);
}

.rounded-16 {
    border-radius: var(--radius-lg);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.transition-all {
    transition: var(--transition);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .hero-modern {
        min-height: 450px;
    }

    section {
        padding: 3rem 0;
    }

    section.spad {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-modern {
        min-height: 400px;
    }

    .hero-content {
        padding: 6rem 0 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .header-top-bar {
        font-size: 0.75rem;
    }

    .header-main {
        padding: 0.5rem 0;
    }

    .header-logo img {
        height: 35px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .featured__item__pic {
        height: 200px;
    }

    .cart-item {
        padding: 1rem;
    }

    .chatbot-container {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
        height: 450px;
    }

    .footer-modern .footer-top {
        padding: 2rem 0 1rem;
    }

    .breadcrumb-modern {
        padding: 2rem 0;
    }

    .breadcrumb-modern h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .header-top-bar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
