/* Modern DoorStep - React-Like Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D4715;
    --primary-light: #1a5f2a;
    --primary-dark: #0a3410;
    --secondary: #EBE1D1;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --bg-card: #FFFFFF;
    --bg-dashboard: #FFFFFF;
    
    --text-primary: #0D4715;
    --text-secondary: #41644A;
    --text-muted: #8B9B88;
    --text-white: #FFFFFF;
    
    --accent-primary: #0D4715;
    --accent-secondary: #41644A;
    --accent-tertiary: #EBE1D1;
    --accent-light: rgba(13, 71, 21, 0.05);
    --accent-medium: rgba(13, 71, 21, 0.1);
    
    --border-light: #E5E5E5;
    --border-accent: rgba(13, 71, 21, 0.1);
    
    --shadow-xs: 0 1px 3px rgba(13, 71, 21, 0.08);
    --shadow-sm: 0 2px 8px rgba(13, 71, 21, 0.1);
    --shadow-md: 0 6px 20px rgba(13, 71, 21, 0.12);
    --shadow-lg: 0 10px 30px rgba(13, 71, 21, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* Modern Navigation */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xs);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--accent-secondary);
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-fast);
}

nav a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--accent-light);
}

.cart-icon:hover {
    background: var(--accent-medium);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0D4715 0%, #1a5f2a 50%, #0D4715 100%);
    padding: 100px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(235, 225, 209, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(235, 225, 209, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(235, 225, 209, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero .btn {
    min-width: 150px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 2.5rem;
    background: rgba(235, 225, 209, 0.12);
    border-radius: 16px;
    border: 1px solid rgba(235, 225, 209, 0.3);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-icon {
    font-size: 2.2rem;
    color: #EBE1D1;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #EBE1D1;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-normal);
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: white;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: transparent;
    color: #e74c3c;
}

/* Products Section */
.products-section {
    padding: 4rem 2rem;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--bg-secondary);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 0.8rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* Cart Page */
.cart-section {
    padding: 3rem 2rem;
}

.cart-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    max-width: 400px;
    margin-left: auto;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 2px solid var(--border-light);
    padding-top: 1rem;
}

/* Checkout Form */
.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Footer */
footer {
    background-color: var(--accent-primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        display: none;
        width: 100%;
    }
    
    nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cart-table {
        font-size: 0.85rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.75rem;
    }
    
    .cart-summary {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        flex: none;
    }
    
    .checkout-form {
        padding: 1.5rem;
    }
}
