/* ============================================================
   STOREKITT — storefront style
   ============================================================ */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body { margin: 0; padding: 0; background: #fafafa; font-family: 'Cabin', Arial, sans-serif; color: #262626; }
a { color: inherit; }

/* ---------- NAV ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 14px 32px; background: #fafafa; border-bottom: 1px solid #e6e6e6; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.nav-logo span { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #999; text-decoration: none; padding-bottom: 3px; transition: color .25s; }
.nav-links a:hover { color: #262626; }
.nav-links a.active { color: #262626; border-bottom: 2px solid #262626; }
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: 22px; }
.nav-cart { display: flex; align-items: center; position: relative; color: #262626; padding: 6px; }
.cart-badge { position: absolute; top: -4px; right: -6px; background: #262626; color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle.open .ico-menu { display: none; }
.nav-toggle.open .ico-close { display: block; }


/* ---------- HERO BIG (veliko ime + opis) ---------- */
.hero-big { text-align: center; padding: 110px 20px 60px; }
.hero-big h1 {
  font-family: 'Montserrat', sans-serif; font-size: 130px; font-weight: 900;
  margin: 0; color: #262626; text-transform: uppercase;
  letter-spacing: -14px; margin-left: -7px; line-height: 1; white-space: nowrap;
}
.hero-big h1 > span { text-shadow: -5px 0px 0px #fafafa; display: inline-block; }
.hero-big-sub { font-size: 17px; line-height: 1.9; color: #666; max-width: 620px; margin: 26px auto 0; }
.hero-big-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
@media only screen and (max-width: 767px) {
  .hero-big { padding: 70px 16px 40px; }
  .hero-big h1 { font-size: 64px; letter-spacing: -7px; margin-left: -4px; }
}

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 90px 20px 40px; }
.hero-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #2f6fed; margin: 0 0 14px; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 52px; font-weight: 900; margin: 0 0 16px; }
.hero p { font-size: 17px; color: #666; max-width: 560px; margin: 0 auto 30px; line-height: 1.8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; padding: 14px 32px; border-radius: 999px; transition: all .25s; cursor: pointer; border: 2px solid #262626; font-family: inherit; }
.btn-outline { color: #262626; background: transparent; }
.btn-outline:hover { color: #fff; background: #262626; }
.btn-dark { color: #fff; background: #262626; }
.btn-dark:hover { color: #262626; background: transparent; }

/* ---------- PRODUCT GRID ---------- */
.section-head { max-width: 1200px; margin: 0 auto; padding: 40px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 900; margin: 0; }
.p-grid { max-width: 1100px; margin: 0 auto; padding: 30px 24px 90px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.p-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; max-width: 100%; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(0,0,0,.12); }
.p-card-img { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 280px; background: #f2f2f2; overflow: hidden; border-radius: 18px 18px 0 0; }
.p-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .4s; }
.p-card-img { position: relative; overflow: hidden; }
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-img svg { width: 100%; height: 100%; }
.p-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #999; margin: 0; }
.p-name { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 900; margin: 0; line-height: 1.35; }
.p-name a { text-decoration: none; }
.p-name a:hover { text-decoration: underline; }
.p-rating { font-size: 13px; color: #777; margin: 0; }
.star { color: #f5a623; }
.p-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-author { font-size: 13px; color: #999; }
.p-price { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900; }

/* ---------- PRODUCT CARD SUBTITLE ---------- */
.p-subtitle { font-size: 11px; color: #999; margin: -4px 0 0; line-height: 1.4; }

/* ---------- PRODUCT PAGE ---------- */
.product-wrap { max-width: 1200px; margin: 0 auto; padding: 50px 24px 90px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.product-left { min-width: 0; }
.product-gallery { background: #fff; border: 1px solid #e6e6e6; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.product-gallery { position: relative; }
.product-gallery img { width: 100%; max-height: 520px; object-fit: contain; display: block; background: #fff; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbs img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid #e6e6e6; cursor: pointer; }
.product-thumbs img.active { border-color: #262626; }
.buy-box { background: #fff; border: 1px solid #e6e6e6; border-radius: 18px; box-shadow: 0 10px 34px rgba(0,0,0,.06); padding: 30px; position: sticky; top: 90px; }
.buy-box .price { font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 900; }
.buy-box .price small { font-family: 'Cabin', sans-serif; font-size: 14px; font-weight: 400; color: #999; }
.buy-box .includes { font-size: 13px; color: #666; line-height: 1.7; margin: 8px 0 20px; }
.buy-box .checks { list-style: none; margin: 0 0 22px; padding: 0; }
.buy-box .checks li { font-size: 14px; color: #444; padding: 7px 0 7px 26px; position: relative; }
.buy-box .checks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 2.5px solid #2e7d32; border-bottom: 2.5px solid #2e7d32; transform: rotate(-45deg); }
.buy-box .btn { width: 100%; margin-bottom: 12px; }
.guarantee { text-align: center; font-size: 12px; color: #999; margin: 6px 0 0; }
.product-desc { max-width: 1200px; margin: 0 auto; padding: 20px 24px 90px; }
.product-desc h2 { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; margin: 0 0 18px; }
.product-desc .desc-body { font-size: 15px; line-height: 1.9; color: #555; max-width: 720px; white-space: pre-wrap; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; margin-top: 26px; }
.spec-table td { padding: 13px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.spec-table td:first-child { color: #999; width: 45%; }
.spec-table td:last-child { font-weight: 700; text-align: right; }
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; color: #666; background: #f2f2f2; border-radius: 999px; padding: 6px 14px; }


/* ---------- What's included v buy boxu ---------- */
.bb-included { border-top: 1px solid #ececec; margin: 18px 0 20px; padding-top: 16px; }
.bb-included-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #999; margin: 0 0 10px; }
.bb-included-list { list-style: none; margin: 0; padding: 0; }
.bb-included-list li { font-size: 13px; line-height: 1.6; color: #555; padding: 6px 0 6px 22px; position: relative; }
.bb-included-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid #2e7d32; border-bottom: 2px solid #2e7d32; transform: rotate(-45deg); }

/* ---------- SHOP / CART / CHECKOUT ---------- */
.shop-wrap { max-width: 760px; margin: 0 auto; padding: 70px 20px 100px; text-align: center; }
.shop-wrap h1 { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
.shop-sub { font-size: 16px; line-height: 1.8; color: #666; max-width: 560px; margin: 0 auto 34px; }
.shop-error { font-size: 14px; color: #b00020; }
.shop-input { font-size: 15px; padding: 13px 16px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; width: 100%; }
.shop-input:focus { outline: none; border-color: #262626; }
.cart-lines { max-width: 640px; margin: 0 auto 8px; text-align: left; }
.cart-line { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.05); padding: 16px 20px; margin-bottom: 14px; }
.cart-line-img { flex: 0 0 76px; height: 76px; background: #fafafa; border: 1px solid #e6e6e6; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { display: block; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.cart-line-unit { display: block; font-size: 13px; color: #999; margin-bottom: 10px; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-stepper button { width: 34px; height: 34px; background: #fafafa; border: none; font-size: 17px; cursor: pointer; color: #262626; font-family: inherit; }
.qty-stepper button:hover { background: #efefef; }
.qty-val { min-width: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.cart-line-right { text-align: right; }
.cart-line-price { display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.link-btn { font-size: 13px; color: #999; background: none; border: none; cursor: pointer; text-decoration: underline; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; }
.link-btn:hover { color: #262626; }
.cart-summary { max-width: 640px; margin: 26px auto 0; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; background: #262626; color: #fff; border-radius: 14px; padding: 18px 24px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }
.cart-subtotal span:last-child { font-size: 24px; }
.cart-note { font-size: 13px; color: #999; margin: 14px 0 22px; text-align: center; }
.cart-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.checkout-summary { list-style: none; margin: 0 auto 30px; padding: 8px 26px; max-width: 480px; background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.05); text-align: left; }
.checkout-summary li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: #555; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.checkout-summary li:last-child { border-bottom: none; }
.checkout-summary .cs-total { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: #262626; font-size: 15px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { opacity: .18; margin-bottom: 20px; }
.empty-state p { font-size: 16px; color: #777; margin: 0 0 26px; }
.success-ico { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: #262626; color: #fff; margin-bottom: 26px; }
.success-ico svg { width: 34px; height: 34px; }

/* ---------- SUPPORT ---------- */
.support-wrap { max-width: 560px; margin: 0 auto; padding: 70px 20px 100px; text-align: center; }
.support-wrap h1 { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
.support-form { background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.08); padding: 30px; text-align: left; margin-top: 34px; }
.support-form label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #999; margin: 0 0 8px; }
.support-form input, .support-form textarea { width: 100%; font-size: 15px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 18px; font-family: inherit; box-sizing: border-box; }
.support-form input:focus, .support-form textarea:focus { outline: none; border-color: #262626; }
.support-err { font-size: 14px; color: #b00020; }
.support-ok { background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.08); padding: 44px 30px; margin-top: 34px; }
.support-ok h2 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 14px; }
.support-ok p { font-size: 15px; line-height: 1.8; color: #666; margin: 0; }

/* ---------- FOOTER + TOAST + 404 ---------- */
.site-footer { text-align: center; font-size: 13px; color: #999; padding: 28px 20px; border-top: 1px solid #e6e6e6; background: #fafafa; }
.toast { position: fixed; bottom: 26px; right: 26px; z-index: 9999; background: #262626; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; padding: 14px 26px; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.28); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; pointer-events: none; }
.toast.toast-show { opacity: 1; transform: translateY(0); }
.nf-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.nf-wrap h1 { font-family: 'Montserrat', sans-serif; font-size: 120px; font-weight: 900; margin: 0; letter-spacing: -6px; }
.nf-wrap p { color: #666; margin: 10px 0 30px; }

@media only screen and (max-width: 900px) {
  .product-wrap { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}
@media only screen and (max-width: 767px) {
  .site-nav { padding: 12px 18px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #e6e6e6; box-shadow: 0 20px 40px rgba(0,0,0,.10); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid #f0f0f0; }
  .nav-links a { display: block; padding: 15px 22px; }
  .nav-links a.active { border-bottom: none; background: #fafafa; }
  .hero { padding: 60px 20px 30px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .shop-wrap h1, .support-wrap h1 { font-size: 30px; }
  .cart-line { flex-wrap: wrap; }
  .cart-line-right { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .cart-line-price { margin-bottom: 0; }
  .nf-wrap h1 { font-size: 72px; }
  .toast { right: auto; left: 50%; transform: translate(-50%, 14px); bottom: 22px; }
  .toast.toast-show { transform: translate(-50%, 0); }
}


/* ---------- FIX: Slike se pravilno prilagodijo ---------- */
.p-card-img img,
.product-gallery img,
.cart-line-img img { 
    max-width: 100%; 
    max-height: 100%; 
}

/* Za zelo velike slike - omejimo višino */
@media only screen and (min-width: 768px) {
    .p-card-img { max-height: 260px; }
}

/* Za mobilne naprave */
@media only screen and (max-width: 767px) {
    .p-card-img { max-height: 220px; }
    .p-grid { grid-template-columns: 1fr; padding: 20px 16px 60px; }
    .product-gallery img { max-height: 320px; }
}


/* ---------- 404 ACTIONS ---------- */
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
    .nf-actions { flex-direction: column; align-items: center; gap: 12px; }
    .nf-actions .btn { width: 100%; max-width: 280px; }
}
