:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-light {
    font-weight: 400;
    color: var(--text-light);
}

.cart-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero h1 span {
    font-weight: 400;
    opacity: 0.9;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Products */
.products {
    padding: 60px 0;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
    background: #f0f4f8;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 24px;
}

.product-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.product-specs {
    list-style: none;
    margin-bottom: 20px;
}

.product-specs li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

.product-price {
    margin-bottom: 16px;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.delivery {
    display: block;
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Info Section */
.info-section {
    padding: 40px 0 60px;
}

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

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

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

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

.cart-header h3 {
    font-size: 1.1rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f0f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

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

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-checkout {
    background: var(--success);
}

.btn-checkout:hover {
    background: #059669;
}

/* Checkout Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkout-step {
    padding: 24px;
}

.checkout-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

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

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #f0f7ff;
}

.payment-option input {
    margin-top: 2px;
}

.option-content strong {
    display: block;
    font-size: 0.9rem;
}

.option-content span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-buttons {
    display: flex;
    gap: 12px;
}

.btn-back {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-submit {
    background: var(--success);
}

.btn-submit:hover {
    background: #059669;
}

/* Success Modal */
.modal-success {
    text-align: center;
    padding: 48px 24px;
}

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

.modal-success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-success p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-success .btn {
    width: auto;
    padding: 12px 32px;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cart-sidebar {
        width: 100%;
    }

    .checkout-buttons {
        flex-direction: column;
    }
}
