/* =====================================================
   FOREVER MLADI - SUPTILNA POBOLJŠANJA
   Samo male izmene koje poboljšavaju UX
   ===================================================== */

/* Smooth scroll za čitav sajt */
html {
    scroll-behavior: smooth;
}

/* Bolja animacija za linkove */
a {
    transition: all 0.3s ease !important;
}

/* Header poboljšanja - samo dodaci, bez menjanja postojećeg */
.header_area.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Basket count malo lepši */
.basket-count {
    font-weight: 600;
    text-shadow: none;
}

/* Product hover efekat - suptilan */
.single_gallery_item {
    transition: transform 0.3s ease;
}

.single_gallery_item:hover {
    transform: translateY(-5px);
}

/* Product image hover */
.product-img {
    overflow: hidden;
    border-radius: 4px;
}

.product-img img {
    transition: transform 0.5s ease;
}

.single_gallery_item:hover .product-img img {
    transform: scale(1.05);
}

/* Button hover poboljšanje */
.karl-btn {
    transition: all 0.3s ease !important;
}

.karl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer social icons hover */
.footer_social_area a {
    transition: all 0.3s ease;
}

.footer_social_area a:hover {
    transform: translateY(-3px);
}

/* Cart button hover */
.cart-submit:hover,
.btn-cart:hover,
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Smooth quantity controls */
.qty-minus, .qty-plus {
    transition: all 0.2s ease;
}

.qty-minus:hover, .qty-plus:hover {
    background-color: #f5f5f5;
}

/* Better focus states za accessibility — samo form elementi */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: none;
}

/* =====================================================
   LOADER — LUXURY REFINEMENTS
   ===================================================== */

/* Overlay — bijeli umjesto crnog */
#overlay {
    background-color: rgba(255, 255, 255, 0.88) !important;
}

/* Spinner — tanak elegantni krug */
.loading {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #ddd !important;
    border-top: 1px solid #111 !important;
    border-radius: 50% !important;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pagination hover */
.page-link {
    transition: all 0.3s ease;
}

.page-link:hover {
    transform: translateY(-2px);
}

/* Filter buttons hover */
.portfolio-menu .btn {
    transition: all 0.3s ease;
}

.portfolio-menu .btn:hover {
    transform: translateY(-2px);
}

/* Responsive image loading - fade in */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0.5;
}

img.loaded {
    opacity: 1;
}

/* Better scrollbar za webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile touch feedback */
@media (hover: none) {
    .karl-btn:active {
        transform: scale(0.98);
    }

    .page-link:active {
        transform: scale(0.95);
    }
}

/* Prevent layout shift */
.header_area {
    will-change: transform;
}

/* =====================================================
   STICKY HEADER — tamne ikonice kad izađe iz hero zone
   ===================================================== */

header.sticky .nav-menu-btn,
header.sticky .nav-menu-btn i {
    color: #222 !important;
    opacity: 1 !important;
}

header.sticky .my-icon-cart path {
    stroke: #222 !important;
}

header.sticky .basket-count {
    color: #555 !important;
}

header.sticky img[alt="Mladi logo"] {
    filter: invert(1) !important;
}

/* Better image aspect ratio - NE MENJAMO POSTOJEĆE */
/* Postojeći CSS već ima dobre stilove za slike */

/* Newsletter form focus */
.subscribtion_form .mail:focus {
    border-color: #ff084e;
}

/* =====================================================
   BASKET MODAL — LUXURY REFINEMENTS
   ===================================================== */

/* Overlay — bijeli blur */
.basket-dropdown {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Modal kartica — bez rounded, bez shadow */
.basket-dropdown .basket-list {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid #f0f0f0 !important;
    padding: 32px !important;
    width: 420px !important;
    max-width: 90vw !important;
}

/* "Select a Product" heading */
.list-selected-product .no-product .cart-item-desc h6 {
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    text-align: center !important;
    margin: 16px 0 !important;
}

/* Product name u korpi */
.list-selected-product li .nameProductCart {
    font-size: 9px !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #111 !important;
}

/* Qty/price redak */
.list-selected-product li .count_article {
    font-size: 9px !important;
    color: #999 !important;
    font-style: normal !important;
    letter-spacing: 0.06em !important;
}

/* Separator linije */
.list-selected-product li {
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
}

.list-selected-product li.total {
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 16px !important;
    margin-top: 0 !important;
}

/* Total iznos */
.list-selected-product li.total span.pull-right {
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    color: #111 !important;
}

/* Cart + Checkout dugmad — bez boje, editorial stil */
.list-selected-product li.total a,
.btn-cart,
.btn-checkout {
    background-color: transparent !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease !important;
}

.list-selected-product li.total a:hover,
.btn-cart:hover,
.btn-checkout:hover {
    background-color: #111 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Close (X) dugme u basket modalu */
.basket-list .nav-close {
    color: #bbb !important;
    font-size: 12px !important;
    margin: 0 !important;
    top: 20px !important;
    right: 20px !important;
}

.basket-list .nav-close:hover {
    color: #111 !important;
}

/* Navigation smoother */
.navigation {
    transition: all 0.3s ease;
}

/* =====================================================
   NAVIGATION MODAL — LUXURY REFINEMENTS
   ===================================================== */

/* Overlay — čisto bijelo umjesto tamnog */
.navigation {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal kartica — bez rounded, bez shadow */
.navigation .nav-items {
    position: relative !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 64px 80px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 320px;
    border: 1px solid #f0f0f0;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    place-content: unset !important;
}

/* Nav linkovi — editorial uppercase, centrirani */
.navigation .nav-items a {
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    margin: 12px 0 !important;
    display: block !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.navigation .nav-items a:hover {
    color: #111 !important;
}

/* Close button — gornji desni ugao kartice */
.navigation .nav-items .nav-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    bottom: auto !important;
    left: auto !important;
    color: #bbb !important;
    font-size: 12px !important;
    margin: 0 !important;
    display: block !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.navigation .nav-items .nav-close-btn:hover {
    color: #111 !important;
}

/* Accessibility - skip to content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff084e;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* =====================================================
   ABOUT SECTION — LUXURY REFINEMENTS
   ===================================================== */

#about {
    background: #fafafa !important;
    padding-top: 80px !important;
}

/* Title — sitnije, editorial */
#about .about-descr .p-heading {
    font-family: "Playfair Display", serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.32em !important;
    text-transform: uppercase !important;
    color: #bbb !important;
    margin: 0 0 24px 0 !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* HR — tanka linija umjesto gradijenta */
.accessory {
    height: 1px !important;
    background-image: none !important;
    background-color: #e8e8e8 !important;
    margin: 0 auto 48px !important;
    width: 40px;
}

/* Slika — bez heavy shadow i offseta, poravnana s tekstom */
#about .div-img-bg .about-img img {
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Ukloni mt-res-100 koji pomakne sliku 100px niže */
#about .mt-res-100 {
    margin-top: 0 !important;
}

/* Row poravnanje */
#about .row.justify-content-between {
    align-items: flex-start !important;
}

/* Tekst — čistiji */
#about .about-descr .separator {
    font-size: 13px !important;
    line-height: 1.9 !important;
    color: #888 !important;
    font-style: normal !important;
    letter-spacing: 0.02em !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

/* =====================================================
   HEADER — LUXURY REFINEMENTS (hamburger + cart)
   ===================================================== */

/* Hamburger — tanje linije, boja ne diramo (homepage=bijela, shop=tamna via color-dark) */
.nav-menu-btn {
    font-size: 18px !important;
    opacity: 0.8;
    letter-spacing: 0;
}

.nav-menu-btn:hover {
    opacity: 1;
}

/* Cart count — homepage nasljeđuje bijelu, shop override crvenu u tamnu */
.basket-count {
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
}

.change-color-count {
    color: #555 !important;
}

/* Cart SVG — tanje stroke */
.my-icon-cart path {
    stroke-width: 1.2 !important;
}

/* Print styles */
@media print {
    .header_area,
    .footer_area,
    .basket-container,
    .nav-menu-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced motion za accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .karl-btn {
        border: 2px solid currentColor;
    }
}

/* Performance optimizations */
.product-img,
.single_gallery_item {
    will-change: transform;
}

/* Fix any potential overflow issues */
body {
    overflow-x: hidden;
}

/* Better form validation states */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: #dc3545 !important;
}

input:valid,
select:valid,
textarea:valid {
    border-color: #28a745 !important;
}

/* Loading state for buttons */
button[disabled],
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Better card shadows */
.widget,
.cart-table,
.order-details-confirmation {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Smooth transitions - samo za određene elemente */
/* Postojeći CSS već ima dobre transition stilove */

/* =====================================================
   SHOP PAGE — LUXURY REFINEMENTS (mobile + desktop)
   ===================================================== */

/* --- Filter panel — sve veličine --- */
.showSortBtn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #111 !important;
  border-radius: 0 !important;
  letter-spacing: 0.18em;
  font-size: 10px;
  text-transform: uppercase;
  color: #111 !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
  font-weight: 400;
  width: auto !important;
}

/* Widget titles */
.widget-title {
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 0.22em;
  color: #aaa !important;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 16px !important;
}

/* Category list items */
.shop_grid_area #portfolio-flters li {
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em;
  color: #999 !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease !important;
}

.shop_grid_area #portfolio-flters li:hover,
.shop_grid_area #portfolio-flters li.filter-collection-active,
.shop_grid_area #portfolio-flters li.filter-active {
  color: #111 !important;
  border-bottom: 1px solid #111 !important;
}

/* Size filter */
.widget.size .widget-desc a {
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em;
  padding: 5px 8px !important;
  color: #999 !important;
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
  transition: all 0.2s ease;
}

.widget.size .widget-desc a:hover,
.widget.size .widget-desc a:focus {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

/* Price range */
.widget.price .range-price {
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em;
  color: #999 !important;
}

/* Price inputs */
#min-price, #max-price {
  font-size: 11px;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 4px 2px;
  width: 45%;
  outline: none;
  letter-spacing: 0.06em;
}

#min-price:focus, #max-price:focus {
  border-bottom-color: #111;
}

/* Remove widget box shadows */
.widget {
  box-shadow: none !important;
}

/* --- Product cards — sve veličine --- */
.product-img {
  border-radius: 0 !important;
}

.product-description {
  text-align: left;
}

.product-description p.product-name {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 400;
  color: #111;
  line-height: 1.5;
  margin-bottom: 4px;
  display: block;
  width: auto !important;
}

.product-description h5.product-price {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 400;
  margin: 0;
}

/* --- Uniform 3:4 portrait ratio — sve veličine --- */
.product-img {
  aspect-ratio: 3 / 4;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* --- Mobile only --- */
@media (max-width: 768px) {

  /* Tighter editorial grid */
  .shop_grid_product_area .row.portfolio-container {
    margin-left: -3px;
    margin-right: -3px;
  }
  .shop_grid_product_area .col-6 {
    padding-left: 3px;
    padding-right: 3px;
  }

  /* No hover lift on mobile (no cursor) */
  .single_gallery_item:hover {
    transform: none;
  }

  /* Tighter info block on mobile */
  .product-description {
    margin-top: 10px;
    padding: 0 2px 18px;
  }

  /* Center filter button on mobile */
  .col-12.col-md-4.col-lg-3 {
    text-align: center;
    margin-bottom: 24px;
  }

}

/* --- Desktop only --- */
@media (min-width: 769px) {

  /* Tighter editorial grid on desktop */
  .shop_grid_product_area .row.portfolio-container {
    margin-left: -6px;
    margin-right: -6px;
  }
  .shop_grid_product_area [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Info block on desktop */
  .product-description {
    margin-top: 12px;
    padding: 0 0 24px;
  }

}

/* --- Luxury pagination — sve veličine --- */
.shop_pagination_area {
  text-align: center;
  margin-top: 32px;
}
.pagination-sm .page-link {
  border: none !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em;
  color: #999 !important;
  background: transparent !important;
  line-height: 1.8 !important;
  margin: 0 2px !important;
}
.pagination-sm .page-item.active .page-link,
.pagination-sm .page-link:hover {
  color: #111 !important;
  border-bottom: 1px solid #111 !important;
  background: transparent !important;
}
