/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #002a81;
  --primary-dark: #001d5c;
  --primary-light: #1a47a8;
  --accent: #ff6b35;
  --accent-dark: #e55a25;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #f8f9ff;
  --bg-gray: #f3f4f6;
  --border: #e5e7eb;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 20px rgba(0,42,129,0.1);
  --shadow-lg: 0 8px 40px rgba(0,42,129,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,53,0.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,42,129,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-bh { color: var(--primary); }
.logo-homes { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text); transition: all var(--transition); font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #2563eb 100%);
  color: var(--white); padding: 80px 0; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #ffd166; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-image-placeholder {
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  height: 380px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; border: 2px dashed rgba(255,255,255,0.2);
}
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stat span { font-size: 0.8rem; opacity: 0.8; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-tag { display: inline-block; background: var(--bg-light); color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-card-image {
  background: var(--bg-light); height: 220px; display: flex; align-items: center;
  justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent);
  color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase;
}
.product-card-body { padding: 18px; }
.product-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.product-card-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 0.75rem; background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 20px; font-weight: 600; }

/* ===== PRODUCT PAGE ===== */
.product-page { padding: 60px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.product-main-image {
  background: var(--bg-light); border-radius: var(--radius); height: 420px;
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
  margin-bottom: 16px; border: 1px solid var(--border);
}
.product-main-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--text-muted); font-size: 0.9rem; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.product-price-block { background: var(--bg-light); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; }
.product-price-block .price-current { font-size: 2rem; }
.product-desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.product-features { margin-bottom: 28px; }
.product-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.product-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.qty-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-selector label { font-weight: 600; }
.qty-input { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-input button { width: 40px; height: 40px; background: var(--bg-light); border: none; cursor: pointer; font-size: 1.2rem; font-weight: 600; transition: background var(--transition); }
.qty-input button:hover { background: var(--border); }
.qty-input input { width: 60px; height: 40px; border: none; text-align: center; font-size: 1rem; font-weight: 600; outline: none; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* ===== FEATURES STRIP ===== */
.features-strip { background: var(--primary); color: var(--white); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.feature-item strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.feature-item span { font-size: 0.85rem; opacity: 0.8; }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.testimonial-stars { color: #f59e0b; margin-bottom: 12px; }
.testimonial-text { color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-location { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-form-section, .order-summary { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; transition: border-color var(--transition); outline: none; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); color: var(--primary); }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.summary-item:last-child { border-bottom: none; }
.summary-total { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.secure-badge { display: flex; align-items: center; gap: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 12px; margin-top: 16px; font-size: 0.85rem; color: #16a34a; }

/* ===== ORDER SUCCESS / FAILED ===== */
.order-result { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.order-result-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 60px 40px; text-align: center; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); }
.result-icon { font-size: 5rem; margin-bottom: 20px; }
.order-result-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.order-result-card p { color: var(--text-muted); margin-bottom: 8px; }
.order-ref { background: var(--bg-light); border-radius: var(--radius-sm); padding: 12px 20px; margin: 20px 0; font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 16px 0; font-size: 0.875rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== SHOP FILTERS ===== */
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.category-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 2px solid var(--border); background: var(--white); cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.products-count { color: var(--text-muted); font-size: 0.9rem; }

/* ===== ABOUT ===== */
.about-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { font-weight: 700; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 0; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item-icon { width: 48px; height: 48px; background: var(--bg-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-item-text span { color: var(--text-muted); font-size: 0.9rem; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

/* ===== FOOTER ===== */
.site-footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--white); }
.footer-trust { margin-top: 12px; font-size: 0.85rem; color: var(--success); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p { font-size: 0.85rem; text-align: center; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; flex-direction: column; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 999; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0; }
  .section { padding: 50px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 16px 28px; }
  .order-result-card { padding: 40px 24px; }
}

/* ===== ACCOUNT PAGE ===== */
@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr !important; }
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar { background: var(--primary); color: rgba(255,255,255,0.9); padding: 8px 0; overflow: hidden; font-size: 0.8rem; font-weight: 500; }
.announcement-marquee { white-space: nowrap; display: flex; }
.announcement-marquee span { display: inline-block; animation: marquee 30s linear infinite; padding-left: 100%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: #25d366; color: #fff; width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all 0.25s ease;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ===== FAQ ===== */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; padding: 16px 20px; background: var(--white); border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition); }
.faq-q:hover { background: var(--bg-light); }
.faq-q span { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; margin-left: 12px; }
.faq-a { display: none; padding: 0 20px 16px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== HEADER SEARCH ===== */
.header-search { position:relative; }
.header-search input { padding:8px 14px; border:2px solid var(--border); border-radius:20px; font-size:0.85rem; outline:none; width:200px; transition:all .2s; background:var(--bg-light); }
.header-search input:focus { border-color:var(--primary); width:260px; background:var(--white); }
.search-results { position:absolute; top:calc(100% + 8px); right:0; width:320px; background:var(--white); border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-lg); z-index:500; display:none; overflow:hidden; }
.search-results.open { display:block; }
.search-result-item { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); transition:background .2s; }
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--bg-light); }
.search-result-img { width:44px; height:44px; border-radius:6px; background:var(--bg-light); display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; overflow:hidden; }
.search-result-img img { width:100%; height:100%; object-fit:cover; }
.search-result-name { font-weight:600; font-size:0.85rem; margin-bottom:2px; }
.search-result-price { font-size:0.8rem; color:var(--primary); font-weight:700; }
.search-no-results { padding:16px; text-align:center; color:var(--text-muted); font-size:0.875rem; }
@media(max-width:768px) { .header-search { display:none; } }
