/* Customer CSS for K's Bubble Tea */

/* Brand Logo Styling */
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-lg .brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

/* Header Navigation */
.topnav {
    background: var(--burgundy, #4a1414);
    color: var(--cream, #f5ecd9);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cream, #f5ecd9);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.brand-text small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--cream, #f5ecd9);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    position: relative;
    color: var(--cream, #f5ecd9);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.1);
}

.badge-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--honey, #b87333);
    color: var(--cream, #f5ecd9);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 1rem;
    min-width: 1rem;
    text-align: center;
}

/* Additional CSS Variables */
:root {
    --burgundy: #4a1414;
    --cream: #f5ecd9;
    --honey: #b87333;
    --muted: #8a6f5a;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Cormorant Garamond', serif;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --secondary: #6b7280;
    --card: #ffffff;
    --border: #e5e5e5;
    --text: #333333;
    --pearl: #fafafa;
}

/* Basic Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--burgundy);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--burgundy) 0%, #6b1f1f 100%);
    color: var(--cream);
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 1rem 0;
}

.hero h1 em {
    font-style: italic;
    color: var(--honey);
}

.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Popular Products */
.popular-products {
    background: rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.popular-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.popular-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--honey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--cream);
}

.popular-product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.popular-product-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--honey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 1rem;
    position: relative;
}

.tag {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--burgundy);
    color: var(--cream);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
}

.product-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.price {
    font-weight: 600;
    color: var(--burgundy);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-ghost {
    background: transparent;
    color: var(--burgundy);
    border: 1px solid var(--burgundy);
}

.btn-ghost:hover {
    background: var(--burgundy);
    color: var(--cream);
}

/* Section Styling */
.section-head {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.stack-lg {
    margin-bottom: 4rem;
}

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

/* Footer */
.foot {
    background: var(--burgundy);
    color: var(--cream);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.brand-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brand-lg .brand-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.foot h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.foot ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot li {
    margin-bottom: 0.5rem;
}

.foot a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.foot a:hover {
    opacity: 1;
}

.foot-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.6;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-inner {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .foot-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Bootstrap-style Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.ms-3 { margin-left: 1rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.text-muted { 
    color: var(--muted) !important; 
    opacity: 0.8;
}

.text-center { text-align: center; }

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-secondary { background-color: var(--secondary) !important; color: white !important; }
.bg-warning { background-color: var(--warning) !important; color: white !important; }
.bg-success { background-color: var(--success) !important; color: white !important; }
.bg-danger { background-color: var(--danger) !important; color: white !important; }

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

/* Forms */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: block;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--burgundy);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 20, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: var(--burgundy);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 20, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 20, 0.25);
}

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

.btn-primary:hover {
    color: #fff;
    background-color: #6b1f1f;
    border-color: #6b1f1f;
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    border-top: 0;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

/* Custom verification card */
.verification-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Flash messages */
.flash {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Additional utility classes */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-md-6, .col-md-4, .col-md-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

@media (max-width: 767.98px) {
    .col-md-6, .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
