/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0B5394;
  --primary-dark: #073763;
  --primary-light: #3D85C6;
  --accent: #00A99D;
  --accent-light: #33CCCC;
  --bg: #F8FAFB;
  --bg-white: #FFFFFF;
  --text: #2C3E50;
  --text-light: #6B7B8D;
  --text-muted: #95A5A6;
  --border: #E1E8ED;
  --border-light: #F0F3F5;
  --success: #27AE60;
  --danger: #E74C3C;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { color: var(--primary-dark); line-height: 1.3; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #008F85; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  font-size: 0.8rem; padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }

/* ===== HEADER ===== */
.header {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }
.logo svg { width: 40px; height: 40px; }
.logo span { letter-spacing: -0.5px; }
.logo .logo-sub { font-size: 0.65rem; font-weight: 400; color: var(--text-light); display: block; letter-spacing: 0.5px; text-transform: uppercase; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; font-size: 0.92rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius); transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(11,83,148,0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition); padding: 8px 0; z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.88rem; border-radius: 0; }
.dropdown-menu a:hover { background: var(--bg); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.cart-btn:hover { color: var(--primary); }
.cart-badge {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,169,157,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { flex: 0 0 400px; text-align: center; }
.hero-visual svg { width: 100%; max-width: 360px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat { text-align: left; }
.hero-stat-number { font-size: 2rem; font-weight: 700; color: var(--accent-light); }
.hero-stat-label { font-size: 0.8rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-bar .container { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.88rem; font-weight: 500; }
.trust-item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-alt { background: var(--bg-white); }

/* ===== CATEGORY CARDS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.category-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: all var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--primary); }
.category-card h3 { margin-bottom: 8px; }
.category-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.category-count { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-image {
  height: 220px; background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-image svg { width: 80px; height: 80px; color: var(--primary-light); opacity: 0.5; }
.product-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.product-info { padding: 20px; }
.product-brand { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-info p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); }
.product-actions { display: flex; gap: 8px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.feature-card { text-align: center; padding: 24px; }
.feature-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--primary); background: rgba(11,83,148,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.about-stat { text-align: center; }
.about-stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.about-stat-label { font-size: 0.8rem; color: var(--text-light); }
.about-image {
  background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
  border-radius: var(--radius-lg); height: 400px; display: flex;
  align-items: center; justify-content: center;
}

/* ===== PARTNERS ===== */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 800px; margin: 0 auto; }
.partner-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: all var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-md); }
.partner-card h3 { margin-bottom: 8px; color: var(--primary); }
.partner-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.partner-card .partner-speciality { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 40px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery {
  background: linear-gradient(135deg, #EBF5FB, #D6EAF8); border-radius: var(--radius-lg);
  height: 500px; display: flex; align-items: center; justify-content: center;
}
.product-detail-info h1 { font-size: 2rem; margin-bottom: 8px; }
.product-detail-brand { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }
.product-detail-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.product-detail-desc { color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.product-specs { margin-bottom: 32px; }
.product-specs h4 { margin-bottom: 12px; }
.spec-list { list-style: none; }
.spec-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; font-size: 0.9rem; }
.spec-list li span:first-child { color: var(--text-light); }
.spec-list li span:last-child { font-weight: 500; }
.quantity-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.quantity-selector label { font-weight: 500; font-size: 0.9rem; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; border: none; background: var(--bg); cursor: pointer; font-size: 1.1rem; color: var(--text); }
.qty-btn:hover { background: var(--border); }
.qty-input input { width: 48px; height: 36px; border: none; text-align: center; font-size: 0.95rem; font-weight: 500; }
.add-to-cart-actions { display: flex; gap: 12px; }

/* ===== CART ===== */
.cart-section { padding: 40px 0 80px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--border); font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-img { width: 60px; height: 60px; border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; }
.cart-product-name { font-weight: 600; font-size: 0.95rem; }
.cart-product-brand { font-size: 0.8rem; color: var(--text-muted); }
.cart-remove { color: var(--danger); cursor: pointer; font-size: 0.85rem; }
.cart-remove:hover { text-decoration: underline; }
.cart-summary {
  max-width: 400px; margin-left: auto; margin-top: 32px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.cart-summary-row.total { border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; font-size: 1.15rem; font-weight: 700; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card { padding: 32px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(11,83,148,0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer p { font-size: 0.88rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed; top: 80px; right: 24px; background: var(--bg-white);
  border: 1px solid var(--border); border-left: 4px solid var(--success);
  border-radius: var(--radius); padding: 16px 24px; box-shadow: var(--shadow-lg);
  transform: translateX(120%); transition: transform 0.4s ease; z-index: 2000;
  display: flex; align-items: center; gap: 12px; max-width: 360px;
}
.notification.show { transform: translateX(0); }
.notification svg { color: var(--success); flex-shrink: 0; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; opacity: 0; visibility: hidden; transition: all var(--transition); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; width: 420px; max-width: 90vw; height: 100vh;
  background: var(--bg-white); z-index: 1501; transform: translateX(100%);
  transition: transform 0.35s ease; display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-sidebar-header h3 { font-size: 1.15rem; }
.cart-close { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--text-light); padding: 4px; }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-sidebar-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.cart-sidebar-img { width: 56px; height: 56px; border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-sidebar-details { flex: 1; }
.cart-sidebar-details h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-sidebar-details .item-brand { font-size: 0.75rem; color: var(--text-muted); }
.cart-sidebar-details .item-price { font-weight: 600; color: var(--primary); font-size: 0.9rem; margin-top: 4px; }
.cart-sidebar-qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.cart-sidebar-qty button { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); cursor: pointer; font-size: 0.85rem; }
.cart-sidebar-qty span { font-size: 0.85rem; width: 24px; text-align: center; }
.cart-sidebar-remove { color: var(--danger); font-size: 0.78rem; cursor: pointer; margin-top: 4px; display: inline-block; }
.cart-sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-sidebar-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: none; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 48px 0; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--bg-white);
    border-bottom: 1px solid var(--border); padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 16px;
  }
  .top-bar { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
}
