/* IT Cares Shop — Brand-consistent stylesheet */
/* Brand palette: #1a3c6e (navy), #e8401c (accent orange-red), #f5f5f5 (light bg), #fff, #222 text */

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

:root {
  --navy: #1a3c6e;
  --accent: #e8401c;
  --light: #f5f7fa;
  --border: #dde1e7;
  --text: #222;
  --muted: #666;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  background: var(--navy);
  color: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
header .logo { font-size: 1.4rem; font-weight: 700; color: #fff; text-decoration: none; }
header .logo span { color: var(--accent); }
nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  margin-left: 24px;
  font-size: .95rem;
  transition: color .2s;
}
nav a:hover { color: #fff; }
.cart-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  margin-left: 20px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto 24px; }
.hero .cta {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: transform .15s, box-shadow .15s;
}
.hero .cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,64,28,.4); }

/* ── TRUST BAR ── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.trust-bar span::before { margin-right: 6px; }

/* ── MAIN LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── CATEGORY GRID ── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--navy);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-card .icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cat-card h3 { font-size: 1rem; font-weight: 600; }
.cat-card p { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-card .img-wrap {
  background: var(--light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-card .img-wrap img { max-height: 160px; max-width: 100%; object-fit: contain; }
.product-card .card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .brand { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.product-card h3 { font-size: .95rem; margin: 4px 0 8px; line-height: 1.4; }
.product-card .specs { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.product-card .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.product-card .price-original { font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.badge.green { background: #1a7a4a; }
.add-to-cart {
  margin-top: auto;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  width: 100%;
  transition: background .2s;
}
.add-to-cart:hover { background: var(--accent); }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
@media(max-width:768px) { .product-detail { grid-template-columns: 1fr; } }
.product-images { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.product-images img { width: 100%; max-height: 400px; object-fit: contain; }
.product-info h1 { font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.product-info .price-block { margin: 16px 0; }
.product-info .price-main { font-size: 2rem; font-weight: 700; color: var(--accent); }
.product-info .price-was { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.product-info .savings { color: #1a7a4a; font-weight: 600; font-size: .9rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.spec-table tr:nth-child(even) { background: var(--light); }
.spec-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { font-weight: 600; width: 40%; color: var(--navy); }
.add-to-cart-large {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: background .2s;
}
.add-to-cart-large:hover { background: #c8341a; }
.stock-ok { color: #1a7a4a; font-weight: 600; }
.stock-low { color: #d4600a; font-weight: 600; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── CONTENT SECTIONS ── */
.content-section { background: #fff; border-radius: var(--radius); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); }
.content-section h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--light); }
.content-section h3 { font-size: 1.05rem; color: var(--navy); margin: 20px 0 8px; }
.content-section ul { padding-left: 20px; }
.content-section ul li { margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item strong { color: var(--navy); }

/* ── SIDEBAR FILTERS ── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; }
@media(max-width:768px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.filters h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: .85rem; margin-bottom: 6px; cursor: pointer; }
.filter-group input[type="checkbox"] { margin-right: 8px; }
.price-range { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.price-range input { width: 80px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; }

/* ── RELATED PRODUCTS ── */
.related { margin: 40px 0; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 40px 24px 20px;
  margin-top: 60px;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
footer h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; display: block; margin-bottom: 6px; font-size: .85rem; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; text-align: center; font-size: .82rem; max-width: 1200px; margin: 0 auto; }

/* ── CART PANEL ── */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; }
.cart-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px;
  background: #fff; z-index: 201; padding: 24px;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .3s;
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-overlay.open { display: block; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-info { flex: 1; font-size: .88rem; }
.cart-item-price { font-weight: 700; color: var(--accent); }
.cart-total { font-size: 1.2rem; font-weight: 700; padding: 16px 0; border-top: 2px solid var(--border); }
.checkout-btn { background: var(--accent); color: #fff; border: none; padding: 14px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%; }
.close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }

@media(max-width:600px) {
  .hero h1 { font-size: 1.5rem; }
  .cart-panel { width: 100%; }
  header .logo { font-size: 1.1rem; }
}
