:root {
    --primary: #1A1A1A;
    --accent: #FF6A3D;
    --secondary: #999;
    --light: #F4F4F4;
    --white: #FFFFFF;
    --dark: #121212;
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    --font-main: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

/* Header */
.navbar {
    padding: 20px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Hero */
.hero {
    background: #E0F0F8;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-copy {
    flex: 1;
    padding-right: 40px;
    z-index: 1;
}

.eyebrow {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.hero-copy h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-copy .accent {
    color: var(--accent);
}

.hero-copy p {
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
}

.hero-art {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-model {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Promo */
.promo {
    padding: 80px 0;
}

.promo-inner {
    display: flex;
    align-items: center;
    background: #FFE8E1;
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.promo-copy {
    flex: 1;
    position: relative;
    z-index: 1;
}

.promo-copy h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Brands */
.brands {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.brands-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #999;
    font-weight: 700;
    font-size: 20px;
}

/* Featured & Shop */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: 60px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* Components */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #e0552b;
    box-shadow: 0 4px 12px rgba(255, 106, 61, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-secondary:hover {
    background: #cbd5e1;
    box-shadow: none;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f8f8f8;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    transition: bottom 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    margin: 5px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 40px auto;
}

.shop-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

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

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
    overflow: hidden;
}

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

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--accent);
    opacity: 1;
}

.product-info .product-title {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-info .product-category {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-info .product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #FFD700;
    font-size: 18px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-info .product-price {
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 30px;
}

.product-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.product-features {
    margin-top: 20px;
}

.product-features h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-features ul {
    list-style-position: inside;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f4f4f4;
    border-color: #ccc;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn-large {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.add-to-cart-btn-large:hover {
    background: var(--accent);
}

.related-products {
    margin-top: 60px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .quantity-selector {
        justify-content: center;
    }

    .add-to-cart-btn-large {
        padding: 15px;
    }
}

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

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 50px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

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

.checkout-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.15);
}

/* Confirmation Page */
.confirmation-hero {
    background: #E0F0F8;
    padding: 60px 0;
    text-align: center;
}

.confirmation-icon {
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.confirmation-details {
    max-width: 600px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
}

.confirmation-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.order-info {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
}

.confirmation-message {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.confirmation-message h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.confirmation-message ul {
    list-style-position: inside;
    color: #666;
}

.confirmation-message li {
    margin-bottom: 10px;
}

.confirmation-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Auth Forms (Login/Register) */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.auth-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.auth-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 80vh;
}

.auth-form-wrapper {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-name {
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-description {
    color: #999;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #999;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.newsletter-input {
    display: flex;
}

.newsletter-email {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
}

.newsletter-btn {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #666;
    font-size: 14px;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Account Page */
.account-hero {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 40px;
}

.account-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.account-subtitle {
    color: #666;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.account-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.account-section-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-details p {
    margin-bottom: 10px;
    font-size: 14px;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.account-link {
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.account-link:hover {
    background: #f4f4f4;
    color: var(--primary);
}

.account-link.logout-link {
    color: var(--error);
}

.account-link.logout-link:hover {
    background: #fff0f0;
}

.account-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.password-form {
    max-width: 500px;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    background: #f8f8f8;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.order-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.order-status.processing {
    background: #eff6ff;
    color: #1d4ed8;
}

.order-status.shipped {
    background: #f0fdf4;
    color: #15803d;
}

.order-status.delivered {
    background: #f0fdf4;
    color: #15803d;
}

.order-status.cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

/* Cart Hero & Empty State */
.cart-hero {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 40px;
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
}

.empty-cart-icon {
    color: #ddd;
    margin-bottom: 20px;
}

/* Cart Items & Summary */
.cart-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-weight: 600;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-product {
    display: flex;
    gap: 20px;
    flex: 2;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-name {
    font-size: 16px;
    margin-bottom: 5px;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.cart-item-subtotal {
    font-weight: 600;
    width: 80px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #dc2626;
}

.cart-summary-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.continue-shopping {
    margin-top: 20px;
    text-align: center;
}

.continue-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
}

/* Auth Enhancements */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Responsive for Account & Cart */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .orders-header {
        display: none;
        /* Hide headers on mobile */
    }

    .order-row {
        grid-template-columns: 1fr;
        gap: 10px;
        position: relative;
    }

    .order-col-date,
    .order-col-total,
    .order-col-status {
        font-size: 14px;
        color: #666;
    }

    .order-summary {
        max-width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-item-product {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }
}