/* =============================================================
   JAKCO AUTO SUPPLY & SERVICES - Hoja de Estilos Principal
   Paleta corporativa extraída del logo:
     Primary:      #003d64 (azul marino profundo)
     Primary Dark: #002a47
     Primary Light:#2e6182
     Accent:       #00a8e8 (azul vibrante para CTAs)
     Secondary:    #114f72
     Dark:         #0a1628
     Text:         #1e293b
     Text Light:   #64748b
   ============================================================= */

/* --- CSS Variables (Light Theme) --- */
:root,
[data-theme="light"] {
    --primary: #003d64;
    --primary-dark: #002a47;
    --primary-light: #2e6182;
    --primary-rgb: 0, 61, 100;
    --accent: #00a8e8;
    --accent-dark: #008bc0;
    --secondary: #114f72;
    --bg: #ffffff;
    --bg-alt: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 61, 100, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 61, 100, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Rajdhani', 'Inter', sans-serif;
    --whatsapp: #25D366;
    --success: #10b981;
    --error: #ef4444;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), padding var(--transition);
    /* Subtle gradient accent on the very top edge */
    box-shadow: inset 0 3px 0 0 var(--accent);
}

.main-header.scrolled {
    box-shadow: inset 0 3px 0 0 var(--accent), 0 6px 28px rgba(0, 61, 100, 0.1);
    border-bottom-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(15, 23, 42, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.logo-link:hover { transform: scale(1.04); }
.logo-img {
    height: 72px;
    width: auto;
    transition: height var(--transition);
    object-fit: contain;
}
.main-header.scrolled .logo-img { height: 60px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-social {
    display: flex;
    gap: 12px;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--primary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    background: var(--bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active { opacity: 1; visibility: visible; }

/* --- Hero Section --- */
.hero {
    margin-top: 90px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: #fff;
    padding: 130px 20px 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Decorative gradient orbs - more dramatic */
.hero::after {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.4) 0%, rgba(0, 168, 232, 0) 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-orb 8s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 6px 32px rgba(0, 0, 0, 0.2);
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 5px;
    margin: 20px auto 0;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 42px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 10px 28px rgba(0, 168, 232, 0.5);
    letter-spacing: 0.3px;
}

.hero .btn-hero:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.hero .btn-hero i {
    transition: transform var(--transition);
}

.hero .btn-hero:hover i {
    transform: translateX(5px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s ease 0.1s both;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-badge i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* --- Sections --- */
.section { padding: 90px 20px; }
.section-alt { background: var(--bg-alt); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
    display: block;
    text-transform: uppercase;
}

/* Gradient underline below section title */
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 5px;
    margin: 16px auto 0;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.08rem;
    margin-bottom: 52px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.product-card-img {
    position: relative;
    height: 240px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-img .no-img {
    color: var(--text-muted);
    font-size: 3rem;
}

/* Featured badge (top-left) */
.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-card-badge i {
    font-size: 0.7rem;
}

/* Hover overlay with quick-view button */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 61, 100, 0) 50%, rgba(0, 61, 100, 0.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(12px);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.product-card:hover .product-card-overlay-btn {
    transform: translateY(0);
}

.product-card-overlay-btn:hover {
    background: var(--accent);
    color: #fff;
}

.product-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card-category::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-name a {
    color: inherit;
    transition: color var(--transition);
}

.product-card-name a:hover {
    color: var(--primary);
}

.product-card-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* --- Product actions container (WhatsApp + PayPal side by side) --- */
.product-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* --- PayPal button (small, for product cards) --- */
.btn-paypal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: #0070ba;          /* PayPal official blue */
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 112, 186, 0.25);
    letter-spacing: 0.3px;
}

.btn-paypal:hover {
    background: #005ea6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 112, 186, 0.45);
}

/* --- Categories carousel: single horizontal row, swipeable, modern cards --- */
.cat-carousel {
    position: relative;
    margin: 0 -8px;
    padding: 8px 8px 4px;
}

.cat-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;             /* Firefox */
    -ms-overflow-style: none;           /* IE/Edge */
    padding: 12px 4px 24px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}

.cat-track::-webkit-scrollbar {
    display: none;                      /* Chrome/Safari */
}

/* The modern card */
.cat-card {
    flex: 0 0 auto;
    width: 200px;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px 22px 22px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 18px rgba(0, 61, 100, 0.08);
    border: 2px solid transparent;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Gradient glow that fades in on hover */
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0) 0%, rgba(var(--primary-rgb), 0.06) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

/* Accent bar at the top of the card */
.cat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 0 0 4px 4px;
    transition: width var(--transition);
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.cat-card:hover::before { opacity: 1; }
.cat-card:hover::after  { width: 60%; }

/* Icon badge */
.cat-card-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.3);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    position: relative;
}

.cat-card:hover .cat-card-icon-wrap {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 168, 232, 0.45);
}

.cat-card-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: 0.2px;
    transition: color var(--transition);
}

.cat-card:hover .cat-card-name {
    color: var(--primary);
}

/* Small arrow that appears on hover */
.cat-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(4px);
}

.cat-card:hover .cat-card-arrow {
    opacity: 1;
    transform: translateY(0);
    background: var(--accent);
    color: #fff;
}

/* Navigation arrows */
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(0, 61, 100, 0.15);
    transition: all var(--transition);
    opacity: 0.95;
}

.cat-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.cat-arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cat-arrow-prev { left: -18px; }
.cat-arrow-next { right: -18px; }

/* On mobile: hide arrows, swipe with finger */
@media (max-width: 768px) {
    .cat-arrow { display: none; }
    .cat-card { width: 165px; padding: 22px 16px 18px; }
    .cat-card-icon-wrap { width: 58px; height: 58px; font-size: 1.35rem; border-radius: 16px; }
    .cat-card-name { font-size: 0.95rem; }
    .cat-card-arrow { display: none; }
    .cat-track { gap: 14px; }
}

/* --- Legacy Categories Grid (kept for backward compatibility) --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* --- Products Page --- */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-top: 90px;
    min-height: 60vh;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-alt);
}

.category-list { list-style: none; }
.category-list li { margin-bottom: 4px; }

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.category-list a:hover, .category-list a.active {
    background: var(--primary);
    color: #fff;
}

.category-list a .count {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.category-list a:hover .count, .category-list a.active .count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.search-bar button {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.search-bar button:hover { background: var(--primary-dark); }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination .dots {
    background: none;
    border: none;
    color: var(--text-muted);
}

/* --- Product Detail --- */
.product-detail {
    margin-top: 90px;
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.product-detail-img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-detail-img img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-detail-img .no-img {
    font-size: 5rem;
    color: var(--text-muted);
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-detail-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.product-detail-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-alt);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.product-detail-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-detail-specs {
    margin-bottom: 32px;
}

.product-detail-specs h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.specs-list li:last-child { border-bottom: none; }

.specs-list .label { color: var(--text-light); }
.specs-list .value { font-weight: 600; color: var(--text); }

.btn-whatsapp-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-lg:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-lg i {
    transition: transform var(--transition);
}

.btn-whatsapp-lg:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Product detail: order options block (WhatsApp + PayPal large) --- */
.product-detail-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-actions-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-actions-label i {
    color: var(--accent);
    font-size: 0.9rem;
}

.product-detail-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Large PayPal button (for product detail page) */
.btn-paypal-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #0070ba;
    color: #fff;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 700;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 112, 186, 0.32);
    letter-spacing: 0.3px;
}

.btn-paypal-lg:hover {
    background: #005ea6;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 112, 186, 0.45);
}

.btn-paypal-lg i {
    transition: transform var(--transition);
}

.btn-paypal-lg:hover i {
    transform: scale(1.15);
}

/* --- PayPal Smart Buttons container (product detail page) --- */
.paypal-smart-section {
    margin-top: 22px;
    width: 100%;
}

.paypal-smart-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.paypal-smart-divider::before,
.paypal-smart-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.paypal-smart-divider::before { margin-right: 14px; }
.paypal-smart-divider::after  { margin-left: 14px; }

.paypal-button-container {
    width: 100%;
    min-height: 50px;
    max-width: 500px;
    margin: 0 auto;
}

.paypal-error-message {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #f1aeb5;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.paypal-error-message::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-top: 1px;
}

.paypal-success-message {
    margin-top: 14px;
    padding: 16px 18px;
    background: #f0fbf3;
    color: #1d6b3a;
    border: 1px solid #b6e2c2;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}
.paypal-success-message i {
    color: #1d6b3a;
    font-size: 1.2rem;
    margin-top: 2px;
}

.paypal-not-available {
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.paypal-not-available i {
    color: var(--accent);
    margin-top: 3px;
}

/* --- Contact Page --- */
.contact-section {
    margin-top: 90px;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-info-item a {
    color: var(--accent);
    font-weight: 500;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 60px 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer logo: same look as the header logo (no white box, no filter) */
.footer-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 18px;
    transition: transform var(--transition);
}

.footer-col:hover .footer-logo {
    transform: scale(1.04);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact { list-style: none; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i { color: var(--accent); margin-top: 3px; }

.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: var(--accent); }

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9rem;
}

.subscribe-form input::placeholder { color: rgba(255,255,255,0.5); }

.subscribe-form button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.subscribe-form button:hover { background: var(--accent-dark); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* --- Alerts --- */
.alert {
    margin-top: 90px;
    padding: 16px 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-success { background: #ecfdf5; color: #065f46; border-bottom: 2px solid var(--success); }
.alert-error { background: #fef2f2; color: #991b1b; border-bottom: 2px solid var(--error); }

[data-theme="dark"] .alert-success { background: #064e3b; color: #a7f3d0; }
[data-theme="dark"] .alert-error { background: #7f1d1d; color: #fca5a5; }

.alert p { font-size: 0.95rem; }
.alert p i { margin-right: 8px; }

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.alert-close:hover { opacity: 1; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page Header (inner pages) --- */
.page-header {
    margin-top: 90px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.page-header p {
    opacity: 0.85;
    margin-top: 8px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.breadcrumb a { color: #fff; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i { font-size: 3rem; margin-bottom: 16px; color: var(--text-muted); }
.no-results h3 { margin-bottom: 8px; color: var(--text); }

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   ADMIN STYLES
   ========================================= */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-login-card .logo-img {
    height: 60px;
    margin: 0 auto 24px;
    display: block;
}

.admin-login-card h2 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 28px;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar .logo-img {
    height: 56px;
    margin: 0 auto 8px;
    display: block;
    object-fit: contain;
}

.admin-sidebar .sidebar-title {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    padding: 0 16px;
}

.admin-nav { list-style: none; }

.admin-nav li {
    margin-bottom: 2px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav a.active {
    border-left: 3px solid var(--accent);
}

.admin-nav i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-alt);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--bg-card);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.admin-content {
    padding: 32px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dash-card-icon.blue { background: #dbeafe; color: #2563eb; }
.dash-card-icon.green { background: #dcfce7; color: #16a34a; }
.dash-card-icon.orange { background: #ffedd5; color: #ea580c; }

[data-theme="dark"] .dash-card-icon.blue { background: #1e3a5f; }
[data-theme="dark"] .dash-card-icon.green { background: #14532d; }
[data-theme="dark"] .dash-card-icon.orange { background: #431407; }

.dash-card-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.dash-card-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.admin-table-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-add:hover { background: var(--accent-dark); transform: translateY(-1px); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--bg-alt);
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--bg-alt); }

.admin-table .product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.admin-table .product-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active { background: #dcfce7; color: #16a34a; }
.status-inactive { background: #fef2f2; color: #ef4444; }

[data-theme="dark"] .status-active { background: #14532d; }
[data-theme="dark"] .status-inactive { background: #7f1d1d; }

.actions-cell {
    display: flex;
    gap: 6px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.btn-edit { background: #dbeafe; color: #2563eb; }
.btn-edit:hover { background: #2563eb; color: #fff; }
.btn-delete { background: #fef2f2; color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: #fff; }

[data-theme="dark"] .btn-edit { background: #1e3a5f; }
[data-theme="dark"] .btn-delete { background: #7f1d1d; }

/* Admin Form */
.admin-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 700px;
}

.admin-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 8px;
    background: var(--bg-alt);
}

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

.image-preview .placeholder {
    color: var(--text-muted);
    font-size: 2rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Logout */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-logout:hover { background: #ef4444; color: #fff; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    .products-sidebar {
        position: static;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition);
        z-index: 999;
    }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-link { padding: 12px 16px; }
    .nav-link::after { display: none; }
    .nav-social { justify-content: center; margin-top: 20px; }
    .hamburger { display: flex; }

    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 1.8rem; }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    /* Admin responsive */
    .admin-sidebar {
        left: -260px;
        transition: left var(--transition);
    }
    .admin-sidebar.open { left: 0; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 20px; }

    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 10px 14px; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card { padding: 20px 12px; }
    .product-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-bar { flex-direction: column; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Selection --- */
::selection { background: rgba(0, 168, 232, 0.2); color: var(--primary); }

/* --- No-product placeholder image --- */
.no-product-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 3rem;
    gap: 8px;
}

.no-product-img span {
    font-size: 0.9rem;
}

/* =============================================================
   Language Switcher (Frontend + Admin)
   ============================================================= */

/* --- Frontend Header Language Switcher (with REAL flag images) --- */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: var(--transition);
    line-height: 1;
}

.lang-switcher-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-1px);
}

/* The flag in the button - rounded rectangle */
.lang-switcher-btn .flag-icon {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    display: inline-block;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.lang-switcher-btn:hover .flag-icon {
    transform: scale(1.1) rotate(-3deg);
}

.lang-switcher-btn .lang-current-code {
    letter-spacing: 0.5px;
    color: var(--primary);
}

.lang-switcher-btn .lang-arrow {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: transform var(--transition);
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 61, 100, 0.18);
    padding: 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Each option card with flag, native name, language name */
.lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.lang-option:hover {
    background: var(--bg-alt);
    color: var(--primary);
    transform: translateX(2px);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.04));
    color: var(--primary);
}

/* The flag image in the dropdown - bigger */
.lang-option .flag-icon {
    width: 36px;
    height: 26px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    background-size: cover;
    background-position: center;
    display: inline-block;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.lang-option:hover .flag-icon {
    transform: scale(1.12) rotate(-4deg);
}

.lang-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
    flex: 1;
}

.lang-option-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lang-option-native {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.lang-option.active .lang-option-native {
    color: var(--primary);
}

.lang-check {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Admin Sidebar Language Switcher --- */
.admin-sidebar-lang {
    margin-top: 24px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.admin-sidebar-lang .lang-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-sidebar-lang .lang-buttons {
    display: flex;
    gap: 8px;
}

.admin-sidebar-lang .lang-buttons a {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
}

.admin-sidebar-lang .lang-buttons a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.admin-sidebar-lang .lang-buttons a.active {
    background: var(--primary);
    color: #fff;
}

/* --- Admin Login Language Switcher (with real flag icons) --- */
.admin-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.85rem;
}

.admin-lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    font-weight: 600;
    transition: var(--transition);
}

.admin-lang-switcher a .flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.admin-lang-switcher a:hover {
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.admin-lang-switcher a.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* --- Mobile tweaks --- */
@media (max-width: 768px) {
    .lang-switcher-btn .lang-current-code {
        display: none;
    }
    .lang-switcher-btn {
        padding: 6px 10px 6px 6px;
    }
    .lang-dropdown {
        right: -10px;
        min-width: 200px;
    }
}

/* --- Dark theme tweaks --- */
[data-theme="dark"] .lang-switcher-btn,
[data-theme="dark"] .lang-dropdown {
    background: var(--bg-card);
}

/* =============================================================
   CTA Banner (homepage call-to-action)
   ============================================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    color: #fff;
    box-shadow: 0 18px 50px rgba(var(--primary-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.3) 0%, rgba(0, 168, 232, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.cta-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 540px;
}

.cta-banner .btn-whatsapp-lg {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .cta-banner-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}

/* =============================================================
   Refinements: Back-to-top, pagination, footer
   ============================================================= */

/* Back to top - more elegant */
.back-to-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

/* Pagination - rounded pills */
.pagination a, .pagination span {
    border-radius: 10px;
}

.pagination a:hover {
    transform: translateY(-2px);
}

/* Footer social hover - more refined */
.footer-social a {
    border: 1px solid transparent;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.35);
}

/* Nav link hover - smoother */
.nav-link::after {
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    height: 3px;
}

/* Search input focus - more refined */
.search-bar input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

/* Page header - gradient orb accent */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.2) 0%, rgba(0, 168, 232, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Section alt - subtle pattern */
.section-alt {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.025) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--primary-rgb), 0.025) 0%, transparent 50%);
}

[data-theme="dark"] .section-alt {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 168, 232, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 232, 0.04) 0%, transparent 50%);
}

/* =============================================================
   Admin: Language tabs for bilingual product/category forms
   ============================================================= */
.lang-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    padding: 6px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lang-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-tab .flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-tab:hover {
    color: var(--primary);
    background: var(--bg-card);
}

.lang-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

/* Panels: only the active one is shown */
.lang-panel {
    display: none;
    animation: langPanelIn 0.25s ease;
}

.lang-panel.active {
    display: block;
}

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

/* Mini flag icon used inline in field labels */
.lang-flag-mini {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* =============================================================
   Hero: when a custom background image is set
   =============================================================
   Cuando el admin sube una imagen, la sección .hero recibe la clase
   .hero-has-image. El overlay oscurece la imagen para que el texto
   blanco del hero se siga leyendo bien, sin importar qué imagen sea.
*/
.hero.hero-has-image {
    /* Reemplaza el gradiente por la imagen (vía style attr en HTML) */
    background-color: var(--primary-dark);
}

.hero.hero-has-image::before {
    /* Sobrescribimos el pattern SVG por un overlay oscuro semi-transparente
       para que la imagen de fondo se vea pero el texto blanco se lea bien. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 42, 71, 0.78) 0%,
        rgba(0, 61, 100, 0.65) 50%,
        rgba(17, 79, 114, 0.78) 100%
    );
    /* Elimina el pattern SVG que el .hero base aplica en ::before */
    background-image: none;
}

/* =============================================================
   Admin: hero uploader box
   ============================================================= */
.hero-uploader-box {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 8px;
}

.hero-preview-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 5;
    min-height: 140px;
}

.hero-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.hero-preview-empty i {
    font-size: 2.2rem;
    color: var(--text-muted);
}

/* =============================================================
   Admin: PayPal config box
   ============================================================= */
.paypal-config-box {
    background: linear-gradient(135deg, rgba(0, 112, 186, 0.05), rgba(0, 48, 135, 0.03));
    border: 1px solid rgba(0, 112, 186, 0.25);
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 26px;
}

.paypal-config-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.paypal-config-status.status-ok {
    background: #f0fbf3;
    color: #1d6b3a;
    border: 1px solid #b6e2c2;
}
.paypal-config-status.status-ok i { color: #1d6b3a; }

.paypal-config-status.status-pending {
    background: #fff8e6;
    color: #8a6d00;
    border: 1px solid #ffe08a;
}
.paypal-config-status.status-pending i { color: #b38600; }

