/* ========== THEME ========== */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7FB;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0EEFF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A65;
    --text-muted: #7B7B95;
    --border-color: rgba(59, 130, 246, 0.12);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --hero-glow-1: rgba(59, 130, 246, 0.08);
    --hero-glow-2: rgba(245, 158, 11, 0.06);
    --toggle-bg: #F0F0F5;
    --input-bg: #FFFFFF;
    --chip-bg: #F0F0F5;
    --chip-active-bg: linear-gradient(135deg, #00C9A7, #3B82F6);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --drawer-bg: #FFFFFF;
}
[data-theme="dark"] {
    --bg-primary: #0B0B1A;
    --bg-secondary: #10101F;
    --bg-card: #16162A;
    --bg-card-hover: #1E1E38;
    --text-primary: #FFFFFF;
    --text-secondary: #C5C5D5;
    --text-muted: #9494A5;
    --border-color: rgba(59, 130, 246, 0.15);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(11, 11, 26, 0.95);
    --hero-glow-1: rgba(59, 130, 246, 0.12);
    --hero-glow-2: rgba(245, 158, 11, 0.08);
    --toggle-bg: #16162A;
    --input-bg: #10101F;
    --chip-bg: #16162A;
    --chip-active-bg: linear-gradient(135deg, #00C9A7, #3B82F6);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --drawer-bg: #10101F;
}
:root {
    --coral: #00C9A7;
    --coral-hover: #00B396;
    --turquoise: #F59E0B;
    --violet: #3B82F6;
    --violet-soft: #60A5FA;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    padding-bottom: 2rem;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
    z-index: 99; width: 44px; height: 44px; border-radius: 50%;
    background: var(--toggle-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all 0.3s; box-shadow: var(--card-shadow);
}
.theme-toggle:hover { transform: translateY(-50%) scale(1.1); box-shadow: var(--card-shadow-hover); }
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1rem 2rem; background: var(--navbar-bg);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.nav-logo span { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.logo-highlight { color: var(--turquoise); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active { color: var(--turquoise); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--toggle-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: all 0.3s;
}
.nav-icon-btn:hover { transform: scale(1.08); background: var(--bg-card-hover); color: var(--turquoise); }

.cart-button {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    background: var(--toggle-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all 0.3s;
}
.cart-button:hover { transform: scale(1.08); background: var(--bg-card-hover); }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--coral); color: #fff;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-primary);
}
.cart-badge.empty { display: none; }

/* ========== HERO ========== */
.hero {
    position: relative; padding: 7rem 2rem 2rem; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--hero-glow-2) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; }
.search-wrapper {
    position: relative; max-width: 500px; margin: 0 auto;
}
.search-icon {
    position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.95rem;
}
.search-wrapper input {
    width: 100%; padding: 0.95rem 1rem 0.95rem 3rem;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 50px; color: var(--text-primary); font-size: 0.95rem;
    transition: all 0.3s; box-shadow: var(--card-shadow);
}
.search-wrapper input:focus {
    outline: none; border-color: var(--coral);
    box-shadow: 0 4px 25px rgba(0, 201, 167, 0.15);
}

/* ========== CATEGORY CHIPS ========== */
.categories-section { padding: 0 2rem 1.5rem; }
.categories-scroll {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 0.6rem; overflow-x: auto;
    padding: 0.5rem 0; scrollbar-width: thin;
}
.categories-scroll::-webkit-scrollbar { height: 4px; }
.categories-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.cat-chip {
    flex-shrink: 0; padding: 0.55rem 1.1rem;
    background: var(--chip-bg); border: 1px solid var(--border-color);
    border-radius: 50px; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); transition: all 0.25s;
    white-space: nowrap; user-select: none;
}
.cat-chip:hover { color: var(--text-primary); transform: translateY(-1px); }
.cat-chip.active {
    background: var(--chip-active-bg);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}
.cat-chip .count { opacity: 0.7; margin-left: 0.3rem; font-size: 0.78rem; }

/* ========== FEATURED SECTION ========== */
.featured-section { padding: 0 2rem 1.5rem; }
.featured-inner { max-width: 1280px; margin: 0 auto; }
.featured-title {
    font-size: 1.15rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.featured-title i { color: var(--turquoise); }
.featured-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
}
.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px; overflow: hidden;
    position: relative; cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1/1;
    color: #fff;
    box-shadow: var(--card-shadow);
}
.featured-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 201, 167, 0.35);
    border-color: var(--coral);
}
.featured-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 1; /* nítida, sin filtro */
}
.featured-card-content {
    position: relative; z-index: 2;
    padding: 0.8rem 1rem 1rem;
    height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    /* Gradient solo abajo para legibilidad del texto */
    background: linear-gradient(to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.65) 35%,
        rgba(0,0,0,0.15) 60%,
        transparent 80%);
}
.featured-star {
    align-self: flex-start;
    background: var(--turquoise);
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.featured-name {
    font-size: 0.92rem; font-weight: 700; line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.featured-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem; font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    color: #00C9A7;
}

/* ========== TOOLBAR ========== */
.toolbar-section { padding: 0 2rem 1rem; }
.toolbar-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap;
}
.results-count {
    font-size: 0.88rem; color: var(--text-muted); font-weight: 500;
}
.toolbar-right {
    display: flex; align-items: center; gap: 0.8rem;
}
.per-page-wrapper {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted);
}
.per-page-wrapper select {
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 0.42rem 0.8rem;
    border-radius: 8px; font-size: 0.85rem;
    font-family: inherit; cursor: pointer;
}
.per-page-wrapper select:focus { outline: none; border-color: var(--coral); }
.view-toggle {
    display: flex; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;
}
.view-btn {
    padding: 0.5rem 0.75rem;
    color: var(--text-muted); transition: all 0.2s;
    font-size: 0.95rem; display: flex; align-items: center;
}
.view-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.view-btn.active {
    background: linear-gradient(135deg, var(--coral), var(--violet));
    color: #fff;
}

/* ========== PRODUCTS CONTAINER ========== */
.products-section { padding: 0 2rem 2rem; }
.products-container[data-view="grid"] {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    align-items: start;
}
.products-container[data-view="list"] {
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 0.7rem;
}

/* List view product card */
.products-container[data-view="list"] .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: auto;
}
.products-container[data-view="list"] .product-image {
    width: 110px; min-width: 110px; aspect-ratio: 1/1; height: auto;
    flex-shrink: 0; align-self: center;
}
.products-container[data-view="list"] .product-info {
    flex-direction: row; align-items: center;
    padding: 0.8rem 1rem; gap: 1rem;
    flex: 1;
}
.products-container[data-view="list"] .product-name {
    min-height: 0; flex: 1; margin-bottom: 0;
    -webkit-line-clamp: 1;
}
.products-container[data-view="list"] .product-price {
    margin: 0; font-size: 1.2rem;
    white-space: nowrap; min-width: 100px; text-align: right;
}
.products-container[data-view="list"] .product-add-btn {
    margin-top: 0; padding: 0.55rem 1rem;
    white-space: nowrap; flex-shrink: 0;
}
.products-container[data-view="list"] .product-duration {
    top: 6px; right: 6px; font-size: 0.62rem; padding: 0.15rem 0.5rem;
}
.products-container[data-view="list"] .product-cat-badge {
    top: 6px; left: 6px; font-size: 0.62rem; padding: 0.15rem 0.5rem;
}

/* ========== PAGINATION ========== */
.pagination {
    max-width: 1280px; margin: 2.5rem auto 0;
    display: flex; justify-content: center; align-items: center;
    gap: 0.4rem; flex-wrap: wrap; padding: 1rem 0;
}
.page-btn {
    min-width: 38px; height: 38px; padding: 0 0.7rem;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled):not(.active) {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--coral);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--coral), var(--violet));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 201, 167, 0.3);
}
.page-btn:disabled {
    opacity: 0.4; cursor: not-allowed;
}
.page-ellipsis {
    color: var(--text-muted); padding: 0 0.4rem;
    user-select: none;
}

/* Legacy support — keep .products-grid pointing to container */
.products-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    transition: all 0.3s; box-shadow: var(--card-shadow);
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: var(--card-shadow-hover);
    border-color: var(--coral);
}
.product-image {
    position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden;
    background: var(--bg-secondary);
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block; transition: transform 0.4s;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-cat-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0, 0, 0, 0.55); color: #fff;
    padding: 0.25rem 0.7rem; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}
.product-duration {
    position: absolute; top: 10px; right: 10px;
    background: var(--turquoise); color: #fff;
    padding: 0.25rem 0.7rem; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700;
}
.product-info { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-name {
    font-size: 0.95rem; font-weight: 600; line-height: 1.35;
    color: var(--text-primary); margin-bottom: 0.5rem;
    min-height: 2.6em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.product-price {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700;
    color: var(--coral); margin: 0.3rem 0 0.9rem;
}
.product-add-btn {
    margin-top: auto; padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    color: #fff; border-radius: 10px; font-weight: 600; font-size: 0.88rem;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.product-add-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 201, 167, 0.35); }
.product-add-btn.added {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* ========== LOADING & EMPTY STATES ========== */
.loading-state, .empty-state {
    max-width: 600px; margin: 4rem auto; text-align: center;
    color: var(--text-muted); padding: 2rem;
}
.spinner {
    width: 40px; height: 40px; margin: 0 auto 1rem;
    border: 3px solid var(--border-color); border-top-color: var(--coral);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state i { font-size: 3rem; color: var(--turquoise); margin-bottom: 1rem; opacity: 0.7; }
.empty-state p { font-size: 1.05rem; }

/* ========== CART DRAWER ========== */
.cart-overlay {
    position: fixed; inset: 0; background: var(--overlay-bg);
    z-index: 200; opacity: 0; pointer-events: none;
    transition: opacity 0.3s; backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: min(420px, 100vw); background: var(--drawer-bg);
    z-index: 201; transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border-color);
}
.cart-header h2 { font-size: 1.15rem; }
.cart-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--toggle-bg); display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.cart-close:hover { background: var(--bg-card-hover); transform: rotate(90deg); }
.cart-items {
    flex: 1; overflow-y: auto; padding: 1rem 1.5rem;
}
.cart-empty {
    text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.cart-empty i { font-size: 3rem; margin-bottom: 1rem; color: var(--turquoise); opacity: 0.5; }
.cart-item {
    display: flex; gap: 0.8rem; padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 60px; height: 60px; border-radius: 10px; object-fit: contain;
    flex-shrink: 0; background: var(--bg-secondary);
    padding: 4px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: 0.85rem; font-weight: 600; line-height: 1.3;
    margin-bottom: 0.3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-price { font-size: 0.9rem; color: var(--coral); font-weight: 600; }
.cart-qty-row {
    display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem;
}
.cart-qty-btn {
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--toggle-bg); font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 0.85rem;
}
.cart-qty-btn:hover { background: var(--bg-card-hover); }
.cart-qty { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.88rem; }
.cart-item-remove {
    color: var(--text-muted); font-size: 0.8rem;
    margin-left: auto; padding: 0.2rem 0.4rem;
}
.cart-item-remove:hover { color: #EF4444; }
.cart-footer {
    padding: 1.2rem 1.5rem; border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.05rem; margin-bottom: 1rem;
}
.cart-total {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
    color: var(--coral);
}
.cart-checkout {
    width: 100%; padding: 1rem;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    color: #fff; border-radius: 12px; font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.3s;
}
.cart-checkout:hover:not(:disabled) {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 201, 167, 0.4);
}
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-footer.empty { display: none; }

/* ========== CHECKOUT MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0; background: var(--overlay-bg);
    z-index: 300; opacity: 0; pointer-events: none;
    transition: opacity 0.3s; backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--bg-card); border-radius: 18px; overflow: hidden;
    max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
    transform: scale(0.95) translateY(20px); transition: transform 0.3s;
    border: 1px solid var(--border-color);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { font-size: 1.2rem; }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--toggle-bg); display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.modal-close:hover { background: var(--bg-card-hover); transform: rotate(90deg); }
.modal-body { padding: 1.5rem; }
.checkout-summary { margin-bottom: 1.5rem; }
.checkout-summary h3 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.checkout-item {
    display: flex; justify-content: space-between; padding: 0.5rem 0;
    font-size: 0.9rem; border-bottom: 1px solid var(--border-color);
}
.checkout-item-name { color: var(--text-secondary); padding-right: 1rem; }
.checkout-item-price { font-weight: 600; white-space: nowrap; }
.checkout-total-row {
    display: flex; justify-content: space-between;
    padding: 1rem 0 0.2rem; font-size: 1.1rem;
    border-top: 2px solid var(--coral); margin-top: 0.5rem;
}
.checkout-total-row #checkoutTotal { color: var(--coral); font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; }
.payment-block {
    background: var(--bg-secondary); border-radius: 14px; padding: 1.3rem;
    margin-bottom: 1.3rem; border: 1px solid var(--border-color);
}
.payment-header {
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 600; font-size: 1rem; margin-bottom: 0.8rem;
}
.payment-header i { color: var(--violet); font-size: 1.2rem; }
.nequi-key-box {
    background: var(--bg-card); border-radius: 10px; padding: 0.8rem 1rem;
    margin-bottom: 0.9rem; border: 1px solid var(--border-color);
}
.nequi-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.nequi-key-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.3rem; }
.nequi-key {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
    letter-spacing: 1.5px; color: var(--text-primary);
}
.copy-btn {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--toggle-bg); transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.copy-btn:hover { background: var(--coral); color: #fff; }
.payment-instructions {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}
/* Contact form */
.form-field { margin-bottom: 0.95rem; }
.form-field label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.35rem;
}
.form-field input, .form-field textarea {
    width: 100%;
    background: var(--input-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 0.7rem 0.9rem;
    border-radius: 9px; font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none; border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.12);
}
.form-field textarea { resize: vertical; min-height: 56px; }
.form-field small {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    margin-top: 0.3rem;
}
.form-error {
    background: rgba(239,68,68,0.1); color: #DC2626;
    padding: 0.7rem 0.9rem; border-radius: 8px;
    font-size: 0.86rem; margin-bottom: 0.9rem;
    border: 1px solid rgba(239,68,68,0.25);
}
[data-theme="dark"] .form-error { color: #FCA5A5; }
.contact-submit {
    width: 100%; padding: 0.95rem;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    color: #fff; border-radius: 12px; font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 0.4rem;
}
.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 201, 167, 0.35);
}
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Returning customer badge */
.returning-badge {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.3);
    color: var(--coral);
    padding: 0.6rem 0.85rem; border-radius: 9px;
    margin-bottom: 1rem;
    font-size: 0.85rem; font-weight: 500;
    animation: slideIn 0.3s ease;
}
.returning-badge i { font-size: 1rem; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* History list */
.history-empty {
    text-align: center; padding: 2rem 1rem;
    color: var(--text-muted); font-size: 0.9rem;
}
.history-empty i { font-size: 2.2rem; margin-bottom: 0.6rem; color: var(--turquoise); opacity: 0.5; }
.history-list {
    display: flex; flex-direction: column; gap: 0.7rem;
    max-height: 50vh; overflow-y: auto;
}
.history-order {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px; padding: 0.85rem 1rem;
}
.history-order-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; gap: 0.5rem; flex-wrap: wrap;
}
.history-order-id {
    font-family: 'Space Grotesk', monospace; font-size: 0.78rem;
    color: var(--text-muted);
}
.history-order-date { font-size: 0.78rem; color: var(--text-muted); }
.history-order-status {
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.4px;
}
.status-tag-pending { background: rgba(245,158,11,0.15); color: #F59E0B; }
.status-tag-paid { background: rgba(0,201,167,0.15); color: var(--coral); }
.status-tag-delivered { background: rgba(59,130,246,0.15); color: var(--violet); }
.status-tag-cancelled { background: rgba(239,68,68,0.15); color: #EF4444; }
.history-items {
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.55; margin-bottom: 0.4rem;
}
.history-order-total {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    color: var(--coral); font-size: 1rem;
    text-align: right;
}

.whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem; border-radius: 12px;
    background: #25D366; color: #fff;
    font-weight: 700; font-size: 1rem;
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    background: #128C7E; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}
.whatsapp-btn i { font-size: 1.3rem; }

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem 1.5rem; margin-top: 3rem;
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }
.footer-info p { font-size: 0.88rem; color: var(--text-secondary); margin: 0.3rem 0; }
.footer-info i { color: var(--coral); width: 18px; }
.footer-bottom {
    max-width: 1280px; margin: 2rem auto 0;
    padding-top: 1.2rem; border-top: 1px solid var(--border-color);
    text-align: center; color: var(--text-muted); font-size: 0.82rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; z-index: 95;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ========== TOAST ========== */
.toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg-card); color: var(--text-primary);
    padding: 0.8rem 1.4rem; border-radius: 50px;
    box-shadow: var(--card-shadow-hover); border: 1px solid var(--coral);
    opacity: 0; pointer-events: none; z-index: 400;
    font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-container { gap: 0.5rem; }
    .hero { padding: 6rem 1rem 1.5rem; }
    .categories-section { padding: 0 1rem 1.5rem; }
    .featured-section { padding: 0 1rem 1rem; }
    .toolbar-section { padding: 0 1rem 1rem; }
    .products-section { padding: 0 1rem 2rem; }
    .products-container[data-view="grid"] { gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .featured-scroll { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
    .featured-card { aspect-ratio: 1/1; }
    .featured-name { font-size: 0.85rem; }
    .featured-price { font-size: 1.1rem; }
    .product-info { padding: 0.8rem; }
    .product-name { font-size: 0.85rem; }
    .product-price { font-size: 1.15rem; }
    .navbar { padding: 0.8rem 1rem; }
    .nav-logo span { font-size: 1.2rem; }
    .footer { padding: 2rem 1rem 1rem; }
    .footer-inner { flex-direction: column; gap: 1.2rem; }
    .theme-toggle { right: 12px; width: 38px; height: 38px; font-size: 0.95rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 16px; right: 16px; }
    /* On mobile, list view becomes compact rows */
    .products-container[data-view="list"] .product-image { width: 80px; min-width: 80px; aspect-ratio: 1/1; }
    .products-container[data-view="list"] .product-info { padding: 0.6rem 0.8rem; gap: 0.6rem; flex-wrap: wrap; }
    .products-container[data-view="list"] .product-name { font-size: 0.8rem; }
    .products-container[data-view="list"] .product-price { font-size: 1rem; min-width: 0; }
    .products-container[data-view="list"] .product-add-btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; width: 100%; }
    .toolbar-inner { flex-direction: column; align-items: stretch; }
    .toolbar-right { justify-content: space-between; }
    .pagination { gap: 0.25rem; }
    .page-btn { min-width: 34px; height: 34px; padding: 0 0.5rem; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.92rem; }
    .modal { border-radius: 12px; }
    .modal-body { padding: 1.2rem; }
    .nequi-key { font-size: 1.25rem; }
}
