/* static/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --ink: #111;
    --muted: #6B7280;
    --accent: #1f6feb;
    --accent-dark: #1b4fbf;
    --lux-bg: #f6f1e8;
    --lux-ink: #1c1b18;
    --lux-muted: #6e6558;
    --lux-gold: #c7a46d;
    --lux-gold-dark: #a3814c;
    --lux-surface: #ffffff;
    --lux-border: #e3dacb;
    --lux-shadow: 0 18px 40px rgba(18, 16, 12, 0.08);
    --dashboard-bg: #f7f6f2;
    --dash-card: #ffffff;
    --dash-border: #e6e2d8;
    --dash-ink: #1f2937;
    --dash-accent: #0f766e;
    --dash-accent-2: #b45309;
    --dash-accent-3: #2563eb;
}

body {
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
}

.lux-theme {
    background: var(--lux-bg);
    color: var(--lux-ink);
}

.classic-theme {
    --lux-bg: #f8fafc;
    --lux-ink: #111827;
    --lux-muted: #6b7280;
    --lux-gold: #1f6feb;
    --lux-gold-dark: #1b4fbf;
    --lux-surface: #ffffff;
    --lux-border: #e5e7eb;
    --lux-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.lux-page {
    padding: 48px 0 64px;
    background:
        radial-gradient(circle at 12% 10%, rgba(199, 164, 109, 0.24), transparent 45%),
        radial-gradient(circle at 82% 18%, rgba(24, 22, 17, 0.24), transparent 40%),
        var(--lux-bg);
}

.lux-hero {
    padding: 56px 0 40px;
    color: var(--lux-ink);
}

.lux-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.lux-subtitle {
    color: var(--lux-muted);
    max-width: 560px;
}

.lux-card {
    background: var(--lux-surface);
    border: 1px solid var(--lux-border);
    border-radius: 18px;
    box-shadow: var(--lux-shadow);
}

.lux-card .card-header {
    border-bottom: 1px solid var(--lux-border);
    background: #fbf8f3;
}

.lux-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(199, 164, 109, 0.4);
    background: rgba(199, 164, 109, 0.12);
    color: var(--lux-ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lux-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--lux-border);
    background: #fbf8f3;
}

.lux-metric span {
    color: var(--lux-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lux-metric strong {
    font-size: 20px;
}

.lux-theme .btn-primary {
    background: var(--lux-gold);
    border-color: var(--lux-gold);
    color: #1c1b18;
}

.lux-theme .btn-primary:hover {
    background: var(--lux-gold-dark);
    border-color: var(--lux-gold-dark);
    color: #111;
}

.lux-theme .btn-outline-primary {
    color: var(--lux-ink);
    border-color: var(--lux-gold);
}

.lux-theme .btn-outline-primary:hover {
    background: var(--lux-gold);
    border-color: var(--lux-gold);
    color: #1c1b18;
}

.lux-theme .form-control,
.lux-theme .form-select {
    border-radius: 12px;
    border-color: var(--lux-border);
}

.lux-theme .card {
    border-color: var(--lux-border);
    border-radius: 18px;
    box-shadow: var(--lux-shadow);
    background: var(--lux-surface);
}

.dashboard-shell {
    background: var(--dashboard-bg);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 28px;
    color: var(--dash-ink);
    margin: 0;
}

.dashboard-subtitle {
    color: var(--muted);
    margin: 4px 0 0;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-card {
    background: var(--dash-card);
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    padding: 18px;
    height: 100%;
}

.dashboard-card h5 {
    margin-bottom: 10px;
}

.stat-card {
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stat-label {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    margin: 4px 0 0;
    color: var(--dash-ink);
}

.stat-accent {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.stat-accent.teal {
    background: var(--dash-accent);
}

.stat-accent.amber {
    background: var(--dash-accent-2);
}

.stat-accent.blue {
    background: var(--dash-accent-3);
}

.dashboard-table thead th {
    background: #f3f1ea;
    border-color: var(--dash-border);
    color: var(--dash-ink);
}

.dashboard-table tbody td {
    border-color: var(--dash-border);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #e5e7eb;
    color: #374151;
}

.status-pill.success {
    background: #dcfce7;
    color: #166534;
}

.status-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.order-progress {
    display: grid;
    gap: 12px;
}

.order-step {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.order-step::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
}

.order-step::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    width: 2px;
    height: calc(100% - 14px);
    background: #e5e7eb;
}

.order-step:last-child::after {
    display: none;
}

.order-step.completed {
    color: var(--dash-ink);
    font-weight: 600;
}

.order-step.completed::before {
    background: var(--dash-accent);
}

.order-step.active {
    color: var(--dash-ink);
    font-weight: 600;
}

.order-step.active::before {
    background: var(--dash-accent-3);
}

h1,
h2,
h3,
.navbar-brand,
.section-title {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
}
.navbar {
    height: 72px;
    background: #0b0b0b;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-brand {
    font-size: 24px;
    color: var(--ink);
}

.navbar-brand:hover {
    color: var(--ink);
}

.lux-theme .navbar-brand {
    color: #f4f1eb;
}

.lux-theme .navbar-brand:hover {
    color: #ffffff;
}

.lux-theme .nav-actions .btn-link {
    color: #f4f1eb;
}

.lux-theme .nav-actions .btn-link:hover {
    color: #ffffff;
}


.nav-actions .btn-link {
    color: #d7d1c7;
    text-decoration: none;
}

.nav-actions .btn-link:hover {
    color: #fff;
}

.nav-actions {
    margin-left: auto;
}

.nav-user {
    font-weight: 500;
}

.navbar-ticker {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #f4f1eb;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: ticker-slide 18s linear infinite;
}

.navbar-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ticker-label {
    color: rgba(244, 241, 235, 0.7);
    font-weight: 600;
}

.ticker-price {
    color: #ffffff;
    font-weight: 600;
}

.ticker-change {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.ticker-change.up {
    color: #0b0b0b;
    background: #d6f2e3;
}

.ticker-change.down {
    color: #0b0b0b;
    background: #f9d4d4;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-35%);
    }
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 8px;
    padding: 8px 16px;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    border-radius: 8px;
    padding: 8px 16px;
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #0b0b0b;
}

.hero-section {
    background: #111827;
    border-radius: 16px;
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    color: #E5E7EB;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
}

.hero-buttons .btn-light {
    background: white;
    border: none;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    transform: rotate(-5deg);
}

.features-section {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
}

.feature-item {
    padding: 24px;
    text-align: center;
    border-right: 1px solid #E5E7EB;
}

.col-md-3:last-child .feature-item {
    border-right: none;
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
}

.view-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.product-image-wrapper {
    background: #F3F4F6;
    padding: 24px;
    position: relative;
    aspect-ratio: 1;
}

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

/* Shared card styling for logged-in flows */
.card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.h2 {
    font-weight: 600;
}

/* Listing form */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.remove-image {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc3545;
    padding: 0;
    font-size: 1rem;
}

.remove-image:hover {
    background: white;
    color: #bb2d3b;
}

.weight-unit-select {
    max-width: 120px;
}

/* Order tracking */
.tracking-section {
    margin-bottom: 1rem;
}

.tracking-data {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.tracking-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tracking-data pre {
    margin: 0;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Order detail timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background: #e9ecef;
}

.timeline-item:last-child:before {
    bottom: 0;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 16px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007bff;
}

.timeline-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: #f5c542;
    font-size: 0.9rem;
    vertical-align: middle;
}

.rating-stars .empty {
    color: #d1d5db;
}

/* Collapse indicators */
.card-header[data-bs-toggle="collapse"] {
    cursor: pointer;
}

.card-header[data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform 0.2s ease-in-out;
}

.collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}

/* Order summary */
.order-summary-loading {
    display: flex;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.order-summary-content {
    opacity: 0.5;
}

.cart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-shell {
    padding: 64px 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(217, 181, 107, 0.25), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(31, 111, 235, 0.2), transparent 40%),
        #0b0b0b;
    color: #f4f1eb;
}

.auth-card {
    background: rgba(12, 12, 12, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.auth-card h2 {
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 8px;
}

.auth-card p {
    color: rgba(244, 241, 235, 0.7);
    margin-bottom: 20px;
}

.auth-tag {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(217, 181, 107, 0.18);
    border: 1px solid rgba(217, 181, 107, 0.3);
    color: #d9b56b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(217, 181, 107, 0.6);
    box-shadow: none;
    color: #fff;
}

.auth-card .form-label {
    color: rgba(244, 241, 235, 0.8);
}

.site-footer {
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h5 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.05em;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.product-description {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 12px;
}

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

.price {
    font-size: 20px;
    font-weight: 600;
}

.unit {
    color: #6B7280;
    font-size: 14px;
}

.seller-info {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.seller-name {
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.seller-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar {
        height: auto;
    }

    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-ticker {
        order: 3;
        flex: 0 0 100%;
        margin-top: 6px;
    }

    .ticker-track {
        font-size: 11px;
        letter-spacing: 0.05em;
        animation-duration: 14s;
    }

    .nav-actions {
        order: 2;
        margin-left: 0;
    }

    .hero-section {
        padding: 28px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .features-section {
        padding: 16px;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }

    .col-md-3:last-child .feature-item {
        border-bottom: none;
    }

    .auth-shell {
        padding: 40px 0;
    }

    .auth-card {
        padding: 22px;
        border-radius: 16px;
    }

    .dashboard-shell {
        padding: 16px;
    }

    .dashboard-title {
        font-size: 22px;
    }

    .table {
        font-size: 0.9rem;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 12px;
    }
}
/* Add to static/css/styles.css */
.signup-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.signup-logo {
    width: 48px;
    height: 48px;
}

.signup-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.signup-subtitle {
    color: #6B7280;
    text-align: center;
    margin-bottom: 24px;
}

.btn-google {
    border: 1px solid #E5E7EB;
    background: white;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #E5E7EB;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #6B7280;
    font-size: 14px;
}

.form-label {
    font-weight: 500;
    color: #374151;
}

.form-control {
    height: 48px;
    border-color: #E5E7EB;
}

.form-control::placeholder {
    color: #9CA3AF;
}

.btn-primary {
    height: 48px;
    font-weight: 500;
}

.form-check-label {
    font-size: 14px;
    color: #374151;
}

/* Add to static/css/styles.css */
.card {
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.card-title {
    color: #111827;
    font-weight: 600;
    margin-bottom: 1rem;
}

.list-group-item {
    border: none;
    padding: 1rem 0;
}

.table th {
    font-weight: 600;
    color: #4B5563;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.footer-links a:hover {
    color: #4F46E5 !important;
    transition: color 0.2s;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.bg-opacity-25 {
    --bs-bg-opacity: 0.25;
}

.card-body .h2 {
    font-size: 2rem;
    font-weight: 600;
}
.stripe-button {
    display: inline-block;
    background: #6772e5;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.stripe-button:hover {
    background: #5469d4;
}
