/*
Theme Name: Velora — Astra Child
Description: Velora shop — warm wood palette, zgrabi-style structure, WooCommerce-ready.
Template: astra
Author: Content Factory
Version: 1.0.0
Text Domain: copysajttest-child
*/

/* Velora wood palette */
:root {
  --ve-primary:   #8B4513;
  --ve-secondary: #CD853F;
  --ve-accent:    #C0392B;
  --ve-bg:        #FAF6F1;
  --ve-surface:   #FFFFFF;
  --ve-text:      #2C1810;
  --ve-muted:     #8B7E74;
  --ve-border:    #E8DFD3;

  --ve-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ve-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--ve-font-body);
  color: var(--ve-text);
  background: var(--ve-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ve-font-heading);
  color: var(--ve-text);
  font-weight: 700;
}

a { color: var(--ve-primary); transition: color 0.15s ease; }
a:hover { color: var(--ve-accent); }

/* Buttons */
.ast-button,
.button,
button[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--ve-primary);
  border-color: var(--ve-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.05s ease;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover {
  background-color: var(--ve-accent);
  border-color: var(--ve-accent);
  color: #fff !important;
}

/* WooCommerce price */
.woocommerce .price,
.price ins,
.woocommerce-Price-amount,
.woocommerce ul.products li.product .price {
  color: var(--ve-primary);
  font-weight: 800;
}

/* Text color hard reset: tamna slova kako je traženo */
body, p, span, li, td, th, label, input, textarea, select,
.site, .site-content, .entry-content,
.woocommerce, .woocommerce-page,
.ast-container, .hentry {
  color: var(--ve-text);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title,
.woocommerce .product h1, .woocommerce .product h2 {
  color: var(--ve-text) !important;
  font-weight: 600;
}

/* =============================================
   Mobile-first fixes — appended 2026-04-28
   Source: 01_Blueprints_CORE/mobile-first-pattern/
   ============================================= */

/* ============================================
   CF MOBILE-FIRST PATTERN v1.0
   Copy ovaj fajl u: <child-theme>/assets/css/mobile-first.css
   Enqueue u functions.php — vidi inline-template-pattern.md
   ============================================ */

/* ---------- 1. GLOBAL SAFETY NET ---------- */
/* Sprečava bilo kakav element da forsira horizontalni scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Sve slike i video — fluid */
img, video, svg, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ---------- 2. RESPONSIVE GRID UTILITIES ---------- */
/* Generic grid klase — koriste mobile-first ascending media queries */

.cf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Tablet — 2 kolone */
@media (min-width: 768px) {
  .cf-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Desktop — 3-4 kolone */
@media (min-width: 1024px) {
  .cf-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .cf-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* ---------- 3. ARCHIVE / CATEGORY GRID FORCE-OVERRIDE ---------- */
/* Mobile override za bilo koji `archive-grid`, `category-grid`, `cats-grid` */
/* Koristi !important jer inline grid-template-columns u PHP-u inače pobeđuje */

@media (max-width: 767px) {
  .archive-grid,
  .category-grid,
  .cats-grid,
  .post-grid,
  .blog-grid,
  [class*="-grid"]:not(.cf-no-mobile-override) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .archive-grid,
  .category-grid,
  .post-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* ---------- 4. CONTAINER PADDING ---------- */
/* Container ne sme da ima 40px padding na mobilnom — gubi se 80px = 21% širine na 375px */

@media (max-width: 767px) {
  .archive-container,
  .archive-hero-header,
  .cats-content-section,
  [class*="-container"],
  [class*="-hero"],
  main > section,
  main > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .archive-hero-header {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
}

@media (max-width: 480px) {
  .archive-container,
  [class*="-container"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ---------- 5. FOOTER GRID COLLAPSE ---------- */
/* Footer u CF sajtovima često ima 3-4 kolone — MORA flex/grid column na mobile */

@media (max-width: 767px) {
  footer > div > div[style*="grid-template-columns"],
  .site-footer-grid,
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  footer {
    padding: 48px 20px !important;
  }

  footer h4 {
    margin-bottom: 12px !important;
  }

  /* Bottom bar (copyright + meta) — stack na mobilnom */
  footer .footer-bottom,
  footer > div > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }
}

/* ---------- 6. NAV / HEADER ---------- */
/* Hamburger pattern — desktop nav sakriven, mobile hamburger vidljiv */

@media (max-width: 767px) {
  .desktop-nav,
  nav.main-navigation > ul,
  .menu-primary-menu-container {
    display: none !important;
  }

  .mobile-menu-toggle,
  .hamburger-btn {
    display: flex !important;
  }

  /* Logo + hamburger — flex row, ne overflow */
  header,
  header > div {
    flex-wrap: nowrap !important;
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle,
  .hamburger-btn,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ---------- 7. TYPOGRAPHY ---------- */
/* Min font 16px na mobile (iOS zoom prevention pri focus na input) */

@media (max-width: 767px) {
  body {
    font-size: 16px !important;
  }

  h1 { font-size: clamp(28px, 7vw, 40px) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(22px, 5.5vw, 32px) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(18px, 4.5vw, 24px) !important; line-height: 1.3 !important; }

  /* Input/textarea — sprečava iOS auto-zoom */
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ---------- 8. TOUCH TARGETS ---------- */
/* Apple HIG + Material Design — min 44x44px za sve clickable elemente */

@media (max-width: 767px) {
  a, button, .btn,
  input[type="submit"],
  input[type="button"],
  .menu-item a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Inline links u tekstu — ne forsiraj height */
  p a, li a, span a {
    min-height: auto;
  }
}

/* ---------- 9. HERO / VIDEO SECTIONS ---------- */
/* Naučeno iz AIHT propusta:
   1. `width:100vw` inline na hero sekciji forsira overflow
   2. `height:100vh` na Android Chrome-u UKLJUČUJE prostor URL bar-a → vertikalno centriran
      sadržaj počinje previsoko, naslov se odseče vrhom
   Rešenje: `100svh` (small viewport height) ili `100dvh` (dynamic)
   Support: iOS 15.4+, Chrome 108+ (svi savremeni mobile browser-i 2023+) */

@media (max-width: 767px) {
  [id*="video-section"],
  [id*="hero"],
  #hero,
  .hero-section,
  .video-hero {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    height: auto !important;
    min-height: 60vh !important;
    min-height: 100svh !important; /* override za full-screen hero — stabilno na Android URL bar */
  }

  /* Hero sadržaj — minimum 80px padding-top za buffer od sticky header-a + URL bar-a */
  [id*="hero"] > .hero-content,
  [id*="hero"] > div,
  .hero-content {
    padding-top: 80px !important;
  }

  /* Hero naslovi — clamp da ne preraste viewport */
  .hero-headline,
  [id*="hero"] h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    line-height: 1.15 !important;
  }

  /* Kartice unutar hero/scroll sekcija — column stack */
  .ecg-cards-row,
  .scroll-cards-row,
  .hero-cards {
    position: relative !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px 16px !important;
    gap: 16px !important;
  }
}

/* ---------- 10. SINGLE POST ---------- */
/* `width:100vw` trick za full-bleed efekat = overflow na mobile */

@media (max-width: 767px) {
  .single-post-content,
  .stub-post-main,
  article.post,
  .entry-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .single-post-content img,
  .entry-content img {
    width: 100% !important;
    height: auto !important;
  }
}

/* ---------- 11. WOOCOMMERCE SHOP (e-commerce sites) ---------- */
/* Aktiviraj samo na shop sajtovima — vidi ecommerce-additions.md */

@media (max-width: 767px) {
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
  }

  /* Add-to-cart full-width na mobile */
  .woocommerce .product .button,
  .single_add_to_cart_button {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  /* Vrlo uski uređaji — 1 kolona */
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 12. WEBKIT VIDEO PLAYSINLINE ---------- */
/* JS helper class — dodaje webkit-playsinline na sve video tagove na load */
/* Vidi inline-template-pattern.md za JS */
video.cf-mobile-safe {
  -webkit-playsinline: true;
}

/* ============================================================
   13. MOBILE HEADER FIX (added 2026-05-05)
   - Hide desktop nav/search on small screens
   - Show hamburger toggle + slide-in menu
   - Compact cart (icon + count only)
   - WhatsApp button reposition (no overlap with CTAs)
   ============================================================ */

.ve-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ve-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ve-text);
  padding: 0;
  flex-shrink: 0;
}

.ve-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.98);
  z-index: 9999;
  flex-direction: column;
  padding: 80px 24px 32px;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ve-mobile-menu.is-open {
  display: flex;
}

.ve-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 0;
}

.ve-mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 24px;
}

.ve-mobile-search input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: transparent;
}

.ve-mobile-nav,
.ve-mobile-nav ul.velora-mobile-nav {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ve-mobile-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ve-mobile-nav a:active,
.ve-mobile-nav a:hover {
  color: var(--ve-accent, #FFB347);
}

.ve-mobile-cart-link,
.ve-mobile-checkout-link {
  display: block;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  padding: 16px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 16px;
  min-height: 52px;
}

.ve-mobile-cart-link {
  background: #fff;
  color: var(--ve-primary, #C8511C);
  border: 2px solid #fff;
}

.ve-mobile-checkout-link {
  background: var(--ve-primary, #C8511C);
  color: #fff;
}

body.ve-menu-open {
  overflow: hidden;
}

/* ---- Mobile breakpoint: <992px ---- */
@media (max-width: 991px) {
  .ve-header-inner {
    gap: 12px !important;
    padding: 12px 16px !important;
    flex-wrap: nowrap !important;
  }

  .ve-nav-desktop,
  .ve-search-desktop {
    display: none !important;
  }

  .ve-mobile-toggle {
    display: flex !important;
  }

  .ve-cart {
    margin-left: auto;
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  .ve-cart .ve-cart-label {
    display: none !important;
  }

  .ve-logo img {
    height: 32px !important;
  }

  .ve-logo span:last-child {
    font-size: 20px !important;
  }
}

/* ---- WhatsApp floating button — mobile reposition ---- */
@media (max-width: 767px) {
  a[aria-label="Pošaljite WhatsApp poruku"] {
    width: 52px !important;
    height: 52px !important;
    bottom: 92px !important;
    right: 14px !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45) !important;
  }
  a[aria-label="Pošaljite WhatsApp poruku"] svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ---- Tiny screens (<380px) — even more compact ---- */
@media (max-width: 380px) {
  .ve-header-inner {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .ve-logo span:last-child {
    font-size: 18px !important;
  }
  .ve-cart {
    padding: 8px 10px !important;
  }
}

/* ============================================================
   14. MOBILE FIX V2 (added 2026-05-05) — toast, ticker, images
   ============================================================ */

/* ---- Cart toast notification ---- */
#ve-cart-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #1a8c3c;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 99999;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex !important;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
#ve-cart-toast .ve-toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: #1a8c3c;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}
#ve-cart-toast .ve-toast-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
#ve-cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (max-width: 480px) {
  #ve-cart-toast {
    top: 76px;
    font-size: 13px;
    padding: 10px 14px;
    gap: 8px;
  }
}

/* ---- Promo bar (Besplatna dostava) — kompaktnije na mobile ---- */
@media (max-width: 480px) {
  body > div[style*="ve-accent"] {
    font-size: 11px !important;
    padding: 6px 10px !important;
    line-height: 1.35;
    gap: 6px !important;
  }
  body > div[style*="ve-accent"] svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0;
  }
}

/* ---- Ticker — brže + manji font + manji gap na mobile ---- */
@media (max-width: 768px) {
  .ve-ticker {
    padding: 6px 0 !important;
  }
  .ve-ticker-track {
    animation-duration: 22s !important;
    gap: 28px !important;
    padding: 0 16px !important;
  }
  .ve-ticker-track > span {
    font-size: 12px !important;
    gap: 6px !important;
  }
  .ve-ticker-track > span > span:first-child {
    font-size: 14px !important;
  }
}

/* ---- Header inner — manji padding sa strane na mobile ---- */
@media (max-width: 480px) {
  .ve-header-inner {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
}

/* ---- Product grid images — uniform 1:1 + neutralna pozadina ---- */
.woocommerce ul.products li.product .wp-post-image,
.woocommerce ul.products li.product img,
.woocommerce-loop-product__link img,
ul.products li.product a > img,
ul.products li.product .attachment-woocommerce_thumbnail {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  background: #FAFAF5 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border: 1px solid #EFE9DD;
}

/* Hover suptilan */
.woocommerce ul.products li.product a:hover img {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Single product — glavne slike ostaju kako jesu (ne primenjuj uniform) */
.woocommerce div.product div.images img,
.single-product .wp-post-image {
  aspect-ratio: auto !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ---- Add to Cart dugme — full width unutar card ---- */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart {
  display: block !important;
  width: calc(100% - 20px) !important;
  margin: 12px 10px 16px !important;
  text-align: center !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
}

/* ============================================================
   15. MOBILE FIX V3 (added 2026-05-05) — hero, card padding
   ============================================================ */

/* ---- Hero slider — kompaktniji + smoother na mobile ---- */
@media (max-width: 768px) {
  .ve-hero-slide {
    padding: 64px 16px !important;
    background-position: center center !important;
    background-size: cover !important;
    min-height: 480px;
  }
  .ve-hero-slide h1 {
    font-size: clamp(26px, 7vw, 38px) !important;
  }
  .ve-hero-slide p {
    font-size: 14.5px !important;
  }
  .ve-hero-slide a {
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  .ve-hero-track {
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0.32, 0.96) !important;
  }
}

@media (max-width: 480px) {
  .ve-hero-slide {
    padding: 48px 14px !important;
    min-height: 440px;
  }
  .ve-hero-prev, .ve-hero-next {
    display: none !important; /* slajdovi se menjaju swipe-om / bar dugmićima */
  }
}

/* ---- Product card padding — smanji praznine, više prostora za content ---- */
@media (max-width: 767px) {
  .woocommerce ul.products li.product {
    padding: 4px !important;
  }

  .woocommerce ul.products li.product .wp-post-image,
  .woocommerce ul.products li.product img,
  .woocommerce-loop-product__link img,
  ul.products li.product a > img,
  ul.products li.product .attachment-woocommerce_thumbnail {
    padding: 6px !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.35 !important;
    padding: 0 4px !important;
    margin: 4px 0 !important;
    /* Skrati naslov na 2 reda */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 15px !important;
    padding: 0 4px !important;
    margin: 4px 0 8px !important;
  }

  .woocommerce ul.products li.product .button.add_to_cart_button,
  .woocommerce ul.products li.product .added_to_cart {
    margin: 8px 4px 8px !important;
    width: calc(100% - 8px) !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  /* Kategorija label iznad naslova */
  .woocommerce ul.products li.product .product_cat,
  .woocommerce ul.products li.product .category-label {
    font-size: 11px !important;
    padding: 0 4px !important;
  }
}

/* ---- Tiny screens (<380px) — još kompaktnije ---- */
@media (max-width: 380px) {
  .woocommerce ul.products li.product {
    padding: 2px !important;
  }

  .woocommerce ul.products li.product .button.add_to_cart_button {
    font-size: 12px !important;
    padding: 9px 8px !important;
  }
}

/* ---- Hero "5 of 5" indikator — sakriven jer već imamo bars ---- */
.ve-hero-counter {
  display: none !important;
}

/* ============================================================
   16. MOBILE FIX V4 (added 2026-05-05) — hero dots, image
   ============================================================ */

/* ---- Hero slider bars — force pill shape, override theme defaults ---- */
.ve-hero-bar,
.ve-hero-bars button.ve-hero-bar {
  height: 4px !important;
  min-height: 4px !important;
  max-height: 4px !important;
  width: 32px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 0 !important;
  border-radius: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.ve-hero-bar:hover {
  background: rgba(255, 255, 255, 0.65) !important;
}

.ve-hero-bar.is-active {
  width: 56px !important;
  background: rgba(255, 255, 255, 1) !important;
}

.ve-hero-bar-fill {
  display: none !important; /* full white when active je dovoljno */
}

/* ---- Mobile: dots umesto bars (modern, clean) ---- */
@media (max-width: 480px) {
  .ve-hero-bar,
  .ve-hero-bars button.ve-hero-bar {
    width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.45) !important;
  }
  .ve-hero-bar.is-active {
    width: 24px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: #fff !important;
  }
  .ve-hero-bars {
    bottom: 18px !important;
    gap: 6px !important;
  }
}

/* ---- Product image — smanji padding, suptilan border ---- */
.woocommerce ul.products li.product .wp-post-image,
.woocommerce ul.products li.product img,
.woocommerce-loop-product__link img,
ul.products li.product a > img,
ul.products li.product .attachment-woocommerce_thumbnail {
  padding: 2px !important;
  background: #fff !important;
  border: 1px solid #F0E9DD !important;
  border-radius: 8px !important;
}

/* Mobile image — još manji padding */
@media (max-width: 767px) {
  .woocommerce ul.products li.product .wp-post-image,
  .woocommerce ul.products li.product img,
  .woocommerce-loop-product__link img,
  ul.products li.product a > img,
  ul.products li.product .attachment-woocommerce_thumbnail {
    padding: 0 !important;
    border-radius: 6px !important;
  }
}

/* ---- Hero CTA buttons — wrap CTA + WhatsApp better na mobile ---- */
@media (max-width: 480px) {
  .ve-hero-slide a[style*="background:var(--ve-accent)"],
  .ve-hero-slide a[style*="background:rgba(255,255,255,0.15)"] {
    width: auto !important;
    max-width: 280px;
    padding: 13px 22px !important;
    font-size: 14px !important;
  }
}

/* ============================================================
   17. MOBILE FIX V5 (added 2026-05-05) — body bg, hero overflow
   ============================================================ */

/* ---- iOS Safari: kill white status-bar buffer ---- */
html, body {
  background-color: #C0392B !important; /* match promo bar (--ve-accent) */
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Main content background — keep page light */
main {
  background-color: var(--ve-bg, #FAF6EE);
  width: 100%;
  display: block;
}

/* Header + ticker + promo bar — full width on mobile */
.ve-header,
.ve-ticker,
body > div[style*="ve-accent"] {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* ---- Hero overflow — STRICT 100vw, no slide bleed ---- */
.ve-hero {
  width: 100vw !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box;
}

.ve-hero-track {
  display: flex !important;
  width: max-content !important; /* fix flex sizing on mobile webkit */
  will-change: transform;
}

.ve-hero-slide {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  box-sizing: border-box !important;
}

/* ---- Footer + sections — also 100% width-safe ---- */
footer {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

/* ---- Belina around inline sections — pad inside, not via margin ---- */
@media (max-width: 767px) {
  body section,
  body > main > section {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ============================================================
   18. FINAL FIXES (added 2026-05-05) — static hero mobile, main height, cart force
   ============================================================ */

/* ===== A) Static hero on mobile — kill slider, show first slide only ===== */
@media (max-width: 768px) {
  .ve-hero-track {
    transform: none !important;
    transition: none !important;
    width: 100vw !important;
    display: block !important;
  }
  .ve-hero-slide {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }
  .ve-hero-slide:not(:first-child) {
    display: none !important;
  }
  .ve-hero-prev,
  .ve-hero-next,
  .ve-hero-bars {
    display: none !important;
  }
}

/* ===== B) Kill <main min-height:70vh> on mobile (causes empty white space) ===== */
@media (max-width: 768px) {
  main[style*="min-height"] {
    min-height: auto !important;
  }
}

/* ===== C) Empty-cart page — better empty state ===== */
.woocommerce-cart .cart-empty.woocommerce-info {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  margin: 20px;
  font-size: 16px;
}

/* ===== D) Cart count badge — also catch fragments via different selectors ===== */
.cart-contents-count,
.ve-cart-count {
  background: #fff !important;
  color: var(--ve-primary) !important;
  border-radius: 99px !important;
  padding: 1px 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  min-width: 20px !important;
  text-align: center !important;
}

/* ============================================================
   19. SHIP-IT FINAL (added 2026-05-05) — clean mobile hero, edge-to-edge
   ============================================================ */

/* ---- Mobile: hero = solid warm gradient (no image cropping pain) ---- */
@media (max-width: 768px) {
  .ve-hero-slide,
  .ve-hero-slide:first-child {
    background-image: none !important;
    background: linear-gradient(135deg, #8B4513 0%, #C0392B 55%, #E67E22 100%) !important;
    padding: 56px 20px !important;
    min-height: 340px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  /* Skri dark overlay (više nije potreban — gradient je sam već "background") */
  .ve-hero-slide > div[aria-hidden="true"] {
    display: none !important;
  }
  /* Hero strict 100vw */
  .ve-hero,
  .ve-hero-track,
  .ve-hero-slide {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ---- Edge-to-edge: zero side margin/padding na header inner mobile ---- */
@media (max-width: 480px) {
  .ve-header-inner {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .ve-logo {
    margin-left: 0 !important;
  }
}

/* ---- Force html/body to viewport width — kill iOS Safari side gap ---- */
html, body {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* All direct body children — full width, no rogue margins */
body > * {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* ---- Ensure promo bar + ticker truly full width (no gap) ---- */
body > div[style*="ve-accent"],
.ve-ticker {
  width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* ============================================================
   20. DESKTOP RESTORE + MOBILE IMAGEN HERO (added 2026-05-05)
   ============================================================ */

@media (min-width: 769px) {
  .ve-hero {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ve-hero-track {
    display: flex !important;
    width: 100% !important;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
  }
  .ve-hero-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 768px) {
  .ve-hero-slide,
  .ve-hero-slide:first-child {
    background: #2C1810 url("/wp-content/themes/copysajttest-child/assets/velora-hero-mobile.jpg") center 30%/cover no-repeat !important;
    background-image: url("/wp-content/themes/copysajttest-child/assets/velora-hero-mobile.jpg") !important;
    padding: 80px 20px !important;
    min-height: 480px !important;
    position: relative !important;
  }
  .ve-hero-slide > div[aria-hidden="true"] {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(20,12,6,0.35) 0%, rgba(20,12,6,0.65) 70%, rgba(20,12,6,0.85) 100%) !important;
  }
}

/* ============================================================
   21. SHIP-IT FINAL FINAL — full edge-to-edge mobile (added 2026-05-05)
   ============================================================ */

@media (max-width: 768px) {
  html, body {
    background: #FAF6EE !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  body > *,
  .ve-header,
  .ve-hero,
  .ve-ticker,
  body > div[style*="ve-accent"],
  footer,
  main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ve-header-inner {
    padding: 10px 8px !important;
    gap: 6px !important;
  }
  /* CTA dugmiće — wrap manje, ne overflow */
  .ve-hero-slide a[style*="background:var(--ve-accent)"] {
    padding: 12px 18px !important;
    font-size: 13.5px !important;
  }
  .ve-hero-slide a[style*="rgba(255,255,255,0.15)"] {
    padding: 12px 16px !important;
    font-size: 13.5px !important;
  }
  /* Hero CTA wrapper — flex wrap */
  .ve-hero-slide > div > div:last-child {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
}

/* ============================================================
   22. CTA stack mobile — Pogledaj ponudu / WhatsApp jedan ispod drugog
   ============================================================ */
@media (max-width: 480px) {
  .ve-hero-slide [style*="display:flex"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    gap: 10px !important;
  }
  .ve-hero-slide a {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
  }
}
