/* Avto Center Ljubljana — shared styles */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+0300-036F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+0300-036F;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --ink: oklch(0.19 0.014 50);
  --paper: oklch(0.98 0.006 70);
  --paper2: oklch(0.955 0.01 70);
  --accent: oklch(0.64 0.19 41);
  --accent-dark: oklch(0.52 0.17 40);
  --steel: oklch(0.42 0.03 240);
  --text: oklch(0.22 0.01 50);
  --muted: oklch(0.48 0.01 50);
  --line: oklch(0.88 0.008 60);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Oswald', 'Arial Narrow', sans-serif; }

.avc-link { text-decoration: none; opacity: 0.85; }
.avc-link:hover, .avc-link.active { opacity: 1 !important; color: var(--accent) !important; }
.avc-btn:hover { background: var(--accent-dark) !important; }
.avc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px oklch(0.2 0.02 50 / 0.12); }
.avc-row:hover { background: var(--paper2) !important; }
input:focus, textarea:focus { outline: 2px solid var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: oklch(0.97 0.01 60);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--ink); font-size: 18px;
}
.brand-name { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.5px; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.btn {
  background: var(--accent); color: var(--ink); padding: 10px 18px; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  border: none; cursor: pointer; font-family: inherit; display: inline-block;
}
.btn-lg { padding: 15px 26px; border-radius: 5px; font-weight: 700; font-size: 16px; }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  padding: 15px 26px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 16px;
}
.cart-btn {
  background: var(--paper); color: var(--ink); border: none; padding: 10px 16px; border-radius: 4px;
  font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.cart-count { background: var(--accent); color: var(--ink); border-radius: 10px; padding: 1px 8px; font-size: 12px; }

/* Layout helpers */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-legal { max-width: 760px; margin: 0 auto; padding: 56px 32px 80px; }
.eyebrow {
  display: inline-block; background: var(--paper2); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--steel); font-weight: 600;
  margin-bottom: 16px;
}
.section { padding: 72px 32px; }
.section-tight { padding: 56px 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  text-decoration: none; color: inherit; background: var(--paper2); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px; transition: transform 0.2s, box-shadow 0.2s;
}
.photo-frame {
  border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line);
  background: var(--paper2);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero {
  padding: 88px 32px 72px; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { font-weight: 700; font-size: 52px; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.5px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--ink); }
.hero-stats .label { font-size: 13px; color: var(--muted); }

.strip {
  background: var(--ink); color: oklch(0.95 0.01 60); padding: 22px 32px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; font-size: 14px;
}

/* Footer */
.site-footer { background: var(--ink); color: oklch(0.85 0.01 60); padding: 56px 32px 24px; }
.site-footer.compact { padding: 40px 32px 24px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-col-title { font-weight: 600; color: oklch(0.97 0.01 60); margin-bottom: 12px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { text-decoration: none; color: oklch(0.75 0.01 60); }
.footer-bottom {
  max-width: 1200px; margin: 36px auto 0; border-top: 1px solid oklch(0.32 0.015 50);
  padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: oklch(0.65 0.01 60);
}
.footer-simple {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: oklch(0.65 0.01 60);
}
.footer-simple a { text-decoration: none; color: oklch(0.65 0.01 60); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: oklch(0.95 0.01 60);
  padding: 18px 32px; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; z-index: 100; box-shadow: 0 -8px 24px oklch(0.1 0.02 50 / 0.25);
}
.cookie-banner p { margin: 0; font-size: 13px; max-width: 640px; line-height: 1.5; color: oklch(0.85 0.01 60); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { padding: 10px 18px; border-radius: 5px; font-size: 13px; cursor: pointer; font-family: inherit; }
.cookie-reject { background: transparent; border: 1px solid oklch(0.5 0.01 60); color: oklch(0.9 0.01 60); }
.cookie-accept { background: var(--accent); border: none; color: var(--ink); font-weight: 700; }

/* Forms */
.avc-form { display: flex; flex-direction: column; gap: 14px; background: var(--paper2); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.avc-form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.avc-form input, .avc-form textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 14px; background: var(--paper); color: var(--text); font-family: inherit; resize: vertical;
}
.avc-form button[type="submit"] {
  background: var(--accent); color: var(--ink); border: none; padding: 14px; border-radius: 6px;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.form-note { font-size: 11px; color: var(--muted); margin: 0; }
.form-note a { color: var(--steel); }
.form-success {
  background: var(--paper2); border: 1px solid var(--line); border-radius: 10px; padding: 36px; text-align: center;
}

/* Shop */
.product-card { background: var(--paper2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 11px; color: var(--steel); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.product-name { font-family: 'Oswald', sans-serif; font-size: 16px; margin: 0; }
.product-desc { font-size: 12px; color: var(--muted); margin: 0; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.product-price { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.add-btn { background: var(--accent); color: var(--ink); border: none; padding: 9px 14px; border-radius: 5px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }

.cart-overlay { position: fixed; inset: 0; background: oklch(0.15 0.01 50 / 0.5); z-index: 90; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; background: var(--paper);
  z-index: 91; box-shadow: -12px 0 32px oklch(0.1 0.02 50 / 0.2); display: flex; flex-direction: column;
}
.cart-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cart-item img { width: 54px; height: 54px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-price { font-size: 12px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; cursor: pointer; font-family: inherit; }
.cart-empty { color: var(--muted); font-size: 14px; text-align: center; margin-top: 40px; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.checkout-btn { width: 100%; background: var(--accent); color: var(--ink); border: none; padding: 14px; border-radius: 6px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }

.modal-overlay { position: fixed; inset: 0; background: oklch(0.15 0.01 50 / 0.55); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--paper); border-radius: 12px; padding: 36px; max-width: 380px; width: 100%; text-align: center; }
.modal-box .avc-form { text-align: left; padding: 0; background: none; border: none; }
.modal-close-btn { background: var(--accent); color: var(--ink); border: none; padding: 12px 24px; border-radius: 6px; font-weight: 700; cursor: pointer; font-family: inherit; }

.legal-block { display: flex; flex-direction: column; gap: 26px; font-size: 14px; line-height: 1.75; color: var(--text); }
.legal-block h2 { font-size: 18px; margin: 0 0 8px; }
.legal-block p { margin: 0; }
.cookie-list-item { background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 20px; }
  .hero h1 { font-size: 38px; }
  .site-header { padding: 14px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section, .section-tight { padding: 48px 20px; }
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
