/* frontend/style.css */

:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layered System - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    /* Headers, Sidebars */
    --bg-tertiary: #f1f3f4;
    /* Inputs, Hovers */
    --bg-card: #ffffff;
    /* Cards, Modals */

    /* Legacy mapping for backward compatibility during refactor */
    --color-bg: var(--bg-primary);
    --color-bg-alt: var(--bg-secondary);

    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #1a1a1a;
    --color-border: #e5e5e5;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius-lg: 12px;
    --radius-md: 8px;
}

html.dark-mode {
    /* Layered System - Dark Mode (Professional Neutral/Slate) */
    --bg-primary: #0d1117;
    /* Deepest background */
    --bg-secondary: #161b22;
    /* Headers, Content wrappers */
    --bg-card: #161b22;
    /* Cards match secondary */
    --bg-tertiary: #21262d;
    /* Inputs, Hovers, Table stripes */

    /* Legacy mapping */
    --color-bg: var(--bg-primary);
    --color-bg-alt: var(--bg-secondary);

    --color-text: #c9d1d9;
    /* Soft white */
    --color-text-muted: #8b949e;
    /* Slate gray */
    --color-accent: #ffffff;
    --color-border: #30363d;
    /* Subtle border */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ensure buttons and other elements respect the mode */
html.dark-mode .btn-primary {
    background-color: var(--color-accent);
    color: #0d1117;
    /* Dark text on white button */
}

html.dark-mode .btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--color-text);
    border-color: var(--color-border);
}

html.dark-mode .photo-details-panel {
    background-color: var(--bg-secondary);
    border-left-color: var(--color-border);
}

html.dark-mode .floating-back-btn {
    background: var(--bg-tertiary);
    color: var(--color-text);
}

html.dark-mode .nav-arrow {
    background-color: var(--bg-tertiary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

html.dark-mode .header-content nav a {
    color: var(--color-text-muted);
}

html.dark-mode .header-content nav a:hover {
    color: var(--color-text);
}

html.dark-mode .minimal-header {
    background-color: rgba(22, 27, 34, 0.95);
    /* Matches secondary */
    border-bottom-color: var(--color-border);
}

html.dark-mode .product-option {
    border-color: var(--color-border);
    background-color: transparent;
    color: var(--color-text);
}

html.dark-mode .product-option:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-accent);
}

html.dark-mode .modal-content {
    background-color: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-mode .close-button {
    color: var(--color-text-muted);
}

html.dark-mode .close-button:hover {
    color: var(--color-text);
}

.photo-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    background-color: #e0e0e0;
    display: block;
}

html.dark-mode .photo-card img {
    background-color: #333;
    /* Darker placeholder */
    opacity: 0.9;
}

.photo-card h2 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #333;
    font-weight: 600;
}

html.dark-mode .photo-card h2 {
    color: var(--color-text);
}

/* Consolidated into the main collection-card block below */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Minimal Header */
.minimal-header {
    background-color: var(--bg-primary);
    /* Was color-bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ... existing code ... */

/* Right Panel (Details) */
.photo-details-panel {
    padding: 3rem;
    background-color: var(--bg-primary);
    /* Was color-bg */
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

/* ... existing code ... */

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--bg-tertiary);
    /* Was color-bg-alt */
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* ... existing code ... */

.product-option {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    /* Further reduced padding */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
    /* Explicit background */
}

.product-option:hover {
    border-color: var(--color-accent);
    background-color: var(--bg-tertiary);
    /* Hover gets tertiary */
}

html.dark-mode .product-option {
    border-color: var(--color-border);
    background-color: var(--bg-card);
    /* Cards get card bg */
    color: var(--color-text);
}

html.dark-mode .product-option:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--color-accent);
}

/* ... existing code ... */

html.dark-mode .modal-content {
    background-color: var(--bg-card);
    /* Modal is a card */
    border-color: var(--color-border);
    color: var(--color-text);
}

/* ... existing code ... */

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    /* Main BG */
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* ... existing code ... */

/* Removed duplicate home-page styles - consolidated at bottom of file */

/* ... existing code ... */

.collection-card {
    background-color: var(--bg-card);
    /* Explicitly card */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--color-border);
    /* Add subtle border for depth */
}

html.dark-mode .collection-card {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-card);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-mode .collection-card .collection-name {
    color: var(--color-text);
}

html.dark-mode .collection-card .collection-count {
    color: var(--color-text-muted);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.collection-image {
    width: 100%;
    padding-top: 70%;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

html.dark-mode .collection-image {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

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

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

.collection-info {
    padding: 2rem;
}

.collection-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.collection-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.collection-description {
    margin: 0 0 1rem 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* Header Content Layout */
.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 a {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-content nav {
    display: flex;
    gap: 1.5rem;
}

.header-content nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-content nav a:hover {
    color: var(--color-text);
}

/* Right Panel (Details) */
.photo-details-panel {
    padding: 3rem;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.title-serif {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.description {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.photo-meta {
    margin-top: 1.5rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* Product Grid */
.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.product-category-section {
    margin-bottom: 2rem;
}

.product-category-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.product-grid {
    display: grid;
    gap: 0.5rem;
    /* Reduced gap */
}

.product-option {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    /* Further reduced padding */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-option:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg-alt);
}

.product-option-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-option-info h4 {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    /* Slightly smaller */
}

.product-option-price {
    font-weight: 600;
    font-size: 0.95rem;
    /* Slightly smaller */
    color: var(--color-text-muted);
}

.add-btn-sm {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s;
}

.product-option:hover .add-btn-sm {
    opacity: 1;
    transform: translateX(0);
}

/* Loading State */
.loading-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Photo Page Layout */
.photo-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    height: calc(100vh - 70px);
    /* Subtract header height */
    overflow: hidden;
}

.photo-stage {
    background: #0d0d0d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-details-panel {
    background: var(--color-bg);
    overflow-y: auto;
    padding: 3rem;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

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

    .photo-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .photo-stage {
        height: 60vh;
        padding: 1rem;
    }

    .photo-details-panel {
        padding: 2rem;
        border-left: none;
        max-height: none;
        overflow-y: visible;
    }
}

/* Standard Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    /* Pill shape for premium feel */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

.btn-secondary {
    background-color: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Update existing specific buttons to use new styles */
.photo-card button {
    /* Inherit .btn-primary styles manually or add class in JS */
    background-color: var(--color-accent);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.photo-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

/* Cart Buttons */
.checkout-btn {
    background-color: var(--color-accent);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Nav Buttons */
nav button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.floating-back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: var(--color-text);
    background: white;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo-preview {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 95vh;
    /* Maximize height usage */
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* Add shadow to help separate from dark bg */
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.nav-arrow:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 2rem;
}

.nav-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-prev {
        left: 1rem;
    }

    .nav-next {
        right: 1rem;
    }
}

/* Migrated from index.html */
/* Overrides for index page */
body.home-page {
    background-color: var(--bg-secondary);
}

html.dark-mode body.home-page {
    background-color: var(--bg-primary);
}

.featured-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 0 0 4rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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



.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

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

/* Profile Page */
.profile-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

html.dark-mode .profile-container {
    background: var(--color-bg-alt);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
}

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

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.orders-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.order-item {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--color-bg);
}

.order-item h3 {
    margin: 0 0 0.5rem 0;
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.order-status.PENDING {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.SENT_TO_LAB {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.SHIPPED {
    background-color: #d4edda;
    color: #155724;
}

.order-status.CANCELLED {
    background-color: #f8d7da;
    color: #721c24;
}
/* --- Shopping Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

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

.cart-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items {
    padding: 1.5rem;
    flex: 1;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

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

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-product {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}
[data-theme="dark"] .cart-item-product {
    color: #aaa;
}

.cart-item-price {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: var(--color-bg-secondary, #f0f0f0);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
}

.cart-item-controls .remove-btn {
    width: auto;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    margin-left: auto;
    background: transparent;
    border: none;
    color: #e74c3c;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

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

.cart-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    gap: 1rem;
}
[data-theme="dark"] .cart-empty-state {
    color: #aaa;
}

.cart-empty-state i {
    font-size: 3rem;
    color: #ddd;
}
[data-theme="dark"] .cart-empty-state i {
    color: #444;
}

.continue-shopping {
    background: transparent;
    border: 1px solid var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-text);
    margin-top: 1rem;
}

/* Header Cart Icon */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
