/*
 Theme Name:   PopularFX Child
 Template:     popularfx
*/

/*----

/* Make product images uniform size and prevent cropping/cutoff */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: contain; /* Ensures the whole image fits inside */
    object-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #fff; /* Optional: background for padding area */
    padding: 10px; /* Optional: adds space around image */
    box-sizing: border-box;
}
/* Add subtle shadow and rounded corners to product cards */
.woocommerce ul.products li.product {
    border-radius: 8px;          /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); /* Soft shadow */
    padding: 8px;               /* Space inside the card */
    background-color: #fff;      /* White background for contrast */
    transition: box-shadow 0.3s ease;
}

/* Slightly stronger shadow on hover for subtle effect */
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.sku_wrapper {
    display: none !important;
}

/* Style only the Prijava Kvara form */
#prijava-kvara-form {
    max-width: 600px;  /* reduces width */
    margin: 0 auto;    /* centers it horizontally */
    background-color: #25285E66; /* semi-transparent background */
    padding: 30px;
    border-radius: 10px; /* optional: rounded corners */
}
#prijava-kvara-form .pagelayer-contact-title {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

#prijava-kvara-form .pagelayer-contact-title::after {
    content: "•••";
    display: block;
    text-align: center;
    margin-top: 5px;
    color: #25285E; /* or whatever color you like */
}

#copy-mail, #copy-tel, #copy-ad {
  cursor: pointer;
}

.kategorije-grid ul.products li.product-category {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.kategorije-grid ul.products li.product-category:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Single product main image - bigger size */
.woocommerce-page div.product div.images img {
    width: 100%;
    max-height: 450px; /* bigger than before */
    object-fit: contain;
    object-position: center center;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

/* Single product gallery thumbnails - scale up proportionally */
.woocommerce-page div.product div.thumbnails img {
    width: 100px;  /* larger thumbnails */
    height: 100px; /* larger thumbnails */
    object-fit: contain;
    object-position: center center;
    background-color: #fff;
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Footer: 4 columns stack nicely on mobile */
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-widgets .widget {
    flex: 0 0 100%; /* Full width on mobile */
    margin-bottom: 20px;
}

/* Make shop content full width */
.woocommerce-page #content,
.woocommerce #content {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;  /* Remove any theme max-width */
}

#secondary,
.sidebar,
.widget-area {
    flex: 0 0 300px;  /* Wider sidebar if needed */
}
#primary,
.content-area,
.site-main {
    flex: 1;
}

/*  */
#secondary.widget-area {
    margin-top: 5px; 
}

/* Container for these small product groups */
.small-products ul.products {

    flex-wrap: nowrap !important;  /* prevent wrapping to next row */
    justify-content: center;       /* center the three products */
    gap: 20px;                     /* spacing between products */
    padding: 0;
}

/* Each product card */
.small-products ul.products li.product {
    flex: 0 0 32% !important;      /* fixed width: 3 per row with small gap */
    max-width: 32% !important;
    margin: 0 !important;
    float: none !important;
    transform: scale(0.95);        /* optional: shrink slightly */
    box-sizing: border-box;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    #secondary,              /* Common WooCommerce sidebar ID */
    .sidebar,                /* Generic sidebar class */
    .widget-area {           /* PopularFX sidebar wrapper */
        display: none !important;
    }

    /* Make the main content take full width when sidebar is hidden */
    #primary,
    .content-area,
    .site-main {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .small-products .products {
        overflow: hidden;
    }
    .small-products .swiper-pagination-bullet {
        background: #000;
        opacity: 0.4;
    }
    .small-products .swiper-pagination-bullet-active {
        opacity: 1;
    }
}

/* Cosmetics */
.woocommerce-checkout form.checkout{background:#fff;padding:20px;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.05);}
.woocommerce #place_order{background:#25285f !important;border-color:#25285f !important;color:#fff !important;}
.woocommerce #place_order:hover{background:#1a1d4a !important;}

/* WooCommerce shipping radios as tabs */
#shipping_method {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
#shipping_method li {
    flex: 1;
}
#shipping_method input[type="radio"] {
    display: none; /* hide default radio circles */
}
#shipping_method label {
    display: block;
    padding: 10px 15px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s;
}
#shipping_method input[type="radio"]:checked + label {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}
#shipping_method label:hover {
    background: #eaeaea;
}

/* Make checkout stack vertically on mobile */
@media (max-width: 768px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0;
    }

    /* Optional: remove side-by-side gaps on smaller screens */
    .woocommerce-checkout .col2-set {
        display: block !important;
    }
}

@media (max-width: 768px) {
    /* Stack checkout sections fully */
    .woocommerce-checkout .col2-set {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    /* Fix delivery tabs on mobile */
    #shipping_method {
        flex-direction: column; /* stack vertically */
    }
    #shipping_method li {
        flex: none;
        margin-bottom: 10px; /* space between buttons */
    }
    #shipping_method label {
        width: 100%; /* full width button */
        white-space: normal; /* allow text wrap if needed */
    }
}

@media (max-width: 768px) {
    /* Stack checkout columns vertically */
    .woocommerce-checkout .col2-set {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Customer details and order review full width */
    #customer_details {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0;
        padding: 0 10px !important;
        box-sizing: border-box;
        clear: both;
    }

    /* Order review container full width */
    #order_review {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0;
        padding: 0 10px !important;
        box-sizing: border-box;
        clear: both;
    }

    /* Center the heading */
    #order_review_heading {
        text-align: center;
        display: block;
        width: 100% !important;
        margin: 0 0 15px 0;
        box-sizing: border-box;
    }

    /* Make the order table scrollable */
    #order_review .woocommerce-checkout-review-order-table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        box-sizing: border-box;
    }

    #order_review .woocommerce-checkout-review-order-table th,
    #order_review .woocommerce-checkout-review-order-table td {
        white-space: normal !important;
        word-break: break-word;
        padding: 5px 10px !important;
    }

    /* Prevent form from horizontal scroll */
    .woocommerce-checkout form.checkout {
        overflow-x: hidden !important;
    }

    #shipping_method li {
        width: 100%;
        flex: none;
        list-style: none;
    }

    #shipping_method input[type="radio"] {
        display: none; /* hide radio circles */
    }

    #shipping_method label {
        display: block;
        width: 100% !important;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #f8f8f8;
        cursor: pointer;
        white-space: normal !important;
        box-sizing: border-box;
        text-align: left;
    }

    #shipping_method input[type="radio"]:checked + label {
        background: #007cba;
        color: #fff;
        border-color: #007cba;
    }

    #shipping_method label .woocommerce-Price-amount {
        float: right; /* move price to the right */
        display: inline-block;
    }
}

#shipping_method label::after {
    content: none !important;
}

/* Thumbnail list (Flexslider / default gallery thumbnails) */
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .thumbnails,
.woocommerce-product-gallery .woocommerce-product-gallery__wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Make thumbnail items the same square size */
.woocommerce-product-gallery .flex-control-nav li,
.woocommerce-product-gallery .thumbnails li {
    width: 90px;   /* thumbnail visible size — adjust to your design */
    height: 90px;
    overflow: hidden;
    flex: 0 0 90px;
    border-radius: 6px;
}

/* Make thumbnail images fill the square without stretching */
.woocommerce-product-gallery .flex-control-nav li img,
.woocommerce-product-gallery .thumbnails li img,
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crops evenly, avoids blur if source has good resolution */
    display: block;
}

/* Optional: selected thumb border */
.woocommerce-product-gallery .flex-control-nav li img.selected,
.woocommerce-product-gallery .flex-control-nav li a.active img,
.woocommerce-product-gallery .thumbnails .active img {
    outline: 2px solid #ff8474; /* accent color */
}

/* Ensure main image area stays sharp and centered */
.woocommerce-product-gallery__image img {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

/* Arrow styles for flexslider */
.flex-direction-nav a {
    display: block !important;
    opacity: 0.9 !important;
    background: rgba(255,255,255,0.9);
    color: #333;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}


/* wrapper for the nav (we append buttons directly into gallery) */
.maxhof-gallery-prev,
.maxhof-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.45);
    color: #fff !important;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.maxhof-gallery-prev { left: 10px; }
.maxhof-gallery-next { right: 10px; }

.maxhof-gallery-prev:hover,
.maxhof-gallery-next:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) translateY(-2px);
}

.woocommerce ul.products li.product img,
.product-card img {
    height: 220px;   /* try 200–230px */
    display: block;
    width: 100%;
    margin-top: 30px; /* adjust to match the height of your top ribbon */
    object-fit: cover; /* keeps image proportional */
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 12px;      /* smaller size */
    font-weight: 700;     /* bold */
    margin: 6px 0 4px 0;  /* spacing above/below */
    line-height: 1;     /* tighter spacing */
}

#secondary {
    min-height: 100vh;
}

.mh-discount-badge {
    position: absolute;
    top: 30px;           /* push it down slightly under the ribbon */
    left: 10px;          /* top-left corner padding */
    background: #e60023; /* RED */
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    z-index: 20;         /* above image but below any top ribbon with higher z-index if needed */
}

.free-delivery-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 8px;
    background: #0f8c1a;
    color: #fff;

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-radius: 20px; /* pill shape */
    z-index: 10;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.maxhof-sidebar-slider .swiper-slide {
    position: relative;
    text-align: center;
}

.maxhof-sidebar-slider .slide-title-box {
    display: inline-block;
    margin-bottom: 8px;          /* spacing from image */
    padding: 6px 12px;
    border: 2px solid #25285F;   /* visible border color */
    border-radius: 6px;           /* rounded corners */
    background: #fff;             /* white background */
    color: #25285F;               /* text color */
    font-weight: 700;
    font-size: 14px;
}

.maxhof-sidebar-slider .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Bigger product price on shop & category grid */
.woocommerce ul.products li.product .price {
    font-size: 20px;      /* increase size (try 22–24px if you want bigger) */
    font-weight: 700;     /* bolder price */
    margin-top: 6px;
}

/* Sale price styling */
.woocommerce ul.products li.product .price del {
    font-size: 16px;
    opacity: 0.6;
}

/* Sale (discounted) price */
.woocommerce ul.products li.product .price ins {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: #e60023; /* optional: red sale price */
}

/* Center the price */
.woocommerce ul.products li.product .price {
    text-align: center;
}

/* Remove bullets from WooCommerce BLOCK category list */
.wc-block-product-categories-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Bigger category names in sidebar (Woo blocks) */
.wc-block-product-categories-list-item__name {
    font-size: 18px !important;
    font-weight: 600;
}

/* Hover effect */
.wc-block-product-categories-list-item a:hover 
.wc-block-product-categories-list-item__name {
    color: #25285f; /* Maxhof blue */
}

/* Active category */
.wc-block-product-categories-list-item.is-active 
.wc-block-product-categories-list-item__name {
    font-weight: 800;
    color: #25285f;
}

.maxhof-proizvod-mjeseca {
    border: 2px solid #25285f; /* Maxhof blue */
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background: #fff;
}

.maxhof-proizvod-mjeseca img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Title styling */
.maxhof-proizvod-mjeseca .pm-title {
    font-size: 16px;
    font-weight: 800;
    color: #ff0000;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}

.maxhof-akcija-container {
    border: 2px solid #25285f; /* dark blue */
    padding: 15px;
    max-width: 350px;
    margin: 20px auto; /* centered */
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #25285f;
}

.countdown-timer {
    font-size: 14px;
    font-weight: 700;
    color: #25285f;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.countdown-timer span {
    display: inline-block;
    min-width: 50px;
}

.proizvod-mjeseca-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* Countdown timer - force single row */
.maxhof-akcija-container .countdown-timer {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* prevent wrapping */
    gap: 12px; /* space between time blocks */
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #25285f;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 12px; /* spacing before image */
}

/* Individual time blocks */
.maxhof-akcija-container .countdown-timer span {
    display: flex;           /* align number and label vertically */
    flex-direction: column;  /* number on top, label below */
    align-items: center;     
    min-width: 55px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 8px;
}

/* Main numbers inside each span */
.maxhof-akcija-container .countdown-timer span strong {
    font-size: 20px;
    display: block;
    color: #fff;
}

/* Countdown smaller on laptops */
@media (max-width: 1440px) {
    .maxhof-akcija-container .countdown-timer {
        font-size: 16px; /* smaller than desktop */
        padding: 6px 10px;
        gap: 6px;
    }

    .maxhof-akcija-container .countdown-timer span {
        min-width: 45px; /* shrink the blocks */
        padding: 4px 6px;
    }

    .maxhof-akcija-container .countdown-timer span strong {
        font-size: 16px; /* shrink the numbers */
    }
}

/* BLDC hover
/* ============================= */
/* PRODUCT 292 – BASE SETUP */
/* ============================= */
li.post-292,
li.post-1082 {
  position: relative;
  overflow: hidden;
}

/* ============================= */
/* TECH SHIMMER */
/* ============================= */
li.post-292::before,
li.post-1082::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(0, 255, 255, 0.25),
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

li.post-292:hover::before,
li.post-1082:hover::before {
  transform: translateX(100%);
}

/* ============================= */
/* IMAGE FADE TRANSITION */
/* ============================= */

li.post-292 img,
li.post-1082 img {
  transition: opacity 0.6s ease, transform 0.4s ease;
}

/* Hover image (added via PHP) */
li.post-292 .maxhof-hover-image,
li.post-1082 .maxhof-hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Cross-fade */
li.post-292:hover img:first-child,
li.post-1082:hover img:first-child {
  opacity: 0;
}

li.post-292:hover .maxhof-hover-image,
li.post-1082:hover .maxhof-hover-image {
  opacity: 1;
}

/* Slight zoom */
li.post-292:hover img, 
li.post-1082:hover img {
  transform: scale(1.05);
}

/* ============================= */
/* PRODUCT 292 BASE */
/* ============================= */


/* Make image area the reference point */
li.post-292 .woocommerce-LoopProduct-link,
li.post-1082 .woocommerce-LoopProduct-link {
  position: relative;
  display: block;
}

/* ============================= */
/* SAZNAJ VIŠE BUTTON (NO OVERLAP) */
/* ============================= */
li.post-292 .maxhof-learn-more,
li.post-1082 .maxhof-learn-more {
  position: absolute;
  bottom: 15px;         /* unutra u image area */
  right: 15px;
  background: rgba(0,0,0,0.8);
  color: #00ffff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 1;            /* sada je stalno vidljiv */
  transform: translateY(0);
  transition: all 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
  z-index: 5;
  pointer-events: auto;
}

li.post-292 .maxhof-learn-more,
li.post-1082 .maxhof-learn-more {
  display: inline-flex;f
  white-space: nowrap;
}

/* Hover efekt - tech glow */
li.post-292:hover .maxhof-learn-more,
li.post-1082:hover .maxhof-learn-more {
  background: rgba(0,0,0,1);
  box-shadow: 0 0 12px rgba(0,255,255,0.8), 0 0 20px rgba(0,255,255,0.5);
  transform: translateY(-2px);
}

/* Show on hover */
li.post-292:hover .maxhof-learn-more,
li.post-1082:hover .maxhof-learn-more {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* POPUP BOX */
/* ============================= */
li.post-292 .maxhof-popup,
li.post-1082 .maxhof-popup {
  position: absolute;
  bottom: 55px;            /* above Saznaj više */
  right: 15px;
  background: rgba(0,0,0,0.9);
  color: #00ffff;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  width: 220px;
  display: none;
  z-index: 6;
  box-shadow: 0 0 12px rgba(0,255,255,0.5);
}

.motorna-divider {
    list-style: none;
    margin: 15px 0;
}

.motorna-divider hr {
    border: none;
    border-top: 1px solid #ddd;
}

/* Reduce space above product grid */
.woocommerce-page #content,
.woocommerce-page .site-main,
.woocommerce-page .content-area {
    margin-top: 5px !important;
    padding-top: 5px !important;
}

/* ============================= */
/* MAXHOF – COMPACT PRODUCT CARD */
/* ============================= */


/* Make image dominant */
.woocommerce ul.products li.product a img {
    height: 260px !important;      /* bigger image */
    padding: 0 !important;         /* remove white padding */
    margin-bottom: 6px !important; /* tiny gap below image */
    object-fit: contain;
}

/* ============================= */
/* 50%+ POPUST – PREMIUM RED EFFECT */
/* ============================= */

li.product.high-discount {
    position: relative;
    overflow: hidden;
    border: 2px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Animated red shimmer */
li.product.high-discount::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255, 0, 0, 0) 0%,
        rgba(255, 50, 50, 0.5) 50%,
        rgba(255, 0, 0, 0) 100%
    );
    transform: rotate(25deg);
    animation: redShimmer 2.5s infinite;
    pointer-events: none;
}

@keyframes redShimmer {
    0% { left: -75%; }
    100% { left: 125%; }
}


/* Hide author only */
.pagelayer-wposts-author {
    display: none !important;
}

/* Hide separators next to author */
.pagelayer-wposts-meta .pagelayer-wposts-sep:first-of-type {
    display: none !important;
}

/* Modern card design for posts */
.pagelayer-wposts-post {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    margin-bottom: 25px;
    border: 1px solid #f1f1f1;
}

/* Hover effect */
.pagelayer-wposts-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.10);
}

/* Featured image rounding */
.pagelayer-wposts-thumb {
    border-radius: 18px 18px 0 0;
    background-size: cover !important;
    background-position: center !important;
}

/* Content padding */
.pagelayer-wposts-content {
    padding: 16px 18px;
}

/* Meta (date etc.) */
.pagelayer-wposts-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.pagelayer-wposts-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* Match WooCommerce-style background */
body {
    background: #f5f6f8;
}

/* Match WooCommerce-style background */
body {
    background: #f5f6f8;
}

html, body {
    background-color: #f5f6f8 !important;
}

/* Ensure consistency with shop design */
.pagelayer-wposts-post {
    background: #fff;
    border-radius: 16px;
}

/* Remove author (m-admin) */
.pagelayer-author {
    display: none !important;
}

/* Remove the whole author row (icon + link) */
.p-qip3968 .pagelayer-post-info-list-container:first-child {
    display: none !important;
}

.pagelayer-featured-img {
    display: none !important;
}

/* Novosti Sidebar */
.wp-block-latest-posts li {
  list-style: none;
}

.wp-block-latest-posts img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.wp-block-latest-posts__post-title {
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-top: 5px;
}

.wp-block-latest-posts__post-excerpt {
  font-size: 13px;
  color: #555;
}

/* COUNTDOWN */
.maxhof-timer {
    font-size: 12px;
    margin-top: 6px;
    padding: 5px 7px;
    background: #fff1f1;
    color: #c40000;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}

.maxhof-timer .label {
    margin-right: 4px;
}

.maxhof-timer .time {
    font-weight: 700;
}

.special-offer-badge {
    position: absolute;
    top: 8px;
    right: 8px; /* 👉 moved to right */

    display: inline-block;
    padding: 5px 10px;

    background: #e53935;
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-radius: 20px;
    line-height: 1;
    white-space: nowrap;

    z-index: 11;
    overflow: hidden; /* needed for gleam */
}

.special-offer-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );

    transform: skewX(-20deg);
    animation: badgeShine 2.5s infinite;
}

@keyframes badgeShine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.product.special-offer {
    position: relative;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: specialGlow 3s ease-in-out infinite;
}

@keyframes specialGlow {
    0% {
        box-shadow: 0 0 0 rgba(229, 57, 53, 0);
    }
    50% {
        box-shadow: 0 0 18px rgba(229, 57, 53, 0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(229, 57, 53, 0);
    }
}

.product-card.special-offer {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* stronger, richer glow */
    box-shadow: 
        0 0 12px rgba(255, 170, 0, 0.7),
        0 0 25px rgba(255, 170, 0, 0.5),
        0 0 40px rgba(255, 170, 0, 0.3);
}

.product-card.special-offer:hover {
    transform: translateY(-6px) scale(1.02);

    /* intensified glow on hover */
    box-shadow: 
        0 0 20px rgba(255, 170, 0, 0.9),
        0 0 40px rgba(255, 170, 0, 0.7),
        0 0 60px rgba(255, 170, 0, 0.9);
}

/* Badge on the RIGHT side */
.product.sajamska-ponuda .sajamska-ponuda-badge {
    position: absolute;
    top: 12px;
    right: -40px; /* switched from left */

    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;

    padding: 5px 45px;
    transform: rotate(35deg); /* flipped angle */
    z-index: 5;

    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}


