/* =====================================================
   igrezaotroke.si — Glavni CSS
   ===================================================== */

:root {
  --sun:    #FFD23F;
  --coral:  #FF6B5B;
  --mint:   #3ECFB2;
  --sky:    #4EACF7;
  --plum:   #7B4FE9;
  --cream:  #FFF8EE;
  --dark:   #1A1A2E;
  --gray:   #666;
  --light:  #F7F7F7;
  --white:  #FFFFFF;
  --shadow: 0 8px 32px rgba(26,26,46,0.10);
  --shadow-sm: 0 2px 12px rgba(26,26,46,0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.18s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  scroll-behavior: smooth;
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--coral); color: white;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* ===== HEADER ===== */
#site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow 0.2s;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px; gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.logo-text {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: 1.3rem; color: var(--dark); line-height: 1.1;
}
.logo-text span { color: var(--coral); }
.logo-tld { color: #bbb !important; }
.logo-sub { font-size: 0.65rem; color: #aaa; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-logo .logo-text { color: white; }

/* Desktop Nav */
nav .nav-link {
  text-decoration: none; color: var(--dark);
  font-weight: 600; font-size: 0.87rem;
  padding: 7px 11px; border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
nav .nav-link:hover { background: var(--cream); color: var(--coral); }
nav .nav-link.active { background: var(--cream); color: var(--coral); }
nav .nav-link.nav-special { color: var(--coral); font-weight: 700; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; border: 2px solid #eee;
  border-radius: 10px; overflow: hidden;
  font-size: 0.78rem; font-weight: 700;
}
.lang-toggle a {
  padding: 5px 10px; text-decoration: none;
  color: #999; transition: background var(--transition), color var(--transition);
}
.lang-toggle a.active { background: var(--coral); color: white; }

.cart-btn {
  position: relative; background: var(--sun);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; text-decoration: none;
  transition: transform var(--transition);
}
.cart-btn:hover { transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--coral); color: white;
  font-size: 0.62rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column;
  gap: 5px; width: 36px;
}
.hamburger span {
  display: block; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: white; padding: 16px 24px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 190; flex-direction: column; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 11px 14px;
  border-radius: 10px; text-decoration: none;
  color: var(--dark); font-weight: 600; font-size: 0.95rem;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--cream); color: var(--coral); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: white;
  border: none; border-radius: 14px;
  padding: 13px 26px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,91,0.30);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,91,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--dark);
  border: 2px solid #e5e5e5; border-radius: 14px;
  padding: 11px 24px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--coral);
  border: none; padding: 0;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; text-decoration: none;
  transition: gap var(--transition);
}
.btn-ghost:hover { gap: 10px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block; background: var(--sun);
  color: var(--dark); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 10px;
}
.section-header p { color: var(--gray); margin-top: 8px; font-size: 1rem; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--dark);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }
.product-img {
  height: 200px; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.product-img.sand    { background: linear-gradient(135deg,#FFF0D6,#FFE4A0); }
.product-img.clay    { background: linear-gradient(135deg,#E8F5E9,#C8F0E0); }
.product-img.sensory { background: linear-gradient(135deg,#EDE7F6,#D1C4F5); }
.product-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--coral); color: white;
  font-size: 0.68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-badge.new { background: var(--mint); color: var(--dark); }
.product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--plum); }
.product-name { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.98rem; margin: 4px 0 6px; line-height: 1.3; }
.product-age { font-size: 0.75rem; color: #999; margin-bottom: auto; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.product-price { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.2rem; color: var(--coral); }
.add-cart {
  background: var(--dark); color: white; border: none;
  border-radius: 10px; width: 36px; height: 36px;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.add-cart:hover { background: var(--coral); }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

/* ===== CATEGORY CARD ===== */
.cat-card {
  background: white; border-radius: var(--radius);
  padding: 20px 12px; text-align: center;
  text-decoration: none; color: var(--dark);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
  border-top: 4px solid transparent;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.cat-card:nth-child(1) { border-top-color: var(--coral); }
.cat-card:nth-child(2) { border-top-color: var(--mint); }
.cat-card:nth-child(3) { border-top-color: var(--plum); }
.cat-card:nth-child(4) { border-top-color: var(--sky); }
.cat-card:nth-child(5) { border-top-color: var(--sun); }
.cat-card:nth-child(6) { border-top-color: var(--coral); }
.cat-card:nth-child(7) { border-top-color: var(--mint); }
.cat-emoji { font-size: 2.5rem; margin-bottom: 10px; }
.cat-name { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.98rem; margin-bottom: 5px; }
.cat-count { font-size: 0.76rem; color: #999; font-weight: 600; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
@media(max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== USP STRIP ===== */
.usp-strip { background: white; padding: 40px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.usp-icon { font-size: 2rem; margin-bottom: 8px; }
.usp-title { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.usp-desc { font-size: 0.78rem; color: #999; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 0.8rem; color: #aaa; padding: 16px 0 0; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { color: #ccc; margin: 0 6px; }

/* ===== FOOTER ===== */
#site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 0.84rem; line-height: 1.7; margin-top: 16px; }
.footer-contact { margin-top: 14px; font-size: 0.82rem; line-height: 1.9; font-style: normal; }
.footer-contact a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-contact a:hover { color: white; }
.footer-col h3 { color: white; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 800; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.84rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-col ul li span.footer-pay-icon { margin-right: 6px; }
.footer-col ul li { color: rgba(255,255,255,0.55); font-size: 0.84rem; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem;
}
.footer-copy { color: rgba(255,255,255,0.4); }
.footer-copy strong { color: rgba(255,255,255,0.65); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  border-radius: 8px; padding: 4px 10px;
  font-size: 0.72rem; font-weight: 700;
}

/* ===== NEWSLETTER ===== */
.newsletter { background: linear-gradient(135deg, var(--coral), var(--plum)); padding: 64px 0; text-align: center; color: white; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { opacity: 0.88; margin-bottom: 28px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input { flex: 1; padding: 13px 18px; border: none; border-radius: 14px; font-family: 'Nunito', sans-serif; font-size: 0.93rem; outline: none; }
.nl-form button { background: var(--sun); color: var(--dark); border: none; border-radius: 14px; padding: 13px 22px; font-family: 'Nunito', sans-serif; font-weight: 800; cursor: pointer; white-space: nowrap; transition: transform var(--transition); }
.nl-form button:hover { transform: scale(1.04); }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding: 28px 0 64px; }
.cart-table { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-table-header { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 12px; padding: 14px 24px; background: #f8f8f8; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #aaa; border-bottom: 1px solid #eee; }
.cart-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #f5f5f5; align-items: center; }
.cart-row:last-child { border-bottom: none; }
.product-thumb { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }
.thumb-sand    { background: linear-gradient(135deg,#FFF0D6,#FFE4A0); }
.thumb-clay    { background: linear-gradient(135deg,#E8F5E9,#C8F0E0); }
.thumb-sensory { background: linear-gradient(135deg,#EDE7F6,#D1C4F5); }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 28px; height: 28px; border: 2px solid #eee; border-radius: 8px; background: white; cursor: pointer; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: border-color var(--transition); }
.qty-btn:hover { border-color: var(--coral); color: var(--coral); }
.qty-value { width: 32px; text-align: center; font-weight: 700; }
.remove-btn { background: none; border: none; cursor: pointer; color: #ccc; font-size: 1.1rem; transition: color var(--transition); }
.remove-btn:hover { color: var(--coral); }

/* Cart summary */
.cart-summary { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.cart-summary h3 { margin-bottom: 20px; font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0 20px; font-size: 1.1rem; font-weight: 800; }
.free-badge { color: var(--mint); font-weight: 800; font-size: 0.82rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeUp 0.5s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  header nav { display: none; }
  .hamburger { display: flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-header { display: none; }
  .cart-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  section { padding: 48px 0; }
}

/* ===== MOBILE HEADER FIX ===== */

/* Iskanje — skrij na mobilnem, prikaži v mobile nav */
@media (max-width: 768px) {
  .header-search-form { display: none !important; }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
    gap: 8px;
    height: 60px;
  }
  .logo-icon  { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; flex-shrink: 0; }
  .logo-text  { font-size: 1.05rem; }
  .logo-sub   { display: none; }
  .logo       { gap: 7px; }
  .lang-toggle { border-radius: 8px; }
  .lang-toggle a { padding: 4px 7px; font-size: 0.7rem; }
  .cart-btn   { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; flex-shrink: 0; }
  .cart-badge { width: 16px; height: 16px; font-size: 0.58rem; }
  .hamburger  { width: 32px; padding: 4px; flex-shrink: 0; }
  .mobile-nav { padding: 12px 16px 20px; top: 60px; }
  .mobile-nav a { font-size: 1rem; padding: 12px 14px; }

  /* Kategorije — 2 stolpca na mobilnem */
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .cat-card { padding: 16px 10px; }
  .cat-emoji { font-size: 1.8rem; margin-bottom: 8px; }
  .cat-name { font-size: 0.78rem; }
  .cat-count { font-size: 0.68rem; }

  /* Hero */
  .hero { padding: 36px 0 28px; }
  .hero-title { font-size: 1.9rem; }

  /* Produktne kartice */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-img { height: 150px; font-size: 3.5rem; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.82rem; }
  .product-price { font-size: 1rem; }
  .add-cart { width: 32px; height: 32px; font-size: 1.1rem; }

  /* Blagajna */
  .checkout-layout { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: span 1 !important; }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .header-inner { padding: 0 20px; gap: 10px; }
}