/* =================================================================
   OPTIMIZED GENERAL CSS - Product Pages & Site-Wide Styles
   Colors: Gold #d1c466, Black #000000, Dark Gray #1e1e1e
   ================================================================= */

/* ===== INLINE CSS MOVED FROM HEADER ===== */

body, button, input, select, textarea {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}

/* .prvipasus styling */
.prvipasus {
    display: block;
    margin-block-start: 1em !important;
    margin-block-end: 1em !important;
    margin-inline-start: 0px !important;
    margin-inline-end: 0px !important;
    unicode-bidi: isolate;
    margin: 0 0 1.41575em;
    color: #d1c466;
}

/* Breadcrumb styling */
.storefront-breadcrumb {
    background-color: #d1c466;
    color: #191e23!important;
    margin-bottom: 5px;
}

.storefront-breadcrumb {
    margin: 0 0 1.618em;
    padding: 1em 0;
}

.woocommerce-breadcrumb {
    font-size: .875em;
}

* {
    box-sizing: border-box;
}

.secondary-navigation a {
    color: #d1c466;
}

nav {
    display: block;
}

/* Ponisti media queries */
@media only screen and (min-width: 800px) {
    .ponisti {
        display: flex;
        margin: auto;
        width: 50%;
    }
}

@media only screen and (max-width: 800px) {
    .ponisti {
        display: flex;
        margin: auto;
        max-height: 45px;
    }
}

/* Image styling */
.fslika {
    max-height: 70px;
    padding: 5px;
}

/* ===== PRODUCT META & SHORT DESCRIPTION ===== */
body.single-product div.product .product_meta {
    display: none !important;
}

.woocommerce-product-details__short-description {
    background-color: #000000 !important;
    color: #d1c466 !important;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.excerpt-toggle,
.excerpt-toggle-less {
    display: inline !important;
    font-weight: 600;
    color: #d1c466 !important;
    margin-left: 8px;
    font-style: normal !important;
    cursor: pointer;
}

/* ===== ACCORDION TABS ===== */
.tab-akordion {
    background-color: #1e1e1e;
    color: #d1c466;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #333;
}

.tab-akordion summary {
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background-color: #000;
    color: #d1c466;
    border-bottom: 1px solid #333;
    list-style: none;
}

.tab-akordion summary::marker {
    display: none;
}

.tab-akordion[open] summary {
    border-bottom: 1px solid #d1c466;
}

.tab-akordion .tab-sadrzaj {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #d1c466;
}

.tab-akordion .tab-sadrzaj p {
    margin-bottom: 16px;
}

/* Product attributes table */
.woocommerce-product-attributes {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    border: 1px solid #d1c466;
    padding: 10px;
    text-align: left;
    font-size: 15px;
}

/* Hide default WooCommerce tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs .panel:not(.custom-akordioni .panel) {
    display: none !important;
}

/* Accordion link style (external links) */
.tab-akordion-link {
    background-color: #000;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.tab-akordion-link a {
    display: block;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: #d1c466;
    transition: background 0.3s;
}

.tab-akordion-link a:hover {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* ===== UVODNI BLOK (Intro Block - Read More/Less) ===== */
.uvodni-blok {
    background-color: #000000;
    color: #d1c466;
    padding: 0 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.uvodni-blok summary {
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;
    color: #d1c466;
    list-style: none;
    margin-bottom: 0;
    display: block;
}

.uvodni-blok .procitaj-vise,
.uvodni-blok .zatvori-dugme {
    display: inline;
    font-size: 15px;
    font-weight: 600;
    color: #d1c466;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 6px;
    white-space: normal;
}

.uvodni-blok details[open] .procitaj-vise {
    display: none;
}

.uvodni-blok .zatvori-dugme {
    display: block;
    text-align: right;
    margin-top: 10px;
}

.uvodni-blok .zatvori-dugme:hover {
    text-decoration: underline;
}

.uvodni-blok a {
    color: #d1c466;
    text-decoration: underline;
}

.uvodni-blok ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style-position: inside;
}

.uvodni-blok ul li {
    margin-bottom: 6px;
}

/* ===== MOBILE SLIDE MENU ===== */
.pk-slide-menu {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    color: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
}

.pk-slide-menu.active {
    display: block;
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.pk-close-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    color: #fff;
    background: #c00;
    border: none;
    cursor: pointer;
    z-index: 10000;
    padding: 6px 12px;
    border-radius: 6px;
}

.pk-hamburger {
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    color: #d1c466;
}

.pk-icons a,
.pk-icons span {
    font-size: 20px;
    margin-left: 10px;
    color: #fff;
}

.pk-slide-menu a {
    color: #d4af37;
    text-decoration: none;
    font-size: 20px;
    display: block;
    padding: 4px 0 6px 0;
    line-height: 1.2;
    border-bottom: 1px solid #333;
}

.pk-slide-menu a:hover {
    color: #f1c849;
}

.pk-slide-menu ul.sub-menu {
    display: none;
    padding-left: 15px;
}

.pk-slide-menu li.menu-item-has-children > a::after {
    content: "▼";
    float: right;
    margin-left: 10px;
    font-size: 12px;
}

.pk-slide-menu li.menu-item-has-children.open > ul.sub-menu {
    display: block;
}

.pk-slide-menu li a,
.pk-slide-menu li span {
    color: #d1c466;
}

.pk-slide-menu li a:hover,
.pk-slide-menu li span:hover {
    color: #fff;
}

.pk-slide-menu ul {
    padding-top: 20px;
}

.pk-slide-menu ul.sub-menu li a {
    padding: 5px 0 5px 25px;
    font-size: 16px;
    color: #cccccc;
    border-bottom: 1px dashed #333;
    line-height: 1.2;
}

.pk-slide-menu ul.sub-menu li a:hover {
    color: #ffffff;
    background-color: #222;
}

/* ===== MOBILE HEADER ===== */
.pk-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    z-index: 9999;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none;
}

/* ===== WOOCOMMERCE MESSAGES (Site-Wide) ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #1e1e1e !important;
    color: #d1c466 !important;
    border-left: 2px solid #d1c466;
    border-radius: 6px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    margin: 20px auto;
    box-shadow: 0 0 5px rgba(209, 196, 102, 0.3);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #d1c466 !important;
    text-decoration: underline;
    font-weight: bold;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Mobile header layout */
    .pk-mobile-header {
        display: flex;
        flex-direction: column;
    }

    .pk-mobile-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
    }

    .pk-hamburger {
        font-size: 34px;
        color: #d1c466;
        cursor: pointer;
    }

    .pk-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .pk-logo img {
        max-height: 38px;
        width: auto;
        display: block;
    }

    .pk-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .pk-icons span,
    .pk-icons a {
        font-size: 22px;
        color: #d1c466;
    }

    /* Slide menu mobile positioning */
    .pk-slide-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background: #000;
        color: #d1c466;
        z-index: 10000;
        transition: left 0.3s ease;
        padding: 30px 20px;
    }

    .pk-slide-menu.active,
    .pk-slide-menu[style*="block"] {
        left: 0 !important;
    }

    .pk-slide-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pk-slide-menu ul li {
        margin: 20px 0;
        font-size: 18px;
    }

    .pk-slide-menu ul li a {
        color: #d1c466;
        text-decoration: none;
    }

    /* Search overlay */
    .pk-search-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        z-index: 9998;
        display: none;
    }

    .pk-search-box input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
    }

    .pk-search-box button {
        margin-top: 10px;
        background: #000;
        color: #fff;
        border: none;
        padding: 8px 14px;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .tab-akordion summary,
    .tab-akordion-link a {
        font-size: 16px;
        padding: 16px 20px;
    }

    .tab-akordion .tab-sadrzaj {
        padding: 16px 20px;
    }
}

@media (min-width: 769px) {
    .pk-mobile-header {
        display: none !important;
    }
}
