/* טמבוריית שפירא — modern paint-shop storefront */

@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Rubik:wght@500;700;800&display=swap");

:root {
  --ink: #1e2a36;
  --ink-soft: #3d4f61;
  --muted: #6b7c8d;
  --paper: #f3f7fb;
  --paper-2: #e8f0f7;
  --surface: #ffffff;
  --navy: #243447;
  --navy-deep: #17202b;
  --sky: #5eb3e4;
  --sky-deep: #2f8ec4;
  --mint: #3ecf9a;
  --sun: #ffc857;
  --coral: #ff6b4a;
  --line: rgba(30, 42, 54, 0.08);
  --shadow: 0 12px 40px rgba(23, 32, 43, 0.08);
  --radius: 1.15rem;
  --font: "Heebo", "Segoe UI", Tahoma, sans-serif;
  --display: "Rubik", "Heebo", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(94, 179, 228, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 20%, rgba(62, 207, 154, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, var(--paper) 40%, #edf3f8 100%);
  min-height: 100vh;
}

a {
  color: var(--sky-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--navy); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line) !important;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.25s ease;
  /* Keep absolute search results outside the sticky bar visible */
  overflow: visible;
}
.site-header .navbar,
.site-header .container,
.site-header .navbar-collapse {
  overflow: visible;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(23, 32, 43, 0.08);
}
.site-logo {
  height: 48px;
  width: auto;
  display: block;
}
.navbar-brand {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy) !important;
  letter-spacing: -0.02em;
}
.nav-link {
  font-weight: 500;
  color: var(--ink-soft) !important;
  border-radius: 999px;
  padding-inline: 0.85rem !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  background: var(--paper-2);
  color: var(--navy) !important;
}
.search-pill {
  border-radius: 999px !important;
  border-color: var(--line) !important;
  background: var(--paper) !important;
  min-width: 160px;
}

/* Buttons */
.btn-brand {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-deep);
  --bs-btn-hover-border-color: var(--navy-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.35rem;
  box-shadow: 0 8px 20px rgba(36, 52, 71, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brand:hover { transform: translateY(-1px); }
.btn-brand-soft {
  --bs-btn-bg: #e8f4fc;
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--navy);
  --bs-btn-hover-bg: #d4eaf8;
  --bs-btn-hover-color: var(--navy-deep);
  border-radius: 999px;
  font-weight: 600;
}
.btn-outline-brand {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 600;
}
.btn-dark, .btn-outline-dark {
  border-radius: 999px;
}

/* Hero — full-bleed composition */
.home-hero {
  position: relative;
  margin: -1rem -0.75rem 2rem;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(23, 32, 43, 0.92) 0%, rgba(36, 52, 71, 0.75) 42%, rgba(47, 142, 196, 0.55) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.03) 28px,
      rgba(255, 255, 255, 0.03) 56px
    ),
    radial-gradient(circle at 80% 30%, rgba(255, 200, 87, 0.35), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(62, 207, 154, 0.25), transparent 30%),
    linear-gradient(160deg, #17202b, #2f5f7a 70%, #5eb3e4);
  animation: heroWash 14s ease-in-out infinite alternate;
}
@media (min-width: 768px) {
  .home-hero {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    border-radius: 0;
  }
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 720px;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 768px) {
  .home-hero-inner {
    padding: 4rem 2rem 4.5rem;
    margin-inline: auto;
    width: 100%;
    max-width: 1140px;
  }
}
.home-logo {
  height: 92px;
  width: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  padding: 0.45rem 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: popIn 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.home-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}
.home-hero .form-control {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}
.home-hero .btn-dark {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--navy-deep);
  font-weight: 700;
}
.home-hero .btn-dark:hover {
  background: #ffd97a;
  border-color: #ffd97a;
  color: var(--navy-deep);
}
.home-hero .btn-outline-light,
.home-hero .btn-outline-dark,
.home-hero a.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.home-hero a.btn-outline-secondary:hover,
.home-hero a.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.paint-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}
.paint-blob-a {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--coral), transparent 70%);
  top: 12%; left: 8%;
}
.paint-blob-b {
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  bottom: 10%; right: 12%;
  animation-delay: -3s;
}

/* Sections */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-chip:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
  box-shadow: var(--shadow);
  color: var(--navy);
}

/* Product cards */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 0 rgba(30, 42, 54, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 142, 196, 0.25);
}
.product-card-link {
  text-decoration: none;
  color: inherit;
}
.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #f4f8fb, #e8eef4);
  margin-bottom: 0.75rem;
  border-radius: calc(var(--radius) - 0.35rem);
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card-image {
  transform: scale(1.05);
}
.product-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  height: 100%;
}
.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.35rem;
}
.product-card-stars { margin-bottom: 0.35rem; }
.product-card-price {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
}
.badge-sale-card {
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0.55rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.35);
}
.badge-sale {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-inline-start: 0.35rem;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* Stars */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: #f0b429;
  font-size: 0.95rem;
  line-height: 1;
}
.star-rating .bi-star { color: #cfd8e0; }
.star-rating-meta {
  margin-inline-start: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Product detail gallery */
.product-gallery-main {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-gallery-open {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: zoom-in;
}
.product-hero-image {
  width: 100%;
  max-height: 480px;
  min-height: 280px;
  object-fit: contain;
  background: linear-gradient(160deg, #fff, #f3f7fb);
  display: block;
}
.product-gallery-zoom {
  position: absolute;
  bottom: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(23, 32, 43, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
}
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.product-thumb-btn {
  border: 2px solid transparent;
  border-radius: 0.65rem;
  padding: 0;
  background: var(--surface);
  overflow: hidden;
  opacity: 0.75;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.product-thumb-btn.is-active,
.product-thumb-btn:hover {
  border-color: var(--sky-deep);
  opacity: 1;
}
.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.product-kicker {
  text-transform: none;
  color: var(--sky-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.product-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
}
.product-price-block { font-family: var(--display); }
.product-price { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.product-price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.1rem;
  margin-inline-end: 0.4rem;
}
.product-price-sale {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--coral);
}
.stock-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.stock-pill.is-in {
  background: rgba(62, 207, 154, 0.15);
  color: #0f8a5f;
}
.stock-pill.is-out {
  background: rgba(255, 107, 74, 0.12);
  color: #c0392b;
}
.qty-input { width: 100px; border-radius: 0.85rem; }
.product-description.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Reviews */
.product-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.review-card {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.review-card:first-of-type { border-top: 0; }
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.review-photos img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
}
.review-form-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px dashed rgba(47, 142, 196, 0.35);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox img {
  max-width: min(92vw, 960px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}
.gallery-lightbox-close { top: 1rem; inset-inline-end: 1rem; }
.gallery-lightbox-prev { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); }

.search-autocomplete {
  position: relative;
  z-index: 1060;
}
.search-suggest {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 1060;
  max-height: min(320px, 50vh);
  overflow: auto;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  min-width: min(320px, 92vw);
}
.search-suggest .list-group-item {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
.search-suggest .list-group-item:last-child {
  border-bottom: 0;
}
.mini-cart { font-size: 0.9rem; }
.dropdown-menu.mini-cart { --bs-dropdown-min-width: 18rem; }

/* Catalog sidebar / filters */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 0 rgba(30, 42, 54, 0.03);
}
.list-group-item.active {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}
.list-group-item {
  border-color: var(--line);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  border-top: 0 !important;
  margin-top: 3rem !important;
}
.site-footer a { color: #9fd4f5; }
.site-footer strong { color: #fff; }

/* FAB */
.fab-wa, .fab-nav {
  position: fixed;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.55rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.fab-wa:hover, .fab-nav:hover { transform: scale(1.06); color: #fff !important; }
.fab-wa { bottom: 1.25rem; left: 1.25rem; background: #25d366; }
.fab-nav { bottom: 5.15rem; left: 1.25rem; background: var(--navy); }

.btn:focus, .form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(47, 142, 196, 0.22);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}
@keyframes heroWash {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(8deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
