/* Zaluzijas — BestShop / Ochaka inspired electronics theme */
:root {
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --red: #ff3b5c;
  --red-dark: #e12d4c;
  --green: #22c55e;
  --orange: #ff9500;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --footer-bg: #f3f4f8;
  --top: #2b2d6b;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --radius: 10px;
  --container: 1240px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.top-bar {
  background: var(--top);
  color: #e8e9ff;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.top-bar-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.top-bar-links a {
  color: #fff;
  opacity: 0.9;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.header-search {
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.header-search select,
.header-search input {
  border: 0;
  padding: 0.75rem 0.85rem;
  font: inherit;
  outline: none;
}

.header-search select {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.header-search button {
  background: var(--blue);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  min-width: 74px;
}

.action-ico {
  font-size: 22px;
}

.action-label {
  font-size: 12px;
  color: var(--muted);
}

.cart-total {
  display: block;
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}

.nav-bar {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.btn-categories {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.main-menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  position: relative;
}

.main-menu a.active {
  color: var(--blue);
}

.tag {
  position: absolute;
  top: -14px;
  right: -18px;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
}

.tag.hot {
  background: var(--red);
}

.tag.new {
  background: var(--green);
}

.btn-daily-deal {
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-cart {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cart:hover {
  background: var(--red-dark);
}

/* Hero */
.hero-section {
  padding: 1.25rem 0 0;
  background: var(--bg-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  min-height: 420px;
}

.cat-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cat-sidebar h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.cat-list a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid #f1f1f5;
}

.cat-list a:hover {
  background: #f5f8ff;
  color: var(--blue);
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide-overlay {
  background: linear-gradient(90deg, rgba(10, 15, 40, 0.72), transparent 58%);
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 2rem 2.5rem;
  color: #fff;
}

.slide-overlay .eyebrow {
  color: #a5c7ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.slide-overlay h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 14ch;
}

.slide-overlay p {
  max-width: 46ch;
  opacity: 0.92;
}

.slide-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd166;
  margin: 0.5rem 0 1rem;
}

.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.feature-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--blue);
  font-size: 20px;
}

/* Promo banners */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 180px;
  background: #eef4ff;
  border: 1px solid var(--line);
}

.promo-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.promo-banner .copy {
  padding: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.45rem;
}

.flash-sale {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.flash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.flash-center {
  background: #111827;
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.flash-center h3 {
  margin: 0 0 0.35rem;
  color: #fbbf24;
  font-size: 1.25rem;
}

/* Deal of day + tabs */
.deal-tabs-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.deal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.deal-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.deal-card .content {
  padding: 1rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.countdown span {
  background: var(--bg-soft);
  border-radius: 8px;
  text-align: center;
  padding: 0.35rem;
  font-size: 11px;
}

.countdown b {
  display: block;
  font-size: 18px;
  color: var(--red);
}

.progress-wrap {
  margin-top: 0.75rem;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  width: 68%;
}

.product-tabs .tab-heads {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
}

.badge.sale {
  background: var(--red);
}

.badge.new {
  background: var(--green);
}

.badge.hot {
  background: var(--orange);
}

.product-body {
  padding: 0.85rem;
}

.product-body .cat {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-title {
  margin: 0.25rem 0;
  font-size: 14px;
  line-height: 1.35;
}

.product-title a {
  color: var(--ink);
}

.product-price strong {
  color: var(--red);
  font-size: 1.05rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.stock {
  margin: 0.15rem 0 0.6rem;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

/* Mid banner */
.mid-banner {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.mid-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mid-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.55), transparent);
  display: flex;
  align-items: center;
  padding: 2rem;
  color: #fff;
}

/* Columns + blog */
.triple-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mini-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.mini-list h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.45rem;
  font-size: 1rem;
}

.mini-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}

.mini-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.blog-card .body {
  padding: 0.85rem;
}

.date-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(135deg, #eef4ff, #fff);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.35rem;
}

.page-main {
  padding: 2rem 0 3rem;
}

.prose {
  max-width: 78ch;
}

.prose h2 {
  margin-top: 2rem;
}

.content-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* Forms */
form .field,
form label.field {
  display: block;
  margin-bottom: 1rem;
}

form .field span,
form label.field > span:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input.invalid,
textarea.invalid {
  border-color: var(--red);
}

.checkbox-field {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  flex: 0 0 18px;
  accent-color: var(--blue);
}

.checkbox-field span {
  line-height: 1.45;
  font-weight: 400;
}

.field-error {
  color: var(--red);
  font-size: 12px;
  margin: 0.35rem 0 0;
}

.form-success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Footer */
.footer-main {
  background: var(--footer-bg);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink);
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

.social-list a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  background: var(--blue-dark);
  color: #dbeafe;
  padding: 0.75rem 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: #fff;
}

.pay-icons {
  display: flex;
  gap: 0.5rem;
}

.pay-icons span {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open .cart-drawer-panel {
  transform: translateX(0);
}

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

.cart-close {
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.cart-line h3 {
  margin: 0;
  font-size: 14px;
}

.remove-line {
  border: 0;
  background: #fee2e2;
  color: var(--red);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
}

.checkout-success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
}

.cart-open {
  overflow: hidden;
}

/* Legal long content */
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.legal-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.legal-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink);
  font-size: 14px;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  opacity: 0.55;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 2rem 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .header-row {
    grid-template-columns: 1fr;
  }
  .hero-grid,
  .deal-tabs-wrap {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-search {
    grid-template-columns: 1fr;
  }
  .header-search select {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-row {
    flex-wrap: wrap;
  }
  .main-menu {
    width: 100%;
  }
  .features-strip,
  .promo-row,
  .flash-sale,
  .triple-cols,
  .content-grid.two {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid,
  .legal-wrap {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    grid-template-columns: 1fr;
  }
}