/* 
   LAJU FARM Landing Page Stylesheet - EXACT MATCH TO REFERENCE
   Theme Colors: Forest Green (#05643C) & Gold (#CBA154)
   Fonts: Outfit (Headings) & Inter (Body)
*/

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

:root {
    --primary: #05643C;
    --primary-hover: #034f2f;
    --primary-light: #EBF7E3;
    
    --accent: #CBA154;
    --accent-hover: #b48d44;
    --accent-light: #FBF7EE;
    
    --text-dark: #1E2824;
    --text-muted: #62726B;
    
    --bg-main: #FAF8F5; /* Soft warm off-white from image background */
    --bg-card: #FFFFFF;
    
    --border-color: #E6E2D8; /* Slightly warm thin border */
    --border-radius: 12px;
    --border-radius-lg: 18px;
    
    --shadow-sm: 0 4px 10px rgba(5, 100, 60, 0.03);
    --shadow-md: 0 10px 20px rgba(5, 100, 60, 0.05);
    --shadow-lg: 0 20px 30px rgba(5, 100, 60, 0.08);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

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

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 90px 0; }

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-dark);
}

.cart-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

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

.login-btn {
    padding: 9px 22px;
    border-radius: 6px;
    background-color: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Hero Section Slider Layout */
.hero {
    position: relative;
    margin-top: 74px; /* Navbar height offset */
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 100, 60, 0.95) 0%, rgba(5, 100, 60, 0.7) 40%, rgba(5, 100, 60, 0.15) 75%, rgba(5, 100, 60, 0) 100%);
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 540px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Slider indicators (dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: #FFAE29; /* Yellow active dot */
    transform: scale(1.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: #FFAE29; /* Warm gold-yellow from image */
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #e69a21;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
}

/* Products Section */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.view-all-link:hover {
    color: var(--accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #FAF6F0;
}

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

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
}

.product-badge.populer {
    background-color: #FFAE29; /* Yellow */
    color: var(--text-dark);
}

.product-badge.superfood {
    background-color: var(--primary);
    color: #FFFFFF;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.add-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-cart-btn svg {
    width: 18px;
    height: 18px;
}

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

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: #FFAE29;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.testimonial-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-role {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer Section */
footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 72px 0 28px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 48px !important;
    max-width: 180px !important;
    width: auto !important;
    object-fit: contain !important;
}

.footer-brand .footer-logo svg {
    width: 48px !important;
    height: 48px !important;
}

.footer-brand .footer-logo span {
    display: none !important;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #EBE8E0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.social-btn:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

.footer-links h3 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.footer-subscribe h3 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-subscribe p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    font-size: 13.5px;
    background-color: #FFFFFF;
}

.subscribe-form button {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Toast System Alert */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background-color: #FFFFFF;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
    transition: var(--transition);
}

.toast.success { border-color: #28C76F; }
.toast.danger { border-color: #EA5455; }
.toast.info { border-color: #00CFE8; }

.toast svg {
    width: 18px;
    height: 18px;
}

.toast.success svg { color: #28C76F; }
.toast.danger svg { color: #EA5455; }
.toast.info svg { color: #00CFE8; }

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

/* Why Hydroponics Section */
.why-hydroponics {
    background-color: #FFFFFF;
}

.section-header-center {
    margin-bottom: 50px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 20px;
}

.why-card {
    background-color: #F7F9F6;
    border: 1px solid #E2E7E1;
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

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

.why-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #EBF2E8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.why-icon-wrapper svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Farm-to-Table Journey Section */
.journey-section {
    background-color: #FAF8F5; /* Warm off-white to alternate section backgrounds */
    border-top: 1px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 8px;
}

.journey-timeline {
    position: relative;
    margin-top: 60px;
}

.journey-line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-color: #E2E7E1;
    z-index: 1;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.journey-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(5, 100, 60, 0.15);
    transition: var(--transition);
}

.journey-step:hover .journey-icon-wrapper {
    transform: scale(1.1);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 15px rgba(5, 100, 60, 0.25);
}

.journey-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.journey-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.journey-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 220px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .products-grid, .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero {
        padding: 100px 0;
        background: linear-gradient(180deg, rgba(5, 100, 60, 0.95) 0%, rgba(5, 100, 60, 0.8) 100%), 
                    url('https://images.unsplash.com/photo-1530836369250-ef72a3f5cda8?q=80&w=1470&auto=format&fit=crop') no-repeat center right/cover;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .journey-line {
        display: none;
    }
    .journey-steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .products-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .section-title {
        font-size: 26px;
    }
    .journey-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Cart Drawer Styles */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 40, 36, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    box-shadow: -10px 0 30px rgba(5, 100, 60, 0.08);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

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

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

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

.cart-drawer-close:hover {
    color: var(--danger);
}

.cart-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #FAF6F0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 4px;
    width: fit-content;
    margin-top: 8px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-value {
    font-size: 13.5px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: #FAF8F5;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

#cartTotalText {
    color: var(--primary);
    font-size: 18px;
}

/* Store Page Filters */
.store-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: #FFFFFF;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.search-box-wrapper {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 13.5px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.search-box-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 100, 60, 0.1);
}

.search-box-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Product Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 40, 36, 0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-wrapper {
    background-color: #FFFFFF;
    width: 760px;
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    padding: 32px;
}

.modal-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    aspect-ratio: 1/1;
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 26px;
    font-weight: 850;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-price-row {
    margin-bottom: 20px;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.modal-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-stock-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-block;
    width: fit-content;
}

.modal-stock-badge.ready {
    background-color: var(--primary-light);
    color: var(--primary);
}

.modal-stock-badge.empty {
    background-color: #FCEAEA;
    color: var(--danger);
}

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-qty-label {
    font-weight: 750;
    font-size: 14px;
    color: var(--text-dark);
}

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

.modal-qty-control button {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-qty-control button:hover {
    color: var(--primary);
    background-color: rgba(5, 100, 60, 0.05);
}

.modal-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #FFFFFF;
    outline: none;
}

.modal-action-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
}

/* E-Commerce Cart & Checkout Pages Layout */
.shop-page-title {
    text-align: center;
    margin: 110px 0 20px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 32px;
    margin: 40px auto 90px auto;
    align-items: start;
}

.cart-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.cart-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Cart Table Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-table-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-table-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
}

.cart-table-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-table-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: fit-content;
    background: #FAF8F5;
}

.cart-table-qty button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-table-qty button:hover {
    color: var(--primary);
}

.cart-table-qty-value {
    width: 32px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
}

.cart-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-delete-btn:hover {
    color: var(--danger);
}

/* Cart Summary & Form Styles */
.summary-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 106px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 24px;
}

.checkout-form-box {
    margin-top: 20px;
}

/* General Input Styling for Checkout Form */
.store-input-group {
    margin-bottom: 16px;
}

.store-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-input-group input, .store-input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    background-color: #FAF8F5;
}

.store-input-group input:focus, .store-input-group textarea:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(5, 100, 60, 0.05);
}

.store-input-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Order Success screen */
.success-container {
    max-width: 600px;
    margin: 120px auto 95px auto;
    text-align: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

.success-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-details {
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.success-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.success-details-row:last-child {
    margin-bottom: 0;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    font-weight: 750;
    color: var(--primary);
}

.success-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .success-container {
        padding: 32px 20px;
        margin-top: 100px;
    }
    .success-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .success-buttons .btn {
        width: 100%;
    }
}
