:root {
  --primary: #0f2744;
  --primary-hover: #16365c;
  --accent: #e65100;
  --accent-hover: #bf4300;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

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

.cart-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
}

.cart-btn:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.cart-count {
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a5f 100%);
  color: var(--white);
  padding: 70px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(230, 81, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(230, 81, 0, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--white);
}

.hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

/* Features Ribbon */
.features-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: #fff7ed;
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Products Section */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  margin-top: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  height: 220px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

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

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.product-card .btn-primary {
  width: 100%;
}

/* Customization Services */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.custom-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.custom-box h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.custom-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Quote Section */
.quote-banner {
  background: #0f2744;
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

.quote-form input::placeholder, .quote-form textarea::placeholder {
  color: #94a3b8;
}

.quote-form select option {
  background: #0f2744;
  color: #fff;
}

/* Cart Drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  height: 100%;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.cart-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-size: 1.25rem;
  color: var(--primary);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  line-height: 1;
}

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-line {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.cart-line-img {
  width: 70px;
  height: 70px;
  background: #f1f5f9;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
}

.cart-line-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.cart-line-price {
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  border: 1px solid var(--border);
  background: #f8fafc;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-weight: 700;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  text-decoration: underline;
  margin-left: auto;
}

.cart-foot {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.cart-foot .btn-primary {
  width: 100%;
}

/* Product Detail Page */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
}

.detail-gallery {
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.detail-gallery img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.swatch-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s, border-color 0.15s;
}

.swatch-btn.selected {
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--accent);
}

.chip-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.chip-btn.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chip-btn:disabled, .swatch-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-top: 8px;
}

.qty-control button {
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
}

.qty-control span {
  padding: 0 12px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #091422;
  color: #94a3b8;
  padding: 50px 0 24px;
  margin-top: 70px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

@media (max-width: 768px) {
  .hero-grid, .product-detail-grid, .quote-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}