/* Albi homepage — scoped under .albi-home. Ported & adapted from designer prototype. */
.albi-home {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
}

.albi-home .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ HERO ============ */
.albi-home .hero {
  position: relative;
  width: 100%;
  height: 560px;
  background: var(--bg-2);
  overflow: hidden;
}
.albi-home .hero-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}
.albi-home .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.albi-home .hero-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.albi-home .hero-image.slide-1 {
  background:
    radial-gradient(ellipse at 75% 55%, #2a2a2a 0%, #0c0c0c 60%, #050505 100%),
    #111;
}
.albi-home .hero-image.slide-2 {
  background:
    radial-gradient(ellipse at 30% 50%, #3a2a1a 0%, #1a1208 70%, #0a0604 100%);
}
.albi-home .hero-image.slide-3 {
  background:
    radial-gradient(ellipse at 60% 50%, #1f2937 0%, #0f172a 70%, #050810 100%);
}
.albi-home .hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,245,245,0.95) 0%, rgba(245,245,245,0.55) 25%, rgba(0,0,0,0) 55%);
}
.albi-home .hero-placeholder-mark {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.albi-home .hero-card {
  position: relative;
  z-index: 2;
  grid-column: 1 / 2;
  margin-left: clamp(40px, 8vw, 110px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 4px;
  padding: 36px 44px;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.albi-home .hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
.albi-home .hero-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}
.albi-home .hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  margin: 0 0 22px 0;
}
.albi-home .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.albi-home .hero-cta:hover { background: var(--red-deep); }
.albi-home .hero-cta svg { width: 14px; height: 14px; }

.albi-home .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--red);
  z-index: 5;
  transition: all 160ms ease;
}
.albi-home .hero-arrow:hover { background: var(--red); color: #fff; }
.albi-home .hero-arrow.prev { left: 22px; }
.albi-home .hero-arrow.next { right: 22px; }
.albi-home .hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.albi-home .hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease;
}
.albi-home .hero-dot.is-active { background: var(--red); border-color: var(--red); }

/* ============ USP row ============ */
.albi-home .usp {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line-2);
}
.albi-home .usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.albi-home .usp-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
}
.albi-home .usp-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.albi-home .usp-ico svg { width: 28px; height: 28px; }
.albi-home .usp-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 4px 0 6px;
  color: var(--ink-1);
}
.albi-home .usp-body { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ============ Section heading ============ */
.albi-home .section { padding: 72px 0 24px; }
.albi-home .section-head { text-align: center; margin-bottom: 36px; }
.albi-home .section-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.albi-home .section-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ============ Category tabs ============ */
.albi-home .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 44px;
}
.albi-home .tab {
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}
.albi-home .tab:hover { color: var(--ink-1); }
.albi-home .tab.is-active {
  color: var(--red);
  border-color: var(--red);
}

/* Tab-panel visibility (preloaded product grids) */
.albi-home .product-grid.cat-panel { display: none; }
.albi-home .product-grid.cat-panel.is-active { display: grid; }

/* ============ Product grid ============ */
.albi-home .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.albi-home .product {
  background: #fff;
  border: 1px solid transparent;
  padding: 14px 14px 22px;
  border-radius: 2px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  position: relative;
  cursor: pointer;
}
.albi-home .product:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.albi-home .product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  background-image:
    repeating-linear-gradient(135deg,
      #efefef 0 8px, #f6f6f6 8px 16px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}
.albi-home .product-media img { width: 100%; height: 100%; object-fit: contain; }
.albi-home .product-media-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #999;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
/* NOVO + frozen chip stack gore-lijevo (badge se ne preklapaju). */
.albi-home .product-badges {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.albi-home .product-novo {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
}
.albi-home .product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  text-align: center;
  line-height: 1.35;
  margin: 0 0 10px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.albi-home .product-brand {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.albi-home .product-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 0 6px;
  color: var(--ink-1);
}
.albi-home .product-price .whole {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.albi-home .product-price .cents {
  font-size: 14px;
  font-weight: 400;
  align-self: flex-start;
  margin-top: 6px;
}
.albi-home .product-price .unit {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 2px;
  align-self: flex-end;
  margin-bottom: 4px;
}
.albi-home .product-cjm {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
}
.albi-home .product-sku {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ============ Carousel (novi proizvodi) ============ */
.albi-home .carousel-wrap {
  position: relative;
}
/* Novi proizvodi — strelice gore uz naslov (crveni krug kao hero banner) */
.albi-home .newp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.albi-home .newp-nav { display: flex; gap: 8px; }
.albi-home .newp-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.albi-home .newp-arrow:hover { background: var(--red); color: #fff; }
.albi-home .newp-arrow svg { width: 16px; height: 16px; }

/* ============ Akcije empty ============ */
.albi-home .empty {
  text-align: center;
  padding: 40px 0 80px;
  color: var(--ink-3);
  font-size: 15px;
}

/* ============ Gastro kutak ============ */
.albi-home .gastro {
  background: var(--bg-2);
  padding: 80px 0;
}
.albi-home .gastro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.albi-home .recipe {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease;
  cursor: pointer;
}
.albi-home .recipe:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.albi-home .recipe-media {
  aspect-ratio: 16 / 10;
  background-image:
    repeating-linear-gradient(135deg,
      #e6e6e6 0 10px, #efefef 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.albi-home .recipe-media img { width: 100%; height: 100%; object-fit: cover; }
.albi-home .recipe-body {
  padding: 18px 22px 22px;
}
.albi-home .recipe-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.albi-home .recipe-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--ink-1);
  line-height: 1.35;
}
.albi-home .recipe-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 160ms ease;
}
.albi-home .recipe-link:hover { color: var(--red); }
.albi-home .recipe-link .play {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

/* ============ Partners ============ */
.albi-home .partners {
  padding: 60px 0;
  border-top: 1px solid var(--line-2);
}
.albi-home .partner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  padding: 0 12px;
  flex: 0 0 auto;
  margin-right: 56px;
}
.albi-home .albi-home-partner__img { max-height: 54px; width: auto; object-fit: contain; }

/* ============ Back-to-top ============ */
.albi-home-totop { position: fixed; right: 28px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 50; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease, background 160ms ease; }
.albi-home-totop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.albi-home-totop:hover { background: var(--red-deep); }
.albi-home-totop svg { width: 18px; height: 18px; transform: rotate(90deg); }

.albi-home .divider-spacer { height: 8px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.albi-home .usp-grid { grid-template-columns: 1fr; gap: 24px; }
	.albi-home .product-grid { grid-template-columns: repeat(2, 1fr); }
	.albi-home .gastro-grid { grid-template-columns: 1fr; }
	.albi-home .hero-slide { grid-template-columns: 1fr; }
	.albi-home .hero-card { margin: 0 16px; max-width: none; }
}
@media (max-width: 560px) {
	.albi-home .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.albi-home .hero { height: auto; min-height: 420px; }
	.albi-home .section-title { font-size: 26px; }
}

/* ============ Product card "+" add-to-cart ============ */
.albi-home .product { display: flex; flex-direction: column; }
.albi-home .product-link { display: block; color: inherit; }
.albi-home .add-mini { align-self: center; margin-top: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 160ms ease; }
.albi-home .add-mini:hover { background: var(--red-deep); }
.albi-home .add-mini:disabled { opacity: .55; cursor: default; }
.albi-home .add-mini svg { width: 16px; height: 16px; }

/* ── Uniform homepage product cards (client request) ── */
.albi-home .product { height: 100%; }
.albi-home .product-media { background: #fff; }
.albi-home .product-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.albi-home .product-brand { min-height: 1.15em; }
.albi-home .add-mini { margin-top: auto; }

/* ── Partners marquee: single row, auto-scroll right, seamless loop ── */
.albi-home .partners-marquee { overflow: hidden; }
.albi-home .partners-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: albi-partners-marquee 45s linear infinite;
}
.albi-home .partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes albi-partners-marquee {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.albi-home .partners-track { animation: none; }
}
