/*
Theme Name: Kasa Shop Theme
Author: Kasa.hr
Description: Prilagođena WooCommerce tema sa Tailwind CSS-om i ispravljenim WooCommerce prikazom.
Version: 1.1.30
Text Domain: kasa-theme
*/

/* --- GOOGLE SANS FONT FAMILY --- */
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/google-sans/GoogleSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Google Sans Text */
@font-face {
    font-family: 'Google Sans Text';
    src: url('fonts/google-sans/GoogleSansText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Text';
    src: url('fonts/google-sans/GoogleSansText-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Text';
    src: url('fonts/google-sans/GoogleSansText-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Text';
    src: url('fonts/google-sans/GoogleSansText-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Google Sans Display */
@font-face {
    font-family: 'Google Sans Display';
    src: url('fonts/google-sans/GoogleSansDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Display';
    src: url('fonts/google-sans/GoogleSansDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Display';
    src: url('fonts/google-sans/GoogleSansDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body, html, input, button, select, textarea, .woocommerce {
    font-family: 'Google Sans', 'Google Sans Text', 'Google Sans Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* POS Konfigurator - Google Sans Tipografija na finalnom izračunu (#step-6) */
#step-6,
#step-6 h1, #step-6 h2, #step-6 h3, #step-6 h4, #step-6 h5, #step-6 h6,
#step-6 p, #step-6 label, #step-6 strong, #step-6 b, #step-6 ul,
#step-6 input, #step-6 select, #step-6 textarea,
#step-6 span:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
#step-6 div:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
#step-6 a:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
#app-unified-fw,
#app-unified-fw h1, #app-unified-fw h2, #app-unified-fw h3, #app-unified-fw h4, #app-unified-fw h5, #app-unified-fw h6,
#app-unified-fw p, #app-unified-fw label, #app-unified-fw strong, #app-unified-fw b, #app-unified-fw ul,
#app-unified-fw input, #app-unified-fw select, #app-unified-fw textarea,
#app-unified-fw span:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
#app-unified-fw div:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
#app-unified-fw a:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: 'Google Sans', 'Google Sans Text', 'Google Sans Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ==========================================================================
   PROTECT FONT AWESOME ICONS (SPREČAVA KVADRATIĆE / TOFU GLYPHS)
   ========================================================================== */
i[class*="fa-"],
span[class*="fa-"],
[class^="fa-"],
[class*=" fa-"],
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands,
#app-unified-fw i,
#app-unified-fw [class*="fa-"],
#step-6 i,
#step-6 [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

i.far, i.fa-regular, [class*="far "], [class*="fa-regular"],
#app-unified-fw .far, #step-6 .far {
    font-weight: 400 !important;
}

i.fab, i.fa-brands, [class*="fab "], [class*="fa-brands"],
.fab, #app-unified-fw .fab, #step-6 .fab {
    font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

i[class*="fa-"]::before,
span[class*="fa-"]::before,
.fa::before, .fas::before, .far::before, .fab::before, .fa-solid::before, .fa-regular::before, .fa-brands::before,
#app-unified-fw i::before,
#app-unified-fw [class*="fa-"]::before,
#step-6 i::before,
#step-6 [class*="fa-"]::before {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-style: normal !important;
}

/* ==========================================================================
   BLOG PAGINATION - NAVIGACIJA STRANICA BLOGA U STILU TEME
   ========================================================================== */
.pagination,
.nav-links,
.page-numbers-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 3.5rem !important;
    margin-bottom: 2rem !important;
}

.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0 0.875rem !important;
    border-radius: 0.75rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
}

.page-numbers:hover:not(.current):not(.dots) {
    background-color: #00265E !important;
    color: #ffffff !important;
    border-color: #00265E !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 38, 94, 0.15), 0 2px 4px -2px rgba(0, 38, 94, 0.1) !important;
}

.page-numbers.current,
span.page-numbers.current {
    background-color: #00265E !important;
    color: #ffffff !important;
    border-color: #00265E !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(0, 38, 94, 0.25) !important;
    cursor: default !important;
}

.page-numbers.dots,
span.page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: #9ca3af !important;
    box-shadow: none !important;
    cursor: default !important;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 1.125rem !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    gap: 0.375rem !important;
}

/* --- WOOCOMMERCE FIXES & TAILWIND OVERRIDES --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 0.875rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.875rem !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.875rem !important;
    }
}

@media (min-width: 1440px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.875rem !important;
    }
}

.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-4px) !important;
}


.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: #00337C !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    margin-right: 0.5rem !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    background-color: #D4E157 !important;
    color: #00337C !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    transition: background-color 0.2s !important;
    display: flex !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #cddc39 !important;
    color: #00337C !important;
}

.woocommerce span.onsale {
    background-color: #ef4444 !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    position: absolute !important;
    top: -0.5rem !important;
    left: -0.5rem !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

/* Sorting & Results Count */
.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 2rem 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    background-color: white !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    outline: none !important;
    appearance: auto !important;
}

.woocommerce .woocommerce-result-count {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    margin-top: 3rem !important;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    color: #374151 !important;
    background: white !important;
    font-weight: 500 !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #00337C !important;
    color: white !important;
    border-color: #00337C !important;
}

/* --- WOOCOMMERCE CART & CHECKOUT REDESIGN --- */
.woocommerce-cart .woocommerce {
    display: flex !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 60% !important;
}
.woocommerce-cart .cart-collaterals {
    flex: 1 1 30% !important;
}

/* Cart Table */
.woocommerce table.shop_table {
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}
.woocommerce table.shop_table th {
    background-color: #f9fafb !important;
    color: #374151 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.woocommerce table.shop_table td {
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
}
.woocommerce table.shop_table td.actions {
    background-color: #f9fafb !important;
    padding: 1.5rem 1rem !important;
    border-bottom: none !important;
}

/* Inputs and Buttons */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce table.shop_table td.actions .coupon .input-text {
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    outline: none !important;
    width: 100% !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce table.shop_table td.actions .coupon .input-text:focus {
    border-color: #00337C !important;
    box-shadow: 0 0 0 2px rgba(0, 51, 124, 0.2) !important;
}

/* Cart Totals Box */
.woocommerce-cart .cart-collaterals .cart_totals {
    background-color: #f9fafb !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
}
.woocommerce-cart .cart-collaterals h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 1rem !important;
}

/* Global Woo Buttons */
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce a.button.checkout {
    background-color: #D4E157 !important;
    color: #00337C !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: flex !important;
    width: 100% !important;
    transition: background-color 0.2s !important;
}
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce a.button.checkout:hover {
    background-color: #cddc39 !important;
    color: #00337C !important;
}

.woocommerce button.button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
}
.woocommerce button.button:hover {
    background-color: #e5e7eb !important;
}

/* Fix for Recent Products shortcode on front page */
.woocommerce.kasa-recent-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}
@media (min-width: 640px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1024px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
.woocommerce.kasa-recent-products ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* Single Product Custom Overrides */
.woocommerce-product-gallery {
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
}
.woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: 1.5rem !important;
}
.single-product-cart-override button[type="submit"] {
    width: 100% !important;
    background: #00337C !important;
    color: #fff !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    transition: background-color 0.2s !important;
}
.single-product-cart-override button[type="submit"]:hover {
    background: #002255 !important;
    color: #fff !important;
}
/* Hide standard Woo tabs and elements we manually replaced */
.woocommerce div.product .woocommerce-tabs {
    display: none !important;
}
.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product .woocommerce-product-rating,
.woocommerce div.product .stock {
    display: none !important;
}
.single-product-cart-override .quantity {
    display: none !important;
}

/* Advanced Checkout Styling */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .woocommerce-checkout .col2-set {
        flex-direction: row;
    }
    .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 {
        width: 100% !important;
        float: none !important;
        max-width: 100%;
    }
}
#order_review_heading, #order_review {
    background: #f9fafb !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e5e7eb !important;
    margin-top: 2rem !important;
}

/* Update Recent Products Mobile Grid */
@media (max-width: 639px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
    .woocommerce.kasa-recent-products ul.products li.product {
        font-size: 0.875rem !important;
    }
}

/* Scrollable Single Product Thumbnails */
.woocommerce-product-gallery .flex-control-nav {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-top: 15px !important;
    scrollbar-width: thin;
    padding-bottom: 8px !important;
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    height: 6px;
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 80px !important;
    width: 80px !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-nav li img {
    border: 2px solid transparent !important;
    border-radius: 0.75rem !important;
    transition: border-color 0.2s !important;
}
.woocommerce-product-gallery .flex-control-nav li img.flex-active {
    border-color: #00337C !important;
}

/* Override Single Product Add to Cart Button */
.single-product-cart-override form.cart {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.single-product-cart-override form.cart div.quantity {
    margin: 0 !important;
}
.single-product-cart-override form.cart div.quantity input.qty {
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    height: 100% !important;
    min-height: 48px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    width: 80px !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button {
    background-color: #00337C !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 200px !important;
    cursor: pointer !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button:hover {
    background-color: #002255 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button.loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Add to Cart Toast Animation */
.kasa-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #10B981; /* Green */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kasa-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.kasa-toast svg {
    width: 20px;
    height: 20px;
}

/* Fix Related Products Heading styling */
.related.products h2:first-child, .upsells.products h2:first-child {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1.5rem !important;
}

/* Grid Fixes for WooCommerce Shortcodes */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}
@media (max-width: 1023px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    transition: all 0.2s !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border-color: #e5e7eb !important;
}
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product .price {
    color: #00337C !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
}
.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    margin-right: 0.5rem !important;
}
.woocommerce ul.products li.product .button {
    background-color: #00337C !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-top: auto !important;
    display: flex !important;
    width: 100% !important;
}
.woocommerce ul.products li.product .button:hover {
    background-color: #002255 !important;
}
.woocommerce ul.products li.product .added_to_cart {
    text-align: center !important;
    display: flex !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
}

/* Sale Badge Styles */
.woocommerce span.onsale {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    margin: 0 !important;
    background-color: #EF4444 !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    z-index: 9 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
}

/* Hide default sale flash on single product (we will manually position it) */
.woocommerce.single-product span.onsale {
    display: none !important;
}

/* Generic WooCommerce Buttons (Cart, Checkout) */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    background-color: #00337C !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
}
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover {
    background-color: #002255 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary WooCommerce Buttons (e.g., Update Cart) */
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: #00337C !important;
}

/* Single Product Gallery Fix (Images below main) */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-product-gallery__wrapper {
    margin-bottom: 15px !important;
}
.woocommerce-product-gallery .flex-control-nav {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-nav li {
    float: none !important;
    width: calc(25% - 7.5px) !important; /* 4 in a row */
}

/* Protect Footer Logo from WooCommerce Table cart overrides */
.kasa-footer-logo {
    height: 24px !important;
    min-height: 24px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Grid Price Wrapper (Custom Dual Prices) */
.woocommerce ul.products li.product .kasa-grid-price-wrapper {
    margin-bottom: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-no-tax {
    color: #00337C !important;
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    line-height: 1.2 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-no-tax small {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-tax {
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-tax small {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}
/* Hide default Woo price to be safe */
.woocommerce ul.products li.product > .price {
    display: none !important;
}

/* Fix Onsale Badge (Top Left over Image) */
.woocommerce ul.products li.product {
    position: relative !important; 
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    position: static !important; /* Let product container handle positioning */
}
.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 1rem !important;      
    left: 1rem !important;     
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background-color: #EF4444 !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 9999px !important;
    z-index: 10 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Hide Gallery Scrollbar */
.woocommerce-product-gallery .flex-control-nav {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Opera */
}

/* Hard enforce Footer Logo size and background on ALL pages */
img.kasa-footer-logo {
    height: 24px !important;
    max-height: 24px !important;
    min-height: 24px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    background: transparent !important;
}
/* Hide Flexslider navigation arrows in gallery */
.woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
}

/* Fix gigantic magnifying glass on single product */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 99 !important;
    background: white !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}
.woocommerce-product-gallery__trigger img {
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* WooCommerce Cart Variations & Attributes */
.woocommerce-cart-form dl.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.woocommerce-cart-form dl.variation dt {
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    clear: both;
}
.woocommerce-cart-form dl.variation dd {
    margin: 0;
    color: #6b7280; /* gray-500 */
}
.woocommerce-cart-form dl.variation dd p {
    margin: 0;
}

/* Shipping Methods in Cart Totals */
#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}
#shipping_method li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#shipping_method input[type="radio"] {
    accent-color: #00337C;
    width: 1rem;
    height: 1rem;
}
#shipping_method label {
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}

/* Shipping Calculator Form */
.shipping-calculator-button {
    font-size: 0.875rem;
    color: #00337C;
    font-weight: 600;
    text-decoration: underline;
}
.shipping-calculator-form {
    margin-top: 1rem;
}
.shipping-calculator-form p {
    margin-bottom: 0.75rem;
}
.shipping-calculator-form .input-text,
.shipping-calculator-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}
.shipping-calculator-form .button {
    width: 100%;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.2s;
}
.shipping-calculator-form .button:hover {
    background-color: #e5e7eb;
    color: #00337C;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #D4E157; /* brandYellow */
    color: #00337C; /* brandBlue */
    font-weight: 800;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: background-color 0.2s;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #c5d345;
}

/* Cross Sells on Cart */
.cross-sells {
    margin-top: 3rem;
}
.cross-sells h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}
.cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .cross-sells ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mini Cart override in sidecart (remove variations padding) */
.kasa-cart-item .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}
.kasa-cart-item .variation dt {
    font-weight: 600;
}
.kasa-cart-item .variation dd {
    margin: 0;
}
.kasa-cart-item .variation dd p {
    margin: 0;
}

/* Remove default WooCommerce loader */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px) !important;
    opacity: 1 !important;
    border-radius: 1rem;
}
.woocommerce-cart .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    margin-left: -1.25rem;
    border: 3px solid #e5e7eb;
    border-top-color: #00337C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Mini Cart Widget Buttons */
.woocommerce-mini-cart__buttons .button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s;
    text-align: center;
}
.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background-color: #f3f4f6;
    color: #374151;
}
.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background-color: #e5e7eb;
    color: #00337C;
}
.woocommerce-mini-cart__buttons .button.checkout {
    background-color: #D4E157; /* brandYellow */
    color: #00337C;
    margin-top: 0.5rem;
}
.woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #c5d345;
}

/* WooCommerce Notices (Success, Error, Info) */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    border: none;
}
.woocommerce-message {
    background-color: #ecfdf5; /* emerald-50 */
    color: #065f46; /* emerald-900 */
    border-left: 4px solid #10b981;
}
.woocommerce-error {
    background-color: #fef2f2; /* red-50 */
    color: #991b1b; /* red-900 */
    border-left: 4px solid #ef4444;
}
.woocommerce-info {
    background-color: #eff6ff; /* blue-50 */
    color: #1e3a8a; /* blue-900 */
    border-left: 4px solid #3b82f6;
}
.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
    background-color: white;
    color: currentColor;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid currentColor;
    opacity: 0.9;
    transition: all 0.2s;
}
.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover {
    opacity: 1;
    background-color: currentColor;
}
.woocommerce-message a.button:hover {
    color: #ecfdf5;
}
.woocommerce-error a.button:hover {
    color: #fef2f2;
}
.woocommerce-info a.button:hover {
    color: #eff6ff;
}
.woocommerce-error li {
    list-style: none;
    margin: 0;
}

/* ----------------------------------------- */
/* WooCommerce Checkout Redesign             */
/* ----------------------------------------- */

/* Remove standard woocommerce padding/margins if any on forms */
.woocommerce-checkout form.checkout {
    margin-top: 1rem;
}

.woocommerce-checkout h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827; /* gray-900 */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    float: left;
}
.woocommerce-checkout .form-row-last {
    float: right;
}
.woocommerce-checkout .form-row::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.woocommerce-checkout .form-row .required {
    color: #ef4444; /* red-500 */
    text-decoration: none;
}

/* Inputs & Textareas */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #111827; /* gray-900 */
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #00337C;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1);
}

/* Select2 (WooCommerce Country/State Dropdowns) */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.woocommerce-checkout .select2-container .select2-selection__rendered {
    padding-left: 1rem;
    font-size: 0.9375rem;
    color: #111827;
}
.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 48px;
    right: 12px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent;
}
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00337C;
}

/* Validation Errors */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: #ef4444; /* red-500 */
    background-color: #fef2f2;
}

/* Optional/Required Labels in WooCommerce */
.woocommerce-checkout .optional {
    color: #9ca3af; /* gray-400 */
    font-weight: normal;
}

/* Payment Box */
#payment {
    background: transparent;
    border-radius: 0;
}
#payment ul.payment_methods {
    padding: 0;
    margin: 0 0 1.5rem 0;
    border: none;
}
#payment ul.payment_methods li {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fafafa; /* gray-50 */
    transition: border-color 0.2s;
    list-style: none;
}
#payment ul.payment_methods li:hover {
    border-color: #d1d5db;
}
#payment ul.payment_methods li input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #00337C;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}
#payment ul.payment_methods li label {
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin: 0;
}
#payment ul.payment_methods li label img {
    margin-left: 0.5rem;
    height: 24px;
    max-width: 100px;
    object-fit: contain;
}
#payment div.payment_box {
    padding: 1.25rem;
    margin: 1rem 0 0 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563; /* gray-600 */
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
#payment div.payment_box::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 2rem;
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}
#payment div.payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.place-order {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}
.place-order .button {
    width: 100%;
    padding: 1.25rem;
    background-color: #D4E157; /* brandYellow */
    color: #00337C; /* brandBlue */
    font-size: 1.125rem;
    font-weight: 800;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.place-order .button:hover {
    background-color: #c5d345;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0,0,0,0.1);
}
.place-order .button:active {
    transform: translateY(0);
}

/* Privacy policy text */
.woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.woocommerce-privacy-policy-text a {
    color: #00337C;
    text-decoration: underline;
}

/* Terms and Conditions checkbox */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.woocommerce-terms-and-conditions-wrapper label {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    accent-color: #00337C;
    width: 1rem;
    height: 1rem;
}
.woocommerce-terms-and-conditions-wrapper a {
    color: #00337C;
    text-decoration: underline;
    font-weight: 600;
}

/* Mobile optimizations for checkout */
@media (max-width: 767px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
    }
}

/* ----------------------------------------- */
/* Universal Green Button Override           */
/* User request: "sve buttone ostavi u zelenoj boji" */
/* ----------------------------------------- */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart__buttons .button.checkout,
.wc-proceed-to-checkout .checkout-button,
.single-product-cart-override form.cart button.single_add_to_cart_button,
.woocommerce-checkout .place-order .button,
.woocommerce-account .button,
.woocommerce-MyAccount-content .button {
    background-color: #D4E157 !important; /* brandYellow / Green */
    color: #00337C !important; /* brandBlue text for contrast */
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce-mini-cart__buttons .button:hover,
.woocommerce-mini-cart__buttons .button.checkout:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.single-product-cart-override form.cart button.single_add_to_cart_button:hover,
.woocommerce-checkout .place-order .button:hover,
.woocommerce-account .button:hover,
.woocommerce-MyAccount-content .button:hover {
    background-color: #c5d345 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 8px -1px rgba(0,0,0,0.1) !important;
    color: #00337C !important;
}

/* ----------------------------------------- */
/* My Account Active Navigation              */
/* ----------------------------------------- */
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #f3f4f6 !important; /* gray-100 */
    color: #00337C !important; /* brandBlue */
    border-left: 4px solid #00337C !important;
    padding-left: 1.25rem !important; /* px-5 to offset 4px border (px-6 is 1.5rem, so 1.5 - 0.25) */
    font-weight: 700 !important;
}

/* Make tables in My Account look decent */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.woocommerce-MyAccount-content table.shop_table th {
    background-color: #f9fafb;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.9375rem;
}

/* My Account Address blocks */
.woocommerce-Address {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.75rem;
}
.woocommerce-Address-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}
.woocommerce-Address address {
    font-style: normal;
    color: #4b5563;
    line-height: 1.6;
}

/* Account Info Forms */
.woocommerce-MyAccount-content form fieldset {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}
.woocommerce-MyAccount-content form fieldset legend {
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0 0.5rem;
    color: #111827;
}

/* WooCommerce Account Notices */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    background-color: #f8fafc;
    border-top: 3px solid #00337C;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.woocommerce-MyAccount-content .woocommerce-error {
    border-top-color: #ef4444;
}
.woocommerce-MyAccount-content .woocommerce-message .button,
.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-error .button {
    float: right;
    margin-left: 1rem;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Pagination inside my account orders */
.woocommerce-pagination.woocommerce-pagination--without-numbers {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* Edit Address / Account Form Specifics */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 1.25rem;
}
.woocommerce-MyAccount-content form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    background-color: #fff;
}
.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form textarea:focus {
    outline: none;
    border-color: #00337C;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1);
}

/* --- FLOATING ISLAND CSS --- */
.woocommerce-message, .woocommerce-error, .woocommerce-info { display: none !important; }

/* Animation class for JS */
@keyframes slideUpIsland {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up-island {
    animation: slideUpIsland 0.2s ease-out forwards !important;
}

/* Hide Number Input Arrows */
.hide-arrows::-webkit-outer-spin-button,
.hide-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hide-arrows {
  -moz-appearance: textfield;
}

/* Skrivanje WooCommerce search widgeta po zahtjevu klijenta */
.widget_product_search, .widget_search { display: none !important; }
/* Skrivanje defaultnih WordPress blog widgeta (Recent Posts, Recent Comments) po zahtjevu */
.widget_recent_entries, .widget_recent_comments, .widget_archive, .widget_categories, .widget_meta { display: none !important; }
.wp-block-latest-posts, .wp-block-latest-comments { display: none !important; }
/* Hides general widgets that start with wp-block-heading if they are adjacent to those, just covering general blocks if they use group */
.widget_block h2 { display: none !important; }
.widget_block .wp-block-latest-comments { display: none !important; }
.widget_block:has(.wp-block-latest-posts), .widget_block:has(.wp-block-latest-comments) { display: none !important; }

/* But wait, let's just make sure we only hide them in the shop sidebar */
#shop-sidebar-offcanvas .widget_block:has(.wp-block-latest-posts),
#shop-sidebar-offcanvas .widget_block:has(.wp-block-latest-comments),
#shop-sidebar-offcanvas .widget_recent_entries, 
#shop-sidebar-offcanvas .widget_recent_comments {
    display: none !important;
}


/* Fix My Account Desktop Layout Widths */
@media screen and (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 0 0 260px !important;
        width: 260px !important;
        float: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 1;
        width: 100% !important;
        float: none !important;
    }
}


/* Fix Mobile Cart Product Name Visibility & Layout */
@media screen and (max-width: 768px) {
    /* Hide the default remove and thumbnail columns on mobile because we moved them inside product-name */
    .woocommerce table.shop_table_responsive tbody tr td.product-remove,
    .woocommerce-page table.shop_table_responsive tbody tr td.product-remove,
    .woocommerce table.shop_table_responsive tbody tr td.product-thumbnail,
    .woocommerce-page table.shop_table_responsive tbody tr td.product-thumbnail {
        display: none !important;
    }

    /* General layout for other cart cells on mobile */
    .woocommerce table.shop_table_responsive tbody tr td, 
    .woocommerce-page table.shop_table_responsive tbody tr td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        text-align: right !important;
        padding: 1rem !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    /* Flex direction for product name because it contains image/remove button inside */
    .woocommerce table.shop_table_responsive tbody tr td.product-name {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Make the title link look good */
    .woocommerce table.shop_table_responsive tbody tr td.product-name a {
        display: inline-block;
        font-weight: 600;
        color: #00337C;
        text-decoration: none;
        font-size: 1.1rem;
    }

    /* Style the labels (e.g. CIJENA:, KOLIČINA:) */
    .woocommerce table.shop_table_responsive tbody tr td::before, 
    .woocommerce-page table.shop_table_responsive tbody tr td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        font-size: 0.75rem;
        margin-right: auto; /* Push value to the right */
        margin-top: 0 !important;
        float: none !important;
    }

    /* Hide the PROIZVOD: label because we already have the product visual card */
    .woocommerce table.shop_table_responsive tbody tr td.product-name::before {
        display: none !important;
    }

    /* Override any weird margins on ::before from Woo default */
    .woocommerce table.shop_table_responsive tbody tr td.product-quantity::before,
    .woocommerce table.shop_table_responsive tbody tr td.product-subtotal::before {
        float: none !important;
        margin-top: 0 !important;
    }
}

/* Style Contact Form 7 in kasa-cf7-wrapper to match Tailwind styling */
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-text,
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-email,
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.kasa-cf7-wrapper .wpcf7-form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #00337C;
    box-shadow: 0 0 0 2px rgba(0, 51, 124, 0.2);
}
.kasa-cf7-wrapper .wpcf7-submit {
    padding: 1rem 2rem;
    background-color: #00337C;
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}
.kasa-cf7-wrapper .wpcf7-submit:hover {
    background-color: #1e40af; /* blue-800 */
}
/* CF7 Form Labels / Naslovi polja */
.kasa-cf7-wrapper form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-bottom: 0.25rem;
}

/* CF7 Validation errors (pojedinačne greške ispod polja) */
.kasa-cf7-wrapper .wpcf7-not-valid-tip {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* CF7 Form Response Output (Glavno upozorenje na dnu/vrhu forme) */
.kasa-cf7-wrapper .wpcf7-response-output {
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent !important;
}

/* Uspješno poslano (Success state) */
.kasa-cf7-wrapper form.sent .wpcf7-response-output {
    background-color: #ecfdf5 !important; /* emerald-50 */
    border-color: #a7f3d0 !important; /* emerald-200 */
    color: #065f46 !important; /* emerald-900 */
}

/* Neuspješno poslano ili greška u validaciji (Error states) */
.kasa-cf7-wrapper form.invalid .wpcf7-response-output,
.kasa-cf7-wrapper form.failed .wpcf7-response-output,
.kasa-cf7-wrapper form.aborted .wpcf7-response-output {
    background-color: #fef2f2 !important; /* red-50 */
    border-color: #fecaca !important; /* red-200 */
    color: #991b1b !important; /* red-900 */
}

/* Spinner animacija CF7 (opcionalno čišćenje defaultnog stila) */
.kasa-cf7-wrapper .wpcf7-spinner {
    background-color: #00337C;
    margin-left: 1rem;
}

/* ----------------------------------------- */
/* Sidebar Widget Counts                     */
/* ----------------------------------------- */
.widget_product_categories .count,
.widget_layered_nav .count,
.woocommerce-widget-layered-nav .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}
/* Hide the parentheses that WooCommerce adds by default around counts */
.widget_product_categories .count:before,
.widget_layered_nav .count:before,
.woocommerce-widget-layered-nav .count:before {
    content: "" !important;
}
.widget_product_categories .count:after,
.widget_layered_nav .count:after,
.woocommerce-widget-layered-nav .count:after {
    content: "" !important;
}

/* ----------------------------------------- */
/* Product Variations Styles                 */
/* ----------------------------------------- */
table.variations {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}
table.variations tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
    table.variations tbody tr {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}
table.variations td.label {
    padding: 0 0 0.5rem 0;
    font-weight: 700;
    color: #374151;
    width: 100px;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    table.variations td.label {
        padding: 0;
    }
}
table.variations td.value {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
table.variations select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    transition: all 0.2s ease;
}
table.variations select:focus {
    outline: none;
    border-color: #00337C;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1);
    background-color: #ffffff;
}
.reset_variations {
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    display: inline-block;
    margin-top: 0.25rem;
    text-transform: uppercase;
}
.reset_variations[style*="visibility: hidden"] {
    display: none !important;
}
/* ----------------------------------------- */
/* Custom Checkboxes (Filters & Widgets)     */
/* ----------------------------------------- */
.widget input[type="checkbox"],
.wc-block-components-checkbox input[type="checkbox"],
.woocommerce-widget-layered-nav input[type="checkbox"],
.widget_layered_nav input[type="checkbox"],
form.woocommerce-ordering input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #cbd5e1 !important; /* gray-300 */
    border-radius: 6px !important; /* Curved corners */
    background-color: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
}

.widget input[type="checkbox"]:hover,
.wc-block-components-checkbox input[type="checkbox"]:hover {
    border-color: #10b981 !important; /* Teal green hover */
}

.widget input[type="checkbox"]:checked,
.wc-block-components-checkbox input[type="checkbox"]:checked {
    background-color: #10b981 !important; /* Teal/Green from image */
    border-color: #10b981 !important;
}


.widget input[type="checkbox"]:checked::after,
.wc-block-components-checkbox input[type="checkbox"]:checked::after,
.woocommerce-widget-layered-nav input[type="checkbox"]:checked::after,
.widget_layered_nav input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Also hide WooCommerce block default SVGs if they inject them */
.wc-block-components-checkbox__mark {
    display: none !important;
}


/* 3. Aggressive Targeting for ANY checkbox in the sidebar */
#shop-sidebar-offcanvas input[type="checkbox"],
.woocommerce input[type="checkbox"].wpc-checkbox,
.woocommerce input[type="checkbox"].woof_checkbox_term,
.woocommerce input[type="checkbox"].bapf_checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    border: 2px solid #cbd5e1 !important; 
    border-radius: 6px !important; 
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    margin: 0 10px 0 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

#shop-sidebar-offcanvas input[type="checkbox"]:hover,
.woocommerce input[type="checkbox"].wpc-checkbox:hover,
.woocommerce input[type="checkbox"].woof_checkbox_term:hover,
.woocommerce input[type="checkbox"].bapf_checkbox:hover {
    border-color: #10b981 !important; 
}

#shop-sidebar-offcanvas input[type="checkbox"]:checked,
.woocommerce input[type="checkbox"].wpc-checkbox:checked,
.woocommerce input[type="checkbox"].woof_checkbox_term:checked,
.woocommerce input[type="checkbox"].bapf_checkbox:checked {
    background-color: #10b981 !important; 
    border-color: #10b981 !important;
}

#shop-sidebar-offcanvas input[type="checkbox"]:checked::after,
.woocommerce input[type="checkbox"].wpc-checkbox:checked::after,
.woocommerce input[type="checkbox"].woof_checkbox_term:checked::after,
.woocommerce input[type="checkbox"].bapf_checkbox:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300337C'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
}

/* 4. The Real Fix for Kasa Custom Filters (Tailwind Forms Override) */
input[type="checkbox"].kasa-filter-checkbox,
#shop-sidebar-offcanvas input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #cbd5e1 !important; 
    border-radius: 6px !important; 
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    color: transparent !important; /* overrides tailwind text-brandBlue which affects currentColor */
}

input[type="checkbox"].kasa-filter-checkbox:hover,
#shop-sidebar-offcanvas input[type="checkbox"]:hover {
    border-color: #10b981 !important;
}

input[type="checkbox"].kasa-filter-checkbox:checked,
#shop-sidebar-offcanvas input[type="checkbox"]:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    /* Put the blue checkmark directly on the input background, not pseudo-element */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300337C'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-size: 80% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ----------------------------------------- */
/* Custom Frontend Stock Status Badges       */
/* ----------------------------------------- */
.woocommerce div.product .stock, .woocommerce div.product .stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important; /* Pill shape */
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
    clear: both;
}

/* In Stock (Na zalihi) */
.woocommerce div.product .stock.in-stock {
    background-color: #ecfdf5 !important; /* Light Emerald */
    color: #059669 !important; /* Emerald 600 */
    border: 1px solid #a7f3d0 !important;
}

/* Out of Stock (Nema na zalihi) */
.woocommerce div.product .stock.out-of-stock {
    background-color: #fef2f2 !important; /* Light Red */
    color: #dc2626 !important; /* Red 600 */
    border: 1px solid #fecaca !important;
}

/* Low Stock / Backorder */
.woocommerce div.product .stock.low-in-stock,
.woocommerce div.product .stock.available-on-backorder {
    background-color: #fef3c7 !important; /* Light Amber */
    color: #d97706 !important; /* Amber 600 */
    border: 1px solid #fde68a !important;
}

/* Add icons using ::before pseudo-elements */
.woocommerce div.product .stock::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* In Stock Icon (Check) */
.woocommerce div.product .stock.in-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Out of Stock Icon (X) */
.woocommerce div.product .stock.out-of-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Backorder / Low Stock Icon (Warning Triangle) */
.woocommerce div.product .stock.low-in-stock::before,
.woocommerce div.product .stock.available-on-backorder::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d97706'%3E%3Cpath fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* ----------------------------------------- */
/* Single Product Meta & Attributes Styling  */
/* ----------------------------------------- */
.woocommerce div.product .product_meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.woocommerce div.product .product_meta > span {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

/* Bold the labels (SKU:, Category:, etc.) */
.woocommerce div.product .product_meta > span > strong,
.woocommerce div.product .product_meta > span.sku_wrapper,
.woocommerce div.product .product_meta > span.posted_in,
.woocommerce div.product .product_meta > span.tagged_as {
    font-weight: 600 !important;
    color: #374151 !important;
}

/* Style the values (links or text) as pills */
.woocommerce div.product .product_meta a,
.woocommerce div.product .product_meta .sku {
    color: #00337C !important;
    background-color: #f3f4f6 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.woocommerce div.product .product_meta a:hover {
    background-color: #e5e7eb !important;
    color: #002255 !important;
}

/* Additional Information Table (Attributes) */
.woocommerce div.product table.shop_attributes {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}

.woocommerce div.product table.shop_attributes th,
.woocommerce div.product table.shop_attributes td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 0 !important;
}

.woocommerce div.product table.shop_attributes tr:last-child th,
.woocommerce div.product table.shop_attributes tr:last-child td {
    border-bottom: none !important;
}

.woocommerce div.product table.shop_attributes th {
    background-color: #f9fafb !important;
    color: #374151 !important;
    font-weight: 700 !important;
    text-align: left !important;
    width: 30% !important;
    font-size: 0.875rem !important;
    border-right: 1px solid #e5e7eb !important;
}

.woocommerce div.product table.shop_attributes td {
    background-color: #ffffff !important;
    color: #4b5563 !important;
    font-size: 0.875rem !important;
}

.woocommerce div.product table.shop_attributes td p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------- */
/* Grid Image Full Photo Fix */
.woocommerce ul.products li.product img {
    background-color: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    margin: 0 auto 1rem auto !important;
}

/* ----------------------------------------- */
/* BULLETPROOF STOCK BADGES                  */
/* ----------------------------------------- */
.woocommerce p.stock,
.woocommerce .stock,
.woocommerce-variation-availability p.stock,
.woocommerce div.product p.stock,
.woocommerce div.product .stock,
.woocommerce-variation-availability .stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important; /* Pill shape */
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
    clear: both;
}

/* In Stock (Na zalihi) */
.woocommerce p.stock.in-stock,
.woocommerce .stock.in-stock,
.woocommerce-variation-availability .stock.in-stock {
    background-color: #ecfdf5 !important; /* Light Emerald */
    color: #059669 !important; /* Emerald 600 */
    border: 1px solid #a7f3d0 !important;
}

/* Out of Stock (Nema na zalihi) */
.woocommerce p.stock.out-of-stock,
.woocommerce .stock.out-of-stock,
.woocommerce-variation-availability .stock.out-of-stock {
    background-color: #fef2f2 !important; /* Light Red */
    color: #dc2626 !important; /* Red 600 */
    border: 1px solid #fecaca !important;
}

/* Low Stock / Backorder */
.woocommerce p.stock.low-in-stock,
.woocommerce .stock.low-in-stock,
.woocommerce p.stock.available-on-backorder,
.woocommerce .stock.available-on-backorder,
.woocommerce-variation-availability .stock.low-in-stock,
.woocommerce-variation-availability .stock.available-on-backorder {
    background-color: #fef3c7 !important; /* Light Amber */
    color: #d97706 !important; /* Amber 600 */
    border: 1px solid #fde68a !important;
}

/* Add icons using ::before pseudo-elements */
.woocommerce p.stock::before,
.woocommerce .stock::before,
.woocommerce-variation-availability .stock::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* In Stock Icon (Check) */
.woocommerce p.stock.in-stock::before,
.woocommerce .stock.in-stock::before,
.woocommerce-variation-availability .stock.in-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Out of Stock Icon (X) */
.woocommerce p.stock.out-of-stock::before,
.woocommerce .stock.out-of-stock::before,
.woocommerce-variation-availability .stock.out-of-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Backorder / Low Stock Icon (Warning Triangle) */
.woocommerce p.stock.low-in-stock::before,
.woocommerce .stock.low-in-stock::before,
.woocommerce p.stock.available-on-backorder::before,
.woocommerce .stock.available-on-backorder::before,
.woocommerce-variation-availability .stock.low-in-stock::before,
.woocommerce-variation-availability .stock.available-on-backorder::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d97706'%3E%3Cpath fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* ----------------------------------------- */
/* PRODUCT VARIATIONS RE-DESIGN              */
/* ----------------------------------------- */
table.variations {
    width: 100% !important;
    margin-bottom: 2rem !important;
    border-collapse: separate !important;
    border-spacing: 0 1rem !important;
}

table.variations tbody tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

@media (min-width: 640px) {
    table.variations tbody tr {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
}

table.variations td.label {
    padding: 0 !important;
    font-weight: 700 !important;
    color: #374151 !important;
    width: 80px !important;
    flex-shrink: 0 !important;
    font-size: 0.875rem !important;
}

table.variations td.value {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    position: relative !important;
}

/* Premium Select Dropdown for Variations */
table.variations select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    width: 100% !important;
    max-width: 320px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25em !important;
}

table.variations select:hover {
    border-color: #d1d5db !important;
    background-color: #f9fafb !important;
}

table.variations select:focus {
    outline: none !important;
    border-color: #00337C !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1) !important;
    background-color: #ffffff !important;
}

/* Reset link (Obriši) */
.reset_variations {
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
    display: inline-block !important;
    margin-top: 0.25rem !important;
}
.reset_variations:hover {
    opacity: 0.7 !important;
}

/* ----------------------------------------- */
/* VARIATION CONTENT (Price, Desc, Stock)    */
/* ----------------------------------------- */
.single_variation_wrap {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px dashed #e5e7eb !important;
}

.woocommerce-variation-description {
    font-size: 0.9375rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-variation-description p {
    margin-bottom: 0.5rem !important;
}

/* Display the variation price with bold Kasa Blue */
.woocommerce div.product .woocommerce-variation-price {
    margin-bottom: 1.5rem !important;
}

.woocommerce div.product .woocommerce-variation-price .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    color: #00337C !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.woocommerce div.product .woocommerce-variation-price .price del {
    color: #9ca3af !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

.woocommerce div.product .woocommerce-variation-price .price ins {
    text-decoration: none !important;
}

/* Keep the Add to Cart alignment */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

/* Stock styling is already handled by our bulletproof stock CSS */

/* ==========================================================================
   AUTHENTIC HIGHLIGHTER MARKER ANIMATIONS (WP THEME)
   ========================================================================== */

@keyframes markerSweep {
  0% {
    width: 0%;
    opacity: 0;
    transform: scaleY(0.6) skewX(-4deg);
  }
  20% {
    opacity: 0.95;
    transform: scaleY(1.05) skewX(-2deg);
  }
  60% {
    opacity: 0.88;
    transform: scaleY(0.98) skewX(-1deg);
  }
  100% {
    width: 102%;
    opacity: 0.85;
    transform: scaleY(1) skewX(0deg);
  }
}

.marker-highlight-container {
  position: relative;
  display: inline-block;
  white-space: normal;
  z-index: 1;
}

.marker-highlight-text {
  position: relative;
  z-index: 2;
  display: inline;
}

.marker-stroke {
  position: absolute;
  left: -4px;
  bottom: 2px;
  height: 44%;
  background: linear-gradient(90deg, #d4e157 0%, #e2f952 50%, #cbe338 100%);
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
  transform-origin: left center;
  animation: markerSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  box-shadow: 0 2px 14px rgba(212, 225, 87, 0.5);
  mix-blend-mode: multiply;
}

/* Print Stylesheet: Print ONLY the article content, hide headers, sidebars, footers */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12pt !important;
    line-height: 1.6 !important;
  }

  header, 
  footer, 
  aside, 
  nav, 
  .print\:hidden,
  #header-cta-konfigurator,
  #header-cart-btn,
  #header-user-btn,
  form[action*="/upute"] {
    display: none !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
  }

  article {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }

  .prose {
    max-width: 100% !important;
  }
}

/* ==========================================================================
   HERO ROTATING NICHES & SCROLL REEL EFFECT
   ========================================================================== */
.hero-rotating-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  vertical-align: top;
  height: 1.18em;
}

.hero-rotating-niche {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   TEXT REVEAL KROZ MASKE (SLIDE-UP RED PO RED) & SCROLL ANIMACIJE
   ========================================================================== */

/* Maska koja skriva tekst izvan granica */
.reveal-mask,
[data-reveal="mask"] {
  display: block;
  overflow: hidden !important;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  vertical-align: top;
}

.reveal-mask-inline {
  display: inline-block;
  overflow: hidden !important;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  vertical-align: top;
}

/* Unutarnji tekst koji klizi prema gore kroz masku */
.reveal-text,
.reveal-line,
[data-reveal="item"] {
  display: block;
  transform: translateY(115%) translateZ(0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Kada je element otkriven / u vidokrugu */
.is-revealed .reveal-text,
.is-revealed .reveal-line,
.is-revealed[data-reveal="item"],
.reveal-text.is-revealed,
.reveal-line.is-revealed,
[data-reveal="item"].is-revealed {
  transform: translateY(0) translateZ(0) !important;
  opacity: 1 !important;
}

/* Stagger kašnjenja po redovima/elementima unutar grupe */
.reveal-group .reveal-mask:nth-child(1) .reveal-text,
.reveal-group .reveal-line:nth-child(1),
.reveal-stagger-1 {
  transition-delay: 0ms !important;
}

.reveal-group .reveal-mask:nth-child(2) .reveal-text,
.reveal-group .reveal-line:nth-child(2),
.reveal-stagger-2 {
  transition-delay: 130ms !important;
}

.reveal-group .reveal-mask:nth-child(3) .reveal-text,
.reveal-group .reveal-line:nth-child(3),
.reveal-stagger-3 {
  transition-delay: 260ms !important;
}

.reveal-group .reveal-mask:nth-child(4) .reveal-text,
.reveal-group .reveal-line:nth-child(4),
.reveal-stagger-4 {
  transition-delay: 390ms !important;
}

/* Podnaslovi i opisi unutar reveal sekcija (glatki slide-up sa staggerom) */
.reveal-subtitle,
[data-reveal="subheading"] {
  display: block;
  transform: translateY(35px) translateZ(0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 240ms;
}

.is-revealed .reveal-subtitle,
.is-revealed [data-reveal="subheading"],
.reveal-subtitle.is-revealed,
[data-reveal="subheading"].is-revealed {
  transform: translateY(0) translateZ(0) !important;
  opacity: 1 !important;
}

/* Bedževi iznad naslova (eyebrow) */
.reveal-eyebrow,
[data-reveal="eyebrow"] {
  display: inline-flex;
  transform: translateY(20px) translateZ(0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 50ms;
}

.is-revealed .reveal-eyebrow,
.is-revealed [data-reveal="eyebrow"],
.reveal-eyebrow.is-revealed,
[data-reveal="eyebrow"].is-revealed {
  transform: translateY(0) translateZ(0) !important;
  opacity: 1 !important;
}

/* Pristupačnost: isključi animaciju ako korisnik preferira smanjeni pokret */
@media (prefers-reduced-motion: reduce) {
  .reveal-text,
  .reveal-line,
  .reveal-subtitle,
  .reveal-eyebrow,
  [data-reveal="item"],
  [data-reveal="subheading"],
  [data-reveal="eyebrow"] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PROGRAM SOLUTIONS - STICKY HERO & OVERLAPPING CONTENT SCROLL DESIGN
   ========================================================================== */
.program-hero-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 4rem !important; /* 64px on mobile header */
  z-index: 10 !important;
}

@media (min-width: 640px) {
  .program-hero-sticky {
    top: 4rem !important; /* 64px on standard header */
  }
}

.program-hero-inner {
  will-change: filter, opacity, transform;
}

.program-overlapping-content {
  position: relative !important;
  z-index: 20 !important;
  background-color: #ffffff !important;
}

.program-overlapping-content section[id] {
  scroll-margin-top: 5.5rem;
}



/* Login / registracija: bez prijave putem društvenih mreža (i ako je plugin automatski ubaci kroz hookove) */
.woocommerce-account .nsl-container,
.woocommerce-account .nsl-container-block,
.woocommerce-account .mo-openid-app-icons,
.woocommerce-account #mo_openid_social_login { display: none !important; }
/* ==========================================================================
   Cookie banner (plugin CookieAdmin) — kompaktan na mobitelu.
   Prije je prekrivao ~45 % ekrana; sada je niska traka uz dno s gumbima u jednom redu.
   ========================================================================== */
@media (max-width: 640px) {
    .cookieadmin_law_container.cookieadmin_box {
        left: 0.5rem !important;
        right: 0.5rem !important;
        bottom: 0.5rem !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 16px !important;
    }
    .cookieadmin_law_container .cookieadmin_consent_inside { padding: 0.85rem 0.9rem 0.8rem !important; }
    .cookieadmin_law_container #cookieadmin_notice_title { font-size: 0.95rem !important; margin: 0 0 0.3rem !important; }
    .cookieadmin_law_container .cookieadmin_notice_con { max-height: 4.6rem; overflow-y: auto; }
    .cookieadmin_law_container #cookieadmin_notice { font-size: 0.8rem !important; line-height: 1.45 !important; margin: 0 !important; }
    .cookieadmin_law_container .cookieadmin_consent_btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1.3fr;
        gap: 0.4rem !important;
        margin-top: 0.65rem !important;
    }
    .cookieadmin_law_container .cookieadmin_consent_btns .cookieadmin_btn {
        width: auto !important;
        min-height: 2.6rem !important;
        margin: 0 !important;
        padding: 0 0.4rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }
    .cookieadmin_law_container .cookieadmin-poweredby { display: none !important; }
}
/* ==========================================================================
   Mega izbornik "Programi" — pozadina iza kase prema programu (header.php, data-kmm-bg)
   ========================================================================== */
.kmm-bg { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.kmm-bg__layer {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity .45s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1);
}
.kmm-bg__layer.is-on { opacity: 1; transform: scale(1); }
/* Zatamnjenje: kasa ostaje u fokusu, rubovi se stapaju s plavom pozadinom izbornika */
.kmm-bg::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 55%, rgba(0, 38, 94, .15) 0%, rgba(0, 38, 94, .55) 70%, rgba(0, 38, 94, .9) 100%),
        linear-gradient(0deg, rgba(0, 38, 94, .55) 0%, rgba(0, 38, 94, 0) 45%);
}
/* Kasa ~30 % manja, u desnom donjem kutu, malo izlazi van slike (overlap) — niša u pozadini je vidljiva */
.kmm-stage { overflow: visible; }
.kmm-kasa {
    position: absolute; z-index: 2;
    right: var(--kmm-kasa-right, -16%); bottom: var(--kmm-kasa-bottom, -15%);
    width: var(--kmm-kasa-w, 92%); height: auto; max-width: none;
    object-fit: contain;
}
@media (prefers-reduced-motion: reduce) { .kmm-bg__layer { transition: opacity .2s linear; transform: none; } }
/* ==========================================================================
   Crvena obavijest iznad headera — Adventske kućice (header.php, #kasa-annc)
   ========================================================================== */
.kasa-annc {
    position: relative; z-index: 61; overflow: hidden; color: #fff;
    background: linear-gradient(90deg, #9E0B23 0%, #C8102E 35%, #E11D48 50%, #C8102E 65%, #9E0B23 100%);
    background-size: 200% 100%;
    animation: kasa-annc-shine 7s ease-in-out infinite;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18);
}
.kasa-annc::after { /* tanka traka poput bombona na dnu */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: .9;
    background: repeating-linear-gradient(-45deg, #fff 0 8px, #0E6B3A 8px 16px, #fff 16px 24px, #C8102E 24px 32px);
}
@keyframes kasa-annc-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.kasa-annc__inner {
    max-width: 1600px; margin: 0 auto; min-height: 2.75rem;
    padding: .4rem 2.75rem .55rem 1rem;
    display: flex; align-items: center; justify-content: center; gap: .65rem 1rem; flex-wrap: wrap;
}
.kasa-annc svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kasa-annc__ico { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .95rem; animation: kasa-annc-spin 9s linear infinite; }
@keyframes kasa-annc-spin { to { transform: rotate(360deg); } }
.kasa-annc__text { margin: 0; font-size: .88rem; line-height: 1.3; font-weight: 500; text-align: center; }
.kasa-annc__text strong { font-weight: 800; letter-spacing: .01em; margin-right: .35rem; }
.kasa-annc__short { display: none; }
.kasa-annc__btn {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: 0 .95rem; border-radius: 999px;
    background: #fff; color: #C8102E; font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); transition: transform .2s, background-color .2s, color .2s;
}
.kasa-annc__btn:hover { transform: translateY(-1px); background: #FFF1F3; color: #9E0B23; }
.kasa-annc__btn:focus-visible, .kasa-annc__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kasa-annc__btn-short { display: none; }
.kasa-annc__close {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; border-radius: 999px;
    background: transparent; color: rgba(255,255,255,.85); cursor: pointer; font-size: 1rem;
}
.kasa-annc__close:hover { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 767px) {
    .kasa-annc__inner { flex-wrap: nowrap; justify-content: flex-start; padding: .45rem 2.6rem .6rem .75rem; gap: .55rem; }
    .kasa-annc__ico { width: 1.4rem; height: 1.4rem; font-size: .8rem; }
    .kasa-annc__long { display: none; }
    .kasa-annc__short { display: inline; }
    .kasa-annc__text { font-size: .8rem; text-align: left; flex: 1; min-width: 0; }
    .kasa-annc__text strong { display: block; margin: 0; font-size: .82rem; }
    .kasa-annc__btn { min-height: 2.1rem; padding: 0 .8rem; }
    .kasa-annc__btn-long { display: none; }
    .kasa-annc__btn-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .kasa-annc, .kasa-annc__ico { animation: none; } }
@media print { .kasa-annc { display: none !important; } }
/* ===== Ultra brzi upit — link u glavnom izborniku ===== */
.kasa-bu-nav { position: relative; gap: .3rem; }
.kasa-bu-nav__bolt { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #D4E157; font-size: 12px; line-height: 1; box-shadow: 0 0 0 0 rgba(212,225,87,.7); animation: kasa-bu-nav-pulse 2.2s infinite; }
@keyframes kasa-bu-nav-pulse { 0% { box-shadow: 0 0 0 0 rgba(212,225,87,.75); } 70%, 100% { box-shadow: 0 0 0 8px rgba(212,225,87,0); } }
@media (prefers-reduced-motion: reduce) { .kasa-bu-nav__bolt { animation: none; } }
@media (min-width: 1280px) and (max-width: 1535px) { nav:has(> .kasa-bu-nav) { gap: 1.25rem !important; } .kasa-bu-nav { white-space: nowrap; } }
