/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* Checkout - Adresa i Broj ulice u jednom redu */

/* Dva polja za shipping u istom redu (adresa i broj) */
/* Wrapper za oba polja u jednom redu */
#billing_address_1_field, #billing_address_2_field {
    display: inline-block !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}

#billing_address_1_field {
    width: 68% !important;
    margin-right: 2% !important;
}

#billing_address_2_field {
    width: 30% !important;
    margin-right: 0 !important;
}

/* Input polja tako�e manja (ako tema ne�to pregazi) */
#billing_address_1_field .input-text {
    width: 98% !important;
    min-width: 0 !important;
}

#billing_address_2_field .input-text {
    width: 98% !important;
    min-width: 0 !important;
}

/* Labela neka bude full �irine polja */
#billing_address_1_field label,
#billing_address_2_field label {
    width: 100% !important;
    display: block !important;
    margin-bottom: 4px;
    font-size: 1em;
}
/* Selektor za opis brenda na arhivama atributa i brendova */
.tax-pa_brand .term-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* broj vidljivih redova */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

    .tax-pa_brand .term-description.expanded {
        -webkit-line-clamp: unset;
        overflow: visible;
    }

/* Dugme +/� */
.brand-toggle {
    display: inline-block;
    margin-top: 5px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
}
.brand-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* prikazuje 2 reda */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .brand-clamped.expanded {
        -webkit-line-clamp: unset;
        overflow: visible;
    }
.read-more-btn {
    background-color: #f05a28; /* boja cene */
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .read-more-btn:hover {
        background-color: #d94f22; /* malo tamnija nijansa */
    }
    
td.name a {
    color: #ff7a00; /* narandžasta */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}







/* ==================================================
   ARMY SHOP — DROPDOWN SAMO ZA KATEGORIJE PROIZVODA
   Ne utiče na Brendove, Moj nalog i druge dropdownove
   ================================================== */


/* 1. Standardna širina dropdowna sa kategorijama */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu {
    width: 410px !important;
    min-width: 410px !important;
    max-width: 410px !important;
}


/* 2. Unutrašnji container prati zadatu širinu */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 20px !important;
}


/* 3. Izgled redova samo za direktne podkategorije */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat {
    border-bottom: 1px solid #eeeeee;
}


/* Donja linija i ispod poslednje kategorije */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat:last-child {
    border-bottom: 1px solid #eeeeee !important;
}


/* 4. Link, tekst i razmak */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat
> a.woodmart-nav-link {
    display: flex !important;
    align-items: center !important;

    padding: 10px 12px 10px 8px !important;
    gap: 15px !important;

    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #4b4b4b !important;

    white-space: nowrap !important;
}


/* 5. Ikonice kategorija — vraćene na dobru veličinu */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat
> a.woodmart-nav-link
> img.wd-nav-img {
    display: block !important;

    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    flex: 0 0 50px !important;
    object-fit: contain !important;

    margin: 0 !important;
}


/* 6. Diskretan hover */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat:hover {
    background-color: #fafafa;
}

.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu
> .wd-entry-content
> .wd-sub-menu
> li.menu-item-object-product_cat:hover
> a.woodmart-nav-link {
    color: #111111 !important;
}


/* ==================================================
   8+ PODKATEGORIJA — RESPONSIVE DVE KOLONE
   ================================================== */

.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu:has(
    > .wd-entry-content
    > .wd-sub-menu
    > li:nth-child(8)
) {
    width: min(820px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;

    right: auto !important;
}

/* Dve jednake kolone */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu:has(
    > .wd-entry-content
    > .wd-sub-menu
    > li:nth-child(8)
)
> .wd-entry-content
> .wd-sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
    width: 100% !important;
}

/* Container za vertikalnu liniju */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu:has(
    > .wd-entry-content
    > .wd-sub-menu
    > li:nth-child(8)
)
> .wd-entry-content {
    position: relative;
}

/* Linija između kolona */
.wd-header-main-nav
.wd-nav-main
> li.menu-item-object-product_cat
> .wd-dropdown-menu:has(
    > .wd-entry-content
    > .wd-sub-menu
    > li:nth-child(8)
)
> .wd-entry-content::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 1px;
    background: #eeeeee;
    pointer-events: none;
}

/* Na užim ekranima jedna kolona */
@media (max-width: 900px) {
    .wd-header-main-nav
    .wd-nav-main
    > li.menu-item-object-product_cat
    > .wd-dropdown-menu:has(
        > .wd-entry-content
        > .wd-sub-menu
        > li:nth-child(8)
    )
    > .wd-entry-content
    > .wd-sub-menu {
        grid-template-columns: 1fr !important;
    }

    .wd-header-main-nav
    .wd-nav-main
    > li.menu-item-object-product_cat
    > .wd-dropdown-menu:has(
        > .wd-entry-content
        > .wd-sub-menu
        > li:nth-child(8)
    )
    > .wd-entry-content::after {
        display: none;
    }
}


/* ==========================================
   BRENDOVI - manji logoi + linije između redova
   ========================================== */

/* Malo manji logoi */
.wd-brand-item img{
    max-height:50px !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    transition:all .25s ease;
}

.wd-dropdown-menu{
    padding-top: 0 !important;
}

/* Malo manji razmaci */
.wd-brand-item{
    padding:16px 10px !important;
    position:relative;
}

/* Horizontalna linija između svih redova */
.wd-brand-item::after{
    content:"";
    position:absolute;
    left:8%;
    right:8%;
    bottom:0;
    height:1px;
    background:#ececec;
}

/* Centriranje logoa u svakoj kockici */
.wd-brand-item{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

/* Centriranje slike */
.wd-brand-item img{
    display:block;
    margin:0 auto !important;
    max-width:90%;
    max-height:50px;
    object-fit:contain;
}

@font-face {
    font-family: 'woodmart-font';
    src: url(../fonts/woodmart-font.woff2) format('woff2');
    font-display: swap;
}
