/**
 * 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
 * ========================================================================= */

.ss-slajder {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    user-select: none;
    margin-bottom: 20px;
}

.ss-slajder-viewport {
    overflow: hidden;
    width: 100%;
    height: 420px;
}

.ss-slajder-track {
    display: flex;
    transition: transform .4s ease;
    will-change: transform;
    height: 100%;
}

.ss-slajder-slide {
    min-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* Banner image — fill entire slide, cover within fixed height */
.ss-banner-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.ss-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Navigation arrows */
.ss-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    padding: 0;
}

.ss-nav:hover {
    background: rgba(0, 0, 0, .7);
}

.ss-prev {
    left: 10px;
}

.ss-next {
    right: 10px;
}

/* Product grid */
.ss-products-grid {
    display: grid;
    gap: 14px;
    padding: 14px;
    box-sizing: border-box;
    height: 100%;
    align-content: stretch;
}

.ss-grid-1 { grid-template-columns: 1fr; }
.ss-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ss-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ss-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product card */
.ss-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
    min-height: 0;
}

.ss-product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.ss-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 0;
}

.ss-card-thumb {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.ss-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.ss-product-card:hover .ss-card-thumb img {
    transform: scale(1.04);
}

.ss-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
}

.ss-card-body {
    padding: 8px 10px;
}

.ss-card-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
    color: #222;
}

.ss-card-price {
    font-size: 13px;
    color: #333;
}

.ss-card-price .price {
    font-weight: 700;
}

.ss-card-atc {
    padding: 6px 10px 10px;
}

.ss-card-atc .button,
.ss-card-atc .add_to_cart_button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    box-sizing: border-box;
}

.ss-card-atc .button:hover,
.ss-card-atc .add_to_cart_button:hover {
    background: #444;
    color: #fff;
}

/* Tablet */
@media (max-width: 768px) {
    .ss-slajder-viewport {
        height: 320px;
    }

    .ss-grid-3,
    .ss-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ss-slajder-viewport {
        height: 260px;
    }

    .ss-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .ss-products-grid {
        padding: 6px;
        gap: 6px;
    }

    .ss-card-title {
        font-size: 11px;
        margin: 0 0 2px;
    }

    .ss-card-body {
        padding: 4px 6px;
    }

    .ss-card-price {
        font-size: 11px;
    }

    .ss-card-atc {
        padding: 3px 6px 6px;
    }

    .ss-card-atc .button,
    .ss-card-atc .add_to_cart_button {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* =========================================================================
 * CLASSIC EDITOR
 * ========================================================================= */

body .mce-content-body {
    font-size: inherit;
}
