/* ============================================
   JM SISTECNOLOGIAS - Premium Medical Website
   V2 - Cart, Carousel, Admin Dashboard
   ============================================ */

:root {
  --primary: #0a2463;
  --primary-light: #1e3a7a;
  --primary-dark: #061539;
  --accent: #1e88e5;
  --accent-light: #42a5f5;
  --gold: #c5a55a;
  --gold-light: #d4b96e;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --gray-50: #f1f3f8;
  --gray-100: #e8ecf4;
  --gray-200: #d1d8e6;
  --gray-300: #b0bbd0;
  --gray-400: #8896b0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-light: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(10,36,99,0.08);
  --shadow-md: 0 4px 20px rgba(10,36,99,0.1);
  --shadow-lg: 0 10px 40px rgba(10,36,99,0.12);
  --shadow-xl: 0 20px 60px rgba(10,36,99,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.92rem; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .badge { display: inline-block; padding: 6px 16px; background: rgba(10,36,99,0.08); color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border-radius: 50px; margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.02rem; }
.gold-line { width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 12px 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 8px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-brand { display: flex; align-items: center; gap: 10px; z-index: 1001; }
.navbar-brand img { height: 42px; width: auto; }
.navbar-brand .brand-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--white); line-height: 1.1; }
.navbar-brand .brand-sub { font-size: 0.62rem; font-weight: 500; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; }
.navbar.scrolled .navbar-brand .brand-text { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 16px; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.85); border-radius: var(--radius-sm); }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active { color: var(--primary); background: var(--gray-50); }

/* Cart icon in nav */
.nav-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin-left: 8px; background: rgba(255,255,255,0.1); border: none; color: var(--white); transition: var(--transition); }
.navbar.scrolled .nav-cart { background: var(--gray-50); color: var(--primary); }
.nav-cart:hover { background: var(--gold); color: var(--white); }
.nav-cart svg { width: 20px; height: 20px; }
.nav-cart-badge { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: var(--danger); color: var(--white); font-size: 0.68rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); transition: var(--transition); }
.nav-cart-badge:empty, .nav-cart-badge[data-count="0"] { display: none; }

.nav-cta { background: var(--gold); color: var(--white) !important; padding: 10px 20px !important; margin-left: 8px; font-weight: 600 !important; border-radius: var(--radius-sm) !important; }
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.navbar.scrolled .nav-cta { background: var(--primary); color: var(--white) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .nav-toggle span { background: var(--primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO + CAROUSEL
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }

.hero-carousel { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,21,57,0.92) 0%, rgba(10,36,99,0.85) 50%, rgba(30,58,122,0.8) 100%); }

.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.hero-dot.active { background: var(--gold); width: 36px; border-radius: 6px; }

.hero .container { position: relative; z-index: 5; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { max-width: 650px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 50px; color: var(--gold-light); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; backdrop-filter: blur(8px); }
.hero-badge .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.hero h1 { color: var(--white); margin-bottom: 20px; font-weight: 800; }
.hero h1 .highlight { color: var(--gold-light); }
.hero-desc { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.8; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero product image */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.hero-product-img { position: absolute; max-width: 90%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); opacity: 0; transition: opacity 0.8s ease; animation: heroFloat 4s ease-in-out infinite; }
.hero-product-img.active { opacity: 1; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-stats { display: flex; gap: 48px; margin-top: 60px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat .number { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat .number span { color: var(--gold); }
.hero-stat .label { color: rgba(255,255,255,0.45); font-size: 0.82rem; margin-top: 4px; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; border: 1px solid var(--gray-100); transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 60px; height: 60px; background: var(--gray-50); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--primary); }
.feature-icon svg { width: 26px; height: 26px; color: var(--primary); transition: var(--transition); }
.feature-card:hover .feature-icon svg { color: var(--white); }
.feature-card h4 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { color: var(--text-light); font-size: 0.88rem; margin: 0; }

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; }
.about-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-image-placeholder { color: rgba(255,255,255,0.15); }
.about-content .badge { display: inline-block; padding: 6px 16px; background: rgba(10,36,99,0.08); color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border-radius: 50px; margin-bottom: 16px; }
.about-content p { color: var(--text-light); font-size: 1rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.about-highlight { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--gray-50); border-radius: var(--radius-sm); }
.about-highlight svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.about-highlight span { font-size: 0.85rem; font-weight: 500; color: var(--gray-700); }

/* ============================================
   CATEGORIES
   ============================================ */
.categories-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.category-card { flex: 0 0 180px; scroll-snap-align: start; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; transition: var(--transition); cursor: pointer; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.category-icon { font-size: 2rem; margin-bottom: 10px; }
.category-card h4 { font-size: 0.88rem; margin-bottom: 4px; }
.category-card .count { font-size: 0.78rem; color: var(--text-light); }

/* ============================================
   CTA
   ============================================ */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(197,165,90,0.1), transparent 50%); }
.cta-content { text-align: center; position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.02rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.88rem; margin-top: 14px; color: rgba(255,255,255,0.45); }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo img { height: 36px; }
.footer-brand .logo span { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--white); }
.footer h4 { color: var(--white); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.88rem; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); transition: var(--transition); }
.social-links a:hover { background: var(--gold); color: var(--white); }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 130px 0 50px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0); background-size: 40px 40px; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.55); font-size: 1rem; }
.breadcrumb { display: flex; gap: 8px; color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ============================================
   SEARCH
   ============================================ */
.search-section { padding: 24px 0; background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: 62px; z-index: 100; }
.search-container { display: flex; align-items: center; gap: 16px; max-width: 700px; margin: 0 auto; }
.search-box { flex: 1; position: relative; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gray-400); pointer-events: none; }
.search-box input { width: 100%; padding: 13px 16px 13px 46px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.92rem; color: var(--text); transition: var(--transition); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,136,229,0.1); }
.search-results-count { font-size: 0.82rem; color: var(--text-light); font-weight: 500; white-space: nowrap; }

/* ============================================
   CATALOG
   ============================================ */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0 80px; }
.catalog-sidebar { position: sticky; top: 130px; align-self: start; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
.sidebar-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-400); margin-bottom: 10px; }
.category-list li { margin-bottom: 2px; }
.category-list button { width: 100%; text-align: left; padding: 9px 12px; background: none; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.84rem; color: var(--gray-600); cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center; }
.category-list button:hover { background: var(--gray-50); color: var(--primary); }
.category-list button.active { background: var(--primary); color: var(--white); font-weight: 600; }
.category-list .cat-count { font-size: 0.72rem; background: rgba(0,0,0,0.06); padding: 2px 7px; border-radius: 50px; font-weight: 600; }
.category-list button.active .cat-count { background: rgba(255,255,255,0.2); }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-image { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--gray-50), var(--gray-100)); display: flex; align-items: center; justify-content: center; position: relative; }
.product-image-placeholder svg { width: 36px; height: 36px; color: var(--gray-300); }
.product-category-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; background: var(--primary); color: var(--white); font-size: 0.65rem; font-weight: 600; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h4 { font-size: 0.88rem; margin-bottom: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 12px; }
.product-meta svg { width: 13px; height: 13px; }
.product-actions { margin-top: auto; display: flex; gap: 6px; }
.product-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 0.78rem; }

/* Add to cart button specific */
.btn-add-cart { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-add-cart:hover { background: var(--accent-light); }
.btn-add-cart.added { background: var(--success); border-color: var(--success); }

/* Quantity selector in card */
.qty-selector { display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.qty-selector button { width: 32px; height: 32px; border: none; background: var(--gray-50); color: var(--primary); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-selector button:hover { background: var(--gray-200); }
.qty-selector input { width: 40px; height: 32px; border: none; text-align: center; font-family: var(--font); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* No Results */
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.no-results svg { width: 60px; height: 60px; color: var(--gray-300); margin-bottom: 16px; }
.no-results h3 { color: var(--gray-500); margin-bottom: 8px; }
.no-results p { color: var(--gray-400); }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(6,21,57,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(4px); }
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: var(--white); z-index: 2001; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.cart-sidebar.open { transform: translateX(0); }

.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.cart-header .cart-count-label { font-size: 0.78rem; background: var(--primary); color: var(--white); padding: 2px 10px; border-radius: 50px; font-weight: 600; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--gray-50); color: var(--gray-600); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-close:hover { background: var(--gray-200); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.cart-empty svg { width: 48px; height: 48px; margin-bottom: 12px; color: var(--gray-300); }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item-icon { width: 48px; height: 48px; background: var(--gray-50); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-icon svg { width: 20px; height: 20px; color: var(--gray-400); }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h4 { font-size: 0.85rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-details .cat-label { font-size: 0.72rem; color: var(--text-light); }
.cart-item-details .pack-label { font-size: 0.72rem; color: var(--accent); font-weight: 500; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-remove { background: none; border: none; color: var(--danger); font-size: 0.75rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: var(--transition); }
.cart-item-remove:hover { background: rgba(239,68,68,0.1); }

/* Cart Footer / Quote Form */
.cart-footer { border-top: 1px solid var(--gray-100); padding: 20px 24px; background: var(--off-white); }
.cart-summary { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; color: var(--primary); }

.quote-form .form-group { margin-bottom: 12px; }
.quote-form label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gray-600); margin-bottom: 4px; }
.quote-form input, .quote-form textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; color: var(--text); transition: var(--transition); }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,136,229,0.1); }
.quote-form textarea { min-height: 60px; resize: vertical; }
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-form .required::after { content: ' *'; color: var(--danger); }

.cart-success { text-align: center; padding: 40px 20px; }
.cart-success svg { width: 56px; height: 56px; color: var(--success); margin-bottom: 12px; }
.cart-success h3 { color: var(--success); margin-bottom: 8px; }
.cart-success p { color: var(--text-light); font-size: 0.88rem; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-full { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-sm); }
.timeline-item h4 { margin-bottom: 4px; font-size: 1rem; }
.timeline-item p { color: var(--text-light); font-size: 0.88rem; margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .icon { width: 52px; height: 52px; background: var(--gray-50); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.value-card .icon svg { width: 22px; height: 22px; color: var(--primary); }
.value-card h4 { margin-bottom: 6px; font-size: 0.95rem; }
.value-card p { color: var(--text-light); font-size: 0.85rem; margin: 0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--gray-50); border-radius: var(--radius-md); transition: var(--transition); }
.contact-info-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.contact-info-card .icon { width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card .icon svg { width: 18px; height: 18px; color: var(--white); }
.contact-info-card h4 { font-size: 0.9rem; margin-bottom: 3px; }
.contact-info-card p { color: var(--text-light); font-size: 0.85rem; margin: 0; }
.contact-info-card a { color: var(--accent); }
.contact-info-card a:hover { color: var(--primary); }

.contact-form { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.88rem; color: var(--text); transition: var(--transition); background: var(--white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,136,229,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================
   ADMIN LOGIN
   ============================================ */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 24px; }
.admin-login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-xl); }
.admin-login-card .logo-area { text-align: center; margin-bottom: 28px; }
.admin-login-card .logo-area img { height: 48px; margin: 0 auto 12px; }
.admin-login-card .logo-area h2 { font-size: 1.3rem; margin-bottom: 4px; }
.admin-login-card .logo-area p { color: var(--text-light); font-size: 0.88rem; margin: 0; }
.admin-error { background: rgba(239,68,68,0.08); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; display: none; }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--primary-dark); color: var(--white); padding: 20px 0; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.admin-sidebar .logo img { height: 32px; }
.admin-sidebar .logo span { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; }
.admin-sidebar nav { flex: 1; padding: 16px 12px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 2px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-sidebar nav a svg { width: 18px; height: 18px; }
.admin-sidebar .logout { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: auto; }
.admin-sidebar .logout a { color: rgba(255,255,255,0.5); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.admin-sidebar .logout a:hover { color: var(--danger); }

.admin-main { flex: 1; background: var(--off-white); }
.admin-topbar { background: var(--white); padding: 16px 28px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.3rem; }
.admin-content { padding: 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--gray-100); }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-light); font-weight: 500; margin-bottom: 6px; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--success); margin-top: 4px; }

.admin-table { width: 100%; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-100); overflow: hidden; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.admin-table td { padding: 14px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--gray-100); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.new { background: rgba(30,136,229,0.1); color: var(--accent); }
.status-badge.read { background: rgba(16,185,129,0.1); color: var(--success); }

/* ============================================
   WHATSAPP + BACK TO TOP
   ============================================ */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.whatsapp-float a { display: flex; align-items: center; gap: 8px; background: #25d366; color: var(--white); padding: 12px 22px; border-radius: 50px; font-weight: 600; font-size: 0.88rem; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: var(--transition); }
.whatsapp-float a:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
.whatsapp-float svg { width: 20px; height: 20px; }

.back-to-top { position: fixed; bottom: 24px; right: 96px; width: 40px; height: 40px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-md); z-index: 998; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview, .about-full { grid-template-columns: 1fr; gap: 40px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; max-height: none; }
  .category-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .category-list li { margin: 0; }
  .category-list button { padding: 7px 12px; font-size: 0.8rem; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .nav-links { position: fixed; inset: 0; background: var(--primary-dark); flex-direction: column; justify-content: center; gap: 6px; padding: 40px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 1000; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; color: rgba(255,255,255,0.8); padding: 12px 20px; }
  .nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
  .navbar.scrolled .nav-links a { color: rgba(255,255,255,0.8); }
  .navbar.scrolled .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .number { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-info { padding: 12px; }
  .product-info h4 { font-size: 0.82rem; }
  .product-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
  .whatsapp-float a span { display: none; }
  .whatsapp-float a { padding: 14px; border-radius: 50%; }
  .back-to-top { right: 76px; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 110px 0 50px; }
  .page-header { padding: 110px 0 36px; }
  .contact-form { padding: 24px; }
}

@media print {
  .navbar, .whatsapp-float, .back-to-top, .cart-sidebar, .cart-overlay { display: none !important; }
}
