/* 
==================================
   VARIABLES & MODERN THEME
================================== 
*/
:root {
    /* Primary Colors */
    --primary-color: #059669;
    /* Deep Emerald Green */
    --primary-light: #34d399;
    --primary-dark: #047857;

    /* Layout Variables */
    --header-height: 90px;

    /* Secondary Colors */
    --secondary-color: #f59e0b;
    /* Warm Gold */
    --secondary-light: #fbbf24;

    /* Neutral Colors */
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;

    /* Utility Colors */
    --danger: #ef4444;
    --success: #10b981;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Modern & Clean */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* 
==================================
   RESET & BASE
================================== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
    margin-top: 0;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
==================================
   UTILITY CLASSES
================================== 
*/
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.3s;
}

.btn:hover::after {
    transform: scaleY(1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.23);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
    border-radius: var(--radius-md);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

/* 
==================================
   HEADER & NAVBAR
================================== 
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 2rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #3b82f6;
    /* XR blue color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: none;
    /* Hidden on very small screens */
}

@media (min-width: 768px) {
    .search-container {
        display: block;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--border-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn span {
    display: none;
}

@media (min-width: 1024px) {
    .action-btn span {
        display: inline-block;
    }
}

.cart-btn {
    position: relative;
    padding-right: 0;
    /* Removed padding */
    display: inline-flex;
    align-items: center;
}

.icon-badge-container {
    position: relative;
    display: inline-flex;
    margin-right: 0.75rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* 
==================================
   HERO SECTION
================================== 
*/
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
}

.hero-blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-blob::after {
    content: '🛒';
    font-size: 8rem;
    position: absolute;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* 
==================================
   SECTION HEADERS
================================== 
*/
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.view-all {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* 
==================================
   CATEGORIES GRID
================================== 
*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* 
==================================
   PRODUCT GRID
================================== 
*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-light);
    overflow: hidden;
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* 
==================================
   FOOTER
================================== 
*/
.footer {
    background-color: #1a1b26;
    /* Dark slate matching image */
    color: var(--white);
    padding: 5rem 0 4rem;
}

.footer-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.03);
    /* Subtle backdrop */
}

/* Custom styling inspired by the image's vibrant icons */
.truck-icon {
    color: #ff5252;
}

.wallet-icon {
    color: #ffb142;
}

.support-icon {
    color: #ff5252;
}

.feature-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.feature-item h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0 auto 3rem;
    width: 90%;
    max-width: 1000px;
}

.footer-details {
    text-align: center;
}

.store-label {
    text-transform: uppercase;
    color: #6b7280;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-details h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-details p {
    color: #9ca3af;
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Restored Footer Links Grid styling matching the design */
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.logo-text-plain {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280 !important;
    /* Muted gray text for "Fresh Groceries" in footer */
    margin-bottom: 0.5rem !important;
}

.footer-desc {
    color: #f3f4f6;
    /* Lighter text for description */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links-text {
    display: flex;
    gap: 0.5rem;
    color: #f3f4f6;
    font-size: 0.9rem;
}

.social-links-text a {
    color: #f3f4f6;
}

.social-links-text a:hover {
    color: var(--primary-light);
}

.footer-heading {
    color: #4b5563;
    /* Darker gray heading for links */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-text {
    color: #f3f4f6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    /* Input and button side by side */
}

.newsletter-form input {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    flex: 1;
}

.newsletter-form .btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 1.5rem 0 0;
    text-align: left;
    color: #f3f4f6;
    font-size: 0.85rem;
}

/* 
==================================
   PAGES SPECIFIC (About & Contact)
================================== 
*/
.page-header {
    padding: 10rem 0 4rem;
    background-color: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.img-placeholder.large {
    min-height: 400px;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--primary-dark);
}

.about-content-inner p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.info-item p {
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background-color: var(--white);
}

/* Form validation styling */
.form-group.error .form-control {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.05);
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

.form-group.success .form-control {
    border-color: var(--success);
}

/* 
==================================
   RESPONSIVE (MEDIA QUERIES)
================================== 
*/

/* Tablet / Medium Devices */
@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop / Large Devices */
@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .nav-list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
}

/* 
==================================
   3-COLUMN E-COMMERCE LAYOUT
================================== 
*/

/* Layout Container */
.store-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--header-height));
    align-items: start;
}

/* Base Sidebar Styles */
.category-sidebar,
.cart-sidebar {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    /* Hide scrollbar for clean UI */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-sidebar::-webkit-scrollbar,
.cart-sidebar::-webkit-scrollbar {
    display: none;
}

/* Category Sidebar */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 0.5rem;
}

.category-list li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

.category-list li a:hover {
    background-color: var(--bg-light);
}

.category-list li.active a {
    background-color: #f0f8ff;
    /* Light blue tint matching screenshot */
    color: #1a73e8;
    /* Blue text */
    border-left-color: #1a73e8;
}

/* Center Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Redesigned Hero Banner (Center Column) */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e6f7e4 100%);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-banner .hero-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-banner .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Category Sections (Products Container) */
.category-section {
    margin-bottom: 3rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.category-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Horizontal Product Card */
.product-card-horizontal {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-medium);
    height: 140px;
    box-shadow: none;
}

.product-card-horizontal:hover {
    border-color: #94a3b8;
}

.product-image-container {
    width: 130px;
    height: 100%;
    position: relative;
    background-color: var(--bg-color);
    flex-shrink: 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-badge-abs {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background-color: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    z-index: 2;
}

.product-details-hz {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.product-title-hz {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.current-price-hz {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.original-price-hz {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Modified Add Button for Horizontal Card */
.btn-add-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    /* Light grayish-blue */
    color: #1a73e8;
    /* Blue text */
    border: 1px solid #cbd5e1;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-add-sm::after {
    content: '+';
    font-size: 1rem;
    font-weight: 400;
}

.btn-add-sm:hover {
    background-color: #e2e8f0;
}

/* Custom Quantity Selector in Card */
.qty-selector {
    display: flex;
    align-items: center;
    background-color: #1a73e8;
    /* Blue background */
    color: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 32px;
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    width: 28px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.qty-display {
    width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cart Panel Styling */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    position: relative;
    min-height: 200px;
}

/* Webkit scrollbar for inner cart */
.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

.empty-cart-icon {
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-width: 80%;
    max-height: 80%;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Overrides specific to Store Layout */
@media (max-width: 1200px) {
    .store-layout {
        grid-template-columns: 200px 1fr 280px;
        /* Compress sidebars slightly */
    }
}

@media (max-width: 1024px) {
    .store-layout {
        grid-template-columns: 1fr 280px;
        /* Hide category sidebar on smaller tablets */
    }

    .category-sidebar {
        display: none;
    }

    .cart-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
        /* Hide sidebar on mobile, use a horizontal scroll menu instead ideally */
    }
}