/* 
   ss fresh mart - Premium Redesigned Brand Theme
   Fresh Leaf Green (#15803d) & Tropical Orange/Papaya (#f97316) Palette
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #15803d;          /* Fresh Leaf Green */
    --primary-hover: #14532d;
    --primary-light: #f0fdf4;
    --accent: #10b981;           /* Vibrant Emerald */
    --accent-hover: #059669;
    --secondary: #f97316;        /* Tropical Orange / Papaya */
    --secondary-hover: #ea580c;
    --secondary-light: #fff7ed;
    --dark: #0f172a;
    --dark-muted: #64748b;
    --light: #f8fafc;            /* Clean light grey background */
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(21, 128, 61, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 85px;
}

/* Global Resets */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1 { 
    font-family: var(--font-heading);
    font-size: 3rem; 
}

h2 { 
    font-family: var(--font-heading);
    font-size: 2.25rem; 
    position: relative; 
    padding-bottom: 1rem;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

h2.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center { text-align: center; }

/* Grid and Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #062f1d; /* Elegant deep green */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    padding: 2rem;
}

.loader-logo {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    animation: pulse 1.8s ease-in-out infinite;
}

.loader-logo i {
    color: var(--accent); /* Emerald */
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.loader-logo span {
    color: var(--secondary); /* Tropical Orange */
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--secondary);
    border-radius: 50%;
    margin: 1.5rem auto 0;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.1, 0.9) infinite;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

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

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

/* Header */
.site-header {
    background-color: var(--white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    background: transparent;
    border: none;
    color: #475569; /* Slate Gray */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: #f1f5f9; /* soft backdrop hover */
    color: var(--primary);
}

/* Specific styling for Admin badge button */
.action-btn.btn-admin:hover {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

/* Account Capsule Button for logged-in users */
.action-btn.btn-account-capsule {
    width: auto;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 50px;
    background-color: #f1f5f9;
    color: #1e293b;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.action-btn.btn-account-capsule i {
    font-size: 1.1rem;
    color: #64748b;
}

.action-btn.btn-account-capsule:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.action-btn.btn-account-capsule:hover i {
    color: var(--primary);
}

/* Cart Button specific tweaks */
.action-btn.btn-cart:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Badge for cart count */
.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.25);
}

.action-btn.btn-cart:hover .cart-count {
    background-color: var(--primary);
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.25);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Side Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer {
    position: fixed;
    top: 0; right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(-420px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

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

.cart-drawer-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--dark-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: #ef4444;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--light);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.cart-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cart-actions-row .btn {
    font-size: 0.8rem !important;
    padding: 0.7rem 0.5rem !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    font-weight: 700 !important;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

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

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.qty-btn {
    background: none;
    border: none;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--dark-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.item-remove {
    background: none; border: none;
    color: var(--dark-muted);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition);
}

.item-remove:hover {
    color: #ef4444;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(10, 61, 44, 0.4), rgba(10, 61, 44, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Category Cards */
.card-category {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    transition: var(--transition);
}

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

.card-category-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

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

.card-category-body {
    padding: 2rem;
    text-align: center;
}

.card-category-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-category-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.card-category:hover .card-category-link {
    border-bottom-color: var(--primary);
}

/* Product Cards */
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-card-img-wrap {
    position: relative;
    height: 240px;
    background-color: var(--light);
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.arrival {
    background-color: var(--primary);
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.product-card-desc {
    font-size: 0.9rem;
    color: var(--dark-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.product-unit {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

.btn-add-cart {
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Why Choose Us Cards */
.why-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.why-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.why-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.why-desc {
    color: var(--dark-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 44, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    color: var(--accent);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal-fade-up { transform: translateY(40px); }
.reveal-fade-left { transform: translateX(40px); }
.reveal-fade-right { transform: translateX(-40px); }
.reveal-scale-up { transform: scale(0.9); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Shop / Portal Layouts */
.shop-layout, .portal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 110px;
}

.filter-section {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-list a {
    color: var(--dark-muted);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.filter-list a:hover, .filter-list a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Account Tabs */
.account-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

.portal-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-menu-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--dark-muted);
    font-weight: 600;
    transition: var(--transition);
}

.portal-menu-link:hover, .portal-menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.portal-menu-link i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.mobile-search-form {
    display: none;
}

/* Call To Action (WhatsApp Section) */
.cta-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
}

.cta-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 2;
}

.cta-section .container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white) !important;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-family: var(--font-heading);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cta-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px;
    height: 3px;
    background: var(--secondary) !important;
    border-radius: var(--radius-sm);
}

.cta-text {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Gooey Blob Button */
.btn-cta-white {
    position: relative;
    padding: 1.1rem 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--white);
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(21, 128, 61, 0.25);
    transition: color 0.5s, box-shadow 0.3s;
    z-index: 1;
}

.btn-cta-white i {
    color: #25d366;
    transition: color 0.5s;
    z-index: 2;
}

.btn-cta-white span {
    z-index: 2;
}

.btn-cta-white__inner {
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 40px;
    overflow: hidden;
    z-index: -1;
    filter: url('#goo');
}

.btn-cta-white__blobs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.btn-cta-white__blob {
    position: absolute;
    width: 30%;
    height: 100%;
    background-color: var(--secondary);
    border-radius: 100%;
    opacity: 0;
    transform: scale(1.4) translateY(120%);
    transition: transform 0.5s, opacity 0.5s;
}

.btn-cta-white__blob:nth-child(1) { left: 0%; transition-delay: 0s; }
.btn-cta-white__blob:nth-child(2) { left: 30%; transition-delay: 0.08s; }
.btn-cta-white__blob:nth-child(3) { left: 60%; transition-delay: 0.04s; }
.btn-cta-white__blob:nth-child(4) { left: 90%; transition-delay: 0.12s; }

.btn-cta-white:hover {
    color: var(--white);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.btn-cta-white:hover i {
    color: var(--white);
}

.btn-cta-white:hover .btn-cta-white__blob {
    opacity: 1;
    transform: scale(1.4) translateY(0);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 1rem;
        margin: 2rem 0;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .btn-cta-white {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
    
    .shop-layout, .portal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    /* Horizontal capsule list for categories on tablet/mobile */
    .filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .filter-title {
        display: none;
    }
    .filter-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .filter-list li {
        display: inline-block;
    }
    .filter-list a {
        display: inline-block;
        padding: 0.5rem 1.15rem;
        background-color: var(--white);
        border: 1px solid var(--border);
        border-radius: 50px;
        font-size: 0.85rem;
    }
    .filter-list a:hover, .filter-list a.active {
        background-color: var(--primary-light);
        border-color: var(--primary);
    }
    .filter-search-box {
        display: none; /* Already integrated in header/mobile menu */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        min-height: 70vh;
        padding: 4rem 0;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; }
    
    /* Header & Mobile Navigation Drawer */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 1.5rem;
        transition: var(--transition);
        border-top: 1px solid var(--border);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 80%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link::after {
        display: none; /* Remove underline animations on mobile links */
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Mobile search form within nav drawer styling */
    .mobile-search-form {
        display: flex;
        width: 80%;
        max-width: 320px;
        margin-bottom: 1.5rem;
        position: relative;
        align-items: center;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 0.7rem 2.5rem 0.7rem 1.15rem;
        border: 1.5px solid var(--border);
        border-radius: 50px;
        font-family: var(--font-body);
        font-size: 0.9rem;
        outline: none;
        background-color: var(--light);
        transition: var(--transition);
    }
    
    .mobile-search-input:focus {
        border-color: var(--primary);
        background-color: var(--white);
        box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
    }
    
    .mobile-search-submit {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
        font-size: 0.95rem;
    }

    /* Account capsule text hides, leaving icons on mobile */
    .action-btn.btn-account-capsule {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        background-color: transparent;
    }
    .action-btn.btn-account-capsule span {
        display: none;
    }
    .action-btn.btn-account-capsule i {
        font-size: 1.4rem;
        color: #475569;
    }
    
    /* Cart page responsive columns stack */
    #cartPageContent {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Cart Page table mobile-to-vertical conversion */
    #cartPageContent table, 
    #cartPageContent thead, 
    #cartPageContent tbody, 
    #cartPageContent th, 
    #cartPageContent td, 
    #cartPageContent tr {
        display: block;
        width: 100%;
    }
    #cartPageContent thead {
        display: none;
    }
    #cartPageContent tr {
        border-bottom: 1.5px dashed var(--border) !important;
        padding: 1.25rem 0;
        position: relative;
    }
    #cartPageContent tr:last-child {
        border-bottom: none !important;
    }
    #cartPageContent td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0 !important;
        border: none !important;
        text-align: right !important;
    }
    #cartPageContent td:first-child {
        justify-content: flex-start;
        text-align: left !important;
        margin-bottom: 0.5rem;
    }
    #cartPageContent td:nth-child(2)::before {
        content: "Price:";
        font-weight: 700;
        color: var(--dark-muted);
        font-size: 0.85rem;
    }
    #cartPageContent td:nth-child(3)::before {
        content: "Quantity:";
        font-weight: 700;
        color: var(--dark-muted);
        font-size: 0.85rem;
    }
    #cartPageContent td:nth-child(4)::before {
        content: "Total:";
        font-weight: 700;
        color: var(--dark-muted);
        font-size: 0.85rem;
    }
    #cartPageContent td:last-child {
        position: absolute;
        top: 1.25rem;
        right: 0;
        width: auto;
    }

    /* Account Dashboard responsive style */
    .account-tabs {
        margin-bottom: 1.5rem;
    }
    .tab-btn {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

/* Optimize grid & items for small phones (e.g. 2-column e-commerce grid) */
@media (max-width: 550px) {
    .section {
        padding: 3rem 0;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Product Cards in 2 columns */
    .product-card-img-wrap {
        height: 140px;
    }
    .product-card-body {
        padding: 0.75rem;
    }
    .product-card-category {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    .product-card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    .product-card-desc {
        display: none; /* Hide product description inside mobile grids to save vertical height */
    }
    .product-card-footer {
        padding-top: 0.5rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .product-unit {
        font-size: 0.7rem;
    }
    .btn-add-cart {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .product-badge {
        top: 6px;
        left: 6px;
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Category Cards in 2 columns */
    .card-category-img {
        height: 110px;
    }
    .card-category-body {
        padding: 0.85rem;
    }
    .card-category-title {
        font-size: 0.95rem;
    }
    .card-category-body p {
        display: none;
    }
    .card-category-link {
        font-size: 0.75rem;
    }
    
    /* Why Choose Us Cards */
    .why-card {
        padding: 1.5rem 1rem;
    }
    .why-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .why-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    .why-desc {
        font-size: 0.85rem;
    }
    
    /* B2B callout banner */
    section[style*="linear-gradient"][class*="reveal"] {
        padding: 3rem 1rem !important;
        margin: 1.5rem 0 !important;
    }
    section[style*="linear-gradient"][class*="reveal"] h2 {
        font-size: 1.75rem !important;
    }
}

/* Floating WhatsApp Widget styling details */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 999; /* Below header (1000) and cart drawer (1002) to prevent overlap */
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 20px rgba(18, 140, 126, 0.3);
    color: var(--white);
}

.whatsapp-float i {
    font-size: 1.35rem;
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        padding: 0.65rem 1.15rem;
        font-size: 0.85rem;
    }
    .whatsapp-float i {
        font-size: 1.1rem;
    }
}

/* Header Inline Search Bar */
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 240px;
    margin-right: 1.25rem;
}

.header-search-input {
    width: 100%;
    padding: 0.45rem 2.25rem 0.45rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.header-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.header-search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
}

.header-search-submit:hover {
    color: var(--primary-hover);
}

@media (max-width: 1024px) {
    .header-search-form {
        display: none;
    }
}

/* Checkout Layout CSS */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3.5rem;
    align-items: start;
}

.checkout-details {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.checkout-summary {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 110px;
}

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .checkout-details {
        padding: 2rem 1.5rem;
    }
    .checkout-summary {
        position: static;
        padding: 1.5rem;
    }
}

/* About Page Steps CSS */
.about-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    display: flex;
    gap: 2rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.step-card-num {
    font-size: 2.5rem;
    font-weight: 800;
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-num.primary {
    color: var(--primary);
    background-color: var(--primary-light);
}

.step-card-num.secondary {
    color: var(--secondary);
    background-color: var(--secondary-light);
}

@media (max-width: 600px) {
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
}

