/* =========================
   ZÁKLAD
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================
   LIGHT MODE
========================= */

body.light-mode {
    background-image: url('/static/GAMlight.png');
    background-size: 100%;
    background-color: white;
    color: #111;
}

body.light-mode .shop-header {
    background: rgba(255, 255, 255, 0.329);
}

body.light-mode .menu a,
body.light-mode .sidebar a,
body.light-mode .sidebar h3,
body.light-mode .product-title,
body.light-mode .cart-wrap,
body.light-mode .cart-item,
body.light-mode .content h1,
body.light-mode .content h2,
body.light-mode .content h3,
body.light-mode .content p,
body.light-mode .content li {
    color: #111;
}

body.light-mode .filters input,
body.light-mode .filters select,
body.light-mode .filters button {
    background: rgba(255, 255, 255, 0.70);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.20);
}

body.light-mode .filters input::placeholder {
    color: rgba(27, 250, 53, 0.6);
}

body.light-mode .product {
    background: rgba(18, 250, 126, 0.548);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.light-mode .btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.35);
    color: #111;
    background: rgba(255, 255, 255, 0.35);
}

body.light-mode .shop-link-under-logo{
    margin-top: 10px;
    padding: 12px 18px;   /* větší */
    border-radius: 12px;
    font-size: 15px;      /* větší text */
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s ease;    
    background: #b50000c1;
    transform: scale(1.05);
}

body.light-mode .btn {
    background: rgba(0, 0, 0, 0);
    color: #12822e;
}

body.light-mode .layout::before {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.48) 32%,
        rgba(255, 255, 255, 0.22) 62%,
        rgba(255, 255, 255, 0.00) 100%
    );
}

/* =========================
   DARK MODE
========================= */

body.dark-mode {
    background-image: url('/static/GAMdark.png');
    background-size: 100%;
    background-color: black;
    color: white;
}

body.dark-mode .shop-header {
    background: rgba(0, 0, 0, 0.816);
}

body.dark-mode .menu a,
body.dark-mode .sidebar a,
body.dark-mode .sidebar h3,
body.dark-mode .product-title,
body.dark-mode .cart-wrap,
body.dark-mode .cart-item,
body.dark-mode .content h1,
body.dark-mode .content h2,
body.dark-mode .content h3,
body.dark-mode .content p,
body.dark-mode .content li {
    color: white;
}

body.dark-mode .filters input,
body.dark-mode .filters select,
body.dark-mode .filters button {
    background: rgba(0, 0, 0, 0.38);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

body.dark-mode .filters input::placeholder {
    color: rgba(255, 255, 255, 0.80);
}

body.dark-mode .product {
    background: rgba(18, 250, 126, 0.548);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.dark-mode .shop-link-under-logo {
    margin-top: 10px;
    padding: 12px 18px;   /* větší */
    border-radius: 12px;
    font-size: 15px;      /* větší text */
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s ease;    
    background: #b50000c1;
    transform: scale(1.05);
}

body.dark-mode .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .layout::before {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.52) 32%,
        rgba(0, 0, 0, 0.24) 62%,
        rgba(0, 0, 0, 0.00) 100%
    );
}

/* =========================
   HEADER
========================= */

.shop-header {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: start;
    padding: 8px 22px 6px 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.shrink {
    padding: 4px 0;
    transform: scale(0.95);
}

.shop-header::before {
    top: 0;
    height: 100%;
}    

.header-subcategories {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.subcategory-btn {
    padding: 7px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

body.light-mode .subcategory-btn {
    background: rgba(255,255,255,0.70);
    color: #111;
    border: 1px solid rgba(0,0,0,0.18);
}

body.dark-mode .subcategory-btn {
    background: rgba(0, 0, 0, 0.552);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.subcategory-btn:hover {
    background: #0f7a3c !important;
    color: white !important;
}

.header-left {
    display: contents;
}

.header-logo-wrap {    
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;

}

.header-logo {
    height: 125px;
    width: auto;
}



.menu {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 18px;
}

.menu a {
    font-weight: bold;
    text-decoration: none;
}

body.light-mode .menu a:hover {
    color: #0f7a3c;
}

body.dark-mode .menu a:hover {
    color: #6dffaf;
}

body.dark-mode .shop-header::before,
body.dark-mode .layout::before {
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.00) 100%
    );
}

body.light-mode .shop-header::before,
body.light-mode .layout::before {
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.80) 0%,
        rgba(255,255,255,0.45) 55%,
        rgba(255,255,255,0.00) 100%
    );
}

/* =========================
   Tlačítko zpět do obchodu
========================= */

.back-home-btn {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

body.dark-mode .back-home-btn {
    background: rgba(51, 50, 50, 0.536);
    color: rgb(0, 255, 42);
}

body.light-mode .back-home-btn {
    background: rgba(51, 50, 50, 0.536);
    color: rgb(0, 255, 42);
}

.back-home-btn:hover {
    background: #0f7a3c;
    color: white;
}

/* =========================
   FILTRY
========================= */

.filters {
    margin-top: 0px;
    display: flex;
    gap: 8px;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
}

.filters input,
.filters select,
.filters button {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.filters input {
    min-width: 220px;
}

.filters button {
    background: black;
    color: #01fa0e;
    cursor: pointer;
}

.filters button:hover {
    background: #0f7a3c;
}

/* =========================
   ROZLOŽENÍ SHOPU
========================= */

.layout {    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 8px;
    background: transparent;
    position: relative;
    min-height: calc(100vh - 120px);
}

.layout::before {
    top: 0;
    height: 100%;
}

.sidebar {
    padding: 16px 10px 20px 20px;
    border-right: none;
    position: relative;
    z-index: 1;
    background: transparent;
}

body.light-mode .sidebar {
    width: 200px;
    padding: 20px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.22) 55%,
        rgba(255, 255, 255, 0.10) 80%,
        rgba(255, 255, 255, 0.00) 100%
    );
    border-right: none;
}

body.dark-mode .sidebar {
    width: 200px;
    padding: 20px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.904) 0%,
        rgba(0, 0, 0, 0.59) 55%,
        rgba(0, 0, 0, 0.244) 80%,
        rgba(0, 0, 0, 0.00) 100%
    );
    border-right: none;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 20px;
}

.sidebar ul {
    list-style: disc;
    padding-left: 15px;
    margin: 0;
}

.sidebar li {
    margin-bottom: 6px;
}

.sidebar a {
    text-decoration: none;
    font-size: 15px;
}

.content {
    padding: 16px 0 20px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.content h2 {
    margin-top: 0;
    font-size: 23px;
}

/* =========================
   PODKATEGORIE
========================= */

.subcategory-bar {
    position: sticky;
    top: 98px;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 24px 8px 190px;
    background: transparent;
}

.subcategory-btn {
    padding: 7px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

body.light-mode .subcategory-btn {
    background: rgba(255,255,255,0.65);
    color: #111;
    border: 1px solid rgba(0,0,0,0.18);
}

body.dark-mode .subcategory-btn {
    background: rgba(0,0,0,0.40);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.subcategory-btn:hover {
    background: #0f7a3c !important;
    color: white !important;
}

/* =========================
   PRODUKTY
========================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 190px));
    gap: 14px;
    justify-content: start;
}

.product {
    width: 170px;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.427);
}

.product img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0 6px;
}

body.light-mode .product-price {
    font-size: 18px;
    color: #104224;
    font-weight: bold;
    margin: 8px 0 12px;
}

body.dark-mode .product-price {
    font-size: 18px;
    color: #5cfc9c;
    font-weight: bold;
    margin: 8px 0 12px;
}

/* DETAIL PRODUKTU */

.product-detail {
    width: 1050px;
    max-width: calc(100vw - 260px);
    margin: 30px auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    border-radius: 22px;
    overflow: visible;
}

body.dark-mode .product-detail {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.18);
}

body.light-mode .product-detail {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0,0,0,0.12);
}



.media-slider {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.media-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.media-slide.active {
    display: block;
}

.media-slide img,
.media-slide iframe,
.media-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    background: white;
}

.media-slide video {
    background: black;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    background: rgba(0,0,0,0.55);
    color: white;
}

.slider-btn.prev {
    left: 8px;
}

.slider-btn.next {
    right: 8px;
}

.media-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.media-thumbs button {
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    font-weight: bold;
}

.media-thumbs button:hover {
    border-color: #22d96b;
}

.media-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    font-size: 22px;
    color: #0f7a3c;
}

.detail-info h1 {
    font-size: 30px;
    margin-top: 0;
}

.detail-sku {
    font-size: 16px;
}

/* Cena na detailu produktu */

.detail-info .price {
    font-size: 24px;
    font-weight: bold;
    color: #22d96b;
    margin: 20px 0;
}

.detail-description {
    font-size: 18px;
    line-height: 1.5;
    margin: 22px 0;
}

.back-to-shop {
    margin-top: 20px;
}


/* =========================
   TLAČÍTKA
========================= */

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #595959;
    transform: scale(1.03);
}

.btn-outline {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.qty-input {
    width: 70px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 16px;
}

.qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-wrap button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    color: white;
}

.qty-wrap button:hover {
    background: #0f7a3c;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 16px;
}



/* =========================
   KOŠÍK
========================= */

.cart-wrap {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.cart-item {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

body.light-mode .cart-wrap .cart-item,
body.light-mode .cart-wrap .cart-item p,
body.light-mode .cart-wrap .cart-item strong,
body.light-mode .cart-wrap .cart-item span {
    color: #6c7742;
}


/* =========================
   HOMEPAGE
========================= */

.homepage {
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* DARK MODE homepage */
body.dark-mode.homepage {
    background: black;
}

/* LIGHT MODE homepage */
body.light-mode.homepage {
    background: white;
}

.home-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo-home-img {
    width: min(70vw, 700px);
    height: auto;
    display: block;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(0,255,136,0.15));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 18px rgba(0,255,136,0.45));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(0,255,136,0.15));
    }
}

.checkout-button-wrap{
    display:flex;
    justify-content:flex-end;
    margin-top:24px;
}

.checkout-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:320px;
    padding:18px 34px;

    font-size:19px;
    font-weight:700;

    border-radius:14px;

    text-decoration:none;
}

/* Tlačítka přepínače jazyků */

.lang-switch {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 6px;
    justify-content: center;
}

.lang-switch a {
    width: 34px;
    height: 24px;
    padding: 0;
    font-size: 11px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

body.light-mode .lang-switch a {
    background: rgba(0,0,0,0.08);
    color: #030098;
}

body.dark-mode .lang-switch a {
    background: rgb(49, 1, 116);
    color: rgb(138, 219, 212);
}

.lang-switch a:hover {
    background: #0f7a3c;
    color: white;
}

.stock {
    font-weight: bold;
    margin-bottom: 10px;
}

.in-stock {
    color: #22d96b;
}

.out-stock {
    color: #ff4d4d;
}

.stock-badge {
    display: inline-block;
    margin: 8px 0;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.stock-badge.in-stock {
    background: rgba(34, 217, 107, 0.18);
    color: #22d96b;
    border: 1px solid rgba(34, 217, 107, 0.45);
}

.stock-badge.low-stock {
    background: rgba(0, 251, 255, 0.627);
    color: #ff0000;
    border: 1px solid rgba(4, 0, 255, 0.915);
    animation: stockPulse 1.6s infinite;
}

.stock-badge.sold-out {
    background: rgba(143, 6, 6, 0.629);
    color: #ff0000;
    border: 1px solid rgb(245, 255, 60);
}

@keyframes stockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.checkout-page {
    max-width: 1150px;
    margin: 30px auto;
    padding: 0 20px;
}

.checkout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.checkout-form,
.checkout-summary {
    border-radius: 18px;
    padding: 22px;
}

body.light-mode .checkout-form,
body.light-mode .checkout-summary {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.12);
}

body.dark-mode .checkout-form,
body.dark-mode .checkout-summary {
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(255,255,255,0.16);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-form h2 {
    margin: 14px 0 4px;
}

.checkout-form input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.18);
    font-size: 15px;
}

.checkout-checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0;
}

.checkout-summary {
    position: sticky;
    top: 120px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.385);
}

.summary-total {
    display: block;
    margin-top: 18px;
    font-size: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.385);
}

.summary-row span {
    flex: 1;
}

.summary-row strong {
    white-space: nowrap;
    text-align: right;
}

.summary-row-final {
    margin-top: 8px;
    padding-top: 16px;
    border-bottom: none;
    font-size: 22px;
}


.checkout-error {
    background: #ffdede;
    color: #8a1f1f;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.btn-checkout {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #0f7a3c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-checkout:hover {
    background: #0b5f2e;
}

.checkout-form input:required {
    border-left: 4px solid #22d96b;
}

.checkout-form input:invalid {
    border-color: rgba(255, 77, 77, 0.8);
}

.checkout-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 217, 107, 0.25);
}

.variant-select {
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    font-size: 15px;
}
.variant-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.color-choice input {
    display: none;
}

.color-choice span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

.color-choice input:checked + span {
    outline: 3px solid #22d96b;
    transform: scale(1.12);
}

.variant-box {
    margin: 18px 0;
}

.variant-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(128,128,128,0.35);
}

.variant-choice input {
    display: none;
}

.variant-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}

.variant-choice:has(input:checked) {
    outline: 3px solid #22d96b;
}

.variant-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.account-box {
    max-width: 760px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 18px;
}

body.light-mode .account-box {
    background: rgba(255,255,255,0.75);
    color: #111;
}

body.dark-mode .account-box {
    background: rgba(0,0,0,0.45);
    color: white;
}

.account-box input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin: 6px 0 12px;
}

.account-order {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(128,128,128,0.35);
}

.nav-link {
    margin-left: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
}

body.dark-mode .nav-link {
    color: white;
}

body.light-mode .nav-link {
    color: #111;
}

.nav-link:hover {
    background: rgba(128,128,128,0.2);
}

.account-order-link {
    display: block;
    text-decoration: none;
}

.order-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 13px;
}

.status-new {
    background: rgba(0, 120, 255, 0.18);
    color: #4da3ff;
}

.status-paid {
    background: rgba(34, 217, 107, 0.18);
    color: #22d96b;
}

.status-shipped {
    background: rgba(255, 180, 0, 0.18);
    color: #ffb400;
}

.status-done {
    background: rgba(180, 180, 180, 0.25);
    color: #ddd;
}

.status-cancelled {
    background: rgba(255, 60, 60, 0.18);
    color: #ff4d4d;
}

.bdf-rush-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000 !important;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.bdf-rush-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.6);
}

.bdf-rush-btn::after {
    content: "";
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(110, 105, 89, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.bdf-rush-btn:hover::after {
    opacity: 1;
}

/* =========================
   BLADE DESING FASHION RUSH
========================= */

body.bdf-rush-mode {
    background: url('/static/GR_3.png') center center fixed no-repeat !important;
    background-size: cover !important;
    color: #f5d76e !important;
}

body.bdf-rush-mode .shop-header {
    background: rgba(0,0,0,0.78) !important;
    border-bottom: 1px solid rgba(245,215,110,0.35);
}

body.bdf-rush-mode .header-logo {
    content: url('/static/GRlogo_3.png');
}

body.bdf-rush-mode .product-detail,
body.bdf-rush-mode .cart-wrap,
body.bdf-rush-mode .checkout-page,
body.bdf-rush-mode .account-box {
    background: rgba(0,0,0,0.68) !important;
    border: 1px solid rgba(245,215,110,0.35) !important;
    color: #f5d76e !important;
}

body.bdf-rush-mode a,
body.bdf-rush-mode .menu a {
    color: #f5d76e !important;
}

.bdf-rush-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: url('/static/GR_3.png') center center fixed no-repeat;
    background-size: cover;
    color: #f5d76e;
}

.bdf-rush-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px 28px;
    min-height: 120px;
    background: rgba(30, 26, 4, 0.92);
    border-bottom: 1px solid rgba(245, 215, 110, 0.45);
}

.bdf-rush-logo {
    width: 320px;
    height: 130px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.bdf-rush-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bdf-rush-menu a {
    color: #d6b84a;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
}

.bdf-rush-menu a:hover {
    color: #fff3b0;
    background: rgba(214, 184, 74, 0.16);
}

.bdf-rush-page {
    padding: 40px;
}

.bdf-rush-page h1 {
    font-size: 26px;
    margin: 0 0 30px;
    color: #fdc805 !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
    
    width: 100%;
    text-align: center;
}

.bdf-rush-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 175px));
    gap: 12px;
    justify-content: start;
}

.bdf-rush-product {
    display: block;
    width: 155px;
    padding: 9px;
    border-radius: 14px;
    
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(148, 137, 101, 0.45);
    
    text-decoration: none;
    color: #f4c542;
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bdf-rush-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(245, 215, 110, 0.22);
}

.bdf-rush-product img {
    width: 100%;
    height: 155px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
}

.bdf-rush-product .product-title {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0 6px;
    color: #f4c542;
}

.bdf-rush-product .product-price {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0 12px;
    color: #f4c542;
}

/* DETAIL */
.bdf-detail-btn {
    background: rgba(244, 197, 66, 0.12);
    color: #f4c542 !important;
    border: 1px solid rgba(244, 197, 66, 0.5);
    margin-right: 6px;
}

.bdf-detail-btn:hover {
    background: rgba(244, 197, 66, 0.25);
    color: #fff2a8 !important;
}

/* KOŠÍK */
.bdf-cart-btn {
    background: linear-gradient(
        135deg,
        #d4af37,
        #ffd95a
    );

    color: #111 !important;
    border: 1px solid #e6c54d;
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 8px;
}

.bdf-cart-btn:hover {
    background: linear-gradient(
        135deg,
        #e2bd3e,
        #ffe47d
    );

    color: #000 !important;
}

.bdf-rush-top-nav {
    margin-bottom: 20px;
}

.back-to-gam {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
}

.back-to-gam:hover {
    background: rgba(0,0,0,0.8);
}

.cookie-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    padding: 16px;
    border-radius: 14px;
    z-index: 9999;
}

body.dark-mode .cookie-bar {
    background: rgba(0,0,0,0.85);
    color: white;
}

body.light-mode .cookie-bar {
    background: rgba(255,255,255,0.95);
    color: #111;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(90%, 720px);
    z-index: 99999;
    padding: 16px;
    border-radius: 16px;
    background: rgba(187, 134, 13, 0.878);
    color: rgb(0, 15, 30);
    box-shadow: 0 12px 35px rgba(110, 110, 110, 0.514);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-bar .btn,
.cookie-bar .btn-outline {
    cursor: pointer;
}

@media (max-width: 700px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.bdf-rush-btn {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
}

.menu a,
.menu button {
    position: relative;
    z-index: 5;
}

.shop-header {
    overflow: visible;
}



.success-page {
    max-width: 1050px;
    margin: 40px auto;
    padding: 24px;
}

.success-intro {
    margin-bottom: 24px;
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.success-card {
    padding: 22px;
    border-radius: 18px;
}

body:not(.bdf-rush-mode) .success-card {
    background: rgba(255,255,255,0.82);
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
}

body.bdf-rush-mode .success-card {
    background: rgba(0,0,0,0.74);
    color: #f2d26b;
    border: 1px solid rgba(242,210,107,0.35);
    box-shadow: 0 0 25px rgba(212,175,55,0.12);
}

.success-card h2,
.success-card h3 {
    margin-top: 0;
}

.payment-card {
    text-align: left;
}

body.bdf-rush-mode .payment-qr {
    background: white;
    border: 3px solid #d4af37;
}

body:not(.bdf-rush-mode) .payment-qr {
    background: white;
    border: 2px solid #4de38a;
}

@media (max-width: 850px) {
    .success-grid {
        grid-template-columns: 1fr;
    }
}

body.bdf-rush-mode .success-page {
    max-width: 1050px;
    margin: 45px auto;
    padding: 28px;
    border-radius: 26px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
}

body.bdf-rush-mode .success-intro h1 {
    color: #f5d76e;
    font-size: 38px;
    margin-top: 0;
}

body.bdf-rush-mode .success-intro p {
    color: #f7e7a1;
    font-size: 18px;
}

body.bdf-rush-mode .success-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
}

body.bdf-rush-mode .success-card {
    background: rgba(8, 8, 8, 0.82) !important;
    color: #f7e7a1 !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 22px;
    padding: 26px;
}

body.bdf-rush-mode .success-card h2,
body.bdf-rush-mode .success-card h3 {
    color: #f5d76e !important;
}

body.bdf-rush-mode .success-card strong {
    color: #fff1a8;
}

body.bdf-rush-mode .payment-qr {
    width: 160px;
    height: 160px;
    display: block;
    margin: 20px auto 0;
    padding: 14px;
    background: white;
    border: 4px solid #d4af37;
    border-radius: 18px;
    box-shadow: 0 0 28px rgba(212,175,55,0.35);
}

.success-products {
    margin-top: 18px;
}

.success-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.success-product:last-child {
    border-bottom: none;
}

.success-product-meta {
    margin-top: 4px;
    opacity: 0.75;
    font-size: 14px;
}

.success-product-price {
    font-weight: 700;
    white-space: nowrap;
}

.bdf-rush-categories,
.bdf-rush-subcategories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.bdf-rush-category-btn {
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;

    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);

    color: #f5d76e;
    transition: 0.25s;
}

.bdf-rush-category-btn:hover {
    background: rgba(212,175,55,0.22);
    transform: translateY(-2px);
}

.bdf-rush-filterbar {
    margin-left: 20px;
    margin-top: 8px;
    transform: scale(0.9);
    transform-origin: left top;
}

.bdf-rush-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bdf-rush-filters input {
    width: 170px;
    height: 34px;
    font-size: 14px;
}

.bdf-rush-filters select {
    width: 120px;
    height: 34px;
    font-size: 14px;
}

.bdf-rush-filters button {
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
}

.bdf-rush-filters input::placeholder {
    color: rgba(245,215,110,0.75);
}

.bdf-rush-filters button {
    cursor: pointer;
    font-weight: bold;
}

.bdf-rush-categories,
.bdf-rush-subcategories {
    margin-top: 8px;
}

.bdf-rush-category-btn,
.bdf-rush-subcategory-btn {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(212,175,55,0.14);
    border: 1px solid rgba(212,175,55,0.35);
    color: #f5d76e !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.bdf-rush-category-btn:hover,
.bdf-rush-subcategory-btn:hover,
.bdf-rush-category-btn.active,
.bdf-rush-subcategory-btn.active {
    background: rgba(212,175,55,0.28);
    transform: translateY(-2px);
}

/* Velikost QR kódu pro GLATMO i BDF RUSH */
img.payment-qr {
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    object-fit: contain;
    display: block;
    margin: 20px auto 0;
}


/* Světlý režim */
body.light-mode .cart-icon {
    background-color: #12c370;
    border: 1px solid #737475;
}

/* Tmavý režim */
body.dark-mode .cart-icon {
    background-color: #02b461;
    border: 1px solid #5a5a5a;
}

.bdf-rush-mode .header-logo {
    content: url("/static/BDF3.png");
}

/* BDF režim pro košík a checkout */

body.bdf-rush-mode {
    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
        url("/static/GR_3.png") center / cover fixed;
    color: #f4c542;
}

body.bdf-rush-mode .shop-header {
    background: rgba(20, 18, 4, 0.94);
    border-bottom: 1px solid rgba(244, 197, 66, 0.5);
}

body.bdf-rush-mode .shop-header a,
body.bdf-rush-mode .shop-header button {
    color: #f4c542;
}

body.bdf-rush-mode .cart-wrap,
body.bdf-rush-mode .checkout-form,
body.bdf-rush-mode .checkout-summary,
body.bdf-rush-mode .success-card {
    background: rgba(18, 18, 18, 0.92);
    color: #f4c542;
    border: 1px solid rgba(244, 197, 66, 0.35);
}

/* Zarovnání vyhledávání v BDF režimu */
body.bdf-rush-mode .header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

body.bdf-rush-mode .header-logo-wrap {
    flex: 0 0 auto;
}

body.bdf-rush-mode .filters {
    flex: 1;
    max-width: 620px;
    margin: 0;
}

body.bdf-rush-mode .filters input[type="text"] {
    min-width: 220px;
    flex: 1;
}

body.bdf-rush-mode .header-logo {
    max-width: 220px;
    height: auto;
}


/* ==================================================
   RESPONZIVNÍ ZOBRAZENÍ – TABLET A MOBIL
================================================== */

@media (max-width: 900px) {

    body.light-mode:not(.bdf-rush-mode):not(.homepage)::before,
    body.dark-mode:not(.bdf-rush-mode):not(.homepage)::before {
        content: "";
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        z-index: -1;
    
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    body.light-mode:not(.bdf-rush-mode):not(.homepage)::before {
        background-image: url('/static/GAMlight900px.png');
        background-color: white;
    }
    
    body.dark-mode:not(.bdf-rush-mode):not(.homepage)::before {
        background-image: url('/static/GAMdark900px.png');
        background-color: black;
    }

    body.homepage.light-mode {
        background-image: none;
        background-color: white;
    }
    
    body.homepage.dark-mode {
        background-image: none;
        background-color: black;
    }
    
    body.homepage::before {
        content: none;
    }
    
    body.light-mode,
    body.dark-mode {
        background-image: none;
        background-color: transparent;
    }

    /* HLAVIČKA */
    .shop-header {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 14px;
    }

    header.shrink {
        transform: none;
        padding: 8px 14px;
    }

    .header-left,
    body.bdf-rush-mode .header-left {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .header-logo-wrap,
    body.bdf-rush-mode .header-logo-wrap {
        width: 100%;
        align-items: center;
    }

    .header-logo,
    body.bdf-rush-mode .header-logo {
        width: auto;
        max-width: 190px;
        height: auto;
        max-height: 105px;
    }

    /* VYHLEDÁVÁNÍ */
    .filters,
    body.bdf-rush-mode .filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
        gap: 8px;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .filters input,
    body.bdf-rush-mode .filters input[type="text"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .filters select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .filters button {
        grid-column: 1 / -1;
        width: 100%;
    }

    /* KATEGORIE POD VYHLEDÁVÁNÍM */
    .header-subcategories,
    .subcategory-bar {
        position: static;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        gap: 8px;
        margin: 0;
        padding: 4px 0 8px;
        scrollbar-width: thin;
    }

    .subcategory-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* MENU */
    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding-top: 0;
    }

    .menu a,
    .menu button,
    .nav-link,
    .back-home-btn {
        margin: 0;
        padding: 9px 11px;
        font-size: 14px;
    }

    /* SHOP BEZ BOČNÍHO PANELU */
    .layout {
        display: block;
        min-height: auto;
    }

    .sidebar {
        display: none;
    }

    .content {
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

    /* PRODUKTY */
    .products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .product {
        width: auto;
        min-width: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    .product img {
        width: 100%;
        height: 160px;
    }

    .product-title {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    body.light-mode .product-price,
    body.dark-mode .product-price {
        font-size: 16px;
    }

    /* DETAIL PRODUKTU */
    .product-detail {
        width: auto;
        max-width: none;
        margin: 16px 12px;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .media-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .detail-info {
        min-width: 0;
    }

    .detail-info h1 {
        font-size: 25px;
    }

    .detail-description {
        font-size: 16px;
    }

    .add-to-cart-form {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .variant-options {
        width: 100%;
    }

    .variant-choice {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* KOŠÍK */
    .cart-wrap {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 16px;
    }

    .cart-item {
        padding: 14px;
    }

    .qty-controls {
        display: flex;
        flex-wrap: wrap;
    }

    /* CHECKOUT */
    .checkout-page {
        width: auto;
        max-width: none;
        margin: 16px auto;
        padding: 0 12px;
    }

    .checkout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .checkout-form,
    .checkout-summary {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-form input,
    .checkout-form select {
        width: 100%;
        box-sizing: border-box;
    }

    .summary-item,
    .summary-row {
        gap: 10px;
    }

    /* ÚČET A ÚSPĚŠNÁ OBJEDNÁVKA */
    .account-box,
    .success-page {
        width: auto;
        max-width: none;
        margin: 16px 12px;
        padding: 16px;
        box-sizing: border-box;
    }

    .success-grid,
    body.bdf-rush-mode .success-grid {
        grid-template-columns: 1fr;
    }

    .success-product {
        align-items: flex-start;
    }

    /* BDF STRÁNKA */
    .bdf-rush-header {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 12px 16px;
    }

    .bdf-rush-logo {
        width: 190px;
        height: auto;
        max-height: 105px;
        align-self: center;
    }
    
    .bdf-rush-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bdf-rush-product {
        width: auto;
        min-width: 0;
        box-sizing: border-box;
    }

    .bdf-rush-product img {
        height: 160px;
    }

    /* COOKIES */
    .cookie-bar {
        width: calc(100% - 24px);
        bottom: 12px;
        padding: 14px;
        box-sizing: border-box;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons button {
        flex: 1;
    }
}


@media (max-width: 520px) {

    .shop-header {
        padding: 8px 10px;
    }

    .header-logo,
    body.bdf-rush-mode .header-logo,
    .bdf-rush-logo {
        max-width: 155px;
        max-height: 90px;
    }

    .lang-switch {
        grid-template-columns: repeat(7, auto);
        width: 100%;
        gap: 4px;
    }

    .lang-switch a {
        width: auto;
        min-width: 25px;
        height: auto;
        padding: 5px 3px;
        text-align: center;
    }

    .menu {
        justify-content: flex-start;
    }

    .menu a,
    .menu button {
        flex: 1 1 auto;
        text-align: center;
    }

    .content {
        padding: 10px;
    }

    .products,
    .bdf-rush-products {
        grid-template-columns: 1fr;
    }

    .product,
    .bdf-rush-product {
        width: 100%;
    }

    .product img,
    .bdf-rush-product img {
        height: 230px;
    }

    .product-detail {
        margin: 10px;
        padding: 12px;
        border-radius: 15px;
    }

    .media-thumbs button {
        width: 50px;
        height: 50px;
    }

    .add-to-cart-form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .add-to-cart-form > .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .variant-choice {
        width: 100%;
    }

    .summary-item,
    .summary-row,
    .success-product {
        align-items: flex-start;
    }

    .summary-row-final {
        font-size: 19px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .bdf-rush-page h1 {
        width: 100%;
        font-size: 18px;
        line-height: 1.2;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
}

.checkout-button-wrap{
    justify-content:stretch;
}

.checkout-btn{
    width:100%;
    min-width:0;
}

.cart-brand-section .checkout-button-wrap {
    width: 100%;
    margin-top: 24px;
}

.cart-brand-section .checkout-btn {
    display: block;
    width: fit-content;
    min-width: 320px;
    margin-left: auto;
    padding: 18px 34px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 14px;
    font-size: 19px;
    font-weight: bold;
    text-decoration: none;
}

.layout.layout-no-sidebar {
    display: block;
}

.layout.layout-no-sidebar .content {
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
}

@media (max-width: 700px) {

    .shop-header {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        padding: 6px 10px;
        box-sizing: border-box;
    }

    .header-left,
    body.bdf-rush-mode .header-left {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .header-logo-wrap,
    body.bdf-rush-mode .header-logo-wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-logo,
    body.bdf-rush-mode .header-logo {
        width: auto;
        max-width: 170px;
        height: auto;
        max-height: 95px;
    }

    .lang-switch {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
        width: 100%;
        margin-top: 2px;
    }

    .lang-switch a {
        width: auto;
        height: auto;
        min-width: 24px;
        padding: 2px 5px;
        text-align: center;
        font-size:10px;
        box-sizing: border-box;
    }

    .bdf-rush-btn {
        margin-top: 2px;
        font-size:12px;
        padding:6px 12px;
    }

    .filters,
    body.bdf-rush-mode .filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .filters input,
    .filters select,
    .filters button
    body.bdf-rush-mode .filters input[type="text"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        min-height: 38px;
        font-size: 14px;
    }

    .menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
        padding: 0;
    }

    .menu a,
    .menu button,
    .nav-link,
    .back-home-btn {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 7px;
        box-sizing: border-box;
        text-align: center;
        font-size: 12px;
    }

    .header-subcategories {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0 8px;
    }

    .subcategory-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    header.shrink {
        transform: none;
        padding: 8px 12px;
    }
}

@media (max-width: 700px) {
    .products,
    .bdf-rush-products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .product,
    .bdf-rush-product {
        width: 155px;
        min-width: 0;
        padding: 8px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .product img,
    .bdf-rush-product img {
        width: 100%;
        height: 125px;
        object-fit: contain;
        border-radius: 8px;
    }

    .product-title {
        font-size: 14px;
        line-height: 1.2;
        margin: 7px 0 5px;
        overflow-wrap: anywhere;
    }

    body.light-mode .product-price,
    body.dark-mode .product-price,
    .bdf-rush-product .product-price {
        font-size: 14px;
        margin: 5px 0 8px;
    }

    .product .btn,
    .product > a,
    .bdf-rush-product .btn {
        font-size: 12px;
        padding: 7px 8px;
    }

    .stock-badge {
        font-size: 11px;
        padding: 5px 7px;
    }

    .content,
    .bdf-rush-page {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.homepage {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

.home-entry {
    min-height: 100vh;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

body.light-mode.homepage {
    background: white;
    color: #111;
}

body.dark-mode.homepage {
    background: black;
    color: white;
}

.home-entry .logo-home-img {
    width: min(70vw, 650px);
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

.home-entry-text {
    margin-top: 18px;
}

.home-entry-text h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
}

.home-entry-text p {
    margin: 10px 0 0;
    font-size: 18px;
    opacity: 0.8;
}

.home-enter-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 28px;
    min-width: 250px;
    padding: 16px 28px;

    border-radius: 14px;
    background: #0f7a3c;
    color: white;

    text-decoration: none;
    font-size: 18px;
    font-weight: bold;

    box-shadow: 0 10px 28px rgba(15, 122, 60, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-enter-btn:hover {
    background: #0b5f2e;
    transform: translateY(-2px);
}

.home-redirect-info {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.65;
}

/* ==================================================
   MOBILNÍ HEADER – GLATMO + BDF RUSH
================================================== */

@media (max-width: 700px) {

    /* =========================
       GLATMO
    ========================= */

    .shop-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 6px 10px;
        gap: 6px;
        box-sizing: border-box;
    }

    /*
       display: contents umožní, aby logo, menu,
       vyhledávání a kategorie šly seřadit zvlášť.
    */
    .shop-header .header-left,
    body.bdf-rush-mode .shop-header .header-left {
        display: contents;
    }

    .shop-header .header-logo-wrap {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Logo necháváme větší */
    .shop-header .header-logo {
        width: auto;
        max-width: 170px;
        max-height: 95px;
        height: auto;
    }

    /* Menu bude NAD vyhledáváním */
    .shop-header .menu {
        order: 2;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

        width: 100%;
        gap: 4px;
        padding: 0;
        margin: 0;
    }

    .shop-header .menu a,
    .shop-header .menu button,
    .shop-header .nav-link,
    .shop-header .back-home-btn {
        width: auto;
        min-width: 0;

        margin: 0;
        padding: 5px 7px;

        font-size: 11px;
        line-height: 1.15;

        border-radius: 7px;
        text-align: center;
    }

    /* Vyhledávání POD menu */
    .shop-header .filters {
        order: 3;

        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;

        gap: 5px;
        margin: 0;
    }

    .shop-header .filters input,
    .shop-header .filters select,
    .shop-header .filters button {
        width: 100%;
        min-width: 0;
        min-height: 36px;

        padding: 6px 9px;
        box-sizing: border-box;

        font-size: 13px;
    }

    /* Kategorie úplně dole */
    .shop-header .header-subcategories {
        order: 4;

        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;

        width: 100%;
        gap: 6px;
        padding: 2px 0 5px;
        margin: 0;
    }

    .shop-header .subcategory-btn {
        flex: 0 0 auto;
        padding: 5px 9px;
        font-size: 11px;
        white-space: nowrap;
    }


    /* =========================
       BDF RUSH
    ========================= */

    .bdf-rush-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: auto;
        padding: 5px 12px 8px;
        gap: 4px;
        box-sizing: border-box;
    }
    
    .bdf-rush-header > a {
        order: 1;
        align-self: center;
        line-height: 0;
    }
    
    .bdf-rush-logo {
        width: auto;
        max-width: 155px;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }
    
    .bdf-rush-menu {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 3px;
        margin: 0;
        padding: 0;
    }
    
    .bdf-rush-menu a {
        width: auto;
        margin: 0;
        padding: 4px 7px;
        font-size: 11px;
        line-height: 1.1;
    }
    
    .bdf-rush-filterbar {
        order: 3;
        width: 88%;
        max-width: 360px;
        margin: 0 auto;
        transform: none;
    }
    
    .bdf-rush-filters {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 4px;
        margin: 0 0 4px;
    }
    
    .bdf-rush-filters input,
    .bdf-rush-filters select,
    .bdf-rush-filters button {
        width: 100%;
        min-width: 0;
        height: 30px;
        padding: 3px 8px;
        box-sizing: border-box;
        font-size: 12px;
    }
    
    .bdf-rush-categories,
    .bdf-rush-subcategories {
        margin: 2px 0;
    }

    .bdf-rush-category-btn,
    .bdf-rush-subcategory-btn {
        flex: 0 0 auto;

        padding: 5px 9px;
        font-size: 11px;

        white-space: nowrap;
    }
}

/* =========================================
   TLAČÍTKO OBLÍBENÉ – GLATMO + BDF
   ========================================= */

.favorite-form {
    margin-top: 14px;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 14px;

    padding: 10px 16px;
    border: 1px solid #777;
    border-radius: 8px;

    background: #555;
    color: white;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: 0.2s ease;
}

.favorite-btn:hover {
    background: #666;
    transform: translateY(-1px);
}

/* =========================================
   BDF RUSH - FINÁLNÍ VELIKOST KARET
========================================= */

@media (max-width: 700px) {

    .bdf-rush-products {
        display: grid;
        grid-template-columns: repeat(2, 155px);
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .bdf-rush-product {
        width: 155px;
        min-width: 0;
        padding: 7px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .bdf-rush-product img {
        width: 100%;
        height: 115px;
        object-fit: contain;
        border-radius: 8px;
    }

    .bdf-rush-product .product-title {
        font-size: 13px;
        line-height: 1.2;
        margin: 6px 0 4px;
    }

    .bdf-rush-product .product-price {
        font-size: 13px;
        margin: 4px 0 6px;
    }

    .bdf-rush-product .bdf-cart-btn {
        font-size: 11px;
        padding: 6px 7px;
        border-radius: 7px;
    }

    .bdf-rush-product .bdf-detail-btn {
        font-size: 11px;
        padding: 6px 7px;
        border-radius: 7px;
    }
}

/* =========================================
   KOŠÍK - POKRAČOVAT K POKLADNĚ
========================================= */

.checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    padding: 11px 16px;

    border-radius: 10px;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}


/* GLATMO */

.checkout-btn-glatmo {
    background: #176b38;
    color: white !important;
    border: 1px solid #23994f;
    box-shadow: 0 5px 14px rgba(20, 100, 55, 0.25);
}

.checkout-btn-glatmo:hover {
    background: #208448;
    box-shadow: 0 7px 18px rgba(20, 100, 55, 0.35);
}


/* BDF RUSH */

.checkout-btn-bdf {
    background: linear-gradient(
        135deg,
        #c8a52d,
        #f4d45c
    );

    color: #111 !important;
    border: 1px solid #e7c84d;

    box-shadow: 0 5px 14px rgba(244, 197, 66, 0.25);
}

.checkout-btn-bdf:hover {
    background: linear-gradient(
        135deg,
        #d7b43a,
        #ffe477
    );

    box-shadow: 0 7px 18px rgba(244, 197, 66, 0.38);
}

@media (max-width: 700px) {

    .checkout-btn {
        width: 100%;
        max-width: 260px;
        box-sizing: border-box;
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* =========================================
   DOPRAVA - JEDNODUCHÉ ŘÁDKY V HEADERU
========================================= */

.header-shipping-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;

    margin: 4px auto 6px;
    padding: 0;

    text-align: center;
}

.header-shipping-line {
    width: auto;
    padding: 2px 8px;

    border: none;
    background: none;

    font-size: 13px;
    line-height: 1.3;
}

.header-shipping-free {
    font-weight: 700;
}


/* GLATMO */

body.light-mode .glatmo-header-shipping .header-shipping-line {
    color: #104224;
    background: none;
    border: none;
}

body.dark-mode .glatmo-header-shipping .header-shipping-line {
    color: #7dffaa;
    background: none;
    border: none;
}


/* BDF RUSH */

.bdf-header-shipping .header-shipping-line {
    color: #f7df82;
    background: none;
    border: none;
}

.bdf-header-shipping .header-shipping-free {
    color: #ffd95a;
}


/* MOBIL */

@media (max-width: 700px) {

    .header-shipping-stack {
        margin: 3px auto 5px;
    }

    .header-shipping-line {
        font-size: 11px;
        padding: 1px 5px;
    }
}

/* =========================================
   GLATMO - DOPRAVA POD PŘIHLÁŠENÍM
========================================= */

.glatmo-menu-shipping {
    width: 100%;
    margin-top: 4px;

    text-align: right;

    font-size: 12px;
    line-height: 1.4;
}

body.light-mode .glatmo-menu-shipping {
    color: #104224;
}

body.dark-mode .glatmo-menu-shipping {
    color: #7dffaa;
}

.glatmo-menu-shipping strong {
    font-weight: 700;
}

@media (max-width: 700px) {
    .glatmo-menu-shipping {
        text-align: center;
        font-size: 11px;
        margin-top: 5px;
    }
}

/* =========================================
   BDF RUSH - KOMPAKTNÍ HEADER V KOŠÍKU
========================================= */

@media (min-width: 701px) {

    .shop-header.bdf-cart-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100%;
        min-height: 120px !important;

        gap: 28px !important;
        padding: 10px 28px !important;

        box-sizing: border-box;
    }

    /* LEVÁ ČÁST */
    .bdf-cart-header .header-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        flex: 1;
        gap: 28px;
    }

    /* LOGO + JAZYKY + BDF TLAČÍTKO */
    .bdf-cart-header .header-logo-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        flex: 0 0 220px;

        margin: 0 !important;
        padding: 0 !important;
    }

    .bdf-cart-header .header-logo {
        height: 105px !important;
        width: auto !important;
    }

    /* HLEDÁNÍ */
    .bdf-cart-header .filters {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        flex: 1;
        max-width: 520px;

        margin: 0 !important;
        gap: 8px !important;
    }

    .bdf-cart-header .filters input {
        flex: 1;
        min-width: 160px !important;
    }

    /* MENU */
    .bdf-cart-header .menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;

        width: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 12px !important;
    }

    /* DOPRAVA */
    .bdf-cart-header .glatmo-menu-shipping {
        flex-basis: 100%;

        margin: 4px 0 0 !important;

        text-align: right;
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
    }
}


/* =========================================
   GLATMO - FINÁLNÍ KOMPAKTNÍ DESKTOP HEADER
========================================= */

@media (min-width: 701px) {

    body:not(.bdf-rush-mode) .shop-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100%;
        min-height: 0;
        box-sizing: border-box;

        gap: 24px;
        padding: 10px 24px !important;
    }

    /* LEVÁ + STŘEDNÍ ČÁST */
    body:not(.bdf-rush-mode) .shop-header .header-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        flex: 1;
        gap: 28px;
    }

    /* LOGO + JAZYKY + BDF */
    body:not(.bdf-rush-mode) .header-logo-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        flex: 0 0 190px;
        padding: 0 !important;
        margin: 0 !important;
    }

    body:not(.bdf-rush-mode) .header-logo {
        height: 85px !important;
        width: auto !important;
    }

    body:not(.bdf-rush-mode) .lang-switch {
        margin-top: 3px;
    }

    body:not(.bdf-rush-mode) .bdf-rush-btn {
        margin-top: 5px;
    }

    /* HLEDÁNÍ */
    body:not(.bdf-rush-mode) .filters {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        flex: 1;
        max-width: 520px;

        margin: 0 !important;
        gap: 8px;
    }

    body:not(.bdf-rush-mode) .filters input {
        flex: 1;
        min-width: 160px;
    }

    /* PRAVÁ ČÁST */
    body:not(.bdf-rush-mode) .shop-header .menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;

        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;

        gap: 12px;
    }

    /* DOPRAVNÍ INFORMACE VPRAVO */
    body:not(.bdf-rush-mode) .glatmo-menu-shipping {
        flex: 0 0 auto;
        width: auto;

        margin: 0 0 0 16px;

        text-align: right;
        white-space: nowrap;

        font-size: 12px;
        line-height: 1.45;
    }
}

/* BDF KOŠÍK - MENŠÍ JAZYKOVÁ TLAČÍTKA */
@media (min-width: 701px) {

    .bdf-cart-header .lang-switch {
        display: flex !important;
        flex-wrap: wrap;
        gap: 3px !important;
        max-width: 150px;
    }

    .bdf-cart-header .lang-switch a {
        font-size: 10px !important;
        line-height: 1 !important;
        padding: 3px 6px !important;
        min-width: 0 !important;
        height: auto !important;
        border-radius: 6px !important;
    }

    .bdf-cart-header .header-logo {
        height: 135px !important;
        width: auto !important;
    }
}
