/* css/style.css - vzhled pro vinotéku (upraveno) */

/* Barvy a proměnné */
:root{
    --brand-berry: #7b1f2d; /* tlumená bordó */
    --brand-dark: #61252b;
    --accent: #a01927;
    --muted: #7d7d7d;
    --muted-bg: #f6fbfb;
    --card-border: #f0f0f0;
    --shadow: rgba(0,0,0,0.06);
    --max-page-width: 1200px;
    --radius: 6px;
}

/* Reset drobností */
*{box-sizing:border-box}
html,body{height:100%}
body{
    font-family: "Helvetica Neue", Arial, sans-serif;
    color:#333;
    background:#fff;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.45;
}

/* HLAVIČKA */
.site-header .topbar{
    background:var(--brand-dark);
    color:#fff;
    font-size:14px;
}
.site-header .topbar a{ color:rgba(255,255,255,0.9); text-decoration:none; }
.site-header .topbar a:hover{ color:#fff; text-decoration:underline; }

.navbar{
    border-bottom:1px solid #eee;
    padding-top:10px;
    padding-bottom:10px;
}
.navbar-brand{
    font-weight:700;
    color:var(--brand-dark) !important;
    letter-spacing:0.6px;
}
.navbar .nav-link{ color:#333; }
.navbar .nav-link:hover{ color:var(--brand-berry); }

/* Search form */
.form-inline .custom-select{
    border-radius:4px;
    border-color:#e9e9e9;
}
.form-inline .form-control{
    min-width:240px;
    border-radius:4px;
}

/* HERO / SLIDER */
.carousel{
    position:relative;
}
.hero-img{
    width:100%;
    height:420px;
    object-fit:cover;
    border-radius:4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* KONTEJNER */
.container{
    max-width: var(--max-page-width);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Sekce titulky */
.section-title{
    font-weight:700;
    margin-bottom:6px;
    color:#222;
    font-size:20px;
}
.text-muted{ color:var(--muted) !important; }

/* Vína měsíce - featured produkty */
.product-card{
    background:#fff;
    border:1px solid var(--card-border);
    border-radius:6px;
    padding-bottom:8px;
    box-shadow: 0 6px 18px var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.product-img{
    max-width:160px;
    height:200px;
    object-fit:contain;
    margin:12px auto 0;
    display:block;
}
.product-name{
    font-size:14px;
    margin-top:8px;
    color:#333;
}
.product-price{
    color:var(--accent);
    font-weight:700;
    margin-top:6px;
}

/* Kategorie jako dlaždice */
.categories-row{
    display:flex;
    flex-wrap:wrap;
    margin-left:-12px;
    margin-right:-12px;
}
.categories-row .col-6, .categories-row .col-md-4{
    padding-left:12px;
    padding-right:12px;
}
.category-card{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:6px;
    text-decoration:none;
    color:#fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover{ transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.category-image{
    height:180px;
    background-size:cover;
    background-position:center;
    border-radius:6px;
    display:block;
    width:100%;
    filter:brightness(.9);
}
.category-label{
    position:absolute;
    left:16px;
    bottom:16px;
    background:var(--brand-berry);
    padding:9px 14px;
    border-radius:3px;
    font-weight:700;
    font-size:14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Products Grid - hlavní mřížka */
#productsGrid{
    margin-top:18px;
}
#productsGrid .col-6{ padding-left:8px; padding-right:8px; }

/* Load more */
#loadMoreBtn{
    border-radius:4px;
    background:#fff;
    color:#333;
    border:1px solid #ddd;
    padding:8px 18px;
}
#loadMoreBtn:disabled{
    opacity:.7;
    cursor:not-allowed;
}

/* News sekce */
.news-section{
    background:var(--muted-bg);
    border-radius:8px;
    padding:28px;
    margin-bottom:40px;
}
.news-card{
    border:0;
    background:#fff;
    border-radius:6px;
    overflow:hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.news-card img{
    width:100%;
    height:140px;
    object-fit:cover;
}
.news-card .card-body{ padding:18px; }
.read-more{ color:var(--brand-berry); font-weight:600; text-decoration:none; }
.read-more:hover{ text-decoration:underline; }

/* Footer */
.site-footer{
    border-top:1px solid #eee;
    background:#fff;
}

/* Utility: small badge for cart */
.cart-badge{
    display:inline-block;
    min-width:20px;
    padding:2px 7px;
    font-size:12px;
    color:#fff;
    background:var(--brand-berry);
    border-radius:20px;
    text-align:center;
}

/* Placeholder obrázek styl */
.no-image{
    width:100%;
    height:160px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fafafa;
    border:1px dashed #eee;
    color:#bbb;
    font-size:14px;
}

/* Responsive úpravy */
@media (max-width:991px){
    .hero-img{ height:320px; }
    .product-img{ height:170px; }
    .category-image{ height:150px; }
}

@media (max-width:767px){
    .hero-img{ height:220px; }
    .product-img{ height:140px; max-width:120px; }
    .category-image{ height:120px; }
    .form-inline .form-control{ min-width:120px; }
    .section-title{ font-size:18px; }
    .categories-row .col-6{ margin-bottom:12px; }
}

/* Drobná přizpůsobení pro tisk / minimal */
@media print{
    .site-header, .site-footer, .carousel, #loadMoreBtn { display:none !important; }
    body{ background:#fff; color:#000; }
}
/* --- Add/replace these rules to make the dropdown and category tiles turn navbar-red on hover / active --- */

/* ensure brand color is defined (if not, set as in header) */
:root {
    --brand-dark: #61252b; /* navbar red/bordó */
}

/* Toggle (visible obdélník) - hover i když je panel otevřený */
.category-dropdown-toggle {
    transition: background .12s ease, color .12s ease, border-color .12s ease, transform .09s ease;
    background: #fff;
    color: #222;
}
.category-dropdown-toggle:hover,
.category-dropdown.open .category-dropdown-toggle,
.category-dropdown-toggle:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Panel položky: bílé obdélníky, při hoveru/active zčervenají jako navbar */
.category-dropdown-item {
    background: #fff;
    color: #333;
    transition: background .12s ease, color .12s ease, transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.category-dropdown-item:hover,
.category-dropdown-item:focus,
.category-dropdown-item.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
/* text inside položky */
.category-dropdown-item .category-label,
.category-dropdown-toggle .category-dropdown-title {
    transition: color .12s ease;
}
.category-dropdown-item:hover .category-label,
.category-dropdown-item.active .category-label,
.category-dropdown.open .category-dropdown-toggle .category-dropdown-title {
    color: #fff;
}

/* pokud používáš tile verzi (category-item), zachovat stejné chování */
.category-item {
    background: #fff;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.category-item:hover,
.category-item:focus,
.category-item input[type="checkbox"]:checked + .category-label {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-3px);
}
.category-item:hover .category-label,
.category-item input[type="checkbox"]:checked + .category-label {
    color: #fff;
}

/* drop-down panel visibility on keyboard focus (accessibility) */
.category-dropdown-panel:focus { outline: none; }

/* small screens: disable translate animations that can feel jumpy */
@media (max-width:576px) {
    .category-dropdown-toggle:hover,
    .category-dropdown-item:hover,
    .category-item:hover { transform: none; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
}
/* Ensure brand color */
:root { --brand-dark: #61252b; }

/* Toggle (viditelný obdélník) */
.category-dropdown { position: relative; display:inline-block; min-width:180px; }
.category-dropdown-toggle {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    background:#fff;
    border:1px solid #f0f0f0;
    padding:8px 12px;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(0,0,0,0.03);
    cursor:pointer;
    color: #222;
    transition: background .12s ease, color .12s ease, border-color .12s ease, transform .09s ease, box-shadow .12s ease;
}

/* Make sure inner title inherits color and has transparent bg */
.category-dropdown-toggle .category-dropdown-title {
    background: transparent;
    color: inherit;
}

/* Hover / open state: whole toggle turns navbar-red */
.category-dropdown-toggle:hover,
.category-dropdown.open .category-dropdown-toggle,
.category-dropdown-toggle:focus {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Panel and items */
.category-dropdown-panel {
    position:absolute; left:0; top:calc(100% + 8px);
    z-index:999; display:none; width:320px; max-height:260px; overflow-y:auto; padding:6px;
}
.category-dropdown.open .category-dropdown-panel { display:block; }

/* Item default */
.category-dropdown-item {
    background:#fff;
    color:#333;
    border-radius:8px;
    border:1px solid #f0f0f0;
    padding:10px 12px;
    margin-bottom:8px;
    box-shadow:0 6px 18px rgba(0,0,0,0.03);
    transition: background .12s ease, color .12s ease, transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    cursor:pointer;
}

/* Hover / active for items */
.category-dropdown-item:hover,
.category-dropdown-item:focus,
.category-dropdown-item.active {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.category-dropdown-item .category-label { color: inherit; transition: color .12s ease; }

@media (max-width:576px) {
    .category-dropdown-toggle:hover,
    .category-dropdown-item:hover { transform: none; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
}
/* Přidejte na konec css/style.css */

/* Barva navbaru */
:root { --brand-dark: #61252b; }

/* Tlačítko ve stylu navbar (červené/bordó) */
.btn-navbar {
    display: inline-block;
    color: #fff;
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transition: background-color .12s ease, border-color .12s ease, transform .08s ease, box-shadow .12s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.btn-navbar:hover,
.btn-navbar:focus {
    background-color: #4f1b24; /* tmavší odstín pro hover */
    border-color: #4f1b24;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    outline: none;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.btn-navbar:active {
    background-color: #3f151b;
    border-color: #3f151b;
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Pokud chcete, aby tlačítko zůstalo stejné i v disabled stavu */
.btn-navbar[disabled],
.btn-navbar.disabled {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    opacity: 0.65;
    cursor: not-allowed;
}
/* ---------- Banner / Carousel styles (přidat na konec css/style.css) ---------- */

:root { --banner-height-desktop: 420px; --banner-height-mobile: 220px; --brand-dark: #61252b; }

.home-banner {
    position: relative;
}

/* výška a crop obrázků */
.home-banner .carousel-item {
    height: var(--banner-height-desktop);
}
.home-banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* caption styling (volitelné) */
.home-banner .carousel-caption {
    background: rgba(0,0,0,0.28);
    padding: 10px 14px;
    border-radius: 6px;
    bottom: 20px;
}

/* zmenšení výšky na mobilu */
@media (max-width: 767.98px) {
    .home-banner .carousel-item { height: var(--banner-height-mobile); }
    .home-banner .carousel-caption { display: none; } /* skryjeme caption na mobilu, pokud chceš zachovat, odeber tento řádek */
}

/* větší a kontrastnější šipky */
.home-banner .carousel-control-prev,
.home-banner .carousel-control-next {
    width: 6%;
    opacity: 1;
}
.home-banner .carousel-control-prev-icon,
.home-banner .carousel-control-next-icon {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    background-size: 32px 32px;
}

/* aby indikátory byly vidět na obrázku */
.home-banner .carousel-indicators li {
    background-color: rgba(255,255,255,0.7);
}
.home-banner .carousel-indicators .active {
    background-color: var(--brand-dark);
}

/* optional: reduce margin-bottom so banner flows nicely into products */
.home-banner { margin-bottom: 1.5rem; }
.bg-login-wrap {
    position: fixed;
    top:0; left:0; width:100vw; height:100vh;
    z-index: 0;
    background: #fcfcfc url('images/Banner/bg.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(2.5px) brightness(0.78);
}
.login-center-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.login-card {
    /* ... ostatní styly ... */
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.95);   /* bílý poloprůhledný podklad pro lepší čitelnost */
    box-shadow: 0 2px 14px rgba(80,0,0,0.12);
}
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-card .product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-card .btn-hover {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px;
    background: #61252b;
    color: #fff;
    transition: all 0.3s;
}

.product-card:hover .btn-hover {
    display: block;
}

.product-card .btn-hover:hover {
    background: #480d17;
}
.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.category-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #7b1f2d;
    padding: 10px 14px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Globální pravidlo pro zarovnání h1 na střed */
.container h1 {
    text-align: center; /* Zarovnání textu na střed */
    margin-bottom: 24px; /* Pokračování původní mezery */
}

/* Specifické pravidlo jen pro nadpis "Produkty" */
.container h1.mb-4 {
    text-align: center; /* Zarovnání textu na střed */
    margin-bottom: 24px; /* Udržení původního odstupu */
}
/* layout: footer vždy dole */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
.site-main {
    flex: 1 0 auto; /* hlavní obsah roste a zatlačí footer dolů */
    padding-top: 20px;    /* upravitelné - mezera nahoře */
    padding-bottom: 30px; /* místo mezi koncem obsahu a footerem */
}

/* Footer nastavení */
.site-footer {
    margin-top: auto;
    background: #f8f9fa;
    color: #6c757d;
    padding-top: 18px;
    padding-bottom: 18px;
}

/* případně menší text pro "Cena bez DPH" */
.small-muted { font-size: 0.9rem; color: #666; }
.cart-qty-input {
    width: 76px;                 /* šířka vhodná pro 2-3 cifry */
    padding: 8px 10px;          /* vnitřní odsazení */
    border-radius: 10px;        /* zaoblené rohy */
    border: 1px solid #e6e6e6;  /* jemný okraj */
    background: #fff;
    box-shadow: 0 4px 10px rgba(98,37,43,0.04); /* lehký stín */
    text-align: center;         /* čísla na střed */
    font-weight: 600;           /* tučnější čísla */
    font-size: 0.95rem;
    color: #222;
    transition: border-color .12s ease, box-shadow .12s ease, transform .06s ease;
    -webkit-appearance: none;   /* odstraní default spinner v Safari/Chrome (někdy) */
    -moz-appearance: textfield; /* odstraní spinner v Firefoxu */
    appearance: none;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Focus efekt */
.cart-qty-input:focus {
    outline: none;
    border-color: #61252b; /* vinová barva */
    box-shadow: 0 6px 18px rgba(97,37,43,0.12), 0 0 0 4px rgba(97,37,43,0.06);
    transform: translateY(-1px);
}

/* Disabled/readonly stav */
.cart-qty-input:disabled,
.cart-qty-input[readonly] {
    opacity: 0.7;
    background: #fafafa;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .cart-qty-input { width: 60px; padding: 6px 8px; font-size: 0.9rem; }
}
.search-box .search-input {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 6px 18px rgba(98,37,43,0.03);
    transition: box-shadow .12s ease, border-color .12s ease;
}
.search-box .search-input:focus {
    outline: none;
    border-color: #61252b;
    box-shadow: 0 8px 24px rgba(97,37,43,0.08);
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(34,34,34,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(34,34,34,0.09); }

.product-img { width:100%; height:180px; object-fit:cover; display:block; background:#f5f5f5; }

.product-name { font-size:1rem; font-weight:700; color:#222; margin-bottom:6px; }
.product-sub { font-size:.9rem; color:#777; margin-bottom:6px; }

.product-price { font-size:1.05rem; font-weight:700; color:#61252b; }

.btn-koupit {
    display:inline-block; padding:8px 14px; border-radius:4px;
    background:linear-gradient(180deg,#7a1720,#7a1720); color:#fff; font-weight:700;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18); border: none;
}
.btn-koupit:disabled { opacity: .7; cursor: default; }

.added-badge {
    position:absolute; left:50%; transform:translateX(-50%); top:12px;
    background:rgba(97,37,43,0.95); color:#fff; padding:6px 12px; border-radius:20px;
    font-size:.9rem; display:none; z-index:40; pointer-events:none;
}

.qty-wrapper { display:flex; align-items:center; gap:8px; }
.cart-qty-input {
    width:72px; padding:8px 10px; border-radius:10px; border:1px solid #e6e6e6;
    text-align:center; font-weight:600; font-size:.95rem; background:#fff;
    -webkit-appearance:none; -moz-appearance:textfield; appearance:none;
}
.cart-qty-input::-webkit-outer-spin-button, .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.qty-btn {
    width:36px; height:36px; border-radius:8px; border:1px solid #e6e6e6;
    background:#fff; color:#61252b; font-size:18px; display:inline-flex;
    align-items:center; justify-content:center; cursor:pointer;
}

.product-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }

@media (max-width:720px) {
    .product-actions { flex-direction:column; gap:10px; }
    .product-img { height:150px; }
    .product-card { min-height:300px; }
}
/* Add these rules to your style.css (or merge) */

.btn-fav {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:8px;
    background:transparent;
    border:1px solid #eee;
    color:#61252b;
    font-weight:700;
    cursor:pointer;
}
.btn-fav:hover { box-shadow: 0 8px 18px rgba(34,34,34,0.04); transform: translateY(-2px); }
.btn-fav.favorited {
    background: rgba(178,34,34,0.06);
    border-color: rgba(178,34,34,0.18);
    color: #7a1720;
}

/* Root brand color (ensure this exists in your main CSS too) */
:root { --brand-dark: #61252b; }

/* Grid wrapper */
#favoritesGrid { margin-top: 8px; }

/* Tile / card */
.product-item .card,
.product-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(34,34,34,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
    cursor: default;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.product-item .card:hover,
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(34,34,34,0.09); }

/* Image (wrapped in anchor) */
.product-link { display:block; text-decoration:none; color:inherit; }
.product-link .product-img,
.product-item .card .product-img,
.product-card .product-img {
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
    background:#f5f5f5;
}

/* Content */
.product-item .card .product-name,
.product-card .product-name {
    font-size:1rem;
    font-weight:700;
    color:#222;
    margin-bottom:6px;
}
.product-item .card .product-sub,
.product-card .product-sub {
    font-size:.9rem;
    color:#777;
    margin-bottom:6px;
}

.product-item .card .product-price,
.product-card .product-price {
    font-size:1.05rem;
    font-weight:700;
    color:var(--brand-dark);
}

/* Card body spacing */
.product-item .card .card-body,
.product-card .card-body {
    display:flex;
    flex-direction:column;
    padding:16px;
}
.product-item .card .card-body .mt-auto,
.product-card .card-body .mt-auto {
    margin-top: auto;
}

/* Buttons */
.btn-koupit {
    display:inline-block;
    padding:8px 14px;
    border-radius:4px;
    background:linear-gradient(180deg,#7a1720,#7a1720);
    color:#fff;
    font-weight:700;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18);
    border: none;
}
.btn-koupit:disabled { opacity:.7; cursor:default; }

/* Favorite button (used elsewhere) */
.btn-fav {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:8px;
    background:transparent;
    border:1px solid #eee;
    color:var(--brand-dark);
    font-weight:700;
    cursor:pointer;
    transition: box-shadow .12s ease, transform .08s ease;
}
.btn-fav:hover { box-shadow: 0 8px 18px rgba(34,34,34,0.04); transform: translateY(-2px); }
.btn-fav.favorited {
    background: rgb(0, 0, 0);
    border-color: rgba(178,34,34,0.18);
    color: #7a1720;
}

/* action-group: spacing between buttons (16px) */
.action-group,
.product-item .card .card-body .mt-auto {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;            /* 16px between buttons */
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Detail button (anchor) - keep above overlays and ensure pointer */
.detail-btn {
    position: relative;
    z-index: 5; /* above remove-fav */
    pointer-events: auto;
}

.product-item .card a,
.product-item .card .card-body {
    position: relative;
    pointer-events: auto;
}

/* If any overlay (e.g. .added-badge) exists, keep it non-interactive so links work */
.added-badge { pointer-events: none; z-index: 2; }

/* Small muted helper text */
.small-muted { font-size: 0.9rem; color: #666; }

/* Responsive tweaks */
@media (max-width: 992px) {
    .product-item .card .product-img { height:160px; }
}
@media (max-width: 720px) {
    .product-item .card .product-img { height:150px; }
    .product-item .card { min-height:300px; }
    .product-actions { flex-direction:column; gap:10px; }
}

/* favorites count badge in header (optional) */
.favorites-badge, .favorites-count {
    display:inline-block; min-width:22px; padding:2px 8px; font-size:0.9rem;
    background:#7a1720; color: #ffffff; border-radius:12px; text-align:center;
    vertical-align:middle; margin-left:6px; font-weight:700;
}
.remove-fav {
    display: inline-block;
    padding: 8px 14px;                  /* stejná výška/odsazení jako btn-koupit */
    border-radius: 4px;                 /* stejný radius */
    background: linear-gradient(180deg, var(--brand-dark), #7a1720);
    color: #ffffff;                     /* jemně offs-white pro čitelnost */
    font-weight: 700;
    border: none;
    box-shadow: 0 6px 18px rgba(97,37,43,0.18);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
    text-align: center;
    line-height: 1;
}

/* Hover / focus / active / disabled */
.remove-fav:hover,
.remove-fav:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(97,37,43,0.18);
    outline: none;
}
.remove-fav:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(97,37,43,0.12);
}
.remove-fav[disabled],
.remove-fav:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 12px rgba(97,37,43,0.08);
}

/* Volitelně drobná variantní třída pro menší verzi (pokud používáš btn-sm) */
.remove-fav.sm {
    padding: 6px 10px;
    font-size: 0.9rem;
}
.account-page { padding: 20px 0; }
.account-left, .account-right { gap: 16px; }

/* Reuse product-card look but make dedicated account-card for consistent paddings */
.account-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* Profile form */
.profile-form label { display:block; font-weight:700; margin-bottom:6px; color:#222; }
.profile-form .form-control {
    width:100%;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid #e6e6e6;
    background:#fff;
    box-shadow: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.profile-form .form-control:focus {
    outline:none;
    border-color: var(--brand-dark);
    box-shadow: 0 6px 18px rgba(97,37,43,0.08);
}

/* Action buttons row inside profile */
.profile-actions { margin-top:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.btn-koupit { padding:10px 16px; border-radius:8px; }
.btn-navbar { padding:8px 12px; border-radius:8px; text-decoration:none; display:inline-flex; align-items:center; }

/* Orders list */
.orders-list { display:flex; flex-direction:column; gap:12px; }
.order-card {
    border:1px solid var(--card-border);
    border-radius:10px;
    padding:12px;
    background:#fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}
.order-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}
.order-meta { color:#444; font-size:0.95rem; }
.order-total { font-weight:800; color:var(--brand-dark); font-size:1.05rem; }

/* Order items list inside card */
.order-items { margin-top:12px; border-top:1px dashed #eee; padding-top:12px; }
.order-items .oi-row { display:flex; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.02); }
.order-items .oi-row:last-child { border-bottom: none; }
.oi-thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
.oi-desc { flex:1; }
.oi-desc a { font-weight:700; color:#222; text-decoration:none; }
.oi-desc .small-muted { color:#777; font-size:0.92rem; }

/* Purchased history grid */
.purchased-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap:12px;
    margin-top:8px;
}
.purchased-tile {
    background:#fff;
    border:1px solid var(--card-border);
    border-radius:8px;
    padding:10px;
    text-align:left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}
.purchased-tile img { width:100%; height:120px; object-fit:cover; border-radius:6px; border:1px solid #eee; }
.purchased-tile .title { margin-top:8px; font-weight:700; color:#222; font-size:0.95rem; }
.purchased-tile .meta { color:#777; font-size:0.9rem; margin-top:6px; }

/* Small helpers */
.account-legend { font-weight:700; margin-bottom:8px; color:#222; }
.no-orders { padding:12px; background:#fff; border:1px dashed #eee; border-radius:8px; color:#666; }

/* Responsive */
@media (max-width: 992px) {
    .account-top { display:block; }
    .account-left, .account-right { width:100%; }
    .purchased-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 576px) {
    .profile-actions { flex-direction:column; align-items:stretch; }
    .order-top { flex-direction:column; align-items:stretch; gap:8px; }
}

/* Accessibility / focus */
a:focus, button:focus, input:focus { outline: 3px solid rgba(97,37,43,0.08); outline-offset: 2px; }

/* Optional: subtle animation for saved flash */
.flash-saved {
    animation: flashFade 1.6s ease-in-out;
}
@keyframes flashFade { 0% { opacity:0 } 10% { opacity:1 } 90% { opacity:1 } 100% { opacity:0 } }

.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-gate-box {
    background: #fff;
    color: #222;
    max-width: 520px;
    width: calc(100% - 40px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    text-align: center;
}

.age-gate-box h2 { margin: 0 0 8px; font-size: 1.25rem; }
.age-gate-box p { margin: 0 0 14px; color: #444; }

.age-gate-actions { display:flex; gap: 12px; justify-content: center; margin-top: 8px; flex-wrap:wrap; }
.age-gate-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight:700;
    min-width:120px;
}
.age-gate-accept {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(97,37,43,0.18);
}
.age-gate-accept:hover { background: #4f1b24; }

.age-gate-deny {
    background: #fff;
    color: #333;
    border: 1px solid #e6e6e6;
}
.age-gate-deny:hover { background: #fafafa; }

/* fallback links styling */
.age-gate-link { color: var(--brand-dark); font-weight:700; text-decoration: none; }
.age-gate-link:hover { text-decoration: underline; }

/* small screens */
@media (max-width:480px) {
    .age-gate-box { padding:16px; }
    .age-gate-accept, .age-gate-deny { min-width: 100px; padding:10px 12px; }
}
.age-gate-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.72); display:flex; align-items:center; justify-content:center; z-index:9999; }
.age-gate-box { background:#fff; padding:20px; border-radius:10px; max-width:520px; width:calc(100% - 40px); text-align:center; box-shadow:0 14px 40px rgba(0,0,0,0.35); }
.age-gate-actions { display:flex; gap:12px; justify-content:center; margin-top:10px; flex-wrap:wrap; }
.age-gate-btn { padding:10px 14px; border-radius:8px; font-weight:700; min-width:120px; cursor:pointer; border:0; }
.age-gate-accept { background:#6b2b2f; color:#fff; } .age-gate-deny { background:#fff; color:#333; border:1px solid #e6e6e6; }

/* Definuj brand barvu (uprav hex dle svého navbaru) */
:root {
    --brand-color: #6b2b2f; /* uprav dle barvy navbaru */
    --brand-contrast: #ffffff;
}

/* Pokud máš .site-header, použij stejnou barvu (přes var(--brand-color)) */
.site-header {
    background: var(--brand-color);
    color: var(--brand-contrast);
}

/* Hlavní tlačítko (upraví i tlačítko odeslat objednávku) */
.btn-primary,
button.btn-primary {
    background: var(--brand-color) !important;
    color: var(--brand-contrast) !important;
    border: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn-primary:hover,
button.btn-primary:hover {
    filter: brightness(0.95);
}

/* Košík (account-card) */
.account-card {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

/* Jedna položka v košíku */
.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4;
}
.cart-item:last-child {
    border-bottom: none;
}

/* Thumbnail */
.cart-item .thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
    flex: 0 0 56px;
}
.cart-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Meta (název + qty) */
.cart-item .meta {
    flex: 1 1 auto;
}
.cart-item .meta .title {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
}
.cart-item .meta .qty {
    color: #777;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* Cena vpravo */
.cart-item .price {
    flex: 0 0 90px;
    text-align: right;
    font-weight: 700;
    color: #222;
}

/* Mezisednutí/poznámka */
.account-card .small-muted {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive drobnosti */
@media (max-width: 768px) {
    .cart-item { gap: 8px; }
    .cart-item .thumb { width: 48px; height: 48px; flex: 0 0 48px; }
    .cart-item .price { flex: 0 0 70px; font-size: 0.95rem; }
}

/* Styl pro překrytí celé obrazovky */
#age-verification-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); /* Tmavé pozadí */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.age-gate-content {
    background: #fff;
    color: #333;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.age-gate-logo { max-width: 150px; margin-bottom: 20px; }
.btn-age { background: #480d17; color: white; border: none; padding: 10px 30px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-exit { background: #ccc; color: #333; margin-left: 10px; }

/* Styl pro promo vyskakovací okno */
.modal-promo .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-promo .modal-header {
    background: #480d17; /* Tvoje vínová barva */
    color: white;
    border: none;
    padding: 20px;
}

.modal-promo .promo-highlight {
    color: #480d17;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-promo .btn-action {
    background: #480d17;
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
    transition: 0.3s;
}

.modal-promo .btn-action:hover {
    background: #61252b;
    transform: scale(1.05);
}

.opening-hours-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}