@import url('components/custom-select.css');
@import url('components/megamenu.css');
@import url('components/header-island.css');

/* * ========================================
 * COMPONENT IMPORTS - ALL CSS COMPONENTS
 * ======================================== */
@import url('components/ds-buttons.css');
@import url('components/ds-icon-buttons.css');
@import url('components/ds-forms.css');
@import url('components/ds-nav.css');
@import url('components/ds-cards.css');
@import url('components/ds-hover.css');
@import url('components/ds-badges.css');
@import url('components/ds-misc.css');
@import url('components/accordion.css');
@import url('components/breadcrumbs.css');
@import url('components/block-contact-departments.css');
@import url('components/block-contact-info.css');
@import url('components/block-contact-showrooms.css');
@import url('components/block-cta-banner.css');
@import url('components/block-embed.css');
@import url('components/block-faq-group.css');
@import url('components/block-gallery-preview.css');
@import url('components/block-gallery-slider.css');
@import url('components/lightbox-skin.css');
@import url('components/block-hero-video.css');
@import url('components/block-hero-variants.css');
@import url('components/block-project-intro.css');
@import url('components/block-quote-indent.css');
@import url('components/block-related-products.css');
@import url('components/block-smart-bento.css');
@import url('components/block-smart-card-grid.css');
@import url('components/block-job-listings.css');
@import url('components/block-policy-list.css');
@import url('components/block-certifikati-list.css');
@import url('components/block-smart-hero.css');
@import url('components/block-smart-media.css');
@import url('components/block-smart-post-feed.css');
@import url('components/block-smart-slider.css');
@import url('components/block-smart-tabs.css');
@import url('components/block-smart-text.css');
@import url('components/block-spacer-divider.css');
@import url('components/block-strength-numbers.css');
@import url('components/block-video.css');
@import url('components/card-aktualnosti.css');
@import url('components/card-brendovi.css');
@import url('components/cart-redesign.css');
@import url('components/footer.css');
@import url('components/header.css');
@import url('components/home-brendovi-marquee.css');
@import url('components/block-marquee.css');
@import url('components/block-sale-list.css');
@import url('components/block-rdesign-magazine.css');
@import url('components/block-custom-query.css');
@import url('components/primat-dropdown.css');
@import url('components/search-overlay.css');
@import url('components/single-product.css');
@import url('components/transitions.css');
@import url('components/video-text-overlay.css');
@import url('components/woocommerce.css');
@import url('components/ds-section-header.css');

/* * -----------------------------
 * Base Utilities & Fixes
 * ----------------------------- */
/* FOUC Prevention */
[id^="char"] {
    opacity: 0;
    visibility: hidden;
}

/* Utility Classes */
.visible-none {
    visibility: hidden;
}

.is-radius {
    border-radius: var(--radius-md);
}

/* Video Clipping Effects */
.clip {
    /* GPU promotion handled by GSAP */
    backface-visibility: hidden;
    overflow: hidden;
    width: 100%;
    transition: border-radius 0.3s ease;
}

/* * -----------------------------
 * Hero Section
 * ----------------------------- */
/* Hero Layout */
.home-hero_section {
    display: flex;
    width: 100%;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5rem;
}

.home-hero_wrapper {
    /* GPU promotion handled by GSAP */
    transition: border-radius 0.3s ease;
    overflow: hidden;
}

/* Hero Text Positioning */
.header-position-relative {
    position: relative;
    bottom: calc(100svh * 0.32);
}

.hero-header-text__wrap {
    grid-area: 1 / 7 / 2 / 12;
    top: 1rem;
    max-width: 44ch;
}

/* Hero Image Overlay */
.pr-story-img__img-wrapper--overlay {
    position: relative;
    overflow: hidden;
}

/* * -----------------------------
 * Section Headers & Grid Positioning
 * ----------------------------- */
/* Opremanje Section */
.pr-opremanje__subheader-wrap {
    grid-area: 1 / 7 / 2 / 13;
    max-width: 60ch;
}

.opremanje-button {
    grid-area: 3 / 7 / 4 / 12;
}

.opremanje-foot-text-wrap {
    grid-area: 2 / 7 / 3 / 12;
    max-width: 45ch;
}

/* Usluge Section */
.pr-usluge__subheader-wrap {
    grid-area: 1 / 7 / 2 / 13;
}

.max-width-usluge-subheader {
    max-width: 29ch;
}

/* Projekti Section */
.pr-projekti__subheader-wrap {
    grid-area: 1 / 7 / 2 / 13;
    max-width: 70ch;
}

.all-projects_link-wrap {
    grid-area: 2 / 7 / 3 / 10;
    display: flex;
    justify-content: flex-start;
}

.hero-projekti_gap {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.projekti-slider-wrap {
    grid-area: 2 / 1 / 3 / 13;
}

/* * -----------------------------
 * Asortiman Slider
 * ----------------------------- */
.asortiman-slider-background {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100svh;
    width: auto;
    height: auto;
    object-fit: cover;
}

.asortiman-slider-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

/* * -----------------------------
 * Layout Utilities
 * ----------------------------- */
.content-placeholder {
    grid-area: 1 / 1 / 2 / 13;
}

.prsection-padding-bottom {
    padding-bottom: 6rem;
}

.marquee-arrow {
    color: var(--lightgreen);
}

/* .newsletter-grey-back {
    grid-area: 1 / 7 / 2 / 13;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.newsletter-card-image {
    grid-area: 1 / 1 / 2 / 7;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


@media (max-height: 700px) {
    .newsletter-grey-back {
        padding: 1.5rem;
    }

    .newsletter-grey-back .heading-style-h2 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .newsletter-grey-back .heading-style-h6 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .newsletter-grey-back .rdesign-card__flex {
        row-gap: 1rem;
    }
}

@media (max-height: 550px) {
    .newsletter-grey-back {
        padding: 1rem;
    }

    .newsletter-grey-back .heading-style-h2 {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .newsletter-grey-back .heading-style-h6 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
} */
.asortiman_button_wrap {
    grid-area: 1 / 11 / 2 / 13;
    justify-content: flex-end;
    display: flex;
    align-items: flex-start;
}

.newsletter-header-fix {
    margin-bottom: -0.7rem;
}

/* * -----------------------------
 * Development/Temporary Styles
 * ----------------------------- */
#pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;

    /* margin-bottom: 0.5rem; */
    border: 1px solid var(--dark);
    border-radius: var(--radius-full);
    font-size: calc(var(--size-font) * 0.75);
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease-out;
    text-transform: uppercase;
    font-variation-settings: "wght" 600;
    cursor: pointer;
}

#pill:hover {
    background-color: var(--dark);
    color: var(--white);
    text-decoration: none;
}

#pill:last-child {
    margin-right: 0;
}

.arrow-scrolldown-size {
    width: 2.8rem;
}

.border-radius-0 {
    border-radius: var(--radius-none);
}

/* * ========================================
 * WORDPRESS MENU
 * ======================================== */
/* WordPress Primary Menu */
.wp-menu-area {
    flex: 1;
}

.wp-primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.wp-primary-menu li {
    position: relative;
}

.wp-primary-menu a {
    text-decoration: none;
    padding: 1rem 0;
    display: inline-flex;
    align-items: center;
    font-size: 1.em;
    font-variation-settings: "wght" 500;
    cursor: pointer;
    letter-spacing: -0.03125em;

    /* Add pointer cursor to main menu links */
}

.wp-primary-menu .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M4 6L8 10L12 6" stroke="%231E1E1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    transform-origin: center;

    /* crucial */
}

.wp-primary-menu .menu-item-has-children:hover>a::after,
.wp-primary-menu .menu-item-has-children:focus-within>a::after,
.wp-primary-menu .menu-item-has-children.wp-menu-hover>a::after {
    transform: rotate(180deg);
}

/* Submenu - WordPress standard structure */
.wp-primary-menu .menu-item-has-children>.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    /* Remove white background - let items have individual backgrounds */
    background: transparent;
    box-shadow: none;

    /* AUTO WIDTH based on content */
    min-width: fit-content;
    white-space: nowrap;

    /* OR use this if you
   want single line */
    max-width: 400px;

    /* Padding on sides - reduced for individual item backgrounds */
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border-radius: var(--radius-none);
}

.wp-primary-menu .menu-item-has-children:hover>.sub-menu,
.wp-primary-menu .menu-item-has-children:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CRITICAL: Disable hover-based submenu on mobile/touch devices */
@media (hover: none) {
    .wp-primary-menu .menu-item-has-children:hover>.sub-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
    }
}

/* Force hide submenus during page transitions */
body.is-transitioning .wp-primary-menu .sub-menu,
html.is-transitioning .wp-primary-menu .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
}

.wp-primary-menu .sub-menu li {
    margin-bottom: 0.25rem;

    /* Individual background blocks */
    background: oklch(from var(--light) l c h / 0.8);
    border-radius: var(--radius-md);
}

.wp-primary-menu .sub-menu li:last-child {
    margin-bottom: 0;
}

.wp-primary-menu .sub-menu a {
    padding: 0.5rem 0.75rem;
    color: var(--dark);
    transition: all 0.2s ease;
    display: block;
    border-radius: var(--radius-sm);
    cursor: pointer;

    /* Add pointer cursor to submenu links */
    /* Force single line */
    white-space: nowrap;
}

/* Hover state - light green background */
.wp-primary-menu .sub-menu a:hover {
    background: var(--lightgreen);
    color: var(--dark);
}

/* Active/Selected state */
.wp-primary-menu .sub-menu a:active,
.wp-primary-menu .sub-menu .current-menu-item>a {
    background: var(--lightgreen);
    color: var(--dark);
}

/* Layout - Keep horizontal on desktop */
.pr-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Desktop stays single row - don't change height! */
}

.pr-nav__static {
    flex-shrink: 0;

    /* grid-column: 5 / 6 */
}

/* Reorder elements with flex-order - Move hamburger to end */
.pr-nav .wp-menu-area {
    order: 1;
}

.pr-nav .mobile-menu-toggle {
    order: 3;
}

.pr-nav .pr-nav__static {
    order: 2;
}

/* Hide ACF image elements in accordion tabs */
.hidden-acf-image {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ========================================
 * MOBILE MENU STYLES
 * ======================================== */
/* Completely hide the old mobile menu overlay - no longer needed */
.mobile-menu-overlay,
.mobile-menu,
.mobile-menu__header,
.mobile-menu__content,
.mobile-menu__list,
.mobile-menu__item,
.mobile-menu__footer {
    display: none !important;
}

/* Mobile Menu Toggle (hamburger) */
.mobile-menu-toggle {
    display: none;

    /* Hidden on desktop */
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    align-self: center;
}

/* Make hamburger more visible */
.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 28px;
}

/* Animate to X when open - ENHANCED */
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
    width: 24px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    width: 24px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
    width: 24px;
}

/* Mobile Navigation - Two row layout */
/* On mobile, show hamburger */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide menu items by default on mobile - more specific selector */
    .pr-nav .wp-menu-area {
        display: none;
    }

    /* Hide Kontakt button from top bar on mobile (we'll show it inside menu) */
    .pr-nav__static li:has(.btn.btn-simple) {
        display: none;
    }

    /* When expanded - show menu items in second row with white background */
    .pr-nav.expanded {
        background: var(--white);
        box-shadow: 0 5px 20px oklch(0% 0 0 / 0.08);
    }

    .pr-nav.expanded .wp-menu-area {
        display: block;
        padding: 0.5rem 1.5rem 1.5rem 1.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--linegrey);
        width: 100%;
    }

    /* WordPress primary menu - mobile */
    .pr-nav .wp-primary-menu {
        flex-direction: column;
        gap: 0;
    }

    .pr-nav .wp-primary-menu>li {
        border-bottom: 1px solid var(--linegrey);
    }

    .pr-nav .wp-primary-menu>li:last-child {
        border-bottom: none;
    }

    .pr-nav .wp-primary-menu a {
        padding: 1rem 0;
        font-size: 1.125rem;
        font-weight: 500;
    }

    /* Submenu styles for mobile - HIDDEN by default, expand on click */
    .pr-nav .wp-primary-menu .menu-item-has-children>.sub-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin-top: 0;
        padding: 0;
        transition: all 0.3s ease;
    }

    /* Submenu expanded state */
    .pr-nav .wp-primary-menu .menu-item-has-children.expanded>.sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }

    .pr-nav .wp-primary-menu .sub-menu li {
        border: none;
        margin-bottom: 0.25rem;
        background: transparent;
    }

    /* Add dropdown arrow for items with submenus on mobile */
    .pr-nav .wp-primary-menu .menu-item-has-children>a::after {
        content: '▼';
        margin-left: 0.5rem;
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when expanded */
    .pr-nav .wp-primary-menu .menu-item-has-children.expanded>a::after {
        transform: rotate(180deg);
    }

    .pr-nav .wp-primary-menu .sub-menu a {
        padding: 0.75rem 0;
        font-size: 1rem;
        font-weight: 400;
        display: block;
    }

    /* Mobile-only Kontakt button styling */
    .mobile-only-kontakt {
        border-top: 2px solid var(--linegrey);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .mobile-only-kontakt a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        background: var(--dark);
        color: var(--white) !important;
        border-radius: var(--radius-md);
    }

    .mobile-only-kontakt a:hover {
        background: var(--accent);
    }
}

.subpage-header-counter {
    grid-area: 1 / 10 / 2 / 13;
}

.subheader-position {
    grid-area: 2 / 7 / 3 / 13;
    text-indent: 6em;
    hyphens: none;
    position: relative;
    left: -6rem;
    max-width: 67ch;
}

.top-line {
    border-top: 0.5px solid var(--dark);
}

.bottom-line {
    border-bottom: 0.5px solid var(--dark);
}

.filter-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.footer-newsletter-wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.footer-newsletter-container {
    grid-area: 1 / 1 / 2 / 4;
}

/* *******************************
Loader Arch
******************************* */
.loader-arch {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
}

.loader-arch svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-arch rect {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 150;

    /* Approx perimeter of 40x40 box */
    stroke-dashoffset: 150;
    animation: drawBox 2s ease-in-out infinite;
}

@keyframes drawBox {
    0% {
        stroke-dashoffset: 150;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -150;
    }
}

.katalozi-btn-wrap {
    grid-area: 4 / 1 / 5 / 6;
}

.headericons {
    width: 1.25rem;
}

.header-collection-icon {
    width: 1.375rem;
}

.katalog-pagination {
    grid-area: 1 / 1 / 2 / 4;
}

.new-subheader-position {
    grid-area: 1 / 7 / 2 / 13;
    text-indent: 6em;
    hyphens: none;
    position: relative;
    bottom: 0.5rem;
    left: -6rem;
    max-width: 42ch;
    align-content: end;
}

.grid-is-bigger-row {
    row-gap: calc(var(--spacer-base) * 4);
}

.aktualnosti-content-pos {
    grid-area: 2 / 7 / 3 / 13;
}

/* Pagination wrapper */
.ds-pagination-wrap {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .ds-pagination-wrap {
        padding-top: var(--space-6);
        padding-bottom: var(--space-6);
    }
}

@media (max-width: 479px) {
    .pagination-list {
        gap: var(--space-0-5);
    }

    .pagination-list a,
    .pagination-list span {
        min-width: 32px;
        height: 32px;
        padding: 0 var(--space-1);
        font-size: var(--text-xs);
    }
}

/* Elite Seal Badge Design */
.pr-sale-seal-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark, #1a1a1a);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1;

    /* Custom 28-point smooth architectural starburst */
    clip-path: polygon(50% 0%, 58% 8%, 69% 6%, 75% 15%, 85% 17%, 88% 28%, 97% 33%, 94% 44%, 100% 54%, 92% 63%, 94% 75%, 83% 79%, 81% 91%, 69% 90%, 62% 99%, 50% 95%, 38% 99%, 31% 90%, 19% 91%, 17% 79%, 6% 75%, 8% 63%, 0% 54%, 6% 44%, 3% 33%, 12% 28%, 15% 17%, 25% 15%, 31% 6%, 42% 8%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    user-select: none;
}

.pr-sale-seal-badge:hover {
    transform: scale(1.1) rotate(12deg);
    background-color: var(--neutral-950);
}

@media (max-width: 768px) {
    .pr-sale-seal-badge {
        width: 60px;
        height: 60px;
        font-size: 1rem;
        top: 1rem;
        right: 1rem;
    }
}

.primat-log-home-footer {
}
