/* ============================================
   JARDIN PLUS - CLIENT WEBSITE STYLES
   Professional E-Commerce CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #466446;
    --primary-dark: #3d5a3d;
    --primary-light: #5a7a5a;
    --accent-color: #309130;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

/* Global Loading Spinner */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.loader-spinner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #309130;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

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

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(70, 100, 70, 0.1);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f5f7f6 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

.logo h1 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(70, 100, 70, 0.2);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(70, 100, 70, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Auth Buttons */
.auth-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

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

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 100, 70, 0.25);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #15a815 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(25, 199, 25, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, #15a815 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 199, 25, 0.4);
    color: white;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(70, 100, 70, 0.3);
    border: 2px solid white;
}

.user-greeting {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: #dc3545;
}

.user-dropdown a:hover {
    background: #f8f9fa;
    padding-left: 1.5rem;
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, #15a815 100%);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(25, 199, 25, 0.3);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #15a815 0%, var(--accent-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 199, 25, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    border: 2px solid white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(70, 100, 70, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(70, 100, 70, 0.4);
}

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-avatar-mobile {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-link {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-link:hover {
    background: linear-gradient(90deg, rgba(70, 100, 70, 0.08) 0%, transparent 100%);
    color: var(--primary-color);
    padding-left: 2rem;
}

.mobile-nav-link:active {
    background: rgba(70, 100, 70, 0.1);
}

.mobile-logout {
    color: #dc3545;
    font-weight: 700;
}

.mobile-logout:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, transparent 100%);
}

.mobile-nav-footer {
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(70, 100, 70, 0.05) 100%);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-footer p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   RESPONSIVE HEADER STYLES
   ================================ */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .header-actions .auth-btn,
    .header-actions .user-menu {
        display: none;
    }
    
    .header-actions .cart-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Old mobile menu styles (deprecated) */
.mobile-menu {
    display: none;
}

/* ================================
   Flash Messages
   ================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

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

.btn-success:hover {
    background: #1aa179;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Section */
.section {
    padding: 3rem 0;
}

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

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.product-code {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.product-actions {
    margin-top: auto;
}

/* Filters */
.filters {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Product Details */
.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-image-large {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-specs {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

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

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

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--border-color);
}

#quantity {
    border: none;
    padding: 0.75rem;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #309130;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.cart-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: #212529;
}

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

.summary-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #309130;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form,
.checkout-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 100, 70, 0.1);
}

.payment-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option input[type="radio"]:checked + span,
.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(70, 100, 70, 0.05);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
}

.summary-item-info {
    display: flex;
    gap: 0.5rem;
}

.summary-item-qty {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

.checkout-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkout-info p {
    margin-bottom: 0.5rem;
}

/* Success Page */
.success-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-page h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.order-number {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.success-info {
    text-align: left;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.success-info ul {
    list-style: none;
}

.success-info li {
    padding: 0.5rem 0;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-image-placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Project Details */
.project-header {
    text-align: center;
    margin-bottom: 2rem;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-meta-large {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-light);
}

.project-hero-image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-hero-image img {
    width: 100%;
    height: auto;
}

.project-description-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.project-items-section,
.project-gallery-section {
    margin: 3rem 0;
}

.project-items-section h2,
.project-gallery-section h2 {
    margin-bottom: 2rem;
}

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

.project-item-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.project-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-item-info {
    padding: 1rem;
}

.project-item-info h4 {
    margin-bottom: 0.5rem;
}

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-cta {
    text-align: center;
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.project-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

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

.feature-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.services-list {
    list-style: none;
    margin-top: 1rem;
}

.services-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.services-list li:last-child {
    border-bottom: none;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-container,
.contact-info-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form-container h3,
.contact-info-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
}

.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.social-icons a {
    font-size: 2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: scale(1.2);
}

.whatsapp-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.whatsapp-cta h4 {
    margin-bottom: 0.5rem;
}

.whatsapp-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.map-section {
    margin-top: 3rem;
}

.map-section h3 {
    margin-bottom: 1rem;
}

.map-placeholder {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-light);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.product-modal.active {
    display: block;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(70, 100, 70, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(70, 100, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 16px rgba(70, 100, 70, 0.3);
}

.product-modal-close:hover svg {
    color: white;
}

.product-modal-close svg {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f8f3 100%);
    box-shadow: 0 10px 30px rgba(70, 100, 70, 0.1);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(70, 100, 70, 0.1), transparent);
    animation: rotateGradient 10s linear infinite;
}

.product-modal-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    z-index: 1;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-modal-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-product-sku {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-product-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.modal-product-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-product-badges .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-product-badges .badge-category {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.modal-product-badges .badge-stock {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.modal-product-badges .badge-out-of-stock {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.modal-product-badges .badge-location {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.modal-product-specs {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f8f3 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(70, 100, 70, 0.1);
}

.modal-product-specs h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(70, 100, 70, 0.1);
}

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

.spec-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

.spec-value {
    color: var(--text-light);
}

.modal-product-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(70, 100, 70, 0.1);
}

.quantity-selector-modal {
    display: flex;
    align-items: center;
    border: 2px solid rgba(70, 100, 70, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.05);
}

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

#modalQuantity {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
}

.btn-add-to-cart-modal {
    flex: 1;
    padding: 0 2rem;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-add-to-cart-modal:hover::before {
    left: 100%;
}

.btn-add-to-cart-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(70, 100, 70, 0.4);
}

.btn-add-to-cart-modal:active {
    transform: translateY(0);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .product-modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-product-price {
        font-size: 2rem;
    }
    
    .modal-product-actions {
        flex-direction: column;
    }
    
    .quantity-selector-modal {
        justify-content: center;
    }
}

/* ============================================
   GARDEN-THEMED FOOTER WITH NATURAL BLUR
   ============================================ */
.footer {
    position: relative;
    background: linear-gradient(180deg, rgba(70, 100, 70, 0.95) 0%, rgba(61, 90, 61, 0.97) 40%, rgba(52, 76, 52, 0.98) 70%, rgba(40, 60, 40, 1) 100%);
    color: white;
    padding: 5rem 0 0;
    margin-top: 6rem;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="leaves" width="200" height="200" patternUnits="userSpaceOnUse"><path d="M50,50 Q60,30 70,50 T90,50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/><circle cx="40" cy="40" r="3" fill="rgba(255,255,255,0.02)"/><path d="M150,150 Q140,130 130,150" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/><circle cx="160" cy="160" r="2" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23leaves)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.footer-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(25, 199, 25, 0.15) 0%, rgba(70, 100, 70, 0.08) 40%, transparent 65%);
    filter: blur(80px);
    pointer-events: none;
}

.footer-particles {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    padding: 3.5rem;
    border-radius: 24px;
    border: 2px solid rgba(25, 199, 25, 0.15);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-icon {
    font-size: 1.35rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(25, 199, 25, 0.6));
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col li {
    transition: transform 0.3s ease;
}

.footer-col li:hover {
    transform: translateX(8px);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #309130;
    text-shadow: 0 0 10px rgba(25, 199, 25, 0.6);
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-item:hover {
    color: #309130;
    transform: translateX(5px);
}

.footer-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    filter: drop-shadow(0 0 6px rgba(25, 199, 25, 0.5));
}

.footer-cta {
    background: linear-gradient(135deg, rgba(25, 199, 25, 0.18), rgba(70, 100, 70, 0.22));
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 2px solid rgba(25, 199, 25, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    grid-column: span 2;
    min-width: 600px;
}

.footer-cta h3 {
    margin-bottom: 1rem;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.social-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    font-weight: 300;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.whatsapp-btn,
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 150px;
    text-align: center;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 1.5px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.social-link:nth-child(3) {
    background: linear-gradient(135deg, rgba(59, 89, 152, 0.9), rgba(59, 89, 152, 0.7));
    border: 1.5px solid rgba(59, 89, 152, 0.5);
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.35);
}

.social-link:nth-child(5) {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.9), rgba(193, 53, 132, 0.7));
    border: 1.5px solid rgba(225, 48, 108, 0.5);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}

.social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.social-link svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(25, 199, 25, 0.5));
}

.footer-bottom {
    padding: 2.5rem 3rem;
    border-top: 2px solid rgba(25, 199, 25, 0.15);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-bottom-left {
    text-align: left;
}

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

.footer-bottom-right {
    text-align: right;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #309130;
    text-shadow: 0 0 12px rgba(25, 199, 25, 0.8);
}

.powered-by {
    color: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
}

.powered-by:hover {
    color: #309130;
    text-shadow: 0 0 12px rgba(25, 199, 25, 0.8);
}

.version {
    background: rgba(25, 199, 25, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 25px;
    border: 1px solid rgba(25, 199, 25, 0.3);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
        margin-top: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    
    .footer-col h3 {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }
    
    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .footer-cta {
        padding: 2rem 1.5rem;
    }
    
    .footer-cta-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .social-separator {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        min-width: auto;
    }
    
    .social-link {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .version {
        padding: 0.3rem 0.85rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

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

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* Back Link */
.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: var(--primary-color);
    font-weight: 600;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .product-details-layout,
    .cart-layout,
    .checkout-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions,
    .success-actions,
    .form-actions,
    .cta-actions,
    .project-cta-actions {
        flex-direction: column;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .categories-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   HOMEPAGE PROFESSIONAL STYLES
   ============================================ */

/* Welcome Slider */
.welcome-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (1152/2048 * 100) */
    overflow: hidden;
    background: #000;
}

@media (min-width: 1400px) {
    .welcome-slider {
        padding-bottom: 50%; /* Wider on large screens */
    }
}

@media (max-width: 768px) {
    .welcome-slider {
        padding-bottom: 75%; /* Taller on tablets */
    }
}

@media (max-width: 480px) {
    .welcome-slider {
        padding-bottom: 100%; /* More square on mobile */
    }
}

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

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide-image,
.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: slideUp 0.8s ease;
}

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

.slide-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-text {
            padding: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-slide {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #15a815 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(25, 199, 25, 0.3);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-slide:hover {
    background: linear-gradient(135deg, #15a815 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 199, 25, 0.4);
    color: white;
}

@media (max-width: 768px) {
        .contact-info-container {
            padding: 1rem 0;
        }
        .social-icons a {
            font-size: 1.5rem !important;
            margin-right: 8px !important;
        }
        .map-embed {
            height: 220px !important;
        }
}

/* Slider Controls */
.slider-prev,
.slider-next {
        .social-icons a {
            font-size: 1.2rem !important;
            margin-right: 6px !important;
        }
        .map-embed {
            height: 140px !important;
        }
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.5);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Categories Horizontal Scroll */
.categories-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8faf9 100%);
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.container-full {
    max-width: 100%;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
    margin-top: 2rem;
}

.categories-scroll::-webkit-scrollbar {
    height: 10px;
}

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

.categories-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
}

.category-item {
    flex: 0 0 280px;
    width: 280px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.category-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.category-img {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.category-item:hover .category-img {
    box-shadow: 0 16px 40px rgba(70, 100, 70, 0.3);
    transform: scale(1.05);
}

.category-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(70, 100, 70, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover .category-img::after {
    opacity: 1;
}

.category-img-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-img-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.category-item:hover .category-img-placeholder {
    box-shadow: 0 16px 40px rgba(70, 100, 70, 0.3);
    transform: scale(1.05);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.category-item:hover .category-name {
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(70, 100, 70, 0.15);
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

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

.product-card-home {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(70, 100, 70, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

.product-card-home:hover::before {
    opacity: 1;
}

.product-card-home:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(70, 100, 70, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio for 600x600 images */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card-home:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

.product-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    overflow: hidden;
}

.product-img-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.813rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(70, 100, 70, 0.3);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.product-badge-right {
    left: auto;
    right: 15px;
}

.badge-out-stock {
    background: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.badge-category {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.product-badge-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.product-card-home:hover .product-badge-corner {
    transform: rotate(360deg) scale(1.1);
}

.product-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card-home:hover .product-name {
    color: var(--primary-color);
}

.product-code {
    font-size: 0.813rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.spec {
    font-size: 0.813rem;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.spec svg {
    flex-shrink: 0;
}

.product-card-home:hover .spec {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.product-price-home {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.product-price-home .currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.product-price-home .amount {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-add-cart {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 0 0 20px 20px;
    font-size: 0.938rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(70, 100, 70, 0.3);
}

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

.btn-add-cart svg {
    transition: transform 0.3s ease;
}

.btn-add-cart:hover svg {
    transform: scale(1.2) rotate(12deg);
}

.btn-disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive for Homepage */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1.125rem;
    }
    
    .slider-prev,
    .slider-next {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
    }
    
    .categories-scroll {
        padding: 1rem;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .view-all-link {
        font-size: 0.938rem;
        align-self: flex-end;
    }
    
    .category-item {
        flex: 0 0 120px;
    }
    
    .category-img,
    .category-img-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .products-grid-home {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .product-img-wrapper {
        height: 0;
        padding-bottom: 100%; /* Square aspect ratio for 600x600 images */
        position: relative;
    }
    
    .product-img,
    .product-img-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .product-details {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-specs {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .spec {
        font-size: 0.688rem;
        padding: 0.25rem 0.5rem;
    }
    
    .spec svg {
        width: 10px;
        height: 10px;
    }
    
    .product-price-home {
        font-size: 1rem;
        gap: 0.25rem;
    }
    
    .product-price-home .currency {
        font-size: 0.75rem;
    }
    
    .btn-add-cart {
        padding: 0.75rem;
        font-size: 0.813rem;
        gap: 0.375rem;
    }
    
    .btn-add-cart svg {
        width: 14px;
        height: 14px;
    }
    
    .product-badge {
        top: 8px;
        left: 8px;
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }
    
    .product-badge-right {
        left: auto;
        right: 8px;
    }
    
    .badge-out-stock {
        font-size: 0.563rem;
        padding: 0.188rem 0.375rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .btn-slide {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
    }
    
    .categories-scroll {
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .view-all-link {
        font-size: 0.875rem;
    }
    
    .products-grid-home {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-img-wrapper {
        padding-bottom: 100%; /* Maintain square aspect ratio */
    }
    
    .product-details {
        padding: 0.625rem;
    }
    
    .product-name {
        font-size: 0.813rem;
        margin-bottom: 0.25rem;
    }
    
    .product-specs {
        gap: 0.25rem;
        margin-bottom: 0.375rem;
    }
    
    .spec {
        font-size: 0.625rem;
        padding: 0.188rem 0.375rem;
    }
    
    .product-price-home {
        font-size: 0.938rem;
    }
    
    .btn-add-cart {
        padding: 0.625rem;
        font-size: 0.75rem;
    }
    
    .categories-section {
        padding: 2rem 0 1rem;
    }
    
    .products-section {
        padding: 1.5rem 0 3rem;
    }
}

/* Cart Icon and Side Cart Panel */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 1rem;
}
.cart-icon {
    font-size: 1.7rem;
    vertical-align: middle;
}
.cart-count {
    font-weight: 700;
    font-size: 1rem;
    vertical-align: middle;
    margin-left: 0.2rem;
    color: white;
    border-radius: 50%;
    padding: 0.15em 0.6em;
    min-width: 1.5em;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#sideCartOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 3000;
}
#sideCartPanel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 370px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    z-index: 3001;
    overflow-y: auto;
    transition: right 0.3s;
}
@media (max-width: 600px) {
    #sideCartPanel {
        width: 100vw;
        max-width: 100vw;
    }
}



