/* --- Merged Stylesheet (Style-1, Delicious Foods, Modern Navigation + Home Page Styles) --- */

:root {
    /* Color Variables (Combined & Consolidated) */
    --primary-color: #d32f2f; /* Dark Red */
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;

    --secondary-color: #ffa000; /* Amber/Orange */
    --secondary-dark: #c67100;
    --secondary-light: #ffd149;

    --accent-color: #4caf50; /* Green */
    --accent-dark: #387e3b;
    --accent-light: #6fbf73;

    --light-color: #fff9c4; /* Pale Yellow */
    --dark-color: #5d4037; /* Brown */
    --dark-light: #8b6b61;

    /* Neutral Colors (Using Bootstrap naming convention) */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;

    /* System Colors (Mapped to Bootstrap/Default) */
    --info-color: #0d6efd; /* Blue */
    --danger-color: #dc3545; /* Red for alerts/wishlist active */
    --warning-color: #ffc107; /* Yellow for stars/warnings */

    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-product: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Reset and Base Styles (Delicious Foods) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography (Delicious Foods) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

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

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

/* --- Navigation & Header Styles (Modern Navigation Priority) --- */

.navbar {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.navbar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.navbar-nav {
    gap: 8px;
    margin: 0 40px;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-800) !important;
    padding: 15px 24px !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(255, 160, 0, 0.08));
    transform: translateY(-2px);
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.12), rgba(255, 160, 0, 0.12));
    font-weight: 700;
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

/* Search Container */
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.15);
    transform: translateY(-1px);
}

.search-input {
    border: none;
    background: transparent;
    padding: 12px 50px 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-500);
    font-weight: 500;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.25);
}

.action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.quick-categories {
    padding: 20px;
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    border-bottom: 1px solid var(--gray-200);
}

.search-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-700);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.category-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

/* --- Product Card & Related Styles (Priority to Specificity & Combined Effects) --- */

.product-card {
    border: none;
    transition: var(--transition-product);
    margin-bottom: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.image-container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 16px);
    z-index: 2;
}

.badge {
    font-size: 0.65rem;
    padding: 0.3em 0.6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    font-weight: 500;
    border-radius: 50rem;
}

.badge.bg-danger {
    background-color: var(--primary-color) !important;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 3;
}

.wishlist-btn {
    opacity: 0.9;
    transition: all 0.3s ease;
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    flex-shrink: 0;
    border-radius: var(--border-radius-md);
    background: var(--white);
    z-index: 3;
}

.wishlist-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    background: var(--gray-100);
    border-color: var(--gray-600);
}

.wishlist-btn.active {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.wishlist-btn.active i {
    color: white;
}

.wishlist-btn i {
    font-size: 1rem;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-btn.added i {
    animation: heartBeat 0.6s ease;
    color: var(--danger-color);
}

/* Card General Styles */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    font-weight: bold;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Form Styles --- */
.form-check-input:checked {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.form-control {
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.form-text {
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-select {
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    transition: all var(--transition-normal);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

/* Password Strength */
.password-strength {
    height: 5px;
    background: var(--gray-300);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-xs);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.strength-weak {
    background: var(--danger-color);
    width: 25%;
}

.strength-fair {
    background: #fd7e14;
    width: 50%;
}

.strength-good {
    background: var(--warning-color);
    width: 75%;
}

.strength-strong {
    background: var(--accent-color);
    width: 100%;
}

.password-requirements {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.requirement-met {
    color: var(--accent-dark);
}

.requirement-unmet {
    color: var(--gray-600);
}

.password-toggle {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* --- Buttons & Utility Classes --- */

.btn {
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-dark {
    border-color: var(--gray-700);
    color: var(--gray-700);
}

.btn-outline-dark:hover {
    background-color: var(--gray-700);
    color: var(--white);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Utility Classes */
.text-warning {
    color: var(--warning-color) !important;
}

.d-flex.gap-2 {
    gap: 0.5rem !important;
}

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

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

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

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }

/* --- Page Sections and Layout --- */

/* Hero Section - Combining page-hero and hero-section */
.page-hero,
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.page-hero h1,
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero p,
.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Section Title (Delicious Foods Specific) */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    color: var(--dark-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Page Content */
.page-content {
    padding: 3rem 0;
}

/* Dashboard Container */
.dashboard-container {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

/* Sidebar & Filters */
.sidebar {
    background: var(--dark-color);
    color: var(--white);
    padding: 0;
    min-height: 600px;
}

.sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: rgba(0,0,0,0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--white);
    transition: transform var(--transition-normal);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color var(--transition-fast);
}

.sidebar-menu li:hover {
    background-color: rgba(255,255,255,0.05);
}

.sidebar-menu a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 0.5rem);
    text-decoration: none;
}

.sidebar-menu i {
    width: 20px;
    margin-right: var(--spacing-sm);
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: var(--spacing-xl);
}

/* Profile Styles */
.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-300);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    width: 100%;
    text-align: center;
    padding: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color var(--transition-fast);
}

.avatar-upload:hover {
    background: rgba(0,0,0,0.9);
}

/* Delicious Foods Sections */
.category-section {
    background-color: var(--gray-100);
    padding: 50px 0;
}

.category-card {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s;
    cursor: pointer;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.category-card:hover {
    background-color: var(--light-color);
    transform: scale(1.05);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.offer-banner {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin: 50px 0;
}

.offer-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.testimonial-card {
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    background-color: var(--white);
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-card .rating {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.trending-products {
    background-color: var(--white);
    padding: 50px 0;
}

.newsletter-section {
    background-color: var(--light-color);
    padding: 50px 0;
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.about-section {
    padding: 50px 0;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.location-section {
    padding: 50px 0;
    background-color: var(--gray-100);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Loading and No Products */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.no-products {
    display: none;
    text-align: center;
    padding: 3rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 3rem;
}

footer h5 {
    color: var(--light-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: var(--spacing-md);
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.social-icons a:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.payment-methods img {
    height: 30px;
    margin-right: var(--spacing-sm);
    filter: grayscale(100%);
    transition: filter var(--transition-fast);
}

.payment-methods img:hover {
    filter: grayscale(0%);
}

/* --- Animations & Accessibility --- */

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #b30000;
        --secondary-color: #cc7a00;
        --accent-color: #006600;
        --dark-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --- Home Page Specific Styles --- */

/* Product Image Box */
.product-image-box {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

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

/* Badges for Home Page */
.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff5722;
    padding: 5px 12px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    z-index: 10;
}

.badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0d6efd;
    padding: 5px 12px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    z-index: 10;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.view-all-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    color: white;
}

/* Best Sellers Section */
.best-sellers {
    padding: 60px 0;
    background: var(--white);
}

/* Newsletter Section Styles */
.newsletter-section {
    background: linear-gradient(135deg, #f1b00a 0%, #d92a0e 100%);;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background: var(--primary-color);
    border: none;
    font-weight: 600;
}

/* Location Section */
.location-section {
    padding: 60px 0;
    background: var(--gray-100);
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Offer Banner New Styles */
.offer-banner-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.offer-banner-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1200px;
}

.offer-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.offer-tag {
    background: var(--accent-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
}

.offer-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 20px 0 10px 0;
    line-height: 1.2;
}

.offer-subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.highlight {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.usage-progress {
    max-width: 400px;
    margin: 20px 0;
}

.progress {
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    transition: width 0.3s ease;
}

.coupon-container {
    max-width: 450px;
    margin: 25px 0;
}

.coupon-box {
    display: flex;
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    background: #fff9f9;
    transition: all 0.3s ease;
}

.coupon-box:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.15);
}

.coupon-left {
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
}

.coupon-input {
    border: none;
    text-align: center;
    width: 100%;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    background: transparent;
    padding: 12px;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.btn-main {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
    color: white;
}

.btn-outline-main {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-main:hover {
    background: var(--primary-color);
    color: white;
}

.btn-share {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-share:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.countdown-wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #ffecec 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px !important;
}

.countdown-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.countdown-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.new-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.time-box {
    background: white;
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.time-box label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-top: 8px;
    display: block;
}

.time-separator {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 5px;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.meta-item i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Category Card Large */
.category-card-large {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    border: 1px solid var(--gray-200);
}

.category-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.category-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
    color: var(--white);
}

.category-overlay h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.category-content {
    padding: 18px;
}

.category-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.category-content p {
    color: var(--gray-600);
    font-size: 15px;
    margin-top: 6px;
}

.category-stats span {
    margin-right: 15px;
    font-size: 14px;
    color: var(--gray-700);
}

/* Category Description Box */
.category-description {
    background: var(--white);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    border: 1px solid var(--gray-200);
}

.category-description h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.category-description h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.category-description ul {
    padding-left: 20px;
}

.category-description li {
    margin-bottom: 8px;
    color: var(--gray-600);
}

/* Owl Carousel Customization */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.owl-prev, .owl-next {
    background: rgba(255, 255, 255, 0.8) !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    transition: all 0.3s ease;
}

.owl-prev:hover, .owl-next:hover {
    background: rgba(255, 255, 255, 1) !important;
}

.owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.5) !important;
    display: block;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.owl-dot.active span {
    background: var(--primary-color) !important;
    width: 30px;
    border-radius: 15px;
}

/* --- Responsive Design (Combined) --- */

@media (max-width: 768px) {
    .filter-sidebar {
        margin-bottom: 2rem;
    }

    .page-hero,
    .hero-section {
        padding: 3rem 0;
    }

    .page-hero h1,
    .hero-section h1 {
        font-size: 2rem;
    }

    .dashboard-content {
        padding: var(--spacing-lg);
    }

    .sidebar {
        min-height: auto;
        margin-bottom: var(--spacing-lg);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Home Page Responsive */
    .hero-slider, .hero-slide {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .owl-prev, .owl-next {
        width: 40px;
        height: 40px;
        font-size: 18px !important;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-slide {
        height: 400px;
    }

    .category-card {
        padding: 1.5rem 0.5rem;
    }

    .offer-title {
        font-size: 2rem;
    }

    .new-timer {
        gap: 5px;
    }

    .time-box {
        min-width: 70px;
        padding: 15px 10px;
    }

    .time-box span {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-hero h1,
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }

    .dashboard-content {
        padding: var(--spacing-md);
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.25em 0.5em;
    }

    .product-badges {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 12px);
    }

    /* Home Page Small Screens */
    .hero-slider, .hero-slide {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-hero,
    .breadcrumb,
    .sidebar,
    footer {
        display: none !important;
    }

    .dashboard-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
