/* Home Foods E-commerce - Main Stylesheet */

:root {
    --primary-color: #27AE60;
    --primary-dark: #1E5E3E;
    --secondary-color: #52B788;
    --accent-color: #74C69D;
    --soft-ivory: #f0f9f4;
    --glass-surface: rgba(39, 174, 96, 0.05);
    --glass-border: rgba(39, 174, 96, 0.1);
    --shadow-soft: 0 20px 40px rgba(39, 174, 96, 0.12);
    --text-dark: #1a3a2f;
    --text-muted: #3d6b52;
    --page-gradient: linear-gradient(180deg, #f0f9f4 0%, #e8f5f0 55%, #dff5ed 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--page-gradient);
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Forms */
.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: 5px;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Navigation */
.navbar {
    background-color: #f0f9f4 !important;
    box-shadow: 0 1px 4px rgba(39, 94, 62, 0.06);
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.hf-logo {
    height: 100px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

/* Promo Box (Ready to Enjoy Premium Vegetables) */
.promo-chocolates-box {
    background: #27AE60;
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 5rem;
    box-shadow: 0 8px 32px rgba(111, 77, 56, 0.13);
    color: #fff;
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
    transform: none;
}

@media (max-width: 767px) {
    .promo-chocolates-box {
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
        border-radius: 10px;
    }
}

/* Premium layout utilities */
.premium-section {
    padding: 4rem 0;
    position: relative;
}

.premium-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(39, 174, 96, 0.08), transparent 45%);
    pointer-events: none;
}

.premium-section-inner {
    position: relative;
    z-index: 1;
}

.premium-hero {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
}

.premium-hero .hero-title {
    font-size: clamp(2.2rem, 3vw, 3rem);
    color: var(--primary-dark);
}

.premium-hero .hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.premium-feature-card {
    background: var(--glass-surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.premium-feature-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.premium-card {
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.premium-card h3,
.premium-card h4 {
    color: var(--primary-dark);
}

.premium-divider {
    height: 2px;
    width: 85px;
    background: var(--secondary-color);
    margin: 1rem 0 2rem;
    border-radius: 999px;
}

.premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.12);
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2.3rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.35);
    transition: all 0.25s ease;
}

.premium-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
}

.premium-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.premium-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.premium-badge {
    display: inline-flex;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.glass-panel {
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: relative;
}

/* Cart Page Styles */
.cart-page {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fffdf9 0%, #f5eee5 60%, #f0e7d7 100%);
}

.cart-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items-panel,
.cart-summary-panel {
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.cart-item-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-summary-panel .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.cart-summary-panel .summary-line.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-summary-panel .premium-cta {
    width: 100%;
    justify-content: center;
}

@media (max-width: 991px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Checkout Layout */
.checkout-page {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fffdf9 0%, #f5eee5 60%, #f0e7d7 100%);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-panel,
.checkout-summary-panel {
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.checkout-summary-panel h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.checkout-summary-panel .summary-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.checkout-summary-panel .summary-line.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Success Layout */
.payment-success-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 239, 229, 0.85) 70%);
}

.payment-success-panel {
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.payment-success-panel .alert {
    border-radius: 20px;
}

.payment-success-panel table {
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

.payment-success-panel .btn {
    border-radius: 999px;
}

/* Footer */
footer {
    background-color: #f0f9f4;
    margin-top: 60px;
    border-top: 3.5px solid #27AE60;
    border-radius: 0 !important;
    box-shadow: 0 -4px 24px rgba(39, 174, 96, 0.09);
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* Product Grid */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #27AE60 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #74C69D !important;
    color: #1E5E3E;
}

.badge.bg-info {
    background-color: #52B788 !important;
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Images */
img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.modern-product-card img:hover,
.modern-img-container img:hover {
    transform: none !important;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.border-color {
    --border-color: #e5e7eb;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--text-muted);
    border-color: #e5e7eb;
    font-weight: 500;
    background-color: #f0f9f4;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.25);
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.12) 0%, rgba(82, 183, 136, 0.18) 100%);
    padding: 60px 0;
    border-radius: 10px;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Home page */
.home-hero {
    border-radius: 0;
}

.home-hero-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(39, 174, 96, 0.15);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.home-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #27AE60;
}

.home-hero-visual {
    border-radius: 24px;
    background-color: #f0f9f4;
}

.home-hero-plate {
    width: 260px;
    height: 260px;
    position: relative;
}

.home-hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e8f5f0, #52B788);
    opacity: 0.9;
}

.home-hero-circle-lg {
    width: 100%;
    height: 100%;
}

.home-hero-circle-sm {
    width: 120px;
    height: 120px;
    bottom: -10px;
    right: -10px;
    filter: blur(1px);
}

.home-hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: #27AE60;
    opacity: 0.92;
}

.home-categories-section {
    background-color: #e8f5f0;
}

.category-card-new {
    transition: all 0.3s ease;
}

.category-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(63, 35, 26, 0.18) !important;
}

.category-card-new:hover .category-image-container {
    transform: scale(1.05);
}

.category-image-container {
    transition: transform 0.3s ease;
}

.category-card-fallback {
    background: linear-gradient(135deg, #27AE60 0%, #52B788 100%);
}

.category-card-body {
    min-height: 60px;
}

.category-card-title {
    font-size: 16px;
    color: #1E5E3E;
}

.home-products-section {
    background-color: #eef9f6 !important;
}

.home-product-card {
    border-radius: 16px;
}

.home-product-image-wrapper {
    width: 300px;
    height: 300px;
    margin: 12px auto 0;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-radius: 12px;
}

.home-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.home-product-body {
    padding-bottom: 1.1rem;
}

.home-product-title {
    font-weight: 600;
}

.home-product-price strong {
    color: #27AE60;
    font-size: 1rem;
}

.home-features-section {
    border-top: 1px solid rgba(39, 174, 96, 0.5);
}

.home-feature-icon {
    font-size: 40px;
    color: #27AE60;
}

/* Home slider & announcement bar */
.home-announcement-bar {
    background: linear-gradient(90deg, #27AE60, #52B788);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.home-announcement-marquee {
    animation: home-announcement-scroll 28s linear infinite;
    white-space: nowrap;
}

@keyframes home-announcement-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .home-slider-container {
        height: 280px;
        padding-inline: 1rem;
    }

    .home-slider-nav-btn {
        width: 34px;
        height: 34px;
    }
}

/* Auth pages (login/register/reset/forgot) */
.auth-page {
    background: radial-gradient(circle at top left, rgba(39, 174, 96, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(82, 183, 136, 0.24), transparent 55%);
}

.auth-card {
    border-radius: 18px;
    background-color: #f8fdf9;
}

.auth-illustration {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.16), rgba(232, 245, 240, 0.85));
    color: #1a3a2f;
}

.auth-heading {
    font-size: 1.8rem;
    font-weight: 600;
}

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

.auth-benefits li {
    margin-bottom: 0.35rem;
}

.auth-title {
    font-weight: 600;
}

.auth-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-submit-btn {
    border-radius: 999px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-weight: 600;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer (Lumeria-like layout) */
.hf-footer {
    background-color: #f0f9f4;
    border-top: 1px solid rgba(39, 174, 96, 0.6);
    font-size: 0.95rem;
}

.hf-footer-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hf-footer-logo-img {
    height: 100px;
    width: auto;
}

.hf-footer-text {
    color: var(--text-muted);
    max-width: 360px;
}

.hf-footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.hf-footer-links li+li {
    margin-top: 0.45rem;
}

.hf-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.hf-footer-links a:hover {
    color: var(--primary-color);
}

.hf-footer-newsletter .hf-footer-input {
    background-color: #eef9f6;
    border-color: rgba(39, 174, 96, 0.8);
}

.hf-footer-newsletter .hf-footer-input:focus {
    background-color: #fff;
}

.hf-footer-subscribe {
    border-radius: 999px;
}

.hf-footer-bottom {
    border-top: 1px solid rgba(39, 174, 96, 0.5);
    background-color: #eef9f6;
}

/* Footer social icons */
.hf-footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.08);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 174, 96, 0.4);
    font-size: 0.9rem;
}

.hf-footer-social:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.25);
}

/* ============ MODERN NAVBAR ============ */
.hf-modern-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: 0.5rem 0;
    z-index: 1050;
}

.hf-modern-nav .container {
    max-width: 1400px;
}

.hf-modern-brand {
    transition: all 0.3s ease;
}

.hf-logo-wrapper {
    position: relative;
    width: auto;
    height: 100px;
    padding-right: 1rem;
}

.hf-logo-glow {
    display: none;
}

.hf-modern-brand:hover .hf-logo-glow {
    display: none;
}

.hf-logo-modern {
    position: relative;
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hf-modern-brand:hover .hf-logo-modern {
    transform: scale(1.05);
}

.hf-brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--text-dark), var(--text-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.hf-modern-brand:hover .hf-brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hf-nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Desktop navigation */
@media (min-width: 992px) {
    .hf-nav-link {
        font-weight: 600;
        font-size: 1.1rem;
    }
}

.hf-nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(39, 174, 96, 0.05);
}

.hf-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(39, 174, 96, 0.1);
}

.hf-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hf-cart-btn {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.hf-cart-btn:hover {
    background-color: rgba(111, 77, 56, 0.1);
    color: var(--primary-color);
}

.hf-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.hf-login-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hf-login-btn:hover {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.05);
}

.hf-register-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.hf-register-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
    color: white;
}

.hf-user-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hf-user-btn:hover {
    background-color: rgba(111, 77, 56, 0.05);
    color: var(--primary-color);
}

.hf-mobile-toggle {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.hf-mobile-toggle:hover {
    background-color: rgba(111, 77, 56, 0.1);
}

.hf-mobile-menu {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.hf-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.hf-mobile-link:hover,
.hf-mobile-link.active {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.1);
    border-left: 4px solid var(--primary-color);
}

.hf-mobile-register {
    background: linear-gradient(135deg, var(--text-dark), var(--secondary-color));
    color: white;
    font-weight: 600;
}

.hf-mobile-register:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--text-dark));
    color: white;
}

/* ============ MARQUEE BAR ============ */
.hf-marquee-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1040;
}

.hf-marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: hf-marquee-scroll 30s linear infinite;
}

.hf-marquee-content span {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

.hf-marquee-content span:nth-child(even) {
    opacity: 0.7;
}

@keyframes hf-marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============ SLIDER ============ */
.home-slider-section {
    height: 610px;
    overflow: hidden;
    position: relative;
    background-color: #111827;
}

.home-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #27AE60;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.home-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.home-slider-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.home-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
}

.home-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.home-slider-nav-btn.prev {
    left: 20px;
}

.home-slider-nav-btn.next {
    right: 20px;
}

/* Category page styling */
.category-page {
    padding: 2rem 0;
}

.category-header {
    margin-bottom: 2rem;
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-toolbar-left {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-toolbar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.category-view-toggle .btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.category-view-toggle .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.category-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .category-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.category-list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: white;
}

.category-list-item-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-list-item-content {
    flex: 1;
}

/* Product Card Styles */
.btn-card-buy,
.btn-list-buy {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-card-buy:hover,
.btn-list-buy:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.25);
}

.btn-card-buy:active,
.btn-list-buy:active {
    color: white !important;
    transform: translateY(0);
}

.btn-card-view,
.btn-list-view {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-card-view:hover,
.btn-list-view:hover {
    color: var(--primary-color) !important;
    background: rgba(39, 174, 96, 0.05);
    transform: translateY(-2px);
}

/* Flavor and Gift Selection Styles */
.flavour-option .form-check-input {
    display: none;
}

.flavour-option .form-check-label {
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.flavour-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flavour-option .form-check-input:checked+.flavour-label .flavour-card {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.flavour-check {
    position: absolute;
    top: 5px;
    right: 5px;
}

.flavour-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Gift Selection Styles */
.gift-option .form-check-input {
    display: none;
}

.gift-option .form-check-label {
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.gift-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gift-option .form-check-input:checked+.gift-label .gift-card {
    border-color: #27AE60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(82, 183, 136, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    transform: translateY(-2px);
}

.gift-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .flavour-card,
    .gift-card {
        padding: 0.75rem;
        min-height: auto;
    }

    .flavour-name,
    .gift-name {
        font-size: 0.85rem;
    }

    /* Product grid: 3 columns on mobile */
    .col-6[style*="14.285714%"] {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}

/* "Clean" Mobile Header Styles */
@media (max-width: 991px) {
    .hf-modern-nav {
        padding: 4px 0 !important;
        background-color: #f0f9f4 !important;
        /* Light mint/ivory bg */
        box-shadow: none !important;
        border-bottom: none !important;
    }

    .hf-modern-nav .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hf-logo-wrapper,
    .hf-logo-modern {
        height: 80px !important;
        /* Compact logo height */
        width: auto !important;
        padding-right: 0 !important;
    }

    .hf-mobile-menu-toggle {
        margin-left: 8px;
    }

    .hf-mobile-menu-toggle i {
        font-size: 24px !important;
        color: #27AE60 !important;
    }

    .hf-cart-btn i {
        font-size: 20px !important;
        color: #1a3a2f !important;
    }

    .hf-cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -4px !important;
        right: -6px !important;
        background-color: #e74c3c !important;
        /* Red badge */
    }

    /* Reduce gaps */
    .d-flex.align-items-center.gap-3 {
        gap: 0.75rem !important;
    }

    /* Hide user icon on mobile to match "clean" look if desired, 
       but keeping it accessible is usually better. 
       If specifically asked to remove, I would. 
       For now, just compacting margins. */

    .hf-login-btn,
    .hf-register-btn {
        display: none !important;
    }
}