/**
 * SajtShop — Frontend Styles
 *
 * All customer-facing CSS overrides.
 */

/* =========================================================================
 * CHECKOUT
 * ========================================================================= */

#billing-state {
    display: none !important;
}

.wc-block-components-checkout-place-order-button {
    background-color: var(--wd-primary-color);
    color: white;
}

.woocommerce-thankyou-order-received {
    border: 0px dashed #000 !important;
    color: var(--wd-primary-color);
}

.shipped_via {
    display: none !important;
}

.woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}

.woocommerce-privacy-policy-text {
    display: none !important;
}

.uslovi-checkout {
    margin-bottom: 15px;
}

.informacije-o-dostavi {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
}

/* =========================================================================
 * PRODUCT ATTRIBUTES (hide system attributes)
 * ========================================================================= */

.woocommerce-product-attributes-item--attribute_pa_smd-istaknuti-proizvodi {
    display: none !important;
}

/* =========================================================================
 * NEWSLETTER / IN-STOCK NOTIFIER
 * ========================================================================= */

.cwginstock-subscribe-form .panel-primary > .panel-heading {
    color: #fff;
    background-color: var(--wd-primary-color);
    border-color: var(--wd-primary-color);
}

.cwginstock-subscribe-form .panel-primary {
    border-color: var(--wd-primary-color);
}

/* =========================================================================
 * SINGLE PRODUCT
 * ========================================================================= */

.wd-single-short-desc {
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.wd-single-add-cart {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.singlewish {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
}

.dostavaispodadd {
    text-align: right;
}

.woocommerce-price-suffix {
    font-size: 11px;
}

/* Hide WAPF and delivery info in sticky add-to-cart */
.wd-sticky-btn-cart .wapf,
.wd-sticky-btn-cart .dostavaispodadd {
    display: none;
}

/* =========================================================================
 * FOOTER
 * ========================================================================= */

.wd-copyrights.copyrights-wrapper.wd-layout-two-columns {
    background-color: var(--wd-main-bgcolor);
}

/* =========================================================================
 * LOGO
 * ========================================================================= */

.logo-header-desktop {
    width: 250px;
    height: auto;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.logo-header-mobile {
    width: 175px;
    height: auto;
}

.logo-futer {
    width: 250px;
    height: auto;
}

.whb-sticked .logo-header-desktop {
    width: 200px;
}

/* =========================================================================
 * FOOTER MENU
 * ========================================================================= */

#menu-footer-meni {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#menu-footer-meni li {
    margin: 0;
}

#menu-footer-meni a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#menu-footer-meni a:hover {
    color: #777;
}

@media screen and (max-width: 768px) {
    #menu-footer-meni {
        flex-direction: column;
        align-items: center;
    }

    #menu-footer-meni a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================================
 * SOCIAL LINKS
 * ========================================================================= */

.social-links {
    display: flex;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-links a img {
    width: 30px;
    height: auto;
}

@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Disable click on menu spacer items */
.menu-item a[href="#"] {
    pointer-events: none;
}

/* =========================================================================
 * CART & CHECKOUT
 * ========================================================================= */

.woocommerce-shipping-destination {
    display: none !important;
}

.woocommerce-shipping-calculator {
    display: none !important;
}

.woocommerce-result-count {
    display: none !important;
}

/* =========================================================================
 * SHOP PAGE
 * ========================================================================= */

@media (min-width: 768px) {
    .sidebar-widget {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0px 0px 3px #dbdbdb;
    }

    .shop-loop-head {
        background-color: #ffffff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0px 0px 3px #dbdbdb;
    }
}

@media (max-width: 768.98px) {
    .wd-sidebar-hidden-sm .wd-shop-tools:not(:last-child) {
        border-bottom: none !important;
        padding-bottom: 0px !important;
    }

    .product-wrapper {
        height: 100%;
    }

    .wd-sidebar-hidden-sm .wd-shop-tools:not(:first-child) {
        background-color: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0px 0px 3px #dbdbdb;
    }
}

.page-description img {
    border-radius: 8px;
}

/* =========================================================================
 * COMMENTS (hidden)
 * ========================================================================= */

#comments,
.wd-meta-reply {
    display: none;
}

/* =========================================================================
 * COOKIE NOTICE
 * ========================================================================= */

@media (max-width: 768.98px) {
    .wd-cookies-inner .cookies-info-text {
        padding-inline-end: 0;
        font-size: 10px;
    }

    .wd-cookies-inner .cookies-buttons {
        zoom: 0.7;
    }
}

/* =========================================================================
 * HOMEPAGE SLIDER
 * ========================================================================= */

.slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.sajtshop-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.sajtshop-slider::-webkit-scrollbar {
    display: none;
}

.sajtshop-slider .slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.sajtshop-slider .slide img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

@media (max-width: 767px) {
    .slider-arrow {
        zoom: 0.5;
    }
}

/* =========================================================================
 * CLASSIC EDITOR
 * ========================================================================= */

body .mce-content-body {
    font-size: inherit;
}
