/* ==========================================================================
   millers-oils.cz — Cassiopeia child template v3.0
   Odvozeno z cassiopeia_jml (jml-zlin.cz) 30. 9. 2026
   Joomla 5 + VirtueMart 4.6.4 (BS5)
   Design: tmavý motiv RD, hlavička/patička v modré loga #021732, akcent červená Millers #C8102E
   ========================================================================== */

/* ==========================================================================
   1. @font-face — Self-hosted Inter (GDPR)
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
    /* Paleta millers: modrá z pozadí loga #021732 (hlavička, patička), červená Millers #C8102E
       (homepage moduly z produkce), světlá červená #FF4141 = akcent produkční šablony ja_mixstore. */
    --rd-primary:       #062448;   /* plochy navbaru */
    --rd-primary-light: #0B2D57;   /* hover, světlejší plochy */
    --rd-primary-dark:  #021732;   /* hlavička, patička */
    --rd-primary-deep:  #010F22;   /* copyright */

    /* Akcent — tlačítka, odkazy, aktivní položky */
    --rd-accent:        #C8102E;
    --rd-accent-dark:   #A00D25;

    /* Světlejší modrá — podtržení, badge, hovery na tmavém pozadí */
    --rd-sky:           #FF4141;
    --rd-sky-dark:      #C8102E;
    --rd-gold:          var(--rd-sky);    /* alias — starší selektory */

    --rd-danger:        #EF4444;

    /* Neutrály — tmavé */
    --rd-bg:            #050B16;   /* pozadí stránky */
    --rd-card:          #0B1424;   /* karty, panely, formuláře */
    --rd-surface:       #111C30;   /* vnořené plochy, hlavičky tabulek */
    --rd-gray-light:    #1E2A40;   /* rámečky */
    --rd-muted:         #9CA3AF;
    --rd-text:          #E4E4E7;
    --rd-heading:       #FFFFFF;   /* nadpisy a zvýrazněný text (v jml to byla --rd-primary) */
    --rd-white:         #fff;

    /* Spacing scale */
    --rd-space-xs:    4px;
    --rd-space-sm:    8px;
    --rd-space-md:    16px;
    --rd-space-lg:    24px;
    --rd-space-xl:    40px;
    --rd-space-2xl:   64px;

    /* Stíny — na tmavém pozadí výraznější */
    --rd-shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.4);
    --rd-shadow-md:   0 4px 12px rgba(0, 0, 0, 0.5);
    --rd-shadow-lg:   0 8px 24px rgba(0, 0, 0, 0.55);
    --rd-shadow-xl:   0 12px 36px rgba(0, 0, 0, 0.6);

    --rd-radius-sm:   6px;
    --rd-radius-md:   12px;
    --rd-radius-lg:   16px;
    --rd-radius-pill: 100px;

    --rd-transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --rd-transition-fast: 0.15s ease;

    /* Override Cassiopeia variables */
    --cassiopeia-color-primary: var(--rd-primary);
    --cassiopeia-color-link:    var(--rd-sky);
    --cassiopeia-color-hover:   var(--rd-white);

    /* BS5 overrides — tmavý režim */
    --bs-primary: #C8102E;
    --bs-primary-rgb: 0, 102, 255;
    --bs-link-color: #FF4141;
    --bs-link-color-rgb: 61, 139, 255;
    --bs-link-hover-color: #fff;
    --bs-body-bg: #050B16;
    --bs-body-color: #E4E4E7;
    --bs-border-color: #2A2A2F;
    --bs-secondary-color: #9CA3AF;
    --bs-tertiary-bg: #111C30;
    --bs-emphasis-color: #fff;
    --bs-heading-color: #fff;
    color-scheme: dark;
}

/* ==========================================================================
   3. Base — body, typography, links, ::selection
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rd-text);
    background-color: var(--rd-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--rd-primary-light);
    color: var(--rd-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--rd-heading);
    line-height: 1.3;
}

h1 { font-size: 28px; margin-bottom: var(--rd-space-md); }
h2 { font-size: 22px; margin-bottom: var(--rd-space-md); }
h3 { font-size: 18px; margin-bottom: var(--rd-space-sm); }
h4 { font-size: 16px; }

a {
    color: var(--rd-heading);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

a:hover {
    color: var(--rd-heading);
}

/* Hide Cassiopeia's default header — we use our own */
header.container-header {
    display: none !important;
}

/* Constrain container width */
.rd-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--rd-space-md);
}

/* ==========================================================================
   4. Header Main — white bar with logo, search, language switcher
   ========================================================================== */

.rd-header-main {
    background: var(--rd-primary-dark);
    box-shadow: var(--rd-shadow-sm);
    position: relative;
    z-index: 100;
}

.rd-header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rd-space-md) 0;
    gap: var(--rd-space-lg);
}

/* Logo */
.rd-logo {
    flex-shrink: 0;
}

.rd-logo .brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.rd-logo-img {
    height: 72px;
    width: auto;
}

.rd-logo .site-description {
    font-size: 12px;
    color: var(--rd-muted);
    margin-top: 2px;
}

/* Search bar — pill shape with integrated button */
.rd-search {
    flex: 1;
    max-width: 420px;
}

.rd-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.rd-search-input {
    width: 100%;
    border: 2px solid var(--rd-gray-light) !important;
    border-radius: var(--rd-radius-pill) !important;
    padding: 9px 44px 9px 18px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif;
    background: var(--rd-surface) !important;
    transition: all var(--rd-transition);
}

.rd-search-input:focus {
    border-color: var(--rd-primary-light) !important;
    background: var(--rd-card) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15) !important;
    outline: none;
}

.rd-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none !important;
    border-radius: 50% !important;
    background: var(--rd-primary) !important;
    color: var(--rd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    transition: background var(--rd-transition-fast);
    box-shadow: none !important;
}

.rd-search-btn:hover {
    background: var(--rd-primary-dark) !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

.rd-search-btn svg {
    display: block;
}

/* Language switcher in header */
.rd-header-lang {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.rd-header-lang div.mod-languages {
    display: flex;
    align-items: center;
}

.rd-header-lang div.mod-languages ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-header-lang div.mod-languages ul li {
    display: flex !important;
    align-items: center;
    margin: 0;
    line-height: 1;
    background: none !important;
}

.rd-header-lang div.mod-languages a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    padding: 0;
    border-radius: var(--rd-radius-sm);
    border: 2px solid transparent;
    line-height: 1;
    transition: all var(--rd-transition-fast);
}

.rd-header-lang div.mod-languages img {
    display: block;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.rd-header-lang div.mod-languages a:hover {
    border-color: var(--rd-primary-light);
}

.rd-header-lang div.mod-languages ul li.lang-active a {
    border-color: var(--rd-accent);
}

/* Flag ordering: CZ, SK, DE, EN */
.rd-header-lang div.mod-languages ul li:has(img[src*="cs_cz"]) { order: 1; }
.rd-header-lang div.mod-languages ul li:has(img[src*="sk_sk"]) { order: 2; }
.rd-header-lang div.mod-languages ul li:has(img[src*="de_de"]) { order: 3; }
.rd-header-lang div.mod-languages ul li:has(img[src*="en_gb"]) { order: 4; }

/* Hide cart in header — cart renders in navbar .rd-nav-actions instead */
.rd-header-lang .vmCartModule {
    display: none !important;
}

/* ==========================================================================
   5. Navbar — gradient, uppercase, underline slide-in hover
   ========================================================================== */

.rd-navbar {
    background: var(--rd-primary);

    /* Ukotvení při scrollování. Funguje jen proto, že <nav> stojí v index.php
       MIMO <header> — sticky prvek se přilepí pouze v mezích svého rodiče,
       takže uvnitř hlavičky by odscrolloval pryč společně s ní.
       z-index musí přebít obsah stránky (MOC tooltip 100, back-to-top 90),
       ale zůstat pod off-canvas panelem (300) a fancyboxem (1110). */
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.rd-navbar .rd-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Hide the checkbox toggle (CSS-only off-canvas trigger) */
.rd-nav-checkbox {
    display: none;
}

/* Hamburger — hidden on desktop */
.rd-hamburger {
    display: none;
}

/* Nav menu wrapper */
.rd-nav-menu {
    display: flex;
    align-items: stretch;
}

/* Top-level menu items — override Cassiopeia's .mod-menu { flex-direction: column } */
.rd-nav-menu .mod-menu,
.rd-nav-menu > div > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.rd-nav-menu .mod-menu > li {
    position: relative;
}

.rd-nav-menu .mod-menu > li > a,
.rd-nav-menu .mod-menu > li > .nav-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    transition: color var(--rd-transition-fast);
    white-space: nowrap;
}

/* Underline slide-in effect — terracotta */
.rd-nav-menu .mod-menu > li > a::after,
/* Underline slide-in effect — terracotta */
.rd-nav-menu .mod-menu > li > .nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--rd-sky);
    transition: all var(--rd-transition);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.rd-nav-menu .mod-menu > li > a:hover,
.rd-nav-menu .mod-menu > li.active > a,
.rd-nav-menu .mod-menu > li.current > a,
.rd-nav-menu .mod-menu > li > .nav-header:hover,
.rd-nav-menu .mod-menu > li.active > .nav-header,
.rd-nav-menu .mod-menu > li.current > .nav-header {
    color: var(--rd-white);
}

.rd-nav-menu .mod-menu > li > a:hover::after,
.rd-nav-menu .mod-menu > li.active > a::after,
.rd-nav-menu .mod-menu > li.current > a::after,
.rd-nav-menu .mod-menu > li > .nav-header:hover::after,
.rd-nav-menu .mod-menu > li.active > .nav-header::after,
.rd-nav-menu .mod-menu > li.current > .nav-header::after {
    width: 100%;
}

/* Overlay — hidden on desktop */
.rd-nav-overlay {
    display: none;
}

/* Nav actions — login + cart, right side of navbar */
.rd-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--rd-space-md);
    margin-left: auto;
    flex-shrink: 0;
    padding: 0 var(--rd-space-sm);
}

.rd-nav-actions a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--rd-transition-fast);
}

.rd-nav-actions a:hover {
    color: var(--rd-sky);
}

/* Login / account link in navbar */
.rd-nav-login {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--rd-transition-fast);
}

.rd-nav-login:hover {
    color: var(--rd-sky);
}

.rd-nav-login svg {
    flex-shrink: 0;
}

/* User dropdown — logged-in menu */
.rd-user-dropdown {
    position: relative;
}

.rd-user-trigger .rd-user-chevron {
    margin-left: 2px;
    transition: transform var(--rd-transition-fast);
}

.rd-user-dropdown:hover .rd-user-chevron {
    transform: rotate(180deg);
}

.rd-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    margin-top: 8px;
    padding: 6px 0;
    background: var(--rd-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rd-radius-sm);
    box-shadow: var(--rd-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--rd-transition-fast), visibility var(--rd-transition-fast), transform var(--rd-transition-fast);
    z-index: 400;
}

/* Invisible bridge between trigger and dropdown to prevent gap hover loss */
.rd-user-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.rd-user-dropdown:hover .rd-user-menu,
.rd-user-dropdown:focus-within .rd-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rd-user-menu a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--rd-transition-fast), color var(--rd-transition-fast);
}

.rd-user-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--rd-white);
}

.rd-user-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
    padding-top: 10px !important;
    color: var(--rd-sky) !important;
}

.rd-user-logout:hover {
    color: var(--rd-white) !important;
    background: var(--rd-sky) !important;
}

/* Hide language switcher in navbar — it renders in header .rd-header-lang instead */
.rd-nav-actions .mod-languages {
    display: none !important;
}

/* ==========================================================================
   6. Dropdowns — white bg, terracotta top border, fade+slide
   ========================================================================== */

.rd-nav-menu .mod-menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--rd-card);
    border-top: 3px solid var(--rd-accent);
    border-radius: 0 0 var(--rd-radius-md) var(--rd-radius-md);
    box-shadow: var(--rd-shadow-lg);
    list-style: none;
    margin: 0;
    padding: var(--rd-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--rd-transition);
    /* Zavírá se okamžitě; otevření má prodlevu níž (hover intent). */
    transition-delay: 0s;
    z-index: 200;
}

/* Hover intent: panel se odkryje, až když myš na položce chvíli setrvá.
   Bez prodlevy stačilo cestou dolů po stránce přejet přes „Produkty" a mega menu
   (vysoké ~290 px) se otevřelo a zůstalo ležet pod kurzorem ~8 cm pod lištou —
   vypadalo to, že vyskakuje samo. Prodleva je na `visibility`, takže rychlý
   průjezd panel vůbec neukáže; při odjezdu platí `transition-delay: 0s` výš
   a menu se zavře hned. */
.rd-nav-menu .mod-menu > li:hover > .mod-menu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.rd-nav-menu .mod-menu__sub li {
    list-style: none;
}

.rd-nav-menu .mod-menu__sub a {
    display: block;
    padding: 8px 20px;
    color: var(--rd-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--rd-transition-fast);
}

.rd-nav-menu .mod-menu__sub a:hover {
    padding-left: 24px;
    color: var(--rd-heading);
    background: rgba(0, 0, 0, 0.06);
}

/* Nested dropdowns */
.rd-nav-menu .mod-menu__sub .mod-menu__sub {
    top: -3px;
    left: 100%;
    border-top: 3px solid var(--rd-accent);
}

/* Dropdown caret for items with children */
.rd-nav-menu .mod-menu > li.deeper > a::before,
/* Dropdown caret for items with children */
.rd-nav-menu .mod-menu > li.deeper > .nav-header::before {
    content: '';
    display: none;
}

/* ==========================================================================
   7. Mega Menu — shared styles for all mega menu items
   Produkty: 321/455/488/518 (4 col)
   O nás:    142/462/493/523 (2 col)
   Pro firmy: 449/458/489/519 (1 col)
   ========================================================================== */

/* Produkty — static → panel na celou šířku navbaru */
.rd-nav-menu .mod-menu > li.item-321,
.rd-nav-menu .mod-menu > li.item-455,
.rd-nav-menu .mod-menu > li.item-488,
.rd-nav-menu .mod-menu > li.item-518 {
    position: static;
}

/* Shared dropdown panel */
.item-321 > .mod-menu__sub,
.item-455 > .mod-menu__sub,
.item-488 > .mod-menu__sub,
.item-518 > .mod-menu__sub,
.item-142 > .mod-menu__sub,
.item-462 > .mod-menu__sub,
.item-493 > .mod-menu__sub,
.item-523 > .mod-menu__sub,
.item-449 > .mod-menu__sub,
.item-458 > .mod-menu__sub,
.item-489 > .mod-menu__sub,
.item-519 > .mod-menu__sub {
    left: 0;
    right: 0;
    padding: var(--rd-space-md);
    column-gap: var(--rd-space-md);
    border-top: none;
    border-radius: 0 0 var(--rd-radius-md) var(--rd-radius-md);
    background: var(--rd-card);
    transform: translateY(8px);
}

/* Show on hover */
.rd-nav-menu .mod-menu > li.item-321:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-455:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-488:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-518:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-142:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-462:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-493:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-523:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-449:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-458:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-489:hover > .mod-menu__sub,
.rd-nav-menu .mod-menu > li.item-519:hover > .mod-menu__sub {
    transform: translateY(0);
}

/* --- Column counts per menu type --- */

/* Produkty — 4 columns */
.item-321 > .mod-menu__sub,
.item-455 > .mod-menu__sub,
.item-488 > .mod-menu__sub,
.item-518 > .mod-menu__sub {
    columns: 4;
}

/* O nás — 2 columns, pod svou položkou */
.item-142 > .mod-menu__sub,
.item-462 > .mod-menu__sub,
.item-493 > .mod-menu__sub,
.item-523 > .mod-menu__sub {
    columns: 2;
    right: auto;
    width: auto;
    max-width: 90vw;
}

/* Pro firmy — 1 column, pod svou položkou */
.item-449 > .mod-menu__sub,
.item-458 > .mod-menu__sub,
.item-489 > .mod-menu__sub,
.item-519 > .mod-menu__sub {
    columns: 1;
    right: auto;
    width: 280px;
    max-width: 90vw;
}

/* --- Shared item styles --- */

/* Each menu item */
.item-321 > .mod-menu__sub > li,
.item-455 > .mod-menu__sub > li,
.item-488 > .mod-menu__sub > li,
.item-518 > .mod-menu__sub > li,
.item-142 > .mod-menu__sub > li,
.item-462 > .mod-menu__sub > li,
.item-493 > .mod-menu__sub > li,
.item-523 > .mod-menu__sub > li,
.item-449 > .mod-menu__sub > li,
.item-458 > .mod-menu__sub > li,
.item-489 > .mod-menu__sub > li,
.item-519 > .mod-menu__sub > li {
    break-inside: avoid;
    list-style: none;
    margin-bottom: 6px;
}

/* Top-level links — button style */
.item-321 > .mod-menu__sub > li > a,
.item-455 > .mod-menu__sub > li > a,
.item-488 > .mod-menu__sub > li > a,
.item-518 > .mod-menu__sub > li > a,
.item-142 > .mod-menu__sub > li > a,
.item-462 > .mod-menu__sub > li > a,
.item-493 > .mod-menu__sub > li > a,
.item-523 > .mod-menu__sub > li > a,
.item-449 > .mod-menu__sub > li > a,
.item-458 > .mod-menu__sub > li > a,
.item-489 > .mod-menu__sub > li > a,
.item-519 > .mod-menu__sub > li > a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-heading);
    background: var(--rd-surface);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--rd-transition-fast);
}

/* Hover */
.item-321 > .mod-menu__sub > li > a:hover,
.item-455 > .mod-menu__sub > li > a:hover,
.item-488 > .mod-menu__sub > li > a:hover,
.item-518 > .mod-menu__sub > li > a:hover,
.item-142 > .mod-menu__sub > li > a:hover,
.item-462 > .mod-menu__sub > li > a:hover,
.item-493 > .mod-menu__sub > li > a:hover,
.item-523 > .mod-menu__sub > li > a:hover,
.item-449 > .mod-menu__sub > li > a:hover,
.item-458 > .mod-menu__sub > li > a:hover,
.item-489 > .mod-menu__sub > li > a:hover,
.item-519 > .mod-menu__sub > li > a:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}

/* Sub-categories always visible, nested under parent */
.item-321 > .mod-menu__sub .deeper > .mod-menu__sub,
.item-455 > .mod-menu__sub .deeper > .mod-menu__sub,
.item-488 > .mod-menu__sub .deeper > .mod-menu__sub,
.item-518 > .mod-menu__sub .deeper > .mod-menu__sub {
    display: block !important;
    position: static !important;
    width: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 0;
    columns: unset;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.item-321 > .mod-menu__sub .deeper > .mod-menu__sub > li,
.item-455 > .mod-menu__sub .deeper > .mod-menu__sub > li,
.item-488 > .mod-menu__sub .deeper > .mod-menu__sub > li,
.item-518 > .mod-menu__sub .deeper > .mod-menu__sub > li {
    margin-bottom: 4px;
}

.item-321 > .mod-menu__sub .deeper > .mod-menu__sub > li > a,
.item-455 > .mod-menu__sub .deeper > .mod-menu__sub > li > a,
.item-488 > .mod-menu__sub .deeper > .mod-menu__sub > li > a,
.item-518 > .mod-menu__sub .deeper > .mod-menu__sub > li > a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--rd-heading);
    background: var(--rd-bg);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--rd-transition-fast);
    opacity: 1;
}

.item-321 > .mod-menu__sub .deeper > .mod-menu__sub > li > a:hover,
.item-455 > .mod-menu__sub .deeper > .mod-menu__sub > li > a:hover,
.item-488 > .mod-menu__sub .deeper > .mod-menu__sub > li > a:hover,
.item-518 > .mod-menu__sub .deeper > .mod-menu__sub > li > a:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}

/* Hide dropdown toggle caret inside mega menu */
.item-321 > .mod-menu__sub .deeper > a::after,
.item-455 > .mod-menu__sub .deeper > a::after,
.item-488 > .mod-menu__sub .deeper > a::after,
.item-518 > .mod-menu__sub .deeper > a::after {
    display: none;
}

/* ==========================================================================
   8. Off-canvas Mobile Menu
   ========================================================================== */

/* Hamburger icon — 3 spans animate to X */
.rd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 44px;
    cursor: pointer;
    padding: 10px 0;
    z-index: 310;
}

.rd-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--rd-text);   /* v jml --rd-card = bílá; v tmavém motivu RD by čárky splynuly s lištou (30. 9. 2026) */
    border-radius: 2px;
    transition: all var(--rd-transition);
    transform-origin: center;
}

/* Overlay */
.rd-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 299;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--rd-transition);
}

/* ==========================================================================
   9. Buttons — terracotta gradient, hover lift
   ========================================================================== */

.btn,
button,
input[type="submit"] {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--rd-radius-sm);
    padding: 10px 20px;
    transition: all var(--rd-transition);
    cursor: pointer;
}

.btn-primary,
button[type="submit"] {
    background: linear-gradient(135deg, #C8102E 0%, #A00D25 100%);
    border: none;
    color: var(--rd-white);
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #D92A45 0%, #C8102E 100%);
    color: var(--rd-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45);
}

.btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(200, 16, 46, 0.35);
}

/* Add to cart button — orange/gold */
.vm-addtocart-button-wrapper .btn,
.addtocart-button {
    background: linear-gradient(135deg, #C8102E 0%, #E8384F 100%);
    border: none;
    color: var(--rd-white);
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}

.vm-addtocart-button-wrapper .btn:hover,
.addtocart-button:hover {
    background: linear-gradient(135deg, #E8384F 0%, #C8102E 100%);
    color: var(--rd-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45);
}

.vm-addtocart-button-wrapper .btn:active,
.addtocart-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(200, 16, 46, 0.35);
}

/* Secondary / outline buttons */
.btn-secondary,
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--rd-accent);
    color: var(--rd-heading);
}

.btn-secondary:hover,
.btn-outline-primary:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   10. Content Area — white card, rounded, shadow
   ========================================================================== */

.container-component {
    background: var(--rd-card);
    border-radius: var(--rd-radius-lg);
    padding: var(--rd-space-lg);
    box-shadow: var(--rd-shadow-sm);
}

/* Hide Joomla image_fulltext rendering (images managed in article HTML) */
.com-content-article .item-image {
    display: none;
}

/* ==========================================================================
   11. Sidebar — white card, terracotta underline heading
   ========================================================================== */

.container-sidebar-left,
.container-sidebar-right {
    background: var(--rd-card);
    border-radius: var(--rd-radius-lg);
    padding: var(--rd-space-md);
    box-shadow: var(--rd-shadow-sm);
}

.container-sidebar-left h3,
.container-sidebar-right h3 {
    color: var(--rd-heading);
    font-weight: 700;
    font-size: 16px;
    padding-bottom: var(--rd-space-sm);
    margin-bottom: var(--rd-space-md);
    position: relative;
}

.container-sidebar-left h3::after,
.container-sidebar-right h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--rd-gold);
    border-radius: 2px;
}

/* Contextual category navigation */
.rd-sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-sidebar-cats li {
    margin-bottom: 2px;
}

.rd-sidebar-cats a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--rd-radius-sm);
    color: var(--rd-text);
    font-size: 14px;
    text-decoration: none;
    transition: background var(--rd-transition-fast), color var(--rd-transition-fast);
}

.rd-sidebar-cats a:hover {
    background: var(--rd-surface);
    color: var(--rd-heading);
}

.rd-cat-active a {
    background: var(--rd-primary-dark);
    color: var(--rd-white);
    font-weight: 600;
    border-left: 3px solid var(--rd-gold);
}

.rd-cat-active a:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
}

.rd-cat-back {
    margin-bottom: 8px;
}

.rd-cat-back a {
    font-size: 13px;
    color: var(--rd-muted);
    padding-left: 0;
}

.rd-cat-back a::before {
    content: "\2190\00a0";
}

.rd-cat-back a:hover {
    background: transparent;
    color: var(--rd-heading);
}

/* ==========================================================================
   12. VM Browse — product cards with hover elevation
   ========================================================================== */

.browse-view .vm-product-descr-container-0,
.browse-view .vm-product-descr-container-1,
.browse-view > .row > .product > .spacer {
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-md);
    transition: all var(--rd-transition);
    background: var(--rd-card);
}

.browse-view .vm-product-descr-container-0:hover,
.browse-view .vm-product-descr-container-1:hover,
.browse-view > .row > .product > .spacer:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow-lg);
    border-color: transparent;
}

.browse-view .vm-product-title a,
.browse-view .vm-product-descr-container-1 h2 a {
    font-size: 16px;
    font-weight: 600;
    color: var(--rd-text);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

.browse-view .vm-product-title a:hover,
.browse-view .vm-product-descr-container-1 h2 a:hover {
    color: var(--rd-heading);
}

/* Titulek a krátký popis jako perex článku: kompaktní titulek, šedý popis na 3 řádky */
.browse-view .vm-product-descr-container-1 h2 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 var(--rd-space-sm);
}
.browse-view .vm-product-descr-container-1 h2 a { color: var(--rd-heading); }
.browse-view .vm-product-descr-container-1 h2 a:hover { color: var(--rd-sky); }
.browse-view .product_s_desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--rd-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.browse-view .PricesalesPrice,
.browse-view .vm-price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--rd-heading);
}

.browse-view .product-price {
    margin-top: var(--rd-space-sm);
}

.browse-view .product-price > .PricesalesPrice::before {
    content: 'Vaše cena vč. DPH:';
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--rd-muted);
    letter-spacing: normal;
}

/* MOC — browse view */
.browse-view .rd-moc {
    font-size: 11px;
    color: var(--rd-muted);
    margin-bottom: 2px;
}

.browse-view .vm-details-button {
    display: none;
}

.browse-view .addtocart-area {
    margin-top: var(--rd-space-sm);
}

/* Product image in listing */
.browse-view .browseProductImage {
    max-width: 100%;
    height: auto;
    border-radius: var(--rd-radius-md);
    transition: transform var(--rd-transition);
}

.browse-view .vm-product-descr-container-0:hover .browseProductImage {
    transform: scale(1.02);
}

/* ==========================================================================
   13. VM Detail — image left, details right, description below
   ========================================================================== */

/* Back to category link */
.productdetails-view .back-to-category {
    margin-bottom: var(--rd-space-md);
}

.productdetails-view .back-to-category a {
    font-size: 13px;
    color: var(--rd-muted);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

.productdetails-view .back-to-category a:hover {
    color: var(--rd-heading);
}

.productdetails-view .back-to-category a::before {
    content: '\2190';
    margin-right: 6px;
}

/* Product title */
.productdetails-view > h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-heading);
    margin-bottom: var(--rd-space-sm);
    line-height: 1.3;
}

/* Short description — in the right column */
.productdetails-view .product-short-description {
    font-size: 15px;
    color: var(--rd-muted);
    line-height: 1.6;
}

/* 2-column layout: image left + details right */
.productdetails-view .vm-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rd-space-xl);
    align-items: start;
    margin-bottom: var(--rd-space-xl);
}

.productdetails-view .vm-product-container > .clear {
    display: none;
}

/* Image column */
.productdetails-view .vm-product-media-container {
    position: sticky;
    top: var(--rd-space-lg);
}

.productdetails-view .vm-product-media-container .main-image {
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-lg);
    overflow: hidden;
    background: var(--rd-card);
}

.productdetails-view .vm-product-media-container .main-image > .clear {
    display: none;
}

.productdetails-view .vm-product-media-container .main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.productdetails-view .vm-product-media-container .main-image a {
    display: block;
}

/* Additional images / thumbnails */
.productdetails-view .additional-images {
    display: flex;
    gap: var(--rd-space-sm);
    margin-top: var(--rd-space-sm);
    flex-wrap: wrap;
}

.productdetails-view .additional-images img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--rd-radius-sm);
    border: 2px solid var(--rd-gray-light);
    background: var(--rd-card);
    padding: 4px;
    transition: all var(--rd-transition);
    cursor: pointer;
}

.productdetails-view .additional-images img:hover {
    border-color: var(--rd-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

/* Details column — buy area */
.productdetails-view .vm-product-details-container {
    display: flex;
    flex-direction: column;
}

.productdetails-view .spacer-buy-area {
    display: flex;
    flex-direction: column;
    gap: var(--rd-space-md);
}

/* Product identification — SKU, GTIN, Manufacturer */
.productdetails-view .product-identification {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--rd-space-md);
    background: var(--rd-bg);
    border-radius: var(--rd-radius-md);
    font-size: 13px;
}

.productdetails-view .product-identification .product-sku,
.productdetails-view .product-identification .product-gtin {
    display: flex;
    gap: var(--rd-space-sm);
}

.productdetails-view .product-identification .product-sku-label,
.productdetails-view .product-identification .product-gtin-label {
    color: var(--rd-muted);
    font-weight: 500;
    min-width: 40px;
}

.productdetails-view .product-identification .product-sku-value,
.productdetails-view .product-identification .product-gtin-value {
    font-weight: 600;
    color: var(--rd-text);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.productdetails-view .product-identification .manufacturer {
    border-top: none;
    padding-top: 4px;
    margin-top: 0;
    font-size: 13px;
}

/* Stock status */
.productdetails-view .product-stock-status {
    margin-bottom: var(--rd-space-sm);
}

.productdetails-view .stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--rd-radius-pill);
}

.productdetails-view .stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.productdetails-view .stock-indicator.in-stock {
    color: #34D399;
    background: rgba(16, 185, 129, 0.12);
}

.productdetails-view .stock-indicator.in-stock .stock-dot {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.productdetails-view .stock-indicator.out-of-stock {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}

.productdetails-view .stock-indicator.out-of-stock .stock-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Price — only final salesPrice */
.productdetails-view .product-price {
    margin-bottom: var(--rd-space-sm);
}

.product-price .price-crossed {
    display: none;
}

.product-price .vm-price-desc {
    display: none;
}

.product-price .PricesalesPriceTt {
    display: none;
}

/* MOC — Doporučená maloobchodní cena (shared) */
.rd-moc {
    font-size: 13px;
    color: var(--rd-muted);
    margin-bottom: 4px;
    line-height: 1.3;
}

.rd-moc-label {
    position: relative;
    cursor: help;
}

.rd-moc-label::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 280px;
    max-width: 80vw;
    padding: 10px 12px;
    background: var(--rd-primary-dark);
    color: var(--rd-white);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    border-radius: var(--rd-radius-sm);
    box-shadow: var(--rd-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    white-space: normal;
    cursor: default;
}

.rd-moc-label:hover::after {
    opacity: 1;
    visibility: visible;
}

/* MOC — detail view */
.productdetails-view .rd-moc {
    font-size: 13px;
    margin-bottom: 4px;
}

.productdetails-view .PricesalesPrice {
    font-size: 32px;
    font-weight: 800;
    color: var(--rd-heading);
    letter-spacing: -0.5px;
}

.productdetails-view .product-price > .PricesalesPrice::before {
    content: 'Vaše cena vč. DPH:';
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--rd-muted);
    letter-spacing: normal;
    margin-bottom: 2px;
}

/* Add to Cart — shared (detail + browse) */
.addtocart-area {
    margin-top: var(--rd-space-sm);
}

.addtocart-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.addtocart-bar .quantity-box {
    display: inline-flex;
}

.addtocart-bar .quantity-input {
    width: 46px;
    height: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    background: var(--rd-card);
    color: var(--rd-heading);
    padding: 0;
}

.addtocart-bar span.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.addtocart-bar input.quantity-plus,
.addtocart-bar input.quantity-minus {
    width: 32px;
    height: 36px;
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    background-color: var(--rd-surface);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    cursor: pointer;
    transition: all var(--rd-transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.addtocart-bar input.quantity-plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23E4E4E7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.addtocart-bar input.quantity-minus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h12' stroke='%23E4E4E7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.addtocart-bar input.quantity-plus:hover,
.addtocart-bar input.quantity-minus:hover {
    background-color: var(--rd-primary);
    border-color: var(--rd-accent);
}

.addtocart-bar input.quantity-plus:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.addtocart-bar input.quantity-minus:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h12' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.addtocart-bar .addtocart-button {
    width: auto;
}

.addtocart-bar .addtocart-button .btn,
.addtocart-bar .addtocart-button .addtocart-button-label,
.addtocart-bar .addtocart-button input[type="submit"] {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: var(--rd-radius-sm);
    font-size: 13px;
    box-sizing: border-box;
}

/* Ask a question */
.productdetails-view .ask-a-question {
    margin-top: var(--rd-space-sm);
}

.productdetails-view a.ask-a-question {
    font-size: 13px;
    color: var(--rd-muted);
    text-decoration: underline;
    transition: color var(--rd-transition-fast);
}

.productdetails-view a.ask-a-question:hover {
    color: var(--rd-heading);
}

/* Manufacturer */
.productdetails-view .manufacturer {
    padding-top: var(--rd-space-md);
    border-top: 1px solid var(--rd-gray-light);
    font-size: 14px;
    color: var(--rd-muted);
}

.productdetails-view .manufacturer a {
    font-weight: 600;
    color: var(--rd-heading);
}

.productdetails-view .manufacturer a:hover {
    color: var(--rd-accent);
}

/* Full description — below both columns */
.productdetails-view > .product-description {
    border-top: 1px solid var(--rd-gray-light);
    padding-top: var(--rd-space-lg);
    margin-bottom: var(--rd-space-xl);
    line-height: 1.7;
    color: var(--rd-text);
}

.productdetails-view > .product-description > .title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--rd-heading);
    margin-bottom: var(--rd-space-md);
    position: relative;
    padding-bottom: var(--rd-space-sm);
}

.productdetails-view > .product-description > .title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--rd-gold);
    margin-top: var(--rd-space-sm);
    border-radius: 2px;
}

.productdetails-view > .product-description h2 {
    font-size: 18px;
    margin: var(--rd-space-md) 0 var(--rd-space-sm);
}

.productdetails-view > .product-description p {
    margin-bottom: var(--rd-space-md);
}

.productdetails-view > .product-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rd-radius-md);
    margin: var(--rd-space-sm) 0;
}

/* Rating box */
.productdetails-view .ratingbox {
    height: 20px;
}

/* Customer reviews (empty) */
.productdetails-view .customer-reviews:empty {
    display: none;
}

/* ==========================================================================
   14. VM Cart/Checkout — OPC 2-column layout
   ========================================================================== */

/* --- Checkout header --- */
.rd-checkout-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-heading);
    text-align: center;
    position: relative;
    padding-bottom: var(--rd-space-sm);
    margin-bottom: var(--rd-space-lg);
}

.rd-checkout-header h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--rd-gold);
    margin: var(--rd-space-sm) auto 0;
    border-radius: 2px;
}

/* --- Main grid: 2 columns --- */
.rd-checkout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--rd-space-xl);
    align-items: start;
}

/* --- Left column --- */
.rd-checkout-form {
    display: flex;
    flex-direction: column;
    gap: var(--rd-space-md);
}

/* --- Sections (cards) --- */
.rd-checkout-section {
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-lg);
}

.rd-checkout-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-heading);
    padding-bottom: var(--rd-space-sm);
    margin-bottom: var(--rd-space-md);
    position: relative;
}

.rd-checkout-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--rd-gold);
    border-radius: 2px;
}

/* --- Right column (sticky summary) --- */
.rd-checkout-summary {
    position: sticky;
    top: 20px;
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* --- Address display (read-only) --- */
.rd-address-display {
    background: var(--rd-bg);
    border-radius: var(--rd-radius-sm);
    padding: var(--rd-space-md);
    margin-bottom: var(--rd-space-sm);
}

.rd-address-row {
    display: flex;
    gap: var(--rd-space-sm);
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.rd-address-label {
    color: var(--rd-muted);
    min-width: 120px;
    flex-shrink: 0;
}

.rd-address-value {
    color: var(--rd-text);
    font-weight: 500;
}

.rd-address-edit {
    display: inline-block;
    color: var(--rd-accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: var(--rd-space-sm);
    transition: color var(--rd-transition-fast);
}

.rd-address-edit:hover {
    color: var(--rd-sky);
    text-decoration: underline;
}

.rd-address-edit.required.invalid {
    color: var(--rd-danger);
    font-weight: 700;
    animation: rd-pulse 1.5s ease-in-out infinite;
}

@keyframes rd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Userfields (guest address form) --- */
.rd-userfields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rd-field-group {
    margin-bottom: var(--rd-space-sm);
}

.rd-field-group h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-heading);
    margin-bottom: var(--rd-space-md);
    padding-bottom: var(--rd-space-xs);
    border-bottom: 1px solid var(--rd-gray-light);
}

.rd-form-field {
    margin-bottom: var(--rd-space-md);
}

.rd-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-text);
    margin-bottom: 4px;
}

.rd-required {
    color: var(--rd-danger);
}

.rd-form-field input[type="text"],
.rd-form-field input[type="email"],
.rd-form-field input[type="tel"],
.rd-form-field input[type="password"],
.rd-form-field select,
.rd-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--rd-text);
    background: var(--rd-card);
    transition: border-color var(--rd-transition-fast), box-shadow var(--rd-transition-fast);
    box-sizing: border-box;
}

.rd-form-field input:focus,
.rd-form-field select:focus,
.rd-form-field textarea:focus {
    outline: none;
    border-color: var(--rd-primary-light);
    box-shadow: 0 0 0 3px rgba(13, 86, 111, 0.1);
}

.rd-form-field input.is-invalid,
.rd-form-field select.is-invalid {
    border-color: var(--rd-danger);
    box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.1);
}

.rd-form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rd-text);
    line-height: 1.5;
}

.rd-form-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--rd-primary);
}

.rd-form-hint {
    font-size: 12px;
    color: var(--rd-muted);
    margin-top: 4px;
}

/* --- Shipment / Payment method selection --- */
.rd-method-select {
    display: flex;
    flex-direction: column;
    gap: var(--rd-space-sm);
}

.rd-method-option {
    border: 2px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    padding: 12px var(--rd-space-md);
    cursor: pointer;
    transition: border-color var(--rd-transition-fast), background var(--rd-transition-fast);
    display: flex;
    align-items: center;
    gap: var(--rd-space-sm);
}

.rd-method-option:hover {
    border-color: var(--rd-primary-light);
    background: var(--rd-bg);
}

.rd-method-option.rd-method-selected {
    border-color: var(--rd-accent);
    background: rgba(13, 86, 111, 0.03);
}

.rd-method-option input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--rd-primary);
}

.rd-method-option label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.rd-checkout-notice {
    font-size: 14px;
    color: var(--rd-muted);
    font-style: italic;
    padding: var(--rd-space-sm) 0;
}

/* --- Products (right column) --- */
.rd-checkout-products {
    margin-bottom: var(--rd-space-md);
    padding-bottom: var(--rd-space-md);
    border-bottom: 1px solid var(--rd-gray-light);
}

.rd-cart-product {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--rd-space-sm);
    padding: var(--rd-space-sm) 0;
    border-bottom: 1px solid var(--rd-surface);
}

.rd-cart-product:last-child {
    border-bottom: none;
}

.rd-cart-product-img {
    width: 60px;
    height: 60px;
    border-radius: var(--rd-radius-sm);
    overflow: hidden;
    background: var(--rd-bg);
    flex-shrink: 0;
}

.rd-cart-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-cart-product-info {
    min-width: 0;
}

.rd-cart-product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-text);
    line-height: 1.4;
    margin-bottom: 6px;
}

.rd-cart-product-name a {
    color: inherit;
    text-decoration: none;
}

.rd-cart-product-name a:hover {
    color: var(--rd-accent);
}

.rd-cart-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Quantity controls */
.rd-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    overflow: hidden;
}

.rd-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--rd-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rd-text);
    transition: background var(--rd-transition-fast);
    padding: 0;
}

.rd-qty-btn:hover {
    background: var(--rd-surface);
}

.rd-qty-input {
    width: 54px;
    height: 28px;
    border: none;
    border-left: 1px solid var(--rd-gray-light);
    border-right: 1px solid var(--rd-gray-light);
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    background: var(--rd-card);
    color: var(--rd-text);
    -moz-appearance: textfield;
}

.rd-qty-input::-webkit-inner-spin-button,
.rd-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rd-update-btn {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    color: var(--rd-muted);
    cursor: pointer;
    transition: all var(--rd-transition-fast);
}

.rd-update-btn:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}

.rd-cart-product-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--rd-heading);
    white-space: nowrap;
}

.rd-cart-product-price .PricesalesPrice {
    font-size: inherit;
    font-weight: inherit;
}

.rd-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--rd-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--rd-transition-fast);
}

.rd-remove-btn:hover {
    background: rgba(204, 51, 51, 0.1);
    color: var(--rd-danger);
}

/* --- Coupon --- */
.rd-checkout-coupon {
    margin-bottom: var(--rd-space-md);
    padding-bottom: var(--rd-space-md);
    border-bottom: 1px solid var(--rd-gray-light);
}

.rd-coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--rd-muted);
    margin-bottom: var(--rd-space-sm);
    padding: 8px var(--rd-space-sm);
    background: rgba(255, 65, 65, 0.08);
    border-radius: var(--rd-radius-sm);
}

.rd-coupon-discount {
    font-weight: 600;
    color: var(--rd-gold);
}

.rd-coupon-input-group {
    display: flex;
    gap: 0;
}

.rd-coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--rd-gray-light);
    border-right: none;
    border-radius: var(--rd-radius-sm) 0 0 var(--rd-radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--rd-text);
    background: var(--rd-card);
}

.rd-coupon-input:focus {
    outline: none;
    border-color: var(--rd-primary-light);
}

.rd-coupon-btn {
    padding: 8px 16px;
    border: 1px solid var(--rd-accent);
    border-radius: 0 var(--rd-radius-sm) var(--rd-radius-sm) 0;
    background: var(--rd-primary);
    color: var(--rd-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--rd-transition-fast);
}

.rd-coupon-btn:hover {
    background: var(--rd-primary-dark);
}

/* --- Price totals --- */
.rd-checkout-totals {
    background: var(--rd-bg);
    border-radius: var(--rd-radius-sm);
    padding: var(--rd-space-md);
    margin-bottom: var(--rd-space-md);
}

.rd-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
    color: var(--rd-text);
}

.rd-totals-row small {
    font-size: 12px;
    color: var(--rd-muted);
}

.rd-totals-tax {
    color: var(--rd-muted);
    font-size: 13px;
}

.rd-totals-coupon {
    color: var(--rd-gold);
}

.rd-totals-grand {
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-heading);
    border-top: 2px solid var(--rd-gray-light);
    margin-top: var(--rd-space-sm);
    padding-top: var(--rd-space-sm);
}

.rd-totals-grand .PricesalesPrice,
.rd-totals-grand .PricebillTotal {
    font-size: inherit;
    font-weight: inherit;
}

.rd-totals-payment-currency {
    font-size: 13px;
    color: var(--rd-muted);
}

.rd-totals-vat {
    font-size: 12px;
    color: var(--rd-muted);
}

/* --- Cart fields (TOS etc.) --- */
.rd-checkout-cartfields {
    margin-bottom: var(--rd-space-md);
}

.rd-checkout-cartfields .rd-form-check {
    padding: 6px var(--rd-space-sm);
    background: rgba(255, 65, 65, 0.06);
    border-radius: var(--rd-radius-sm);
    border: 1px solid transparent;
    font-size: 12px;
    line-height: 1.4;
}

.rd-checkout-cartfields .rd-form-check:has(input.is-invalid) {
    border-color: var(--rd-danger);
}

.rd-field-tos .rd-form-check,
.rd-field-agreed .rd-form-check,
.rd-field-privacy .rd-form-check {
    font-weight: 500;
}

.rd-field-tos .rd-form-check a,
.rd-field-agreed .rd-form-check a,
.rd-field-privacy .rd-form-check a {
    color: var(--rd-accent);
    text-decoration: underline;
}

/* --- Checkout submit button --- */
.rd-checkout-submit {
    margin-bottom: var(--rd-space-sm);
}

.rd-checkout-submit .vm-button-correct,
.rd-checkout-submit button[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px var(--rd-space-lg);
    background: linear-gradient(180deg, #C8102E 0%, #A00D25 100%);
    color: var(--rd-white);
    border: none;
    border-radius: var(--rd-radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.rd-checkout-submit .vm-button-correct:hover,
.rd-checkout-submit button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

.rd-checkout-submit .vm-button-correct:active,
.rd-checkout-submit button[type="submit"]:active {
    transform: translateY(0);
}

.rd-checkout-submit .vm-button-correct:disabled,
.rd-checkout-submit button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Continue shopping --- */
.rd-checkout-continue {
    text-align: center;
}

.rd-checkout-continue a {
    font-size: 13px;
    color: var(--rd-muted);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

.rd-checkout-continue a:hover {
    color: var(--rd-accent);
}

/* --- Order done --- */
.rd-orderdone {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--rd-space-lg);
}

.rd-orderdone-details {
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-lg);
    margin-bottom: var(--rd-space-lg);
}

.rd-orderdone-details .post_payment_order_number,
.rd-orderdone-details .post_payment_order_total,
.rd-orderdone-details .post_payment_payment_name {
    margin-bottom: var(--rd-space-xs);
}

.rd-orderdone-details .post_payment_order_number_title,
.rd-orderdone-details .post_payment_order_total_title,
.rd-orderdone-details .post_payment_payment_name_title {
    font-weight: 600;
}

.rd-orderdone-details .vm-button-correct {
    display: inline-block;
    margin-top: var(--rd-space-md);
    padding: 10px 24px;
    background: linear-gradient(135deg, #C8102E 0%, #A00D25 100%);
    color: var(--rd-white);
    border: none;
    border-radius: var(--rd-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--rd-transition-fast);
}

.rd-orderdone-details .vm-button-correct:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.rd-orderdone-actions {
    text-align: center;
}

/* „Zaplatit objednávku“ (Comgate: odkaz a.odkaz v <div class="clanek">, mimo .rd-orderdone-details) */
.rd-orderdone-details a.odkaz,
.clanek a.odkaz {
    display: inline-block;
    margin: var(--rd-space-sm) 0 var(--rd-space-lg);
    padding: 16px 44px;
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: var(--rd-white);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    text-decoration: none;
    border-radius: var(--rd-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--rd-transition-fast);
}

.rd-orderdone-details a.odkaz:hover,
.clanek a.odkaz:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.5);
    color: var(--rd-white);
}

/* --- Empty cart --- */
.rd-checkout-empty {
    text-align: center;
    padding: var(--rd-space-xl) var(--rd-space-lg);
}

.rd-checkout-empty h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--rd-heading);
    margin-bottom: var(--rd-space-lg);
}

.rd-btn-continue {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(180deg, #C8102E 0%, #A00D25 100%);
    color: var(--rd-white);
    border-radius: var(--rd-radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rd-btn-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 65, 65, 0.35);
    color: var(--rd-white);
}

/* --- Advertise section --- */
.rd-checkout-advertise {
    background: var(--rd-bg);
}

/* --- VM legacy elements in cart view (hide/neutralize) --- */
.cart-view .vm-cart-header-container {
    display: none;
}

/* Login form in checkout */
.cart-view .vm-checkout-login {
    margin-bottom: var(--rd-space-md);
}

.cart-view .vm-checkout-login .form-check-label {
    font-size: 14px;
}

/* Shopper form */
.cart-view .vm-shopperform {
    margin-bottom: var(--rd-space-md);
    background: var(--rd-bg);
    padding: var(--rd-space-md);
    border-radius: var(--rd-radius-sm);
}

/* Category overview page — title + description */
.category-view > .browse-view > h1,
.category-view > h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-heading);
    text-align: center;
    position: relative;
    padding-bottom: var(--rd-space-sm);
    margin-bottom: var(--rd-space-lg);
}

.category-view > .browse-view > h1::after,
.category-view > h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--rd-gold);
    margin: var(--rd-space-sm) auto 0;
    border-radius: 2px;
}

.category-view > .category_description {
    font-size: 14px;
    line-height: 1.65;
    color: var(--rd-text);
    margin: 0 0 var(--rd-space-lg);
    text-align: left;
}

.category-view > .category_description:empty {
    display: none;
}

/* Subcategory buttons (categories.php sublayout — no images) */
.category-view .category-view {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: var(--rd-space-lg);
}

.category-view .category-view > .row {
    display: contents;
}

.category-view .category-view .category {
    float: none !important;
    width: auto !important;
    border-radius: var(--rd-radius-sm);
    overflow: hidden;
    transition: all var(--rd-transition-fast);
    background: var(--rd-surface);
    border: 1px solid var(--rd-gray-light);
    box-shadow: none;
}

.category-view .category-view .category:hover {
    background: var(--rd-primary);
    border-color: var(--rd-accent);
}

.category-view .category-view .category .spacer {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.category-view .category-view .category .spacer:hover {
    transform: none;
    box-shadow: none;
}

.category-view .category-view .category h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-top: none;
}

.category-view .category-view .category h2 a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--rd-heading);
    padding: 0 10px;
    min-height: 36px;
    transition: color var(--rd-transition-fast);
}

.category-view .category-view .category:hover h2 a {
    color: var(--rd-white);
}

.category-view .category-view .category h2 a br,
.category-view .category-view .category .browseCategoryImage {
    display: none;
}

.category-view .category-view .category h2 a::after {
    content: none;
}

/* Hide VM legacy separators */
.category-view .horizontal-separator {
    display: none;
}

.category-view .vertical-separator {
    border: none !important;
}

.category-view .category-view > .row > .clear {
    display: none;
}

/* Search box in category view */
.category-view .virtuemart_search {
    border-radius: var(--rd-radius-md);
    border: 1px solid var(--rd-gray-light);
    background: var(--rd-bg);
    padding: var(--rd-space-md);
    margin-bottom: var(--rd-space-lg);
}

.category-view .virtuemart_search .vm-search-custom-search-input {
    display: flex;
    gap: var(--rd-space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.category-view .virtuemart_search .inputbox {
    flex: 1;
    min-width: 200px;
}

.category-view .virtuemart_search .vm-search-descr {
    font-size: 12px;
    color: var(--rd-muted);
    flex-basis: 100%;
    margin-top: var(--rd-space-xs);
}

/* Orderby bar */
.category-view .orderby-displaynumber {
    background: var(--rd-bg);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-md);
    margin-bottom: var(--rd-space-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rd-space-md);
}

.category-view .orderby-displaynumber .floatleft,
.category-view .orderby-displaynumber .floatright {
    float: none !important;
}

.category-view .orderby-displaynumber .vm-order-list {
    flex-shrink: 0;
}

.category-view .orderby-displaynumber .vm-pagination {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-view .orderby-displaynumber .vm-pagination ul {
    justify-content: center;
}

.category-view .orderby-displaynumber .display-number {
    font-size: 13px;
    color: var(--rd-muted);
    text-align: right;
    flex-shrink: 0;
}

.category-view .orderby-displaynumber .display-number select {
    margin-top: var(--rd-space-xs);
    padding: 4px 8px;
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    font-size: 13px;
    background: var(--rd-card);
    cursor: pointer;
}

.category-view .orderby-displaynumber > .clear {
    display: none;
}

/* Kompaktní stránkování v liště: bez Začátek/Konec, šipky místo Předchozí/Následující, vše na jednom řádku */
.orderby-displaynumber .vm-pagination ul { flex-wrap: nowrap; }
.orderby-displaynumber .vm-pagination li.pagination-start,
.orderby-displaynumber .vm-pagination li.pagination-end { display: none; }
.orderby-displaynumber .vm-pagination ul li .pagenav { min-width: 32px; height: 32px; padding: 0 8px; }
.orderby-displaynumber .vm-pagination li.pagination-prev .pagenav,
.orderby-displaynumber .vm-pagination li.pagination-next .pagenav { font-size: 0; }
.orderby-displaynumber .vm-pagination li.pagination-prev .pagenav::before { content: '‹'; font-size: 18px; line-height: 1; }
.orderby-displaynumber .vm-pagination li.pagination-next .pagenav::before { content: '›'; font-size: 18px; line-height: 1; }
.orderby-displaynumber .vm-pagination .vm-page-counter { white-space: nowrap; }
.category-view .orderby-displaynumber .display-number { display: flex; align-items: center; gap: var(--rd-space-sm); white-space: nowrap; }
.category-view .orderby-displaynumber .display-number br { display: none; }
.category-view .orderby-displaynumber .display-number select { margin-top: 0; }

/* Orderby dropdown */
.category-view .orderlistcontainer {
    display: inline-flex;
    align-items: center;
    gap: var(--rd-space-xs);
    font-size: 13px;
    position: relative;
}

.category-view .orderlistcontainer .title {
    color: var(--rd-muted);
    font-weight: 500;
}

.category-view .orderlistcontainer .activeOrder {
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    padding: 4px 12px;
    transition: all var(--rd-transition-fast);
}

.category-view .orderlistcontainer .activeOrder:hover {
    border-color: var(--rd-primary-light);
}

.category-view .orderlistcontainer .activeOrder a {
    font-weight: 600;
    color: var(--rd-heading);
    text-decoration: none;
}

.category-view .orderlistcontainer .orderlist {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    box-shadow: var(--rd-shadow-md);
    padding: var(--rd-space-xs) 0;
    z-index: 50;
    min-width: 160px;
    margin-top: 2px;
}

.category-view .orderlistcontainer .orderlist div {
    border-bottom: 1px solid var(--rd-surface);
}

.category-view .orderlistcontainer .orderlist div:last-child {
    border-bottom: none;
}

.category-view .orderlistcontainer .orderlist a {
    display: block;
    padding: 6px var(--rd-space-md);
    font-size: 13px;
    color: var(--rd-text);
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--rd-transition-fast);
}

.category-view .orderlistcontainer .orderlist a:hover {
    background: var(--rd-bg);
    color: var(--rd-heading);
    padding-left: 20px;
}

/* Product grid — override VM float layout with CSS grid */
.category-view .browse-view > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rd-space-md);
    margin-bottom: var(--rd-space-md);   /* VM vypisuje každý řádek karet jako samostatný .row — bez mezery se dotýkaly */
}

.category-view .browse-view > .row > .product {
    float: none !important;
    width: auto !important;
}

.category-view .browse-view > .row > .clear {
    display: none;
}

/* Manufacturer description */
.category-view .manufacturer-description {
    font-size: 14px;
    color: var(--rd-muted);
    max-width: 700px;
    margin: 0 auto var(--rd-space-lg);
    text-align: center;
}

/* User / Login */
.login-view,
.edit-view {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   14b. Bonus items in cart (Velkoobchod 10+2)
   ========================================================================== */

.rd-cart-product-bonus {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
    border-left: 3px solid #10B981;
    border-radius: var(--rd-radius-sm);
}

.rd-bonus-qty {
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-text);
}

.rd-bonus-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #10B981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--rd-radius-pill);
}

/* ==========================================================================
   15. Mini Cart — compact icon style for navbar actions
   ========================================================================== */

/* Cart link icon + count in navbar */
.rd-nav-cart-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    transition: color var(--rd-transition-fast);
}

.rd-nav-cart-link:hover {
    color: var(--rd-sky);
}

.rd-cart-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--rd-sky);
    color: var(--rd-heading);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: -8px;
    right: -10px;
}

.rd-cart-count:empty,
.rd-cart-count[data-empty] {
    display: none;
}

/* Navbar vmCartModule — show only total_products (count text, AJAX-updated) */
.rd-nav-actions .vmCartModule {
    display: contents;
}

.rd-nav-actions .vmCartModule .total_products {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--rd-transition-fast);
}

.rd-nav-actions .vmCartModule .total_products:hover {
    color: var(--rd-sky);
}

/* Hide everything else from vmCartModule in navbar */
.rd-nav-actions .vmCartModule .vm_cart_products,
.rd-nav-actions .vmCartModule .total,
.rd-nav-actions .vmCartModule .show_cart,
.rd-nav-actions .vmCartModule .payments-signin-button,
.rd-nav-actions .vmCartModule noscript,
.rd-nav-actions .vmCartModule .hiddencontainer,
.rd-nav-actions .vmCartModule div[style*="clear"] {
    display: none !important;
}

/* General vmCartModule (outside topbar) */
.vmCartModule a {
    color: var(--rd-text);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

.vmCartModule a:hover {
    color: var(--rd-sky);
}

/* ==========================================================================
   15a. Add-to-Cart Popup (FancyBox)
   ========================================================================== */

/* Overlay */
#fancybox-overlay {
    background: rgba(0, 0, 0, 0.55) !important;
}

/* Wrapper — reset old padding */
#fancybox-wrap {
    padding: 0 !important;
}

/* Outer container */
#fancybox-outer {
    background: var(--rd-card);
    border-radius: var(--rd-radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
}

/* Content area — flex column, reorder h4 above buttons */
#fancybox-content {
    border: none !important;
    padding: 32px 36px 28px !important;
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    width: auto !important;
    height: auto !important;
    min-width: 340px;
    max-width: 480px;
    overflow: visible !important;
}

/* Success message — visually first */
#fancybox-content h4 {
    order: -1;
    margin: 0;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--rd-gray-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rd-muted);
}

/* Checkmark before message */
#fancybox-content h4::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2E7D32;
    color: var(--rd-white);
    font-size: 13px;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Button row */
#fancybox-content .vm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--rd-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--rd-transition-fast);
    float: none !important;
    white-space: nowrap;
}

/* Continue shopping — orange (matches addtocart button) */
#fancybox-content .vm-btn.continue_link {
    order: 1;
    margin-top: 8px;
    background: linear-gradient(135deg, #C8102E, #E8384F);
    color: var(--rd-white);
    border: none;
}

#fancybox-content .vm-btn.continue_link:hover {
    box-shadow: 0 4px 12px rgba(255, 65, 65, 0.4);
    transform: translateY(-1px);
}

/* Show cart — secondary outline */
#fancybox-content .vm-btn.showcart {
    order: 2;
    background: transparent;
    color: var(--rd-heading);
    border: 1.5px solid var(--rd-gray-light);
}

#fancybox-content .vm-btn.showcart:hover {
    background: var(--rd-surface);
    border-color: var(--rd-accent);
}

/* Related products section */
#fancybox-content .product-related-products {
    order: 3;
    border-top: 1px solid var(--rd-gray-light);
    padding-top: 16px;
    margin-top: -4px;
}

#fancybox-content .product-related-products h4 {
    border-bottom: none;
    padding-bottom: 8px;
    font-size: 13px;
    color: var(--rd-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#fancybox-content .product-related-products h4::before {
    display: none;
}

/* Error messages */
#fancybox-content > div:not(.product-related-products) {
    order: 0;
    color: var(--rd-accent);
    font-size: 13px;
}

/* Clear break at bottom — hide */
#fancybox-content > br {
    display: none;
}

/* Close button — force visible (fancybox default is display:none + showCloseButton:false) */
#fancybox-close {
    display: block !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: none !important;
    border: none;
    cursor: pointer;
    z-index: 1110;
    opacity: 0.4;
    transition: opacity var(--rd-transition-fast);
}

#fancybox-close:hover {
    opacity: 1;
}

#fancybox-close::before,
#fancybox-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--rd-primary);
    border-radius: 1px;
}

#fancybox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#fancybox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Floatright override — prevent broken layout */
#fancybox-content .floatright {
    float: none !important;
}

/* ==========================================================================
   16. Footer — dark green bg, grid, terracotta heading underline, copyright
   ========================================================================== */

.rd-footer {
    margin-top: var(--rd-space-xl);
}

.rd-home-highlights + .rd-footer {
    margin-top: 0;
}

.rd-footer-main {
    background: var(--rd-primary-dark);
    color: var(--rd-gray-light);
    padding: var(--rd-space-xl) 0;
}

.rd-footer-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));   /* millers: logo + 5 modulů jako na produkci */
    gap: var(--rd-space-lg);
    align-items: start;
}

/* Footer brand column */
.rd-footer-brand {
    display: flex;
    flex-direction: column;
}

.rd-footer-logo {
    display: inline-block;
    text-decoration: none;
}

.rd-footer-logo .rd-logo-img {
    height: 96px;
    width: auto;
}

.rd-footer-slogan {
    display: block;
    margin-top: var(--rd-space-sm);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

/* Footer content columns */
.rd-footer-col {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.rd-footer-col address {
    font-style: normal;
}

.rd-footer-col p {
    margin: 0;
}

/* Footer headings */
.rd-footer h3,
.rd-footer-modules h3 {
    color: var(--rd-white);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: var(--rd-space-md);
    padding-bottom: var(--rd-space-sm);
    position: relative;
}

.rd-footer h3::after,
.rd-footer-modules h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--rd-gold);
    border-radius: 2px;
}

/* Footer links */
.rd-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--rd-transition-fast);
}

.rd-footer a:hover {
    color: var(--rd-sky);
}

.rd-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-footer ul li {
    padding: 0;
}

/* Footer bottom / copyright */
.rd-footer-bottom {
    background: var(--rd-primary-deep);
    color: rgba(255, 255, 255, 0.5);
    padding: var(--rd-space-md) 0;
    font-size: 13px;
    text-align: center;
}

.rd-footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.rd-footer-bottom a:hover {
    color: var(--rd-sky);
}

/* Also hide original Cassiopeia footer if present */
footer.container-footer {
    display: none !important;
}

/* ==========================================================================
   17. Breadcrumbs — subtle, small font
   ========================================================================== */

.mod-breadcrumbs,
nav[aria-label="Breadcrumbs"] {
    font-size: 13px;
    color: var(--rd-muted);
    padding: var(--rd-space-sm) 0;
    margin-bottom: var(--rd-space-md);
}

.mod-breadcrumbs a {
    color: var(--rd-heading);
}

.mod-breadcrumbs a:hover {
    color: var(--rd-heading);
}

.mod-breadcrumbs .divider,
.mod-breadcrumbs .separator {
    margin: 0 var(--rd-space-xs);
    opacity: 0.5;
}

/* ==========================================================================
   18. Forms — green focus ring, rounded
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
    border: 2px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all var(--rd-transition);
    background: var(--rd-card);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--rd-primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

/* BS5 form-control override */
.form-control:focus,
.form-select:focus {
    border-color: var(--rd-primary-light);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

/* VM Search Box */
.vm-search-container {
    margin-bottom: var(--rd-space-lg);
}

.vm-search-container input[type="text"],
.vm-search-container input[type="search"] {
    width: 100%;
    max-width: 300px;
}

/* ==========================================================================
   19. Alerts, Pagination, Back-to-top
   ========================================================================== */

/* Alerts */
.alert {
    border-radius: var(--rd-radius-md);
    border-left-width: 4px;
}

.alert-success {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--rd-accent);
    color: var(--rd-heading);
}

.alert-info {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--rd-primary-light);
    color: var(--rd-heading);
}

.alert-warning {
    background: rgba(230, 168, 23, 0.08);
    border-color: #e6a817;
    color: #8a6610;
}

.alert-danger {
    background: rgba(204, 51, 51, 0.08);
    border-color: #cc3333;
    color: #8b2020;
}

/* Pagination — VM uses ul > li > a.pagenav / span.pagenav */
.vm-pagination,
.pagination {
    margin: var(--rd-space-md) 0;
}

.vm-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vm-pagination ul li {
    display: inline-flex;
}

.vm-pagination ul li .pagenav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--rd-radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--rd-transition-fast);
    border: 1px solid var(--rd-gray-light);
    background: var(--rd-card);
    color: var(--rd-heading);
}

/* Active page — span without link */
.vm-pagination ul li > span.pagenav {
    background: var(--rd-primary-dark);
    color: var(--rd-white);
    border-color: var(--rd-accent);
    font-weight: 700;
}

/* Hover on linked pages */
.vm-pagination ul li a.pagenav:hover {
    background: var(--rd-primary);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}

/* Disabled prev/next (span, not link) */
.vm-pagination ul li.pagination-start > span.pagenav,
.vm-pagination ul li.pagination-prev > span.pagenav,
.vm-pagination ul li.pagination-next > span.pagenav,
.vm-pagination ul li.pagination-end > span.pagenav {
    background: var(--rd-surface);
    color: var(--rd-muted);
    border-color: var(--rd-gray-light);
    cursor: default;
}

/* Page counter text */
.vm-pagination .vm-page-counter {
    display: inline-block;
    font-size: 13px;
    color: var(--rd-muted);
    margin-left: var(--rd-space-sm);
}

/* Bottom pagination spacing */
.vm-pagination-bottom {
    margin-top: var(--rd-space-xl);
    padding-top: var(--rd-space-md);
    border-top: 1px solid var(--rd-gray-light);
}

/* BS5 pagination fallback */
.page-link {
    color: var(--rd-heading);
    border-color: var(--rd-gray-light);
}

.page-link:hover {
    color: var(--rd-white);
    background-color: var(--rd-primary);
    border-color: var(--rd-accent);
}

.page-item.active .page-link {
    background: var(--rd-primary-dark);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}

/* Ratings */
.vm-ratingbox-container {
    display: inline-flex;
    gap: 2px;
}

.vm-ratingbox-container svg,
.vm-ratingbox-container img {
    fill: #FF4141;
    color: #FF4141;
    width: 16px;
    height: 16px;
}

/* Stock Status */
.normalstock { color: var(--rd-heading); font-weight: 600; }
.lowstock    { color: #e6a817; font-weight: 600; }
.nostock     { color: #cc3333; font-weight: 600; }

/* Back to top */
.back-to-top-link {
    position: fixed;
    bottom: var(--rd-space-lg);
    right: var(--rd-space-lg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rd-primary);
    color: var(--rd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rd-shadow-md);
    transition: all var(--rd-transition);
    z-index: 90;
    text-decoration: none;
}

.back-to-top-link:hover {
    background: var(--rd-accent);
    color: var(--rd-white);
    transform: translateY(-2px);
    box-shadow: var(--rd-shadow-lg);
}

/* ==========================================================================
   20. Intro + Section headings
   ========================================================================== */

.rd-intro {
    text-align: center;
    margin-bottom: var(--rd-space-lg);
}

.rd-intro h1 {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-heading);
    margin: 0 0 var(--rd-space-sm);
}

.rd-intro p {
    font-size: 15px;
    color: var(--rd-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.rd-section-heading {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--rd-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--rd-space-lg);
    position: relative;
}

.rd-section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--rd-gold);
    margin: var(--rd-space-sm) auto 0;
    border-radius: 2px;
}

.rd-section-subtext {
    text-align: center;
    font-size: 15px;
    color: var(--rd-muted);
    margin: calc(-1 * var(--rd-space-sm)) 0 var(--rd-space-lg);
}

/* ==========================================================================
   20a. Category Tiles — Home page card grid (image + label below)
   ========================================================================== */

.rd-category-tiles {
    padding: var(--rd-space-xl) 0 var(--rd-space-lg);
}

.rd-tiles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);   /* millers: 6 hlavních skupin */
    gap: var(--rd-space-md);
}

.rd-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--rd-radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    box-shadow: var(--rd-shadow-sm);
    transition: all var(--rd-transition);
}

.rd-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--rd-shadow-xl);
    border-color: var(--rd-primary-light);
}

.rd-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--rd-surface);
    padding: var(--rd-space-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rd-tile:hover img {
    transform: scale(1.06);
}

.rd-tile-name {
    padding: var(--rd-space-sm) var(--rd-space-md);
    color: var(--rd-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    border-top: 3px solid var(--rd-gold);
    background: var(--rd-card);
    transition: all var(--rd-transition);
}

.rd-tile:hover .rd-tile-name {
    color: var(--rd-heading);
    background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   20b. Carousel "Novinky" — horizontal scroll-snap
   ========================================================================== */

.rd-carousel {
    background: var(--rd-surface);
    padding: var(--rd-space-lg) 0 var(--rd-space-xl);
}

.rd-carousel-heading {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--rd-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--rd-space-lg);
    position: relative;
}

.rd-carousel-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--rd-gold);
    margin: var(--rd-space-sm) auto 0;
    border-radius: 2px;
}

.rd-carousel-track {
    display: flex;
    gap: var(--rd-space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--rd-space-sm);
}

/* Thin scrollbar */
.rd-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.rd-carousel-track::-webkit-scrollbar-track {
    background: var(--rd-gray-light);
    border-radius: 3px;
}

.rd-carousel-track::-webkit-scrollbar-thumb {
    background: var(--rd-primary-light);
    border-radius: 3px;
}

.rd-carousel-track::-webkit-scrollbar-thumb:hover {
    background: var(--rd-primary);
}

/* Firefox scrollbar */
.rd-carousel-track {
    scrollbar-width: thin;
    scrollbar-color: var(--rd-primary-light) var(--rd-gray-light);
}

.rd-carousel-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--rd-card);
    border-radius: var(--rd-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--rd-text);
    box-shadow: var(--rd-shadow-sm);
    transition: all var(--rd-transition);
    display: flex;
    flex-direction: column;
}

.rd-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow-md);
    color: var(--rd-text);
}

.rd-carousel-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--rd-surface);
}

.rd-carousel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rd-carousel-card:hover .rd-carousel-card-img img {
    transform: scale(1.06);
}

.rd-carousel-card-body {
    padding: var(--rd-space-sm) var(--rd-space-md) var(--rd-space-md);
    display: flex;
    flex-direction: column;
    gap: var(--rd-space-xs);
    flex: 1;
}

.rd-carousel-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rd-carousel-card-moc {
    font-size: 11px;
    color: var(--rd-muted);
    margin-top: auto;
    cursor: help;
}

.rd-carousel-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--rd-heading);
}

/* ==========================================================================
   20c. Home Highlights — benefits (2 col) + services (3 col)
   ========================================================================== */

.rd-home-highlights {
    padding: var(--rd-space-xl) 0;
}

.rd-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rd-space-md);
}

.rd-home-highlights .card {
    background: var(--rd-card);
    border: none;
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow-sm);
    transition: all var(--rd-transition);
    text-align: center;
}

.rd-home-highlights .card:hover {
    box-shadow: var(--rd-shadow-md);
    transform: translateY(-2px);
}

.rd-home-highlights .card-header {
    background: none;
    border-bottom: none;
    color: var(--rd-heading);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: var(--rd-space-lg) var(--rd-space-lg) 0;
    position: relative;
}

.rd-home-highlights .card-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--rd-gold);
    margin: var(--rd-space-sm) auto 0;
    border-radius: 2px;
}

/* Services section */
.rd-home-services {
    background: var(--rd-surface);
    padding: var(--rd-space-xl) 0;
}

.rd-services-grid .mod-articlesnews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rd-space-md);
}

.rd-services-grid .mod-articlesnews__item {
    background: var(--rd-card);
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow-sm);
    padding: var(--rd-space-lg);
    transition: all var(--rd-transition);
}

.rd-services-grid .mod-articlesnews__item:hover {
    box-shadow: var(--rd-shadow-md);
    transform: translateY(-2px);
}

.rd-home-highlights .card-body {
    padding: var(--rd-space-md) var(--rd-space-lg) var(--rd-space-lg);
    font-size: 14px;
    line-height: 1.6;
    color: var(--rd-text);
}


/* ==========================================================================
   21. Responsive — Tablet (<=991px)
   ========================================================================== */

@media (max-width: 991px) {

    /* Show hamburger */
    .rd-hamburger {
        display: flex;
    }

    /* Nav menu becomes off-canvas panel */
    .rd-nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: var(--rd-card);
        box-shadow: var(--rd-shadow-xl);
        z-index: 300;
        flex-direction: column;
        overflow-y: auto;
        padding: var(--rd-space-xl) 0 var(--rd-space-lg);
        transition: left var(--rd-transition);
    }

    .rd-nav-menu .mod-menu,
    .rd-nav-menu > div > ul {
        flex-direction: column;
    }

    .rd-nav-menu .mod-menu > li > a,
    .rd-nav-menu .mod-menu > li > .nav-header {
        color: var(--rd-text);
        text-transform: none;
        font-size: 15px;
        padding: 12px var(--rd-space-lg);
        border-bottom: 1px solid var(--rd-gray-light);
    }

    .rd-nav-menu .mod-menu > li > a::after,
    .rd-nav-menu .mod-menu > li > .nav-header::after {
        display: none;
    }

    .rd-nav-menu .mod-menu > li > a:hover,
    .rd-nav-menu .mod-menu > li.active > a,
    .rd-nav-menu .mod-menu > li > .nav-header:hover,
    .rd-nav-menu .mod-menu > li.active > .nav-header {
        color: var(--rd-heading);
        background: rgba(0, 0, 0, 0.06);
    }

    /* Dropdowns in off-canvas: static, no position tricks */
    .rd-nav-menu .mod-menu__sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        border-left: 3px solid var(--rd-sky);
        padding: 0;
        margin-left: var(--rd-space-md);
    }

    .rd-nav-menu .mod-menu__sub a {
        padding: 8px var(--rd-space-lg);
        font-size: 14px;
    }

    /* Home highlights: stack on tablet */
    .rd-highlights-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .rd-services-grid .mod-articlesnews {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Category tiles: 3 columns on tablet */
    .rd-tiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Carousel: narrower cards on tablet */
    .rd-carousel-card {
        flex: 0 0 190px;
    }

    /* Mega menu: reduce columns on tablet */
    .item-321 > .mod-menu__sub,
    .item-455 > .mod-menu__sub,
    .item-488 > .mod-menu__sub,
    .item-518 > .mod-menu__sub {
        columns: 2;
        padding: var(--rd-space-sm);
    }

    .item-142 > .mod-menu__sub,
    .item-462 > .mod-menu__sub,
    .item-493 > .mod-menu__sub,
    .item-523 > .mod-menu__sub {
        columns: 1;
        padding: var(--rd-space-sm);
    }

    /* When checkbox is checked: slide panel in */
    .rd-nav-checkbox:checked ~ .rd-nav-menu {
        left: 0;
    }

    /* Hamburger X animation */
    .rd-nav-checkbox:checked ~ .rd-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .rd-nav-checkbox:checked ~ .rd-hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    .rd-nav-checkbox:checked ~ .rd-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Show overlay */
    .rd-nav-checkbox:checked ~ .rd-nav-overlay {
        display: block;
        opacity: 1;
    }

    /* Overlay always present but hidden */
    .rd-nav-overlay {
        display: none;
    }

    /* Nav actions in navbar — keep visible */
    .rd-nav-actions {
        position: relative;
        z-index: 310;
    }

    /* Footer: 2 columns on tablet */
    .rd-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--rd-space-lg);
    }

    /* Product detail: narrower gap on tablet */
    .productdetails-view .vm-product-container {
        gap: var(--rd-space-lg);
    }

    /* Category subcategory buttons: 3 columns on tablet */
    .category-view .category-view {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    /* Product grid: 2 columns on tablet */
    .category-view .browse-view > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Checkout: single column, form first (billing address on top),
       summary with products + confirm button at the bottom */
    .rd-checkout {
        grid-template-columns: 1fr;
        gap: var(--rd-space-lg);
    }

    .rd-checkout-form {
        order: 1;
    }

    .rd-checkout-summary {
        order: 2;
        position: static;
    }
}

/* ==========================================================================
   22. Responsive — Mobile (<=767px)
   ========================================================================== */

@media (max-width: 767px) {

    /* Hide sidebar on mobile */
    .container-sidebar-left {
        display: none;
    }

    /* Smaller headings */
    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    h3 { font-size: 16px; }

    /* Header main: stack vertically */
    .rd-header-main-inner {
        flex-wrap: wrap;
        gap: var(--rd-space-sm);
        padding: var(--rd-space-sm) 0;
    }

    .rd-logo-img {
        max-height: 56px;
    }

    .rd-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .rd-search-input {
        font-size: 14px !important;
    }

    /* Language switcher: stay beside logo */
    .rd-header-lang {
        order: 2;
    }

    /* Nav actions: smaller on mobile */
    .rd-nav-actions {
        gap: var(--rd-space-sm);
    }

    .rd-nav-actions a {
        font-size: 13px;
    }

    /* User dropdown: hide text label, keep icon only */
    .rd-user-trigger span {
        display: none;
    }

    .rd-user-menu {
        min-width: 160px;
    }

    /* Category tiles: 2 columns on mobile */
    .rd-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--rd-space-sm);
    }

    .rd-tile-name {
        font-size: 12px;
        padding: var(--rd-space-xs) var(--rd-space-sm);
    }

    .rd-category-tiles {
        padding: var(--rd-space-lg) 0 var(--rd-space-md);
    }

    /* Carousel: smaller cards on mobile */
    .rd-carousel-card {
        flex: 0 0 160px;
    }

    .rd-carousel-card-title {
        font-size: 13px;
    }

    .rd-carousel-card-moc {
        font-size: 10px;
    }

    .rd-carousel-card-price {
        font-size: 14px;
    }

    .rd-carousel {
        padding: var(--rd-space-md) 0 var(--rd-space-lg);
    }

    /* Mega menu: single column on mobile */
    .item-321 > .mod-menu__sub,
    .item-455 > .mod-menu__sub,
    .item-488 > .mod-menu__sub,
    .item-518 > .mod-menu__sub,
    .item-142 > .mod-menu__sub,
    .item-462 > .mod-menu__sub,
    .item-493 > .mod-menu__sub,
    .item-523 > .mod-menu__sub,
    .item-449 > .mod-menu__sub,
    .item-458 > .mod-menu__sub,
    .item-489 > .mod-menu__sub,
    .item-519 > .mod-menu__sub {
        columns: 1;
        padding: var(--rd-space-xs);
    }

    /* Content area spacing */
    .container-component {
        padding: var(--rd-space-md);
        border-radius: var(--rd-radius-md);
    }

    /* VM detail price */
    .productdetails-view .PricesalesPrice {
        font-size: 24px;
    }

    .productdetails-view .vm-page-title {
        font-size: 20px;
    }

    /* Product detail: stack on mobile */
    .productdetails-view .vm-product-container {
        grid-template-columns: 1fr;
        gap: var(--rd-space-lg);
    }

    .productdetails-view .vm-product-media-container {
        position: static;
    }

    .productdetails-view > h1 {
        font-size: 22px;
    }

    .productdetails-view .PricesalesPrice {
        font-size: 26px;
    }

    /* Category subcategory buttons: 2 columns on mobile */
    .category-view .category-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .category-view .category-view .category h2 {
        font-size: 12px;
    }

    .category-view .category-view .category h2 a {
        padding: 0 8px;
        min-height: 32px;
    }

    /* Product grid: single column on mobile */
    .category-view .browse-view > .row {
        grid-template-columns: 1fr;
    }

    /* Category title smaller */
    .category-view > .browse-view > h1,
    .category-view > h1 {
        font-size: 22px;
    }

    /* Footer: single column on mobile */
    .rd-footer-grid {
        grid-template-columns: 1fr;
    }

    .rd-footer-main {
        padding: var(--rd-space-lg) 0;
    }

    /* Checkout: compact on mobile */
    .rd-checkout-section {
        padding: var(--rd-space-md);
    }

    .rd-checkout-summary {
        padding: var(--rd-space-md);
    }

    .rd-checkout-header h1 {
        font-size: 22px;
    }

    .rd-cart-product {
        grid-template-columns: 48px 1fr;
    }

    .rd-cart-product-img {
        width: 48px;
        height: 48px;
    }

    .rd-cart-product-name {
        font-size: 12px;
    }

    .rd-totals-grand {
        font-size: 16px;
    }

    .rd-checkout-submit .vm-button-correct,
    .rd-checkout-submit button[type="submit"] {
        padding: 12px var(--rd-space-md);
        font-size: 13px;
    }

    .rd-address-row {
        flex-direction: column;
        gap: 2px;
    }

    .rd-address-label {
        min-width: auto;
        font-size: 12px;
    }
}

/* ==========================================================================
   23. Joomla .item-image hide (preserve from v1)
   ========================================================================== */

.com-content-article .item-image {
    display: none;
}

/* ==========================================================================
   24. RD — prvky specifické pro millers-oils.cz (2026-09-30)
   ========================================================================== */

/* Navigace: hlavní menu millers v jednom řádku (7 položek; Home skrytý — na úvod vede logo) */
@media (min-width: 992px) {
    .rd-nav-menu { flex: 1 1 auto; min-width: 0; }
    .rd-nav-menu .mod-menu { flex-wrap: nowrap; }
    .rd-nav-menu .mod-menu > li > a,
    .rd-nav-menu .mod-menu > li > .nav-header { padding: 14px 12px; font-size: 13px; letter-spacing: .3px; }
}
@media (min-width: 992px) and (max-width: 1239px) {
    .rd-nav-menu .mod-menu > li > a,
    .rd-nav-menu .mod-menu > li > .nav-header { padding: 14px 6px; font-size: 11.5px; letter-spacing: 0; }
}
@media (min-width: 992px) {
    .rd-nav-menu .mod-menu > li.item-108 { display: none; }
}
@media (min-width: 992px) and (max-width: 1149px) {
    /* úzký desktop: delší položky (Chladící kapaliny Evans) na dva řádky, ať menu nepřekryje účet a košík */
    .rd-nav-menu .mod-menu > li > a,
    .rd-nav-menu .mod-menu > li > .nav-header { white-space: normal; line-height: 1.2; text-align: center; max-width: 120px; }
}
@media (min-width: 1240px) and (max-width: 1439px) {
    .rd-nav-menu .mod-menu > li > a,
    .rd-nav-menu .mod-menu > li > .nav-header { padding: 14px 10px; }
}

/* Hero banner (modul „Úvodní banner", jen home) */
.container-banner .rd-hero {
    max-width: 1320px;
    margin: var(--rd-space-lg) auto 0;
    padding: 0 var(--rd-space-md);
}
.rd-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow-lg);
}

/* Osvědčené značky (top-a na home) */
.rd-intro .rd-section-heading { margin-top: 0; }
.rd-brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--rd-space-md);
    margin-bottom: var(--rd-space-xl);
}
.rd-brands img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-md);
    padding: var(--rd-space-sm);
    opacity: .85;
    transition: opacity var(--rd-transition), border-color var(--rd-transition);
}
.rd-brands img:hover { opacity: 1; border-color: var(--rd-accent); }

/* Výhody (top-b) — 4 sloupce s ikonou */
.rd-highlights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-home-highlights .rd-benefit .card-header::before {
    content: '';
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto var(--rd-space-sm);
    background: var(--rd-accent);
    -webkit-mask: var(--rd-icon) center / contain no-repeat;
    mask: var(--rd-icon) center / contain no-repeat;
}
.rd-benefit--doprava  { --rd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); }
.rd-benefit--vraceni  { --rd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3C/svg%3E"); }
.rd-benefit--linka    { --rd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.rd-benefit--poradime { --rd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.rd-home-highlights .card-body a { color: var(--rd-sky); }

/* Z našeho blogu (bottom-a, jen home) — karty: obrázek, titulek, perex na 3 řádky, odkaz */
.container-bottom-a { padding: var(--rd-space-xl) 0 0; }
/* millers: sekce homepage (reference, O Millers Oils, Jak vybrat olej, Průmyslová maziva, Aktuality) pod sebou
   na celou šířku — Cassiopeia dělá z .container-bottom-a flex řadu */
.container-bottom-a { display: block; }
.container-bottom-a > .rd-section + .rd-section { margin-top: var(--rd-space-xl); }
.container-bottom-a .mod-articlesnews {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--rd-space-md);
}
.container-bottom-a .mod-articlesnews__item {
    background: var(--rd-card);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--rd-transition), border-color var(--rd-transition);
}
.container-bottom-a .mod-articlesnews__item:hover { transform: translateY(-3px); border-color: var(--rd-accent); }
.container-bottom-a .newsflash-image { order: -1; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.container-bottom-a .newsflash-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.container-bottom-a .newsflash-title { font-size: 16px; line-height: 1.35; margin: var(--rd-space-md) var(--rd-space-md) var(--rd-space-sm); }
.container-bottom-a .newsflash-title a { color: var(--rd-heading); text-decoration: none; }
.container-bottom-a .newsflash-title a:hover { color: var(--rd-sky); }
.container-bottom-a .mod-articlesnews__item > p:not(.readmore) {
    font-size: 14px;
    color: var(--rd-muted);
    margin: 0 var(--rd-space-md) var(--rd-space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.container-bottom-a .readmore { margin: auto var(--rd-space-md) var(--rd-space-md); }
.container-bottom-a .readmore .btn {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--rd-sky);
    font-weight: 600;
    font-size: 14px;
}
.container-bottom-a .readmore .btn:hover { color: var(--rd-white); transform: none; }

@media (max-width: 991px) {
    .rd-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-highlights-grid,
    .container-bottom-a .mod-articlesnews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .rd-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-highlights-grid,
    .container-bottom-a .mod-articlesnews { grid-template-columns: 1fr; }
}

/* Kategorie se sidebarem na užším desktopu: 2 produkty na řádek */
@media (min-width: 992px) and (max-width: 1199px) {
    .has-sidebar-left .category-view .browse-view > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tmavý motiv — komponenty Bootstrapu/Cassiopeie, které mají bílou natvrdo */
.card {
    --bs-card-bg: var(--rd-card);
    --bs-card-color: var(--rd-text);
    --bs-card-border-color: var(--rd-gray-light);
    --bs-card-cap-bg: var(--rd-surface);
    background-color: var(--rd-card);
    color: var(--rd-text);
    border-color: var(--rd-gray-light);
}
.card-header { background-color: transparent; color: var(--rd-heading); border-color: var(--rd-gray-light); }
.form-control,
.form-select,
.inputbox,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"],
select, textarea {
    background-color: var(--rd-surface);
    color: var(--rd-text);
    border-color: var(--rd-gray-light);
}
.form-control:focus, .form-select:focus, select:focus, textarea:focus, input:focus {
    background-color: var(--rd-surface);
    color: var(--rd-white);
    border-color: var(--rd-accent);
}
::placeholder { color: var(--rd-muted) !important; opacity: 1; }
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--rd-text);
    --bs-table-border-color: var(--rd-gray-light);
    --bs-table-striped-bg: rgba(255, 255, 255, .03);
    --bs-table-hover-bg: rgba(255, 255, 255, .05);
}
.modal-content, .dropdown-menu, .list-group-item, .popover, .toast {
    background-color: var(--rd-card);
    color: var(--rd-text);
    border-color: var(--rd-gray-light);
}
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
hr { border-color: var(--rd-gray-light); opacity: 1; }

/* Otevřené mobilní menu: účet a košík pod overlay — text „košík je prázdný" je široký a jinak
   prosvítá přes panel (jml má jen ikony, tam z-index 310 nevadí). */
.rd-nav-checkbox:checked ~ .rd-nav-actions {
    z-index: 1;
}

/* Systémové hlášky Joomly (joomla-alert) — Cassiopeia jim dává bílé pozadí, na tmavém motivu
   pak světlý text zmizí („Zboží bylo přidáno"). */
#system-message-container joomla-alert[type] {
    background: var(--rd-card);
    color: var(--rd-text);
    border-radius: var(--rd-radius-md);
}
joomla-alert .alert-message,
joomla-alert .alert-heading {
    color: inherit;
}
joomla-alert .joomla-alert--close,
joomla-alert .joomla-alert-button--close {
    color: var(--rd-text);
    opacity: .8;
}
.alert-warning { color: #f5c451; }
.alert-danger  { color: #ff8a8a; }

/* Křížek popupu „Přidáno do košíku" — sprite fancyboxu je tmavý, na tmavém motivu zmizí */
#fancybox-close {
    filter: invert(1) brightness(1.6);
}

/* Popis kategorie na mobilu zkrácený na 5 řádků (JS v index.php přidá .rd-desc-clamp a tlačítko) */
.category-view > .category_description.rd-desc-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    margin-bottom: var(--rd-space-sm);
}
.rd-desc-more {
    display: block;
    margin: 0 0 var(--rd-space-lg);
    padding: 6px 14px;
    background: none;
    border: 1px solid var(--rd-accent);
    border-radius: var(--rd-radius-md);
    color: var(--rd-sky);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* ==========================================================================
   Mobilní menu: hamburger vpravo nahoře v hlavičce, panel zprava (30. 9. 2026)
   ========================================================================== */
.rd-nav-close {
    display: none;
}

@media (max-width: 991px) {
    .rd-hamburger-top {
        order: 2;
        margin-left: auto;
        align-self: flex-start;
    }

    .rd-nav-menu {
        left: auto;
        right: -280px;
        transition: right var(--rd-transition);
    }

    .rd-nav-checkbox:checked ~ .rd-nav-menu {
        left: auto;
        right: 0;
    }

    .rd-nav-close {
        display: block;
        position: absolute;
        top: 6px;
        right: 12px;
        padding: 4px 8px;
        font-size: 32px;
        line-height: 1;
        color: var(--rd-text);
        cursor: pointer;
    }
}

/* ── Stránky převedené ze SP Page Builderu (deploy/stranky) ── */
.com-content-article__body .lead { font-size: 1.15rem; color: var(--rd-muted); margin-top: -.25rem; }
.mo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin: 1.5rem 0 2.5rem; }
.mo-split__img img, .mo-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
.mo-split__text h3 { margin-top: 0; }
.mo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.mo-card h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; }
.mo-card p { font-size: .95rem; margin: 0; }
.com-content-article__body img.mo-prod { max-width: 280px; height: auto; border-radius: 8px; }
.com-content-article__body img.mo-qr { max-width: 200px; height: auto; border-radius: 8px; }
@media (max-width: 991.98px) { .mo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mo-split, .mo-cards { grid-template-columns: 1fr; } }

/* ── Chybová stránka (error.php) ── */
.mo-error { text-align: center; max-width: 640px; margin: 2rem auto 3rem; }
.mo-error__code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--rd-sky-dark); margin: 0 0 .5rem; }
.mo-error__search { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; }
.mo-error__search .form-control { flex: 1; }
.mo-error__debug { color: var(--rd-muted); font-size: .85rem; text-align: left; }

/* ==========================================================================
   40. Motoristický vzhled (1. 10. 2026)
   Značka = textový nápis (logo Millers Oils je logo výrobce → jen odznak „oficiální prodejce"),
   jednotné fotky produktů (bílý čtverec, celá fotka bez ořezu), homepage sekce z deploy/homepage-j5/.
   Šikmé prvky: skewX(-12deg) / clip-path, kurzíva + verzálky v nadpisech.
   ========================================================================== */

html, body { overflow-x: clip; }

/* --- Značka: logo Millers Oils + „Oficiální prodejce“ -------------------- */
.mo-logo { display: inline-flex; align-items: center; gap: 12px; }
.mo-logo-img { width: auto; height: 48px; }
.mo-logo-text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rd-muted);
    white-space: nowrap;
}
.rd-logo .brand-logo { text-decoration: none; }
.rd-logo .site-description { margin-top: 8px; letter-spacing: .3px; }

/* --- Hlavička: šikmé závodní pruhy, odznak výrobce vpravo ---------------- */
.rd-header-main {
    background:
        linear-gradient(115deg, transparent 0 66%, rgba(200, 16, 46, .14) 66% 69%, transparent 69% 70.5%, rgba(200, 16, 46, .09) 70.5% 72%, transparent 72%),
        var(--rd-primary-dark);
}
.rd-search { flex: 1 1 auto; max-width: 560px; }
.mo-made {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--rd-muted);
}
.mo-made img { width: 32px; height: 16px; border-radius: 2px; }
@media (max-width: 991px) { .rd-header-main .mo-made { display: none; } }
@media (max-width: 575.98px) { .mo-logo-img { height: 36px; } .mo-logo-text { font-size: 9.5px; letter-spacing: .5px; } }
@media (max-width: 767px) { .rd-logo .site-description { display: none; } }

.rd-footer-logo .mo-logo-img { height: 56px; }

/* --- Mega menu (html/mod_menu/mega.php): panel na celou šířku lišty, popis pod názvem --- */
@media (min-width: 992px) {
    .rd-nav-menu .mo-mega-menu > li.deeper { position: static; }
    .rd-nav-menu .mo-mega-menu > li > .mod-menu__sub.mo-mega {
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: 240px repeat(3, minmax(0, 1fr));
        gap: 8px 16px;
        padding: 24px;
        border-top: 3px solid var(--rd-accent);
    }
    .mo-mega > .mo-mega-intro {
        grid-row: 1 / span 4;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding-right: 20px;
        border-right: 1px solid var(--rd-gray-light);
    }
    .mo-mega > .mo-mega-intro strong {
        font-size: 18px;
        font-style: italic;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--rd-heading);
    }
    .mo-mega > .mo-mega-intro span { font-size: 13px; line-height: 1.5; color: var(--rd-muted); }
    .rd-nav-menu .mo-mega > li > a {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px 14px;
        border-left: 3px solid transparent;
        border-radius: var(--rd-radius-sm);
    }
    .rd-nav-menu .mo-mega > li > a:hover {
        padding-left: 14px;
        border-left-color: var(--rd-accent);
        background: var(--rd-surface);
    }
}
.rd-nav-menu .mo-mega li > a { text-decoration: none; }   /* přebije Cassiopeia .mod-list li.active > a */
.mo-mega-title { font-weight: 600; color: var(--rd-heading); }
.mo-mega-desc { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--rd-muted); }
@media (max-width: 991px) {
    .mo-mega > .mo-mega-intro { display: none; }
    .mo-mega-desc { display: block; }
}

/* --- Nadpisy sekcí: kurzíva, verzálky, šikmá červená čárka ---------------- */
.rd-section-heading,
.rd-carousel-heading {
    font-size: 28px;
    font-style: italic;
    letter-spacing: .5px;
}
.rd-section-heading::after,
.rd-carousel-heading::after {
    width: 64px;
    height: 4px;
    border-radius: 0;
    background: var(--rd-accent);
    transform: skewX(-30deg);
}

/* --- Tlačítka a štítky sekcí --------------------------------------------- */
.mo-btn {
    display: inline-block;
    padding: 13px 30px;
    background: var(--rd-accent);
    color: var(--rd-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: background-color var(--rd-transition);
}
.mo-btn:hover, .mo-btn:focus { background: var(--rd-sky); color: var(--rd-white); text-decoration: none; }
.mo-btn--ghost { background: rgba(255, 255, 255, .12); }
.mo-btn--ghost:hover, .mo-btn--ghost:focus { background: var(--rd-accent); }
.mo-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 14px;
    background: var(--rd-accent);
    color: var(--rd-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transform: skewX(-12deg);
}

/* --- Fotky produktů jednotně: bílý čtverec, celá fotka ------------------- */
.browse-view .row { display: flex; flex-wrap: wrap; }
.browse-view > .row > .product { display: flex; }
.browse-view > .row > .product > .spacer {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 4px;
}
.browse-view .vm-product-media-container {
    aspect-ratio: 1;
    margin: calc(-1 * var(--rd-space-md)) calc(-1 * var(--rd-space-md)) var(--rd-space-md);
    padding: 18px;
    background: var(--rd-white);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.browse-view .vm-product-media-container > a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.browse-view .browseProductImage {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 0;
}
.browse-view > .row > .product > .spacer:hover .browseProductImage { transform: scale(1.04); }
.browse-view [class^="vm-product-descr-container-"] { flex: 1 1 auto; border: 0; padding: 0; background: none; }
.browse-view [class^="vm-product-descr-container-"]:hover { transform: none; box-shadow: none; }
.browse-view > .row > .product > .spacer:hover { border-color: var(--rd-accent); }

.rd-carousel-card { border-radius: 4px; border: 1px solid var(--rd-gray-light); }
.rd-carousel-card:hover { border-color: var(--rd-accent); }
.rd-carousel-card-img { background: var(--rd-white); padding: 16px; }
.rd-carousel-card-title { min-height: 2.7em; }

.productdetails-view .vm-product-media-container .main-image { background: var(--rd-white); border-radius: 4px; padding: 24px; }
.productdetails-view .additional-images img { background: var(--rd-white); object-fit: contain; }

/* --- Dlaždice kategorií: fotka na bílém, šikmý červený štítek ------------- */
.rd-category-tiles { padding: var(--rd-space-2xl) 0 var(--rd-space-lg); }
.rd-tile { border-radius: 4px; background: var(--rd-white); border: 0; }
.rd-tile img { background: var(--rd-white); padding: 18px 18px 8px; }
.rd-tile img { flex: 1 1 auto; min-height: 0; }
.rd-tile-name {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0 10px 12px;
    padding: 9px 10px;
    border-top: 0;
    background: var(--rd-accent);
    color: var(--rd-white);
    font-style: italic;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.rd-tile:hover { box-shadow: 0 0 0 3px var(--rd-accent), var(--rd-shadow-xl); }
.rd-tile:hover .rd-tile-name { background: var(--rd-primary-dark); color: var(--rd-white); }

/* --- Slider (obsah modulu z deploy/homepage/hero-slider.html má vlastní <style> → vyšší specifičnost) --- */
.container-banner .mo-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 6px;
    background: linear-gradient(90deg, var(--rd-accent) 0 64%, transparent 64% 65.5%, var(--rd-accent) 65.5% 74%, transparent 74% 75.5%, var(--rd-accent) 75.5% 80%, transparent 80%);
}
.container-banner .mo-hero .mo-hero-kicker {
    display: inline-block;
    padding: 5px 14px;
    background: var(--rd-accent);
    font-weight: 700;
    opacity: 1;
    text-shadow: none;
    transform: skewX(-12deg);
}
.container-banner .mo-hero .mo-hero-box h2 {
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.container-banner .mo-hero .mo-hero-btn {
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.container-banner .mo-hero .mo-hero-btn:hover { background: var(--rd-sky); }
.container-banner .mo-hero .mo-hero-nav { border-radius: 0; transform: translateY(-50%) skewX(-12deg); }
.container-banner .mo-hero .mo-hero-dots { bottom: 22px; }
.container-banner .mo-hero .mo-hero-dots button { width: 26px; height: 5px; border-radius: 0; transform: skewX(-30deg); }

/* --- Lišta výhod (pod sliderem na homepage, jinde nad patičkou) ----------- */
.mo-strip { padding: 0; background: var(--rd-card); border-bottom: 1px solid var(--rd-gray-light); }
.mo-strip .rd-highlights-grid { gap: 0; }
.mo-strip .card,
.mo-strip .card:hover {
    position: relative;
    padding: 18px 16px 18px 64px;
    background: none;
    border-left: 1px solid var(--rd-gray-light);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    text-align: left;
}
.mo-strip .card:first-child { border-left: 0; }
.mo-strip .card-header {
    position: static;
    padding: 0;
    font-size: 14px;
    font-style: italic;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.mo-strip .card-header::after { display: none; }
.rd-home-highlights.mo-strip .rd-benefit .card-header::before {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin: 0;
    transform: translateY(-50%);
}
.mo-strip .card-body { padding: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--rd-muted); }
.mo-strip .card-body p { margin: 0; }
.rd-home-highlights.mo-strip + .rd-footer { margin-top: 0; }
body:not(.home) .mo-strip { border-top: 1px solid var(--rd-gray-light); margin-top: var(--rd-space-xl); }

/* --- Sekce homepage pod sebou; pruhy (.mo-full) přes celou šířku okna --- */
.container-bottom-a { padding-top: 0; }
.container-bottom-a > .rd-section:first-child:not(.mo-full) { margin-top: var(--rd-space-2xl); }
.container-bottom-a > .rd-section + .rd-section { margin-top: var(--rd-space-2xl); }
.container-bottom-a > .rd-section.mo-full { width: 100vw; margin-left: calc(50% - 50vw); }
.container-bottom-a > .rd-section.mo-full:last-child { margin-bottom: 0; }

.mo-band {
    --mo-gutter: max(var(--rd-space-md), calc((100vw - 1320px) / 2 + var(--rd-space-md)));
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 460px;
    background: var(--rd-primary-dark);
    overflow: hidden;
}
.mo-band-media { position: relative; }
.mo-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-band-body { position: relative; z-index: 1; align-self: center; padding: 56px 48px; color: var(--rd-text); }
.mo-band-title {
    margin: 0 0 18px;
    color: var(--rd-white);
    font-size: 38px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
}
.mo-band-body p { font-size: 16px; line-height: 1.65; }
.mo-band-body a:not(.mo-btn) { color: var(--rd-sky); }
.mo-band-quote { margin: 0; padding-left: 18px; border-left: 4px solid var(--rd-accent); font-size: 19px !important; color: var(--rd-white); }
.mo-band-action { margin: 28px 0 0; }

.mo-band--about .mo-band-body { order: -1; padding-left: var(--mo-gutter); }
.mo-band--about .mo-band-media { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.mo-band--about .mo-band-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 23, 50, .55), transparent 40%);
}

.mo-band--oil { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #001020; border-top: 1px solid var(--rd-gray-light); border-bottom: 1px solid var(--rd-gray-light); }
.mo-band--oil .mo-band-media { overflow: hidden; }
.mo-band--oil .mo-band-media img { object-fit: contain; transform: scale(1.3); }
.mo-band--oil .mo-band-body { padding-right: var(--mo-gutter); max-width: 760px; }
.mo-band--oil::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 41.6%;
    width: 10px;
    background: var(--rd-accent);
    transform: skewX(-12deg);
    opacity: .9;
}

/* --- Reference ------------------------------------------------------------ */
.mo-ref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1320px; margin: 0 auto; padding: 0 var(--rd-space-md); }
.mo-ref-item { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; text-decoration: none; }
.mo-ref-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mo-ref-item:hover img, .mo-ref-item:focus img { transform: scale(1.05); }
.mo-ref-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 60px 22px 20px;
    background: linear-gradient(180deg, transparent, rgba(1, 12, 28, .94) 50%);
    border-bottom: 4px solid var(--rd-accent);
    color: #D1D5DB;
    font-size: 14px;
}
.mo-ref-cap strong { color: var(--rd-white); font-size: 22px; font-style: italic; text-transform: uppercase; line-height: 1.2; }
.mo-ref-tag {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    background: var(--rd-accent);
    color: var(--rd-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: skewX(-12deg);
}
.mo-ref-item:hover .mo-ref-cap strong { color: var(--rd-sky); }
.mo-ref-all { margin: 20px 0 0; text-align: center; }
.mo-ref-all a { color: var(--rd-sky); font-weight: 600; text-decoration: none; }
.mo-ref-all a:hover { text-decoration: underline; }

/* --- Průmyslová maziva ---------------------------------------------------- */
.mo-ind {
    padding: 64px 0;
    background:
        linear-gradient(90deg, rgba(2, 23, 50, .97) 0%, rgba(2, 23, 50, .88) 55%, rgba(2, 23, 50, .7) 100%),
        #0B1424 url(/images/2023/07/21/bckg-ind2.jpg) center / cover no-repeat;
    border-top: 4px solid var(--rd-accent);
}
.mo-ind-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--rd-space-md);
}
.mo-ind-text p:not(.mo-kicker) { margin: 0; font-size: 16px; line-height: 1.65; color: var(--rd-text); }
.mo-ind-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mo-ind-btns .mo-btn { display: flex; align-items: center; justify-content: center; padding: 14px 16px; font-size: 13px; text-align: center; }
.mo-ind-btns .mo-btn:last-child { grid-column: 1 / -1; }

/* --- Mobil ---------------------------------------------------------------- */
@media (max-width: 991px) {
    .mo-band, .mo-band--oil { grid-template-columns: 1fr; min-height: 0; }
    .mo-band-media { height: 260px; }
    .mo-band--about .mo-band-media { order: -1; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
    .mo-band--about .mo-band-body, .mo-band--oil .mo-band-body { padding: 32px var(--rd-space-md) 40px; max-width: none; }
    .mo-band--oil .mo-band-media { height: 220px; }
    .mo-band--oil::before { display: none; }
    .mo-band-title { font-size: 30px; }
    .mo-ind-inner { grid-template-columns: 1fr; gap: 28px; }
    .mo-ref { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .mo-ref-cap { padding: 40px 14px 14px; }
    .mo-ref-cap strong { font-size: 17px; }
    .mo-strip .rd-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mo-strip .card:nth-child(3) { border-left: 0; }
    .mo-strip .card:nth-child(n+3) { border-top: 1px solid var(--rd-gray-light); }
    .container-banner .mo-hero .mo-hero-box h2 { font-size: 34px; }
}
@media (max-width: 767px) {
    .mo-ref { grid-template-columns: 1fr; }
    .mo-ref-item { aspect-ratio: 4 / 3; }
    .container-banner .mo-hero .mo-hero-box h2 { font-size: 26px; }
    .rd-section-heading, .rd-carousel-heading { font-size: 22px; }
}
@media (max-width: 575.98px) {
    .mo-strip .card, .mo-strip .card:hover { padding: 12px 10px 12px 48px; }
    .rd-home-highlights.mo-strip .rd-benefit .card-header::before { left: 12px; width: 26px; height: 26px; }
    .mo-strip .card-header { font-size: 12px; }
    .mo-strip .card-body { display: none; }
    .mo-ind-btns { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .container-banner .mo-hero .mo-hero-btn { max-width: 100%; padding: 12px 22px; font-size: 13px; }
}

/* --- Horní promo lišta (modul v pozici promo) ---------------------------- */
.mo-promo {
    background: var(--rd-primary-deep);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.4;
}
.mo-promo .rd-container { padding-top: 5px; padding-bottom: 5px; }
.mo-promo .mod-custom {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mo-promo p { margin: 0; }
.mo-promo .mo-promo-offer { flex: 1 1 auto; }
.mo-promo .mo-promo-ship { flex-shrink: 0; margin-left: auto; font-size: 12px; color: var(--rd-muted); }
.mo-promo a { color: #E4E4E7; font-weight: 600; text-decoration: none; }
.mo-promo a:hover { color: var(--rd-sky); }
.mo-promo--bottom { display: none; }
@media (max-width: 767px) {
    .mo-promo--top { display: none; }
    .mo-promo--bottom { display: block; padding: 8px 0; text-align: center; border-bottom: 0; }
    .mo-promo--bottom .mod-custom { flex-direction: column; gap: 4px; }
    .mo-promo--bottom .mo-promo-ship { margin-left: 0; }
    .mo-promo--bottom .mo-promo-offer { text-wrap: balance; }
}

/* --- Sticky hlavička na mobilu (2. 10. 2026) ------------------------------
   Desktop: obal mizí (display: contents), lepí se jen .rd-navbar.
   Mobil: lepí se obal = logo + hamburger + hledání + navbar s košíkem. */
.mo-sticky { display: contents; }
@media (max-width: 991px) {
    .mo-sticky {
        display: block;
        position: sticky;
        top: 0;
        z-index: 150;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }
    .mo-sticky .rd-navbar { position: static; box-shadow: none; }
}

/* --- Mobil: účet a košík v hlavičce vlevo od hamburgeru (2. 10. 2026) -----
   .rd-nav-actions zůstává v navbaru (desktop beze změny), na mobilu se absolutně
   ukotví k .mo-sticky (sticky = containing block); lišta navbaru tím zmizí. */
@media (max-width: 767px) {
    .mo-sticky .rd-navbar { background: transparent; }
    .rd-navbar .rd-container { position: static; }
    .rd-nav-actions {
        position: absolute;
        top: var(--rd-space-sm);
        right: calc(var(--rd-space-md) + 28px + 14px);   /* kontejner + hamburger + mezera */
        height: 44px;
        gap: 18px;
        padding: 0;
        z-index: 320;
    }
    .rd-user-trigger span,
    .rd-user-trigger .rd-user-chevron,
    .rd-nav-actions .vmCartModule .total_products { display: none; }
    .rd-nav-login svg, .rd-nav-cart-link svg { width: 22px; height: 22px; }
    .rd-nav-cart-link { position: relative; display: flex; }
}

/* Cookie lišta „Nastavení cookies" na mobilu jen jako sušenka */
@media (max-width: 767px) {
    .scc-reopen { padding: 6px 10px; }
    .scc-reopen .scc-reopen-text { display: none; }
}

/* SST Heureka opt-out: u prázdného košíku chybí checkoutForm a JS pluginu se fallbackem
   (form s „virtuemart" v action) vloží do vyhledávání v hlavičce (2. 10. 2026) */
.rd-search-form .semakin-sst-heureka-optout { display: none !important; }

/* SST Heureka opt-out v pokladně: stejný řádek jako souhlasy nad ním, ale bez červeného
   podbarvení (nepovinné); <br> z pluginu pryč, text teče jako u ostatních */
.rd-checkout-submit .semakin-sst-heureka-optout {
    gap: 8px;
    margin: 0 0 var(--rd-space-md);
    padding: 6px var(--rd-space-sm);
    border: 1px solid var(--rd-gray-light);
    border-radius: var(--rd-radius-sm);
    font-size: 12px !important;
    line-height: 1.4;
    color: var(--rd-text);
    cursor: pointer;
}
.rd-checkout-submit .semakin-sst-heureka-optout input {
    width: 18px; height: 18px; margin: 0 !important; accent-color: var(--rd-primary);
}
.rd-checkout-submit .semakin-sst-heureka-optout br { display: none; }
