/* ============================================================
   DESIGN TOKENS — GolfGear Dark Theme (matching landing2.php)
============================================================ */
:root {
  --bg:          #232323;
  --bg-card:     #2e2e2e;
  --bg-card2:    #1a1a1a;
  --bg-elevated: #303030;
  --red:         #AF1D1F;
  --red-dark:    #8a1618;
  --red-glow:    rgba(175,29,31,0.18);
  --red-glow2:   rgba(175,29,31,0.09);
  --teal:        #1A5269;
  --celadon:     #BAE3A4;
  --alice:       #E2E8F0;
  --border:      #3a3a3a;
  --border-mid:  #464646;
  --border-bright:#585858;
  --text:        #ffffff;
  --text-muted:  #d0d0d0;
  --text-dim:    #999999;
  --nav-h:       80px;
  --radius:      8px;
  --ease:        0.25s ease;
  --max-w:       1300px;
  --sidebar-w:   280px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION — same as landing2.php
============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(26,26,26,0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled { background: rgba(26,26,26,0.98); border-bottom-color: var(--red); }
#nav .container { height: 100%; }
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 1rem;
}
.nav-inner .nav-links  { justify-self: center; }
.nav-inner .nav-actions { justify-self: end; }
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }

.nav-links {
  display: flex; gap: 0;
  list-style: none; align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color var(--ease);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--text); }
.nav-links > li > a::after {
  content: ''; display: block; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s; border-radius: 2px;
}
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li > a.nav-active { color: var(--text); }
.nav-links > li > a.nav-active::after { transform: scaleX(1); }

.nav-links > li .drop {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  background: var(--bg-card2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 12px 0 0.4rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
  transition-delay: 0.2s;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.nav-links > li:hover .drop { opacity: 1; pointer-events: all; transform: translateY(0); transition-delay: 0s; }
.drop a {
  display: block; padding: 0.45rem 1.2rem;
  font-size: 0.85rem; color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
}
.drop a:hover { color: var(--text); background: var(--red-glow2); }
.drop hr { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-search {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem; gap: 0.5rem;
  transition: border-color var(--ease);
}
.nav-search:focus-within { border-color: var(--red); }
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.88rem; width: 130px;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search svg { color: var(--text-dim); flex-shrink: 0; }

.nav-icon-btn {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 0.35rem; border-radius: 4px;
  transition: color var(--ease); position: relative;
}
.nav-icon-btn:hover { color: var(--text); }
.nav-icon-btn .badge {
  position: absolute; top: -1px; right: -1px;
  background: var(--red); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.35rem;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--ease); }

#mobile-menu {
  display: none; position: fixed; inset: 0;
  background: #1a1a1a; z-index: 999;
  padding: 5rem 2rem 2rem; flex-direction: column; gap: 0; overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-muted); padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: color var(--ease);
}
#mobile-menu a:hover { color: var(--red); }

@media (max-width: 960px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 2.5rem) 0 2rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.65rem; letter-spacing: 3px;
  color: var(--red); text-transform: uppercase; margin-bottom: 0.4rem;
}
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text); line-height: 1.1;
}
.red-line { width: 48px; height: 3px; background: var(--red); margin: 0.7rem 0 0; }
.page-header-meta { color: var(--text-dim); font-size: 0.85rem; align-self: flex-end; padding-bottom: 0.2rem; }

/* ============================================================
   SHOP LAYOUT
============================================================ */
.shop-wrap {
  flex: 1;
  padding: 2rem 0 4rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 2rem;
  align-items: start;
}

/* ============================================================
   SIDEBAR
============================================================ */
.shop-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.sidebar-search {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.sidebar-search input {
  flex: 1; padding: 0.65rem 1rem;
  background: var(--bg-card2); border: 1px solid var(--border-mid);
  border-radius: var(--radius); color: var(--text);
  font-family: inherit; font-size: 0.9rem;
  transition: border-color var(--ease);
}
.sidebar-search input:focus { outline: none; border-color: var(--red); }
.sidebar-search input::placeholder { color: var(--text-dim); }
.sidebar-search button {
  padding: 0 1rem;
  background: var(--red); color: #fff; border: none;
  border-radius: var(--radius); cursor: pointer;
  font-size: 0.85rem; transition: background var(--ease);
}
.sidebar-search button:hover { background: var(--red-dark); }

.filter-clear-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-dim); font-size: 0.75rem; margin-bottom: 1.25rem;
  transition: color var(--ease);
}
.filter-clear-link:hover { color: var(--red); }

.filter-group { margin-bottom: 1.75rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.filter-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--text-muted);
  cursor: pointer; transition: color var(--ease);
}
.filter-label:hover { color: var(--text); }
.filter-count { color: var(--text-dim); font-size: 0.75rem; margin-left: auto; }

.filter-sublist {
  margin: 0.35rem 0 0.5rem 1.4rem;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}
.filter-label-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.filter-label-sub:hover { color: var(--text-muted); }
input[type="checkbox"] { accent-color: var(--red); width: 14px; height: 14px; flex-shrink: 0; }

.range-inputs { display: flex; gap: 0.5rem; align-items: center; }
.range-inputs input[type="number"] {
  width: 100%; padding: 0.5rem 0.75rem;
  background: var(--bg-card2); border: 1px solid var(--border-mid);
  border-radius: 4px; color: var(--text);
  font-family: inherit; font-size: 0.88rem;
}
.range-inputs input[type="number"]:focus { outline: none; border-color: var(--red); }
.range-inputs span { color: var(--text-dim); flex-shrink: 0; }
.range-submit {
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated); border: 1px solid var(--border-mid);
  border-radius: 4px; color: var(--text-muted); cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
  flex-shrink: 0;
}
.range-submit:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   CATEGORY BANNER
============================================================ */
.cat-banner { padding: 2.5rem 0 0; }

/* Sekce header */
.cat-section-header {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.cat-section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.cat-section-title:hover { color: var(--red); }
.cat-section-count {
  font-size: 0.78rem; color: var(--text-dim);
}
.cat-section-all {
  margin-left: auto; font-size: 0.78rem; font-weight: 600;
  color: var(--red); text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.cat-section-all:hover { opacity: 0.75; }

/* Subkategorie holí — 4+ karet s obrázkem */
.cat-sub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.cat-sub-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat-sub-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.cat-sub-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-sub-img.no-img { background: var(--bg-card2); }
.cat-sub-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.3s ease;
}
.cat-sub-card:hover .cat-sub-img img { transform: scale(1.06); }
.cat-sub-name {
  width: 100%; padding: 0.6rem 0.5rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  text-align: center; line-height: 1.2;
  background: var(--bg-card);
}

/* Hlavní kategorie (Shafty, Gripy, Obuv...) — horizontální karty */
.cat-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}
.cat-main-card {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-main-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
.cat-main-img {
  width: 88px; height: 88px; flex-shrink: 0;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-main-img.no-img { background: var(--bg-card2); }
.cat-main-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 0.5rem;
  transition: transform 0.3s ease;
}
.cat-main-card:hover .cat-main-img img { transform: scale(1.08); }
.cat-main-body {
  flex: 1; padding: 0.7rem 1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.cat-main-name {
  font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.2;
}
.cat-main-count { font-size: 0.75rem; color: var(--text-dim); }

@media (max-width: 1100px) { .cat-sub-grid  { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .cat-sub-grid  { grid-template-columns: repeat(4, 1fr); }
                              .cat-main-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cat-sub-grid  { grid-template-columns: repeat(2, 1fr); }
                              .cat-main-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SHOP CONTENT
============================================================ */
.shop-content {}

/* Category pills */
.category-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-mid);
  border-radius: 20px;
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--red); color: var(--text); background: var(--red-glow);
}

/* Products header */
.products-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.products-count {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}
.sort-select {
  padding: 0.45rem 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border-mid);
  border-radius: 4px; color: var(--text-muted);
  font-family: inherit; font-size: 0.85rem; cursor: pointer;
  transition: border-color var(--ease);
}
.sort-select:focus { outline: none; border-color: var(--red); }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ============================================================
   PRODUCT CARDS — dark theme
============================================================ */
.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.prod-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.prod-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }

.prod-img {
  aspect-ratio: 1; width: 100%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
  padding: 1rem; position: relative;
}
.prod-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prod-card:hover .prod-img img { transform: scale(1.06); }

.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.55rem; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase; z-index: 2;
}
.prod-badge-sale {
  position: absolute; top: 10px; right: 10px;
  background: #1a4a1a; color: #7ec97e;
  font-size: 0.55rem; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}

.prod-body {
  padding: 1rem; display: flex; flex-direction: column; flex: 1;
}
.prod-brand {
  font-size: 0.6rem; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}
.prod-name {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); line-height: 1.35; margin-bottom: 0.6rem;
}
.prod-specs {
  display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem;
}
.spec-tag {
  font-size: 0.6rem; font-weight: 600;
  color: var(--text-dim); background: var(--bg-card2);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 2px 7px; text-transform: uppercase; letter-spacing: 0.3px;
}
.prod-stock {
  font-size: 0.65rem; color: #7ec97e; font-weight: 600;
  margin-bottom: 0.5rem;
}
.prod-stock.out { color: var(--text-dim); }

.prod-price-row {
  margin-top: auto; display: flex;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 0.75rem;
}
.price-wrap { display: flex; flex-direction: column; gap: 1px; }
.prod-price-old {
  font-size: 0.72rem; color: var(--text-dim);
  text-decoration: line-through; font-weight: 400;
}
.prod-price { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.prod-price.is-sale { color: #7ec97e; }

.prod-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-mid); color: var(--text-dim);
  font-size: 0.9rem;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  flex-shrink: 0;
}
.prod-card:hover .prod-arrow { border-color: var(--red); color: var(--text); background: var(--red-glow); }

/* Empty / error state */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px dashed var(--border-mid);
}
.empty-state h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.empty-state p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text-muted);
  font-family: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border-bright); cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-logo img { height: 32px; filter: brightness(0) invert(1); opacity: 0.5; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.5px; transition: color var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; max-height: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
}
