/* Search Results Styling */
.search-bar-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.search-bar-large input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar-large input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.search-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: var(--light-green);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Modern Cart Page Styles */
.cart-page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
}

.cart-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
/* USER INITIALS (TOP RIGHT) */
/* PROFILE ICON (CLEAN VERSION) */
#user_name {
    margin-left: 10px;
    cursor: pointer;
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* FIX: darker solid background */
     background: #1f2937; /* dark gray */

    /* FIX: strong white text */
    color: #ffffff;

    /* FIX: make text clear */
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;

    border-radius: 50%;

    border: 2px solid #ffffff;

    /* FIX: stronger shadow */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    text-transform: uppercase;
}

/* hover */
#user_name:hover {
    background: #1b5e20;
    transform: scale(1.08);
}


/* IMPORTANT: parent must be relative */
.header-actions-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}


/* PROFILE DROPDOWN */
.profile-dropdown {
    display: none;
    position: absolute;

    /* perfectly align under profile icon */
    right: 0;
    top: 50px;

    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    padding: 15px;
    z-index: 9999;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}


/* ACTIVE STATE (IMPORTANT) */
#user_dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* PROFILE HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* AVATAR */
.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-weight: bold;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* TEXT INFO */
.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

.profile-email {
    font-size: 12px;
    color: #777;
    margin: 0;
}


/* DIVIDER */
.profile-divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}


/* LOGOUT BUTTON */
.logout-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #e53935;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #c62828;
}


/* SMALL IMPROVEMENT: DROPDOWN ARROW */
.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;

    width: 12px;
    height: 12px;
    background: #fff;

    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.05);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-title i {
    font-size: 1.8rem;
}

.cart-header-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
}

.item-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Cart Page Layout */
.cart-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.clear-cart-btn {
    background: #ff4757;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-cart-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Cart Items Container */
.cart-items {
    padding: 1rem;
    min-height: 200px;
}

/* Enhanced Cart Item Styles */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background-color: rgba(46, 125, 50, 0.02);
    transform: translateX(4px);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.item-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    min-width: 80px;
    text-align: right;
}

.item-quantity {
    min-width: 120px;
}

.item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    min-width: 80px;
    text-align: right;
}

.remove-item {
    background: #ff4757;
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.remove-item:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1.5rem;
}

.empty-cart-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-cart-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.continue-shopping-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-shopping-btn:hover {
    background: #1B5E20;
    transform: translateY(-1px);
}

/* Recommended Section */
.recommended-section {
    padding: 2rem;
    border-top: 1px solid var(--border-light);
}

.recommended-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

/* Cart Summary Section */
.cart-summary-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.summary-header {
    padding: 1.5rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-light);
}

.summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-content {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.row-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.row-label i {
    color: var(--primary-green);
    font-size: 0.875rem;
}

.row-value {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.total-row {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.total-row .row-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.total-row .row-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-green);
}

/* Promo Section */
.promo-section {
    margin: 1.5rem 0;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.apply-promo-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-promo-btn:hover {
    background: #1B5E20;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
}

.checkout-security i {
    color: var(--primary-green);
}

/* Delivery Info Card */
.delivery-info-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.delivery-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-light);
}

.delivery-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.delivery-header i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.delivery-details {
    padding: 1.5rem;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-item i {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.delivery-text {
    flex: 1;
    line-height: 1.4;
}

.delivery-text strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.delivery-text span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.change-location-btn {
    width: 100%;
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem;
    border-radius: 0 0 16px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-location-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1.2fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background-color: var(--background-light);
    transform: translateX(4px);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

.cart-item p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.item-price, .item-total {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.cart-qty-input {
    width: 50px;
    padding: 0.5rem;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
}

.cart-qty-input:focus {
    outline: none;
}

.qty-btn {
    background: var(--background-light);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-green);
    color: white;
}

.qty-btn:first-child {
    border-right: 1px solid var(--border-light);
}

.qty-btn:last-child {
    border-left: 1px solid var(--border-light);
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.remove-item:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 2px dashed var(--border-light);
    margin: 2rem 0;
}

.cart-summary {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.cart-summary h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-green);
    border-top: 2px solid var(--primary-green);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(90deg, rgba(46,125,50,0.05) 0%, transparent 100%);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #4CAF50 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46,125,50,0.4);
}

/* Cart Button Animation */
.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
}

/* Cart Button Badge */
.cart-btn {
    position: relative;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Detail Enhancements */
.product-image-large img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-details .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 1rem 0;
}

.product-details .weight {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector input {
    border: none;
    width: 60px;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
}

.quantity-selector button {
    background: var(--background-light);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.2s ease;
}

.quantity-selector button:hover {
    background: var(--border-light);
}

.add-to-cart-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--light-green);
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb span {
    color: var(--text-dark);
}

/* Easy Groceries Wireframe CSS */

/* Variables */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --accent-green: #81C784;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #E0E0E0;
    --background-light: #FAFAFA;
    --white: #FFFFFF;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.hideAll {
    display: none;
}

.pointer {
    cursor: pointer;
}

/* Header Styles - Completely Redesigned */
.site-header {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.site-header .grid-container,
.site-main .grid-container,
.site-footer .grid-container {
    max-width: 1200px;
}

.site-header .grid-x {
    align-items: center;
}

/* Header Top Row */
.header-actions-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    height: 85px;
    padding: 1rem 0;
}

.header-actions-top span {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.header-actions-top span:hover {
    color: var(--primary-green);
}

/* Header Location Row (Bottom) */
.header-location-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
}

.location-section {
    width: 100%;
    max-width: 500px;
}

/* Search Section (Center) */
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    padding: 1rem 0;
}

/* Updated Header Middle for New Layout */
.header-middle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.departments-wrap {
    position: relative;
    height: 38px;
    display: flex;
    align-items: center;
}

.departments-dropdown {
    background-color: var(--white);
    border: 2px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-dark);
    min-width: 180px;
    font-weight: 500;
    font-size: 0.9rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.departments-dropdown:hover {
    border-color: var(--primary-green);
}

.departments-dropdown:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.search-bar {
    flex: 1;
    max-width: 350px;
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.search-bar.focused {
    transform: scale(1.02);
}

.search-bar i {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.search-bar.focused i {
    color: var(--primary-green);
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: var(--white);
    height: 38px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.search-bar input::placeholder {
    color: var(--text-light);
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background-color: var(--white);
}

.search-bar input:focus::placeholder {
    color: var(--primary-green);
    opacity: 0.7;
}

/* Logo - Bigger and Clean - No Line */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    min-width: 280px;
    padding-right: 2rem;
}

.header-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Header Middle Section - Better Spacing */
.header-middle {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    padding: 0 2.5rem;
    height: 80px;
}

/* Departments Dropdown - Reduced Height with Top Padding */
.departments-wrap {
    position: relative;
    height: 38px;
    display: flex;
    align-items: center;
    padding-top: 14px;
}

.departments-dropdown {
    background-color: var(--white);
    border: 2px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-dark);
    min-width: 200px;
    font-weight: 500;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.departments-dropdown:hover {
    border-color: var(--primary-green);
}

.departments-dropdown:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

/* Search Bar - Fixed Icon Positioning */
.search-bar {
    flex: 1;
    max-width: 450px;
    height: 38px;
    display: flex;
    align-items: center;
    padding-top: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.search-bar.focused {
    transform: scale(1.02);
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-light);
    font-size: 0.95rem;
    z-index: 2;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.search-bar.focused i {
    color: var(--primary-green);
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--white);
    height: 38px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.search-bar input::placeholder {
    color: var(--text-light);
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background-color: var(--white);
}

.search-bar input:focus::placeholder {
    color: var(--primary-green);
    opacity: 0.7;
}

/* Location Selector - Grocery Store Style */
.location-selector {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
}

.location-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    box-sizing: border-box;
    min-width: 280px;
    position: relative;
}

.location-display:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.location-display.active {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.location-icon {
    color: var(--primary-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.location-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.location-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.125rem;
}

.location-address {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-dropdown-icon {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.location-display.active .location-dropdown-icon {
    transform: rotate(180deg);
}

/* Location Dropdown */
.location-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-width: 350px;
}

.location-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--background-light);
    border-radius: 12px 12px 0 0;
}

.location-list {
    max-height: 300px;
    overflow-y: auto;
}

.location-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.location-item:hover {
    background-color: var(--background-light);
}

.location-item.selected {
    background-color: rgba(46, 125, 50, 0.1);
    border-left: 3px solid var(--primary-green);
}

.location-item:last-child {
    border-bottom: none;
}

.location-item-icon {
    color: var(--primary-green);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.location-item-info {
    flex: 1;
    min-width: 0;
}

.location-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.location-item-address {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-item-hours {
    font-size: 0.7rem;
    color: var(--primary-green);
    margin-top: 0.25rem;
    font-weight: 500;
}

.dropdown-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--background-light);
    border-radius: 0 0 12px 12px;
}

.view-all-locations-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-all-locations-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Location List Scrollbar */
.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 3px;
}

.location-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Location Change Notification */
.location-change-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.location-change-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.location-change-notification i {
    font-size: 1.1rem;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notification i {
    font-size: 1.1rem;
}

/* Store Locations Page */
.location-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.location-page-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.location-page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.location-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.location-card.selected {
    border: 3px solid var(--primary-green);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.2);
}

.location-card.selected .location-card-header::after {
    content: 'Current Store';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.location-card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
}

.location-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.location-card-content {
    padding: 1.5rem;
}

.location-info {
    margin-bottom: 1.5rem;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.location-info-item:last-child {
    margin-bottom: 0;
}

.location-info-item i {
    color: var(--primary-green);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 20px;
}

.location-info-item-text {
    flex: 1;
}

.location-info-item-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.location-info-item-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.location-map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-card-actions {
    padding: 0 1.5rem 1.5rem;
}

.select-store-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.select-store-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.select-store-btn.selected {
    background: var(--background-light);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.select-store-btn.selected:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Cart Page */
@media screen and (max-width: 768px) {
    .cart-page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .cart-header-content {
        padding: 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-title {
        font-size: 1.75rem;
    }
    
    .cart-header-info {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .cart-page-layout {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .cart-items-section {
        order: 2;
    }
    
    .cart-summary-section {
        order: 1;
        position: relative;
        top: 0;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
    }
    
    .cart-items {
        padding: 0.5rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 1rem;
        padding: 1rem;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .item-price,
    .item-total {
        display: none;
    }
    
    .item-quantity {
        min-width: auto;
    }
    
    .item-info h4 {
        font-size: 1rem;
    }
    
    .item-info p {
        font-size: 0.85rem;
    }
    
    .summary-card {
        order: 1;
    }
    
    .delivery-info-card {
        order: 2;
    }
    
    .recommended-section {
        padding: 1.5rem;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .cart-page-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .cart-header-content {
        padding: 0 1rem;
    }
    
    .cart-title {
        font-size: 1.5rem;
    }
    
    .cart-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cart-page-layout {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .clear-cart-btn {
        align-self: flex-end;
    }
    
    .cart-items {
        padding: 0;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-quantity {
        grid-column: 1 / -1;
        min-width: auto;
    }
    
    .remove-item {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .summary-header,
    .summary-content {
        padding: 1rem;
    }
    
    .summary-header h3 {
        font-size: 1.1rem;
    }
    
    .summary-row {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .total-row .row-label,
    .total-row .row-value {
        font-size: 1.1rem;
    }
    
    .checkout-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .delivery-header,
    .delivery-details {
        padding: 1rem;
    }
    
    .delivery-header h4 {
        font-size: 1rem;
    }
    
    .recommended-section {
        padding: 1rem;
    }
    
    .recommended-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Responsive Design for Mobile - New Header Layout */
@media screen and (max-width: 768px) {
    .header-actions-top {
        justify-content: center;
        gap: 1rem;
        height: auto;
        padding: 0.75rem 0;
    }
    
    .search-section {
        justify-content: center;
        height: auto;
        padding: 0.75rem 0;
    }
    
    .header-location-row {
        justify-content: center;
        padding: 0.75rem 0;
    }
    
    .location-section {
        max-width: none;
        width: 100%;
    }
    
    .header-middle {
        justify-content: center;
        max-width: none;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .departments-dropdown {
        min-width: 160px;
        font-size: 0.85rem;
    }
    
    .search-bar {
        max-width: 280px;
    }
    
    .location-display {
        min-width: auto;
        width: 100%;
        padding: 0.625rem 0.875rem;
    }
    
    .location-text {
        flex: 1;
        min-width: 0;
    }
    
    .location-address {
        font-size: 0.8rem;
    }
    
    .location-label {
        font-size: 0.7rem;
    }
    
    .location-dropdown {
        max-width: none;
        left: -10px;
        right: -10px;
        width: calc(100% + 20px);
    }
    
    .location-change-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .location-change-notification.show {
        transform: translateY(0);
    }
    
    /* Locations Page Mobile */
    .location-page-header h1 {
        font-size: 2rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-card-header {
        padding: 1.25rem;
    }
    
    .location-card-header h3 {
        font-size: 1.1rem;
    }
    
    .location-card-content {
        padding: 1.25rem;
    }
    
    .location-info-item {
        gap: 0.625rem;
    }
    
    .location-info-item-value {
        font-size: 0.85rem;
    }
    
    .location-map {
        height: 200px;
    }
    
    .location-card-actions {
        padding: 0 1.25rem 1.25rem;
    }
    
    .select-store-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .header-actions-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .header-actions-top span {
        font-size: 0.85rem;
        height: auto;
        padding: 0.5rem 0.75rem;
    }
    
    .header-actions-top .cart-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        height: auto;
    }
    
    .search-section {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .header-middle {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .departments-dropdown {
        width: 100%;
        max-width: 200px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 250px;
    }
    
    .location-display {
        height: 44px;
        padding: 0.5rem 0.75rem;
    }
    
    .location-icon {
        font-size: 1rem;
    }
    
    .location-dropdown-icon {
        font-size: 0.8rem;
    }
    
    .location-page-header h1 {
        font-size: 1.75rem;
    }
    
    .location-page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .location-card-header {
        padding: 1rem;
    }
    
    .location-card-header h3 {
        font-size: 1rem;
    }
    
    .location-card-content {
        padding: 1rem;
    }
    
    .location-info-item {
        gap: 0.5rem;
    }
    
    .location-info-item i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .location-info-item-value {
        font-size: 0.8rem;
    }
    
    .location-map {
        height: 180px;
    }
    
    .location-card-actions {
        padding: 0 1rem 1rem;
    }
    
    .select-store-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Cart Button - Consistent Height and Alignment */
.header-actions-top .cart-btn {
    background-color: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 48px;
    box-sizing: border-box;
}

.header-actions-top .cart-btn:hover {
    background-color: #1B5E20;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-actions-top .cart-btn:active {
    transform: translateY(0);
}

.user-name {
    color: var(--primary-green) !important;
    font-weight: 600 !important;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: var(--background-light);
}

body.no-sidebar .site-main aside {
    display: none;
}

body.no-sidebar .site-main section.cell {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Departments Sidebar */
.departments-sidebar {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.departments-sidebar h3 {
    background-color: var(--primary-green);
    color: var(--white);
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.departments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
}

.departments-list li {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.departments-list li:hover {
    background-color: var(--background-light);
}

.departments-list li.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.departments-list li i {
    width: 20px;
    text-align: center;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.35rem;
    margin-top: 1.25rem;
}

/* Section Header with Scroll Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.scroll-controls {
    display: flex;
    gap: 0.5rem;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.scroll-btn:active {
    transform: scale(0.95);
}

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

/* Beautiful Products Scroller */
.products-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    margin: 0 -1rem;
    padding-left: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) #f1f1f1;
}

.products-scroller::-webkit-scrollbar {
    height: 8px;
}

.products-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 10px;
}

.products-scroller::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #1B5E20, var(--primary-green));
}

/* Enhanced Product Cards for Scroller */
.products-scroller .product-card {
    flex: 0 0 auto;
    width: 200px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.products-scroller .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.products-scroller .product-card:hover::before {
    transform: scaleX(1);
}

.products-scroller .product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

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

.products-scroller .product-card:hover .product-image img {
    transform: scale(1.1);
}

.products-scroller .product-info {
    padding: 1rem;
    text-align: center;
}

.products-scroller .product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.products-scroller .product-info .weight {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.products-scroller .product-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.products-scroller .add-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-scroller .add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-info .weight {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 0 0 1rem 0;
}

.add-btn {
    width: 100%;
    background-color: #E6F2E8;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Instacart-style add control */
.qty-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background-color: #E6F2E8;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.qty-control.is-active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.qty-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.qty-value {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 20px;
    text-align: center;
}

.departments-list::-webkit-scrollbar {
    width: 8px;
}

.departments-list::-webkit-scrollbar-thumb {
    background-color: #C5C9CD;
    border-radius: 999px;
}

/* Department Header */
.department-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.department-header h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 2.1rem;
}

.sort-dropdown {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    color: var(--text-dark);
}

/* Product Detail Page */
.product-detail {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.product-image-large {
    text-align: center;
}

.product-image-large img {
    max-width: 100%;
    border-radius: 12px;
}

.product-details h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-meta {
    margin-bottom: 2rem;
}

.product-meta .weight {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-meta .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-top: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-selector button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem;
}

.add-to-cart-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Home Page Sections */
/* Enhanced Hero Section */
.hero-card {
    background: linear-gradient(135deg, #D7E9C4 0%, #E8F5D8 100%);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.cta-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.hero-kicker {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.15);
    position: relative;
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: brightness(1);
        transform: translateY(0px);
    }
    to {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }
}

.hero-kicker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.02) 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-kicker:hover::before {
    opacity: 1;
}

.hero-kicker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.hero-kicker:hover::after {
    width: 100%;
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Enhanced CTA Button - Animated */
.hero-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.hero-btn:active {
    transform: translateY(0);
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.hero-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Hero Image */
.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.hero-media:hover .hero-image {
    transform: scale(1.05);
}

/* Departments Sidebar Styles */
.departments-sidebar {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-media .media-placeholder {
    height: 160px;
}

.section-block {
    margin-top: 2.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0.5rem auto 0;
    border-radius: 999px;
}

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

.category-grid.eight-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}


/* Enhanced Department Cards - Grocery Store Style */
.category-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-align: center;
}

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

.category-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

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

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

.category-content {
    padding: 1rem;
    text-align: center;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(46, 125, 50, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Enhanced Section Blocks - Better Spacing for UI/UX */
.section-block {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

/* Enhanced Section Title - Better Spacing */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

/* Enhanced Feature Cards - Perfect Alignment & Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    justify-content: space-between;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1B5E20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium Promotional Section - Grocery Store Style */
.promo-section {
    margin: 3rem 0;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(46, 125, 50, 0.3);
    position: relative;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="50" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.promo-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 400px;
}

.promo-content {
    padding: 3rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

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

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.discount-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.promo-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.promo-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.promo-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.promo-benefits i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.promo-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1B5E20;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.promo-btn:hover::before {
    left: 100%;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.promo-btn:active {
    transform: translateY(-1px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.promo-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.promo-terms {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.promo-visual {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.discount-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.discount-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.discount-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
}

/* Enhanced Testimonials Section - Perfect Same Height & Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    min-height: 260px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--primary-green);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.customer-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-green);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 1;
    display: flex;
    align-items: center;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-top: auto;
}

.testi-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.testi-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.testi-name {
    color: var(--text-light);
}

/* Placeholders */
.media-placeholder,
.thumb-placeholder,
.icon-placeholder,
.avatar-placeholder {
    background-color: #F1F3F5;
    border: 2px dashed #C5C9CD;
    color: #8C9196;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    min-height: 90px;
}

.thumb-placeholder {
    min-height: 70px;
}

.icon-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 84px;
    height: 84px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
}

/* Product Page Extras */
.breadcrumb {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.item-code {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

/* Cart Page */
.cart-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-top: 1rem;
}

.checkout-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.form-container input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.auth-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.8rem;
}

.auth-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #F8F9FA;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.auth-actions a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-actions a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background-color: var(--border-light);
    flex: 1;
}

.auth-cta {
    text-align: center;
    margin-top: 0.5rem;
}

.auth-cta a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-cta a:hover {
    text-decoration: underline;
}

.form-links {
    margin-top: 0.75rem;
    text-align: center;
}

.form-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-link:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #0E5A2A;
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-about .logo {
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-green);
}

.footer-links h4 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: "";
    display: block;
    height: 2px;
    width: 90px;
    background-color: rgba(255,255,255,0.8);
    margin-top: 0.35rem;
    border-radius: 999px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-newsletter h4::after {
    content: "";
    display: block;
    height: 2px;
    width: 110px;
    background-color: rgba(255,255,255,0.8);
    margin-top: 0.35rem;
    border-radius: 999px;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 999px;
}

.subscribe-btn {
    background-color: var(--light-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Order Summary */
.order-summary {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
    border-top: 2px solid var(--border-light);
    padding-top: 1rem;
}

/* Locations */
.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.location-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .category-grid.eight-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .department-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .promo-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Legacy Classes for Compatibility */
.pink {
    background-color: pink;
}

.paleblue {
    background-color: paleturquoise;
}

.red {
    background-color: red;
}

.blue {
    background-color: blue;
}

.header_background {
    background-color: red;
}

.callout {
    border: none;
}

.splash {
    display: block;
}
