@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&family=Sora:wght@400;600;700&display=swap");

:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --brand-700: #0e4c6d;
  --brand-600: #11648d;
  --brand-500: #1a7aa6;
  --accent-600: #2f8f6b;
  --surface-1: #f8fafc;
  --surface-2: #eef2f6;
  --white: #ffffff;
  --shadow-1: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.home-modern {
  background: radial-gradient(1200px 600px at 15% -10%, rgba(26, 122, 166, 0.15), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(47, 143, 107, 0.18), transparent 55%),
    var(--surface-1);
}

.home-hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Sora", sans-serif;
  font-size: 44px;
  line-height: 1.08;
  color: var(--ink-900);
  margin: 12px 0 14px;
}

.hero-eyebrow {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand-600);
  background: rgba(14, 76, 109, 0.1);
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-sub {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: var(--ink-700);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin: 24px 0 20px;
}

.btn-primary,
.btn-ghost {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: var(--white);
}

.btn-ghost {
  color: var(--brand-700);
  background: rgba(14, 76, 109, 0.08);
  border: 1px solid rgba(14, 76, 109, 0.2);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--brand-700);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-family: "Manrope", sans-serif;
}

.hero-stats .stat {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
  color: var(--ink-700);
  font-size: 13px;
}

.hero-stats .stat span {
  display: block;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 18px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.search-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-1);
}

.search-title {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 10px;
}

.modern-select,
.modern-input {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  height: 44px !important;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.modern-btn {
  border-radius: 10px;
  height: 44px;
  background: var(--brand-700);
  color: var(--white);
  border: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modern-btn:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.cart-mini {
  background: var(--white);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: var(--shadow-1);
}

.cart-mini .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 700;
}

.cart-mini .qty {
  background: var(--accent-600);
  color: var(--white);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.promo-band {
  padding: 12px 0 40px;
}

.promo-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--white);
}

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

.modern-title .title {
  font-family: "Sora", sans-serif;
  color: var(--ink-900);
  font-size: 28px;
  margin-bottom: 6px;
}

.modern-title .subtitle {
  color: var(--ink-500);
  font-family: "Manrope", sans-serif;
  margin-bottom: 20px;
}

.product-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

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

.product-media {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-body-modern {
  padding: 16px 16px 20px;
}

.product-body-modern .product-name a {
  font-family: "Sora", sans-serif;
  color: var(--ink-900);
  font-size: 16px;
}

.product-body-modern .product-category {
  font-family: "Manrope", sans-serif;
  color: var(--ink-500);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modern-quick {
  border-radius: 10px;
  background: rgba(14, 76, 109, 0.08);
  padding: 8px 10px;
}

.modern-quick i {
  color: var(--brand-700);
}

.products-slick .slick-slide {
  padding: 0 12px;
}

.products-slick .slick-list {
  margin: 0 -12px;
}

.products-slick .product {
  margin: 0;
  height: 100%;
}

/* Fallback layout if Slick is not initialized */
.products-slick:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Toast (cookies) */
.jq-toast-wrap .jq-toast-single {
  border-radius: 14px;
  background: #0f2f45;
  color: #e2e8f0;
  box-shadow: var(--shadow-2);
  padding: 14px 16px;
  font-family: "Manrope", sans-serif;
  max-width: 360px;
}

.jq-toast-wrap .jq-toast-heading {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  margin-bottom: 6px;
  color: #ffffff;
}

.jq-toast-wrap .jq-toast-single a {
  color: #a7f3d0;
  font-weight: 700;
  text-decoration: none;
}

.jq-toast-wrap .jq-toast-single a:hover {
  text-decoration: underline;
}

.jq-toast-wrap .close-jq-toast-single {
  color: #ffffff;
  opacity: 0.7;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .product-media {
    min-height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
