:root {
  --bg: #ede0d4;
  --surface: #e6ccb2;
  --surface-light: #ddb892;
  --surface-glass: rgba(230, 204, 178, 0.65);

  --primary: #7f5539;
  --primary-glow: rgba(127, 85, 57, 0.12);

  --secondary: #9c6644;
  --accent: #b08968;

  --text: #2b211b;
  --text-muted: #6b5b4d;

  --border: rgba(127, 85, 57, 0.12);

  --danger: #b23a48;
  --success: #588157;

  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Background Blurs */
.bg-blur {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blur-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}

.blur-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(127, 85, 57, 0.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(145, 105, 87, 1);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-text {
    letter-spacing: 2px;

    background: linear-gradient(
        to right,
        #312215,
        #a86d36,
        #312215
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.cart-trigger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.cart-trigger:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary-glow);
}

.user-pill {
    background: var(--surface-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.tagline {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

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

.full-width {
    width: 100%;
}

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

.floating-card {
    width: 300px;
    height: 400px;

    background: linear-gradient(
        135deg,
        rgba(176, 137, 104, 0.28),
        rgba(127, 85, 57, 0.18)
    );

    border-radius: 24px;

    border: 1px solid rgba(237, 224, 212, 0.12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    padding: 2rem;

    animation: float 6s ease-in-out infinite;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255,255,255,0.08);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-line {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    width: 100%;
}

.card-line.short { width: 60%; }

.card-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 1rem;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Products Section */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
}

.search-filter input {
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: var(--text);
    width: 300px;
    transition: border-color 0.3s ease;
}

.search-filter input:focus {
    outline: none;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.product-img {
    height: 200px;
    background: var(--surface-light);
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    /* backdrop-filter: blur(5px); */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--surface-light);
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.add-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.add-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Loader */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem;
    gap: 1rem;
    color: var(--text-muted);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.drawer.open {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-light);
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

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

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Auth Section */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.auth-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Checkout Section */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.checkout-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.order-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.summary-row.total {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-options {
    display: flex;
    gap: 1rem;
}

.payment-opt {
    flex: 1;
    cursor: pointer;
}

.payment-opt input {
    display: none;
}

.opt-box {
    display: block;
    padding: 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 600;
}

.payment-opt input:checked + .opt-box {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

/* Status Section */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.service-indicators {
    display: flex;
    gap: 1.5rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.indicator.online .dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.terminal-log {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.log-entry {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.log-entry.system { color: #84cc16; }
.log-entry.error { color: #f43f5e; }
.log-entry.info { color: #38bdf8; }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2000;
}

.toast {
    background: var(--surface-light);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease forwards;
    min-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

