/* Trgovina — postavitev in videz javnega dela. */

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1160px, 100% - 28px); } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Napovednik ────────────────────────────────────────────────────────────── */
.announce {
  background: var(--ink);
  color: #FFF3E6;
  text-align: center;
  font-size: 14px; font-weight: 600;
  padding: 8px 16px;
}

/* ── Glava ─────────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 249, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-family: 'Baloo 2', sans-serif; font-size: 19px; font-weight: 600; }
.brand-txt small { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }

.nav-desktop { display: flex; gap: 6px; }
.nav-desktop a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 14px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a.is-active { background: var(--brand-soft); color: var(--brand-700); }

.head-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line-2);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.cart-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-600); color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
}

.menu-btn {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--paper);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 13px 4px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
  .nav-mobile:not([hidden]) { display: flex; }
}

/* ── Odseki ────────────────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--ink-2); margin: 0; font-size: 17px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ── Naslovnica ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(380px, 100%); height: auto; filter: drop-shadow(0 18px 40px rgba(76, 48, 70, .18)); }
/* Mehki barvni krogi za logotipom. Dekorativni, zato aria-hidden v HTML. */
.blob { position: absolute; border-radius: 50%; filter: blur(38px); opacity: .5; z-index: -1; }
.blob-1 { width: 240px; height: 240px; background: var(--r-yellow); top: -10%; left: 2%; }
.blob-2 { width: 200px; height: 200px; background: var(--r-blue); bottom: 0; right: 4%; }
.blob-3 { width: 180px; height: 180px; background: var(--r-pink); bottom: 18%; left: 14%; }

.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hero-point { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hero-point .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-art { order: -1; }
}

/* ── Mreža izdelkov ────────────────────────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 22px;
}
@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.card-product {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 1; background: var(--cream-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .no-photo {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px; font-weight: 700; text-align: center; padding: 12px;
  background: repeating-linear-gradient(45deg, var(--cream-2) 0 12px, var(--cream) 12px 24px);
}

.card-flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.flag {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: #fff;
  box-shadow: var(--shadow-sm);
}
.flag-sale { background: var(--brand-600); }
.flag-new { background: var(--r-purple); color: #40145E; }
.flag-out { background: var(--ink-2); }

.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.card-name { font-family: 'Baloo 2', sans-serif; font-size: 17px; font-weight: 600; margin: 0; }
.card-desc { font-size: 14px; color: var(--ink-2); margin: 0; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-size: 19px; font-weight: 800; font-family: 'Baloo 2', sans-serif; }
.price-old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.card-cta { margin-top: 10px; }

/* ── Filtri ────────────────────────────────────────────────────────────────── */
.shop-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--line-2); background: var(--paper); color: var(--ink);
  cursor: pointer; min-height: 40px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-box { position: relative; margin-left: auto; width: min(280px, 100%); }
.search-box .input { padding-left: 40px; min-height: 44px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
@media (max-width: 640px) { .search-box { margin-left: 0; width: 100%; } }

/* ── Izdelek ───────────────────────────────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 6px; color: var(--ink-3); }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 26px; } }

.gallery-main {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--cream-2); border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 72px; padding: 0; overflow: hidden;
  border-radius: var(--r-sm); border: 2px solid var(--line-2);
  background: var(--cream-2); cursor: pointer;
}
.gallery-thumbs button.is-active { border-color: var(--brand-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-price .price-now { font-size: 32px; }
.product-price .price-old { font-size: 18px; }
.product-desc { white-space: pre-line; color: var(--ink-2); line-height: 1.7; }

.qty {
  display: inline-flex; align-items: center;
  border: 2px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--paper);
}
.qty button {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 20px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1;
}
.qty button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-700); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 40px; text-align: center; font-weight: 800; font-size: 16px; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0; }

.stock-line { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.info-strip { display: grid; gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.info-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.info-item svg { flex: none; color: var(--brand-600); margin-top: 2px; }

/* ── Košarica in blagajna ──────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; gap: 22px; } }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 18px; }
.panel h2, .panel h3 { font-size: 20px; margin-bottom: 16px; }
@media (max-width: 560px) { .panel { padding: 18px 16px; } }

.summary { position: sticky; top: 92px; }
@media (max-width: 900px) { .summary { position: static; } }

.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line .ci-img { width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; background: var(--cream-2); }
.cart-line .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .ci-name { font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 16px; }
.cart-line .ci-unit { font-size: 13px; color: var(--ink-2); }
.cart-line .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .ci-total { font-weight: 800; }
.link-danger {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--err); text-decoration: underline;
}
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 64px 1fr; grid-template-areas: 'img name' 'img right'; row-gap: 8px; }
  .cart-line .ci-img { width: 64px; height: 64px; grid-area: img; align-self: start; }
  .cart-line .ci-mid { grid-area: name; }
  .cart-line .ci-right { grid-area: right; align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; width: 100%; }
}

.totals { display: grid; gap: 10px; margin-top: 6px; }
.totals .row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--ink-2); }
.totals .row strong { color: var(--ink); }
.totals .row-total {
  font-family: 'Baloo 2', sans-serif; font-size: 21px; font-weight: 600; color: var(--ink);
  border-top: 2px dashed var(--line-2); padding-top: 12px; margin-top: 4px;
}
.free-ship-note { font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 9px 12px; border-radius: var(--r-sm); }
.free-ship-hint { font-size: 13px; color: var(--ink-2); background: var(--cream-2); padding: 9px 12px; border-radius: var(--r-sm); }

/* Izbira dostave in plačila: cela kartica je klikljiva oznaka. */
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice label:hover { border-color: var(--brand); }
.choice label:has(input:checked) { border-color: var(--brand-600); background: var(--brand-soft); }
.choice input { margin-top: 3px; accent-color: var(--brand-600); width: 20px; height: 20px; flex: none; }
.choice .c-title { font-weight: 800; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.choice .c-desc { font-size: 13px; color: var(--ink-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Koraki barvanja (z navodil v embalaži) ────────────────────────────────── */
.steps { display: grid; gap: 14px; counter-reset: korak; }
.step {
  display: flex; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
}
.step-num {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 600; color: var(--ink);
}
.step p { margin: 0; font-weight: 600; }

.warning-box {
  border: 2px solid var(--brand); background: var(--brand-soft);
  border-radius: var(--r-md); padding: 18px 20px; margin-top: 26px;
}
.warning-box h3 { color: var(--brand-700); font-size: 17px; margin-bottom: 6px; }
.warning-box p { margin: 0; font-size: 15px; }

/* ── Vsebinske strani ──────────────────────────────────────────────────────── */
.prose { max-width: 66ch; }
.prose h2 { font-size: 26px; margin-top: 32px; }
.prose h3 { font-size: 19px; margin-top: 24px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; }
.dl dt { font-weight: 800; color: var(--ink); }
.dl dd { margin: 0; color: var(--ink-2); }
@media (max-width: 460px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; } }

/* ── Zahvala ───────────────────────────────────────────────────────────────── */
.thanks { text-align: center; max-width: 640px; margin-inline: auto; }
.thanks .big-check {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.order-no {
  display: inline-block; font-family: 'Baloo 2', sans-serif; font-size: 24px; font-weight: 600;
  background: var(--cream-2); border: 2px dashed var(--line-2);
  padding: 10px 22px; border-radius: var(--r-md); margin: 6px 0 18px;
  letter-spacing: .04em;
}
.pay-box { text-align: left; background: var(--info-soft); border-radius: var(--r-md); padding: 18px 20px; margin-top: 20px; }
.pay-box h3 { font-size: 17px; margin-bottom: 10px; }

/* ── Noga ──────────────────────────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: #F6E9DE; margin-top: 60px; padding: 48px 0 28px; }
.foot-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand img { width: 64px; height: 64px; margin-bottom: 12px; }
.foot-tag { font-family: 'Baloo 2', sans-serif; font-size: 15px; color: #E8CFC0; margin: 0; }
.foot-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #E8A7B4; margin-bottom: 12px; }
.foot-col a, .foot-col p { display: block; color: #F6E9DE; text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; color: #C9AFA0; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between;
}
@media (max-width: 820px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ── Prazna stanja ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 20px; }
.empty img { width: 110px; margin: 0 auto 18px; opacity: .85; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--ink-2); margin-bottom: 22px; }
