/* ══════════════════════════════════════════════════════
   Šaty s duší – hlavní stylesheet
   Mobile-first, žádné horizontální scrollování
══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #18181B;
  overflow-x: hidden;
  max-width: 100vw;
  font-size: 15px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ── Proměnné ── */
:root {
  --pink:    #F5527B;
  --pinklt:  #FFF0F4;
  --pinkmid: #FFCAD6;
  --teal:    #2EC4B6;
  --yellow:  #FFD166;
  --ink:     #18181B;
  --mid:     #71717A;
  --muted:   #A1A1AA;
  --light:   #F4F4F5;
  --border:  #E4E4E7;
  --white:   #FFFFFF;
  --r:       12px;
  --px:      16px;
  --shadow:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
}

/* ── Typografie ── */
.font-serif { font-family: 'Playfair Display', serif; }
h1,h2,h3 { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.3px; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--px); }
.section    { padding: 40px 0; }
.section-lg { padding: 60px 0; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 70px; gap: 12px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; white-space: nowrap;
}
.nav-logo span { color: var(--pink); font-style: italic; }
.nav-links { display: none; list-style: none; gap: 24px; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--mid); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-search-btn {
  background: var(--light); border: none; border-radius: 50px;
  padding: 8px 14px; font-size: .8rem; color: var(--mid);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: border-color .2s;
}
.nav-search-btn:hover { background: var(--pinklt); }

.nav-cart {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 50px;
  padding: 8px 14px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background .2s; white-space: nowrap;
  text-decoration: none;
}
.nav-cart:hover { background: var(--pink); color: var(--white); }
.nav-cart-count {
  background: var(--pink); border-radius: 50%;
  width: 18px; height: 18px; font-size: .62rem;
  display: flex; align-items: center; justify-content: center;
}

.nav-hbg {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-hbg span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}

.nav-drawer {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 13px var(--px); font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.nav-drawer a:last-child { border-bottom: none; }

/* ── Flash zprávy ── */
.flash { padding: 12px var(--px); font-size: .85rem; font-weight: 500; text-align: center; }
.flash-success { background: #DCFCE7; color: #166534; }
.flash-error   { background: #FEE2E2; color: #991B1B; }
.flash-info    { background: #DBEAFE; color: #1E40AF; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: .75rem; color: var(--muted);
  padding: 12px 0;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb-sep { color: var(--border); }

/* ── Sekce header ── */
.sec-ey {
  font-size: .66rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pink); font-weight: 600; margin-bottom: 5px;
}
.sec-title { font-size: 1.55rem; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.link-all {
  font-size: .78rem; font-weight: 600; color: var(--mid);
  border-bottom: 1.5px solid var(--border); padding-bottom: 2px;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.link-all:hover { color: var(--pink); border-color: var(--pinkmid); }

/* ── Tlačítka ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: 50px;
  padding: 12px 26px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,82,123,.28); }
.btn-ink  { background: var(--ink); color: var(--white); }
.btn-ink:hover  { background: #2d2d30; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-full { width: 100%; }

/* ── Produkt karta ── */
.prod-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px;
}
.prod-card {
  border-radius: var(--r); overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: transform .2s;
  box-shadow: var(--shadow);
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.prod-img {
  aspect-ratio: 3/4; position: relative; overflow: hidden;
  background: var(--light);
}
.prod-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.prod-card:hover .prod-img img { transform: scale(1.04); }

.prod-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--pinklt), var(--pinkmid));
  font-size: 3.5rem;
}

.prod-badge {
  position: absolute; top: 9px; left: 9px; z-index: 5;
  background: var(--pink); color: var(--white);
  font-size: .6rem; font-weight: 700;
  padding: 3px 9px; border-radius: 50px; text-transform: uppercase;
}
.pb-teal   { background: var(--teal); }
.pb-yellow { background: var(--yellow); color: var(--ink); }
.pb-gray   { background: var(--muted); }

.prod-wish {
  position: absolute; top: 8px; right: 9px; z-index: 5;
  background: rgba(255,255,255,.88); border: none; border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer; transition: transform .15s;
}
.prod-wish:hover { transform: scale(1.18); }

.prod-sold-overlay {
  position: absolute; inset: 0; z-index: 6;
  background: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
}
.prod-sold-label {
  background: var(--ink); color: var(--white);
  padding: 8px 20px; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .5px;
}

.prod-quick {
  position: absolute; bottom: -40px; left: 8px; right: 8px; z-index: 5;
  background: rgba(24,24,27,.9); color: var(--white);
  border: none; border-radius: 8px;
  padding: 10px 6px; font-size: .72rem; font-weight: 600;
  cursor: pointer; letter-spacing: .3px;
  transition: bottom .2s ease;
}
.prod-card:hover .prod-quick { bottom: 8px; }

.prod-info { padding: 11px 10px 12px; }
.prod-cat  { font-size: .62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
.prod-name { font-size: .85rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.prod-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.prod-price {
  font-family: 'Playfair Display', serif;
  font-size: .98rem; font-weight: 700; color: var(--pink);
}
.prod-orig { font-size: .7rem; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.prod-sz {
  background: var(--light); border-radius: 5px;
  padding: 2px 7px; font-size: .62rem; font-weight: 600; color: var(--mid);
}

/* ── Filtry ── */
.filter-scroll {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 18px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.chip {
  background: var(--light); border: 1.5px solid transparent;
  border-radius: 50px; padding: 6px 14px;
  font-size: .75rem; font-weight: 500; white-space: nowrap;
  flex-shrink: 0; color: var(--mid); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--pink); color: var(--pink); background: var(--pinklt); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.sizes-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sz {
  background: var(--light); border: 1.5px solid transparent;
  border-radius: 8px; width: 40px; height: 36px;
  font-size: .72rem; font-weight: 600; flex-shrink: 0;
  color: var(--mid); cursor: pointer; transition: all .15s;
}
.sz:hover { border-color: var(--pink); color: var(--pink); }
.sz.active { background: var(--pink); color: var(--white); border-color: var(--pink); }

/* ── Kategorie ── */
.cat-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 8px;
}
.cat-card {
  background: var(--light); border-radius: var(--r);
  padding: 16px 10px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: background .2s, transform .2s;
  border: 1.5px solid transparent;
}
.cat-card:hover {
  background: var(--pinklt); border-color: var(--pinkmid);
  transform: translateY(-2px);
}
.cat-icon { font-size: 1.6rem; margin-bottom: 7px; display: block; }
.cat-name { font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.cat-count { font-size: .65rem; color: var(--muted); }

/* ── Formuláře ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-label span { color: var(--pink); }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .9rem; background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(245,82,123,.1);
}
.form-input::placeholder { color: var(--muted); }
.form-error { font-size: .75rem; color: #EF4444; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Košík ── */
.cart-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px; height: 96px; border-radius: 8px; overflow: hidden;
  background: var(--light); flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-meta { font-size: .72rem; color: var(--mid); margin-bottom: 8px; }
.cart-item-remove {
  background: none; border: none; font-size: .72rem;
  color: var(--muted); cursor: pointer; text-decoration: underline;
  padding: 0; transition: color .2s;
}
.cart-item-remove:hover { color: #EF4444; }
.cart-item-price {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 700; color: var(--pink);
  flex-shrink: 0;
}

/* ── Souhrn objednávky ── */
.order-summary {
  background: var(--light); border-radius: var(--r); padding: 20px;
}
.order-summary-row {
  display: flex; justify-content: space-between;
  font-size: .85rem; padding: 6px 0; color: var(--mid);
}
.order-summary-row.total {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  border-top: 1.5px solid var(--border); margin-top: 10px; padding-top: 12px;
}
.order-summary-row.total .price-val {
  font-family: 'Playfair Display', serif; color: var(--pink);
}

/* ── Features strip ── */
.features-strip {
  background: var(--light); padding: 32px 0;
}
.features-grid { display: flex; flex-direction: column; gap: 12px; }
.feat-card {
  background: var(--white); border-radius: var(--r);
  padding: 18px 16px; display: flex; align-items: flex-start; gap: 14px;
}
.feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.fi-p { background: var(--pinklt); }
.fi-t { background: #d4f5f2; }
.fi-y { background: #fff5d4; }
.feat-title { font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
.feat-text  { font-size: .75rem; color: var(--mid); line-height: 1.5; }

/* ── Marquee ── */
.marquee-wrap { background: var(--ink); overflow: hidden; padding: 11px 0; }
.marquee-track { display: flex; animation: marquee 22s linear infinite; width: max-content; }
.mitem {
  font-size: .72rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  padding: 0 24px; white-space: nowrap;
  display: flex; align-items: center; gap: 18px;
}
.mitem::after {
  content: ''; width: 3px; height: 3px;
  border-radius: 50%; background: var(--pink); display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Footer ── */
footer {
  background: var(--ink); color: rgba(255,255,255,.55);
  padding: 48px 0 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand-col { grid-column: span 2; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.footer-logo span { color: var(--pink); font-style: italic; }
.footer-desc { font-size: .78rem; line-height: 1.7; margin-bottom: 16px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; }
.soc {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.55);
  transition: background .15s;
}
.soc:hover { background: var(--pink); color: var(--white); }
.footer-col h4 {
  font-size: .64rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .8rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 18px;
  font-size: .72rem; color: rgba(255,255,255,.26);
}

@media (min-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: span 3; }
}

@media (min-width: 960px) {
  .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: span 1; }
}

/* ── Float cart ── */
.float-cart {
  position: fixed; bottom: 18px; right: 18px; z-index: 800;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 50px;
  padding: 11px 18px; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-cart:hover { transform: translateY(-2px); color: var(--white); }
.float-cart-badge {
  background: var(--pink); border-radius: 50%;
  width: 18px; height: 18px; font-size: .62rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0 8px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--mid); transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── Prázdný stav ── */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--mid); font-size: .88rem; margin-bottom: 24px; }

/* ── Animace ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation: fadeUp .35s ease both; }

/* ══════════════════════════════════════════════════════
   TABLET  ≥ 640px
══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  :root { --px: 28px; }
  .prod-grid { grid-template-columns: repeat(3,1fr); }
  .cat-grid  { grid-template-columns: repeat(4,1fr); }
  .features-grid { flex-direction: row; }
}

/* ══════════════════════════════════════════════════════
   DESKTOP  ≥ 960px
══════════════════════════════════════════════════════ */
@media (min-width: 960px) {
  :root { --px: 48px; }
  .nav-inner { height: 66px; }
  .nav-links { display: flex; }
  .nav-hbg   { display: none; }
  .nav-drawer { display: none !important; }
  .prod-grid { grid-template-columns: repeat(4,1fr); }
  .cat-grid  { grid-template-columns: repeat(8,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}