/* ============================================================
   Product Badges — all breakpoints
   ============================================================ */
.product-badges-left,
.product-badges-right {
    position: absolute;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.product-badges-left {
    top: 8px;
    left: 8px;
}
.product-badges-right {
    top: 8px;
    right: 8px;
    align-items: flex-end;
}
.pbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: auto;
    vertical-align: middle;
    min-height: 24px;
    box-sizing: border-box;
}
.pbadge-discount {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}
.pbadge-new {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 6px rgba(34,197,94,0.4);
}
.pbadge-quality {
    background: #1a1a2e;
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 14px;
    font-weight: 300;
    padding: 4px 10px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pbadge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1a1a;
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* ============================================================
   Product images — square cards
   ============================================================ */
.row.cat_prod .product-layout .image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.row.cat_prod .product-layout .image img {
    width: 100%;
    height: auto;
    display: block;
}
.row.cat_prod .product-layout .image .image_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
    .pbadge {
        font-size: 10px;
        padding: 3px 8px;
        min-height: 22px;
    }
    .pbadge-quality {
        font-size: 13px;
        font-weight: 300;
        padding: 3px 8px;
    }
    .pbadge-premium {
        font-size: 9px;
    }
    .product-badges-left,
    .product-badges-right {
        gap: 3px;
    }
    /* Hide wishlist heart on mobile to avoid badge overlap */
    .wishlist-button.offer-btn {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .pbadge-quality {
        font-size: 13px;
        font-weight: 300;
        padding: 3px 8px;
    }
}

/* Product page breadcrumb spacing */
#product-product .breadcrumb {
    margin-bottom: 24px;
}

/* ============================================================
   Global button color & radius unification
   ============================================================ */

/* Force unified blue on ALL .btn-primary and slider buttons */
.btn-primary,
a.btn-primary,
.slider-button a,
.slider-button a.btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 8px !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
a.btn-primary:hover,
.slider-button a:hover,
.slider-button a.btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}
/* "Zjistit více" stays as a plain text link */
.slider-button1 a.btn-primary {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #111 !important;
    text-decoration: underline !important;
}
.slider-button1 a.btn-primary:hover {
    background: transparent !important;
    color: #2563eb !important;
}

/* btn-default hover (exclude newsletter & search buttons which have their own styles) */
.btn-default:hover:not(.newsletter .btn):not(.header_search .btn),
.open .dropdown-toggle.btn-default {
    background: #2563eb !important;
    color: #fff !important;
}

/* btn-info unified */
.btn-info,
a.btn.btn-info,
td.text-right a.btn.btn-info {
    background: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 8px !important;
}
.btn-info:hover,
a.btn.btn-info:hover,
td.text-right a.btn.btn-info:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* ============================================================
   Homepage — unified button & heading styles
   ============================================================ */

/* Unified cart/action buttons across all HP sections */
#content .cart_button,
#content .product-thumb .button-group button,
.bc-sale-cart-btn button {
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: background 0.15s !important;
    text-transform: none !important;
}
#content .cart_button:hover,
#content .product-thumb .button-group button:hover,
.bc-sale-cart-btn button:hover {
    background: #1d4ed8 !important;
}

/* Unified section headings on HP */
#content .box-heading,
#content h3,
.bc-sale-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.bc-sale-title {
    color: #fff !important;
}

/* Unified banner/promo CTA buttons */
.slide-btn a.btn,
.promo-card a.btn,
[class*="banner"] a.btn,
.slideshow a.btn {
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    transition: background 0.15s !important;
}
.slide-btn a.btn:hover,
.promo-card a.btn:hover,
[class*="banner"] a.btn:hover,
.slideshow a.btn:hover {
    background: #1d4ed8 !important;
}

/* Unified product card text sizing */
.product-thumb h4,
.product-thumb h4 a,
.bc-sale-card-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
.product-thumb .price,
.bc-sale-price {
    font-size: 15px !important;
    font-weight: 700 !important;
}
.product-thumb .price-old,
.bc-sale-price-old {
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Mobile HP heading + button sizing */
@media (max-width: 768px) {
    #content .box-heading,
    #content h3,
    .bc-sale-title {
        font-size: 18px !important;
        font-weight: 600 !important;
    }
    #content .cart_button,
    #content .product-thumb .button-group button,
    .bc-sale-cart-btn button {
        font-size: 12px !important;
        padding: 7px 12px !important;
    }
}

/* Product page badges */
.product-image {
    position: relative;
}
.product-image .product-badges-left,
.product-image .product-badges-right {
    z-index: 20;
}

/* ============================================================
   Category Page Desktop Refresh
   All rules scoped to @media (min-width: 768px) — mobile untouched
   ============================================================ */

@media (min-width: 768px) {

    /* ===========================================
       HEADER REFRESH
       =========================================== */

    /* --- Top info bar (language, shipping, account) --- */
    .header_nav {
        border-bottom: none !important;
        position: relative;
        z-index: 1001;
    }

    .header_nav .container {
        font-size: 12px;
        letter-spacing: 0.2px;
    }

    #wdnavcmsheader .wdheader-service {
        font-size: 12px !important;
        font-weight: 400;
        opacity: 0.85;
    }

    .header_nav .right-nav a,
    .header_nav .left-nav a {
        font-size: 12px;
        opacity: 0.85;
        transition: opacity 0.15s ease;
    }

    .header_nav .right-nav a:hover,
    .header_nav .left-nav a:hover {
        opacity: 1;
    }

    /* --- Main header row (logo, nav, search, cart) --- */
    .header_top {
        padding: 8px 0 !important;
    }

    /* Nav menu links */
    .headertop .ul-top-items > li > a {
        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px;
        padding: 8px 8px !important;
        transition: all 0.15s ease;
        border-radius: 6px;
    }

    .headertop .ul-top-items > li {
        margin: 0 1px !important;
    }

    .headertop .ul-top-items > li > a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Search bar */
    .header_search input[name="search"],
    .search_toggle input {
        border-radius: 8px !important;
        font-size: 13px !important;
        padding: 9px 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        transition: all 0.2s ease;
    }

    .header_search input[name="search"]:focus,
    .search_toggle input:focus {
        border-color: rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    }

    .header_search .btn,
    .search_toggle .btn {
        border-radius: 0 8px 8px 0 !important;
    }

    /* Kill old cart dropdown completely */
    #cart .dropdown-menu,
    #cart > .dropdown-menu,
    .header_cart .cart-menu,
    #cart.open > .dropdown-menu,
    #cart.active > .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* Cart button — keep original 153×52 size, just add flex centering */
    .header_cart {
        border-radius: 8px !important;
        background-color: #ffc915 !important;
        padding: 0 !important;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(255, 201, 21, 0.3);
        z-index: 1000;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .header_cart .cart-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0 12px !important;
        text-decoration: none !important;
        text-align: center !important;
    }

    .header_cart .cart_detail {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        float: none !important;
        position: static !important;
        left: auto !important;
    }

    .header_cart:hover {
        background-color: #ffbf00 !important;
        box-shadow: 0 4px 12px rgba(255, 201, 21, 0.4);
        transform: translateY(-1px);
    }

    .header_cart #cart-total {
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px;
        line-height: 1;
    }

    .header_cart .fa-shopping-cart,
    .header_cart .fa-cart-shopping {
        font-size: 16px !important;
    }

    /* --- New Cart Preview Dropdown --- */

    .cart-preview-dropdown {
        display: none;
        position: absolute;
        top: 52px;
        right: -15px;
        width: 340px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid #e8e8ec;
        z-index: 99999;
        overflow: hidden;
        animation: cartSlideIn 0.2s ease;
    }

    @keyframes cartSlideIn {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .header_cart:hover .cart-preview-dropdown {
        display: block;
    }

    /* Keep dropdown visible when mouse moves to it */
    .cart-preview-dropdown:hover {
        display: block;
    }

    /* Items list */
    .cart-preview-items {
        max-height: 280px;
        overflow-y: auto;
        padding: 8px 0;
    }

    .cart-preview-items::-webkit-scrollbar {
        width: 4px;
    }

    .cart-preview-items::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }

    .cart-preview-item {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        gap: 10px;
        transition: background 0.15s ease;
    }

    .cart-preview-item:hover {
        background: #f8f9fc;
    }

    .cart-preview-img {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid #f0f0f4;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .cart-preview-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .cart-preview-info {
        flex: 1;
        min-width: 0;
    }

    .cart-preview-name {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: #2c3e50;
        line-height: 1.3;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cart-preview-name:hover {
        color: #2563eb;
    }

    .cart-preview-qty {
        font-size: 12px;
        color: #888;
        margin-top: 2px;
        display: block;
    }

    .cart-preview-remove {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border: none;
        background: transparent;
        color: #ccc;
        font-size: 12px;
        cursor: pointer;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
        padding: 0;
    }

    .cart-preview-remove:hover {
        background: #fee;
        color: #e74c3c;
    }

    /* Totals */
    .cart-preview-totals {
        padding: 10px 16px;
        border-top: 1px solid #f0f0f4;
        background: #fafbfc;
    }

    .cart-preview-total-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
    }

    .cart-preview-total-label {
        font-size: 12px;
        color: #888;
        font-weight: 400;
    }

    .cart-preview-total-value {
        font-size: 13px;
        color: #1a1a2e;
        font-weight: 600;
    }

    .cart-preview-total-row:last-child .cart-preview-total-label {
        font-weight: 600;
        color: #333;
        font-size: 13px;
    }

    .cart-preview-total-row:last-child .cart-preview-total-value {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a2e;
    }

    /* Action button */
    .cart-preview-actions {
        padding: 12px 16px;
        border-top: 1px solid #f0f0f4;
    }

    .cart-preview-btn {
        display: block;
        text-align: center;
        padding: 10px 20px;
        background: #2563eb;
        color: #fff !important;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none !important;
        transition: all 0.2s ease;
        letter-spacing: 0.2px;
    }

    .cart-preview-btn:hover {
        background: #3a57b5;
        box-shadow: 0 4px 12px rgba(70, 102, 205, 0.3);
        transform: translateY(-1px);
    }

    /* Empty cart state */
    .cart-preview-empty {
        padding: 30px 20px;
        text-align: center;
    }

    .cart-preview-empty i {
        font-size: 28px;
        color: #ddd;
        margin-bottom: 10px;
    }

    .cart-preview-empty p {
        font-size: 13px;
        color: #999;
        margin: 0;
    }

    /* --- Megamenu dropdown refinements --- */
    .headertop .mega-menu-container,
    .headertop .dropdown-menu,
    .headertop .mega-menu-content {
        border-radius: 8px !important;
        border: 1px solid #e8e8ec !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
        margin-top: 4px !important;
        padding: 10px 15px !important;
    }

    /* Hide empty category image placeholders in mega menu */
    .headertop .sub-cate-img {
        display: none !important;
    }

    /* Tighten sub-item2-content columns */
    .headertop .sub-item2-content {
        padding: 2px 8px !important;
        margin-bottom: 0 !important;
    }

    .headertop .mega-menu-container .sub-item2-content,
    .headertop .dropdown-menu .sub-item2-content,
    .headertop .mega-menu-container .col-sm-6 {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        margin-bottom: 0 !important;
    }

    /* Category heading links */
    .headertop .sub-item2-content > a.a-mega-second-link,
    .headertop .sub-item2-content > a {
        font-size: 13px;
        font-weight: 600;
        padding: 2px 0 !important;
        margin: 0 !important;
        line-height: 1.3;
        display: block;
    }

    .headertop .sub-item2-content > a.a-mega-second-link h4,
    .headertop .sub-item2-content > h4 {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px;
        line-height: 1.3;
    }

    .headertop .mega-menu-container .sub-item2-content > a.a-mega-second-link h4 strong {
        font-weight: 600;
    }

    /* Subcategory list items */
    .headertop .sub-item2-content .list-unstyled > li,
    .headertop .sub-item2-content ul > li {
        padding: 1px 0 !important;
        margin: 0 !important;
    }

    .headertop .sub-item2-content .list-unstyled > li > a,
    .headertop .sub-item2-content ul > li > a {
        font-size: 13px;
        font-weight: 400;
        padding: 1px 8px !important;
        line-height: 1.35;
        border-radius: 4px;
        transition: all 0.15s ease;
    }

    .headertop .mega-menu-container .container {
        padding: 0 !important;
    }

    .headertop .mega-menu-container .row {
        margin: 0 !important;
    }

    /* Hover only on subcategory links, not heading links */
    .headertop .sub-item2-content ul > li > a:hover,
    .headertop .sub-item2-content .list-unstyled > li > a:hover {
        background: #f0f5ff;
        color: #2563eb;
    }

    .headertop .sub-item2-content > a.a-mega-second-link:hover {
        color: #2563eb;
    }

    /* -------------------------------------------
       0. Font Unification — consistent sizing & weight
       ------------------------------------------- */
    body {
        font-weight: 400;
    }

    #column-left,
    #column-left a {
        font-size: 13px;
        color: #666;
    }

    #column-left a:hover {
        color: #2563eb;
    }

    #column-left .box-heading {
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    button.cart_button {
        font-size: 15px !important;
    }

    .category_filter .sort select,
    .category_filter .limit select {
        font-size: 13px !important;
    }

    /* -------------------------------------------
       1. Category Hero / Header Area
       ------------------------------------------- */
    .row.category_thumb {
        background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
        border-radius: 8px;
        padding: 28px 30px;
        margin: 0 0 20px;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .col-xs-3.category_img {
        width: 120px;
        flex: 0 0 120px;
        padding: 0;
    }

    .category_img img {
        width: 110px;
        height: 110px;
        border-radius: 8px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        object-fit: cover;
    }

    .col-xs-9.category_details {
        flex: 1;
        width: auto;
        min-height: auto;
        padding-left: 24px;
    }

    h2.page-title {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0 0 10px;
        line-height: 1.3;
        letter-spacing: -0.3px;
    }

    .category_details .category_description {
        font-size: 13.5px;
        line-height: 1.65;
        color: #555;
    }

    /* -------------------------------------------
       2. Subcategory Chips
       ------------------------------------------- */
    .col-sm-12.title-description {
        width: 100%;
        margin: 18px 0 0;
        padding: 16px 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .category_list2 {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 0;
        margin-bottom: 18px;
    }

    .category_list2 .category-item {
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
        min-width: auto !important;
        min-height: auto !important;
        width: auto !important;
        height: auto !important;
        padding: 8px 12px !important;
        background: #fff !important;
        border: 1px solid #dde1ea !important;
        border-radius: 6px !important;
        transition: all 0.2s ease;
        margin-bottom: 2px;
    }

    .category_list2 .category-item:hover {
        border-color: #2563eb;
        background: #f0f5ff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 104, 201, 0.12);
    }

    .category_list2 .category-item a.category_text2 {
        text-decoration: none !important;
        color: #333 !important;
        font-size: 13px !important;
        font-weight: 500;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: nowrap !important;
    }

    .category_list2 .category-item:hover a.category_text2 {
        color: #2563eb;
    }

    .category_list2 .category-item .category_img2 img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        max-width: 32px;
        margin-right: 8px;
    }

    /* -------------------------------------------
       3. Filter / Sort Bar
       ------------------------------------------- */
    .category_filter {
        background: #fff;
        border: 1px solid #e8e8ec;
        border-radius: 6px;
        padding: 10px 18px;
        margin-top: 0;
        margin-bottom: 18px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .category_filter .btn-list-grid .btn-group .btn {
        border-radius: 6px;
        border-color: #dde1ea;
        padding: 5px 10px;
        transition: all 0.15s ease;
    }

    .category_filter .btn-list-grid .btn-group .btn.active,
    .category_filter .btn-list-grid .btn-group .btn:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

    .compare-total #compare-total {
        color: #666 !important;
        font-size: 13px;
    }

    .category_filter .sort select,
    .category_filter .limit select {
        border-radius: 6px;
        border-color: #dde1ea;
        font-size: 13px;
    }

    .category_filter label.control-label {
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
    }

    /* -------------------------------------------
       4. Product Cards
       ------------------------------------------- */

    /* Product cards — inline-flex keeps inline flow (like inline-block)
       so cards sit side-by-side with stylesheet.css float:none/inline-block rules,
       while still enabling flex column layout inside each card */
    .row.cat_prod > .product-layout.product-grid {
        display: inline-flex;
        flex-direction: column;
        vertical-align: top;
        float: none;
    }

    .row.cat_prod > .product-layout.product-grid > .product-block {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .row.cat_prod > .product-layout.product-grid > .product-block > .product-block-inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .row.cat_prod > .product-layout.product-grid .product-details {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .row.cat_prod > .product-layout.product-grid .product-details .caption {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    /* Product name: max 2 lines, fixed height */
    .row.cat_prod .product-layout.product-grid .product-thumb h4 {
        margin: 4px 0 6px !important;
        height: 44px; /* exactly 2 lines at 22px line-height */
        line-height: 22px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }

    /* Price row: price left, Znamky+ right, single line */
    .row.cat_prod .product-layout.product-grid .price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        margin: 0 0 4px;
        flex-shrink: 0;
        min-height: 1.5em;
    }

    .row.cat_prod .product-layout.product-grid .price-row .price {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 !important;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Znamky+ two-row compact tag — links to info page */
    .znamkyplus-tag {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        background: #e5b80b;
        color: #1a1a2e !important;
        padding: 5px 8px;
        border-radius: 6px;
        text-decoration: none !important;
        transition: all 0.15s ease;
        flex-shrink: 0;
        line-height: 1.25;
    }

    .znamkyplus-tag:hover {
        background: #d4a90a;
        transform: scale(1.05);
        color: #1a1a2e !important;
    }

    .znamkyplus-tag-label {
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .znamkyplus-tag-price {
        font-size: 10px;
        font-weight: 800;
    }

    /* Cart button area: always at the bottom, fixed height */
    .row.cat_prod .product-layout.product-grid .product_hover_block {
        margin-top: auto;
        flex-shrink: 0;
    }

    /* Keep overlay elements (badge, wishlist, countdown) above the image */
    .row.cat_prod .product-layout.product-grid .image .special-tag,
    .row.cat_prod .product-layout.product-grid .image .stock_status,
    .row.cat_prod .product-layout.product-grid .image .wishlist-button,
    .row.cat_prod .product-layout.product-grid .image .countdown {
        z-index: 2;
    }

    .product-block-inner {
        border-radius: 6px;
        border: 1px solid #f0f0f4;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
    }

    #content .product-carousel .product-block:hover .product-block-inner,
    #content .product-grid .product-block:hover .product-block-inner,
    #content .box-product .product-block:hover .product-block-inner,
    #content .product-list .product-block:hover .product-block-inner {
        border-color: #dde1ea;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .product-thumb h4 a {
        transition: color 0.15s ease;
    }

    button.cart_button {
        border-radius: 6px;
        font-weight: 500;
        letter-spacing: 0.2px;
        transition: all 0.2s ease;
    }

    .product-block:hover button.cart_button {
        box-shadow: 0 3px 10px rgba(0, 104, 201, 0.2);
    }

    /* Wishlist heart icon */
    .product-block-inner .wishlist {
        transition: all 0.2s ease;
    }

    .product-block-inner .wishlist:hover {
        transform: scale(1.15);
    }

    /* Discount badge */
    .product-block-inner .special-tag {
        border-radius: 6px;
        font-weight: 600;
        font-size: 12px;
    }

    /* -------------------------------------------
       5. Breadcrumb wrapper & bar
       ------------------------------------------- */
    .content-top-breadcum {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 0 12px !important;
        min-height: auto !important;
        border-bottom: 1px solid #eee;
    }

    .content-top-breadcum .breadcrumb {
        padding: 10px 15px !important;
        margin: 0 !important;
        font-size: 13px !important;
        background: transparent !important;
    }

    .content-top-breadcum .breadcrumb li,
    .content-top-breadcum .breadcrumb li a {
        font-size: 13px !important;
        color: #999;
        transition: color 0.15s ease;
    }

    .content-top-breadcum .breadcrumb li a:hover {
        color: #2563eb;
    }

    .content-top-breadcum .breadcrumb > li:last-child a {
        color: #444;
        font-weight: 500;
    }

    .content-top-breadcum .breadcrumb > li + li:before {
        color: #ccc;
    }

    /* -------------------------------------------
       6. Pagination
       ------------------------------------------- */
    .pagination-wrapper {
        margin: 24px 0 0;
        padding-top: 16px;
        border-top: 1px solid #f0f0f4;
    }

    .pagination > li > a,
    .pagination > li > span {
        border-radius: 6px !important;
        margin: 0 2px;
        border-color: #e8e8ec;
        color: #555;
        transition: all 0.15s ease;
    }

    .pagination > li > a:hover {
        background: #f0f5ff;
        border-color: #2563eb;
        color: #2563eb;
    }

    .pagination > .active > a,
    .pagination > .active > span,
    .pagination > .active > a:hover {
        background: #2563eb;
        border-color: #2563eb;
    }

    /* -------------------------------------------
       7. Category description bottom text
       ------------------------------------------- */
    .cat-bot-desc {
        background: #f8f9fc;
        border-radius: 6px;
        padding: 20px 24px;
        margin-top: 24px;
        font-size: 13.5px;
        line-height: 1.65;
        color: #555;
    }

    .cat-bot-desc h2,
    .cat-bot-desc h3 {
        color: #1a1a2e;
        font-weight: 600;
        margin-top: 0;
    }

    /* =====================================================
       8. PRODUCT PAGE REFRESH — Desktop
       ===================================================== */

    /* --- Layout: constrain width on large screens --- */
    #product-product.container {
        max-width: 1140px;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    /* --- Layout: 2-column with sticky image --- */
    #product-product .breadcrumb {
        padding: 18px 0 14px !important;
        margin: 0 !important;
        font-size: 13px;
        border-bottom: none;
    }

    #product-product .breadcrumb li a {
        color: #999;
        transition: color 0.15s ease;
    }

    #product-product .breadcrumb li a:hover {
        color: #2563eb;
    }

    #product-product .breadcrumb > li:last-child a {
        color: #555;
        font-weight: 500;
    }

    .col-sm-4.product-left {
        width: 42% !important;
        padding: 0 !important;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }

    .col-sm-5.product-right {
        width: 58% !important;
        padding: 0 0 0 40px !important;
    }

    .col-sm-3.product {
        display: none !important; /* hide empty 3rd column */
    }

    /* Make product row flex */
    #product-product #content > .row {
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    /* --- Product Image Area --- */
    .product-info {
        padding: 0 !important;
        border: none !important;
    }

    .product-info .image {
        border-radius: 10px;
        overflow: hidden;
        background: #f8f9fc;
        border: 1px solid #eef0f5;
    }

    .product-info .image .thumbnail {
        border: none !important;
        padding: 0 !important;
        border-radius: 10px;
        margin: 0;
        display: block;
    }

    .product-info .image .thumbnail img {
        border-radius: 10px;
        width: 100%;
        height: auto;
    }

    /* Additional images carousel */
    .product-info .additional-carousel {
        margin-top: 12px !important;
    }

    .product-info .image-additional .product-block {
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid transparent;
        transition: border-color 0.2s ease;
        cursor: pointer;
    }

    .product-info .image-additional .product-block:hover {
        border-color: #2563eb;
    }

    .product-info .image-additional img {
        border-radius: 6px;
    }

    /* --- Product Title --- */
    #content.productpage .product-title {
        font-size: 26px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #1a1a2e !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        border-bottom: none !important;
        letter-spacing: -0.3px;
    }

    /* --- Rating --- */
    .productpage .rating-wrapper {
        margin: 0 0 16px !important;
        padding: 0 0 16px;
        border-bottom: 1px solid #f0f0f4;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .productpage .rating-wrapper .fa-stack {
        width: 16px !important;
        height: 16px !important;
        font-size: 16px !important;
    }

    .productpage .write-review,
    .productpage .review-count {
        font-size: 13px !important;
        color: #888 !important;
        text-decoration: none !important;
        transition: color 0.15s ease;
    }

    .productpage .write-review:hover,
    .productpage .review-count:hover {
        color: #2563eb !important;
    }

    /* --- Product Description Table (Položka, Kód, etc.) --- */
    .productpage .description {
        border-bottom: none !important;
        margin-bottom: 8px !important;
        padding-bottom: 0 !important;
    }

    .product-description {
        width: 100%;
    }

    .product-description td {
        padding: 6px 0 !important;
        vertical-align: top;
        border-bottom: 1px solid #f5f5f8;
    }

    .product-description tr:last-child td {
        border-bottom: none;
    }

    .product-description td span.desc {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #888 !important;
        white-space: nowrap;
    }

    .product-description .description-right {
        font-size: 13.5px !important;
        color: #333 !important;
        padding-left: 20px !important;
        line-height: 1.5;
    }

    /* Stock status */
    .productpage .stock_msg {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        background: #f0fdf4;
        color: #15803d !important;
        margin: 8px 0 4px;
    }

    .productpage .stock_msg::before {
        content: "●";
        font-size: 8px;
        color: #22c55e;
    }

    /* --- Price Area --- */
    #content.productpage ul.list-unstyled {
        padding: 16px 0 !important;
        margin: 0 !important;
        border-top: 1px solid #f0f0f4;
        border-bottom: none !important;
    }

    .productpage h4.special-price {
        display: inline-flex !important;
        align-items: baseline;
        gap: 10px;
        margin: 0 !important;
    }

    .productpage .special-price .new-prices,
    .productpage .special-price .old-prices {
        font-size: 30px !important;
        font-weight: 800 !important;
        color: #1a1a2e !important;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .productpage li span.old-price {
        font-size: 16px !important;
        color: #aaa !important;
    }

    .productpage li span.old-price .old-prices {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #aaa !important;
    }

    .productpage .discount-per {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        background: #fef2f2;
        color: #dc2626 !important;
        font-size: 13px;
        font-weight: 700;
        border-radius: 6px;
        letter-spacing: 0;
    }

    .productpage li.discount {
        font-size: 13px;
        color: #666;
        padding: 4px 0;
    }

    .productpage li.rewardpoint {
        font-size: 13px;
        color: #888;
    }

    /* --- Quantity & Add to Cart --- */
    .productpage .form-group.qty {
        padding: 16px 0 8px;
        border-top: 1px solid #f0f0f4;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .productpage .qty-plus-minus {
        display: inline-flex !important;
        align-items: center;
        border: 2px solid #e8e8ec;
        border-radius: 10px;
        overflow: hidden;
        height: 48px;
        width: auto !important;
        flex-shrink: 0;
        padding: 0 !important;
    }

    .productpage .qty-plus-minus .btnminus,
    .productpage .qty-plus-minus .btnplus {
        width: 40px !important;
        height: 100% !important;
        border: none !important;
        background: #f8f9fc !important;
        font-size: 18px !important;
        color: #555 !important;
        cursor: pointer;
        transition: all 0.15s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .productpage .qty-plus-minus .btnminus:hover,
    .productpage .qty-plus-minus .btnplus:hover {
        background: #eef1f8 !important;
        color: #2563eb !important;
    }

    .productpage .qty-plus-minus #input-quantity {
        width: 48px !important;
        height: 100% !important;
        border: none !important;
        border-left: 2px solid #e8e8ec !important;
        border-right: 2px solid #e8e8ec !important;
        text-align: center;
        font-size: 16px !important;
        font-weight: 600;
        color: #1a1a2e;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    #button-cart {
        height: 48px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px;
        padding: 0 32px !important;
        background: #2563eb !important;
        border-color: #2563eb !important;
        transition: all 0.25s ease;
        flex: 1;
        min-width: 180px;
        box-shadow: 0 4px 14px rgba(0, 104, 201, 0.25);
    }

    #button-cart:hover {
        background: #0055a5 !important;
        border-color: #0055a5 !important;
        box-shadow: 0 6px 20px rgba(0, 104, 201, 0.35);
        transform: translateY(-1px);
    }

    /* Out of stock button */
    .productpage #button {
        height: 48px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 32px !important;
        width: 100%;
    }

    /* Wishlist/Compare row below cart */
    .productpage .btn-group.prd_page {
        display: none; /* hidden as per original template */
    }

    .product-detail-left hr {
        border-color: #f0f0f4 !important;
        margin: 16px 0 !important;
    }

    /* --- Promo Boxes Area (content_product_block) --- */
    .content_product_block {
        width: 100% !important;
        float: none !important;
        margin-top: 8px;
    }

    .content_product_block .product-promo-boxes {
        width: 100% !important;
    }

    .content_product_block .product-promo-box {
        border-radius: 10px !important;
        padding: 14px 18px !important;
        margin-bottom: 10px !important;
        font-size: 13px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    /* Subscription box (Znamky+) refinement */
    .content_product_block .subscription-content {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .content_product_block .subscription-icon {
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.25);
        font-size: 20px !important;
    }

    .content_product_block .subscription-title {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .content_product_block .subscription-desc {
        font-size: 12px !important;
        opacity: 0.85;
    }

    .content_product_block .btn-subscription {
        padding: 8px 18px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .content_product_block .btn-subscription:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Promo code box refinement */
    .content_product_block .promo-code-wrapper {
        gap: 10px !important;
    }

    .content_product_block .promo-code {
        font-size: 14px !important;
        letter-spacing: 2px !important;
        padding: 8px 16px !important;
        border-radius: 6px !important;
        font-weight: 600;
    }

    .content_product_block .btn-apply-promo {
        padding: 8px 18px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    /* --- Product Tabs (Description, Specification) --- */
    #tabs_info.product-tab {
        margin-top: 80px !important;
        padding-top: 30px !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        float: none !important;
        clear: both;
        max-width: 900px;
        border-top: 1px solid #f0f0f4;
    }

    #tabs_info.product-tab ul.nav.nav-tabs {
        border-bottom: 2px solid #f0f0f4 !important;
        padding: 0 !important;
        margin: 0 0 24px !important;
    }

    #tabs_info.product-tab li {
        margin-right: 0 !important;
    }

    #tabs_info.product-tab li a {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #888 !important;
        padding: 12px 20px 14px !important;
        border: none !important;
        background: transparent !important;
        position: relative;
        transition: color 0.2s ease;
    }

    #tabs_info.product-tab li a:after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: #2563eb;
        border-radius: 3px;
        transition: width 0.25s ease;
    }

    #tabs_info.product-tab li.active a {
        color: #1a1a2e !important;
        font-weight: 600 !important;
    }

    #tabs_info.product-tab li.active a:after {
        width: 60% !important;
        opacity: 1 !important;
    }

    #tabs_info.product-tab li a:hover {
        color: #2563eb !important;
    }

    #tabs_info.product-tab .tab-content {
        font-size: 14px;
        line-height: 1.7;
        color: #444;
    }

    /* Description tab table (catalog numbers) */
    #tab-description table {
        border-collapse: collapse;
        margin: 16px 0;
    }

    #tab-description table td {
        padding: 8px 16px 8px 0;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f4;
        vertical-align: top;
    }

    #tab-description table td:first-child {
        font-weight: 500;
        color: #888;
        white-space: nowrap;
    }

    /* Specification tab */
    #tab-specification .table-bordered {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e8eaed;
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    #tab-specification .table-bordered td {
        padding: 12px 18px;
        font-size: 14px;
        border: none;
        border-bottom: 1px solid #f0f1f5;
        vertical-align: middle;
        line-height: 1.5;
    }

    #tab-specification .table-bordered tbody tr:last-child td {
        border-bottom: none;
    }

    #tab-specification .table-bordered tbody tr td:first-child {
        font-weight: 500;
        color: #555;
        width: 40%;
        background: #fafbfc;
    }

    #tab-specification .table-bordered tbody tr td:last-child {
        font-weight: 600;
        color: #1a1a2e;
    }

    #tab-specification .table-bordered tbody tr:hover td {
        background: #f5f7ff;
    }

    #tab-specification thead td {
        background: #f0f2f5 !important;
        font-weight: 700 !important;
        color: #333 !important;
        font-size: 13px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 10px 18px;
        border-bottom: 2px solid #dee2e6;
    }

    #tab-specification thead + tbody tr:first-child td {
        border-top: none;
    }

    /* Also fix description tab tables (catalog numbers) */
    #tab-description .table,
    #tab-description table {
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e8eaed;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    #tab-description table td,
    #tab-description table th {
        padding: 10px 16px;
        font-size: 14px;
        border: none;
        border-bottom: 1px solid #f0f1f5;
        vertical-align: middle;
    }

    #tab-description table tr:last-child td {
        border-bottom: none;
    }

    #tab-description table td:first-child {
        font-weight: 500;
        color: #555;
        background: #fafbfc;
    }

    #tab-description table td:last-child,
    #tab-description table th:last-child {
        font-weight: 600;
        color: #1a1a2e;
    }

    #tab-description table tr:first-child td,
    #tab-description table thead td,
    #tab-description table thead th {
        background: #f0f2f5;
        font-weight: 700;
        color: #333;
        border-bottom: 2px solid #dee2e6;
    }

    /* --- Product Page: Znamky+ badge next to price --- */
    .product-price-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .znamkyplus-tag-product {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        background: #e5b80b;
        color: #1a1a2e !important;
        padding: 4px 12px;
        border-radius: 8px;
        text-decoration: none !important;
        transition: all 0.15s ease;
        line-height: 1.25;
    }

    .znamkyplus-tag-product:hover {
        background: #d4a90a;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(229, 184, 11, 0.35);
        text-decoration: none !important;
        color: #1a1a2e !important;
    }

    .znamkyplus-tag-product .znamkyplus-tag-label {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.85;
    }

    .znamkyplus-tag-product .znamkyplus-tag-price {
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    /* --- Related Products Section --- */
    .box.related_prd {
        margin-top: 48px !important;
        padding-top: 32px;
        border-top: 2px solid #f0f0f4;
    }

    .box.related_prd .box-heading {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #1a1a2e;
        letter-spacing: -0.3px;
    }

    .box.related_prd .box-heading::before {
        display: none !important; /* remove decorative pseudo-element */
    }

    /* Related product cards: apply same styling as category grid cards */
    .box.related_prd .product-block-inner {
        border-radius: 8px;
        border: 1px solid #f0f0f4;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
    }

    .box.related_prd .product-block:hover .product-block-inner {
        border-color: #dde1ea;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .box.related_prd .product-details h4 {
        margin: 6px 0 !important;
        line-height: 1.35;
    }

    .box.related_prd .product-details h4 a {
        font-size: 13px;
        font-weight: 500;
        color: #333;
        transition: color 0.15s ease;
    }

    .box.related_prd .product-details h4 a:hover {
        color: #2563eb;
    }

    .box.related_prd .product-details .price {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a2e;
    }

    .box.related_prd button.cart_button {
        border-radius: 8px;
        font-size: 13px !important;
        font-weight: 500;
        padding: 8px 0;
    }

    /* Navigation arrows for related carousel */
    .box.related_prd .customNavigation {
        top: -50px;
    }

    .box.related_prd .customNavigation a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #dde1ea;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        background-color: #fff;
        background-size: 12px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .box.related_prd .customNavigation a.prev {
        background-image: url(../image/webdigify/prev-arrow.svg);
    }

    .box.related_prd .customNavigation a.next {
        background-image: url(../image/webdigify/next-arrow.svg);
    }

    .box.related_prd .customNavigation a:hover {
        background-color: #2563eb;
        border-color: #2563eb;
    }

    .box.related_prd .customNavigation a.prev:hover {
        background-image: url(../image/webdigify/prev-arrow-hover.svg);
    }

    .box.related_prd .customNavigation a.next:hover {
        background-image: url(../image/webdigify/next-arrow-hover.svg);
    }

    /* --- Review Section --- */
    .product-review {
        margin-top: 32px;
    }

    .product-review a.box-heading {
        font-size: 18px !important;
        font-weight: 600;
        color: #1a1a2e;
    }

    #form-review .form-control {
        border-radius: 8px !important;
        border-color: #e8e8ec !important;
        font-size: 14px;
        transition: border-color 0.2s ease;
    }

    #form-review .form-control:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(0, 104, 201, 0.1) !important;
    }

    #button-review {
        border-radius: 8px !important;
        padding: 10px 24px !important;
        font-weight: 600;
    }

    /* --- Product Detail Right Sidebar (3rd column services) --- */
    .product-detail-right {
        margin-top: 20px;
    }

    #wdcmsrightservices .product-services {
        border-radius: 10px !important;
        border-color: #eef0f5 !important;
        padding: 16px 20px !important;
    }
}
