
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #d20909;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}


.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 48px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 0.15rem;
        margin-right: 0.15rem;
    }
    .navbar-nav .nav-link {
        font-weight: 600;
        font-size: 1.05rem;
        padding-left: 0.95rem;
        padding-right: 0.95rem;
        color: #1a1d21;
    }
    .navbar-nav .nav-link.active {
        color: var(--primary-color);
    }
}

.shop-nav-ext {
    font-size: 0.6em;
    margin-left: -0.1rem;
    opacity: 0.65;
    vertical-align: super;
}

#cart-count:empty,
#cart-count[data-zero="1"] {
    display: none !important;
}


.hero-section, .hero-section-tva, .hero-section-ppa {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before, .hero-section-tva::before, .hero-section-ppa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}


.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.product-card {
    position: relative;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}


.bundle-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 45px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); }
    50% { box-shadow: 0 0 20px rgba(13, 110, 253, 0.8); }
}


.btn {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary {
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}


.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse-glow 2s infinite;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-qty-controls .cart-qty-input {
    width: 3.25rem;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    border-radius: 8px;
}

.cart-qty-controls .btn {
    min-width: 2rem;
    padding: 0.15rem 0.4rem;
}

.cart-item-side {
    min-width: 9.5rem;
}


.form-select, .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}


footer {
    background: linear-gradient(135deg, #212529 0%, #2c3e50 100%);
    margin-top: auto;
}

footer a {
    transition: all 0.3s;
    display: inline-block;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}


.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}


::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0056b3, var(--primary-color));
}


@media (max-width: 768px) {
    .hero-section, .hero-section-tva, .hero-section-ppa {
        min-height: 40vh;
        background-attachment: scroll;
    }
    
    .product-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .bundle-badge {
        font-size: 0.65rem;
        padding: 5px 35px;
        right: -30px;
    }
}


.bg-ddb { background-color: #59c5fa !important; }
.bg-tva { background-color: #d3c60a !important; }
.bg-ppa { background-color: #e30000 !important; }

.text-ddb { color: #59c5fa !important; }
.text-tva { color: #d3c60a !important; }
.text-ppa { color: #e30000 !important; }

.product-img-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-img-wrap {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    overflow: hidden;
    flex-shrink: 0;
}

.product-list-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
    transition: opacity 0.2s;
}

.product-img-link:hover .product-list-img {
    opacity: 0.92;
}

.product-detail-img {
    object-fit: contain;
    max-height: 420px;
    background: #f8f9fa;
    padding: 12px;
}

.product-thumb-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    height: 56px;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.product-thumb {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 0 1px #e9ecef;
    transition: box-shadow 0.15s, opacity 0.15s;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb.active {
    box-shadow: 0 0 0 1px #ced4da;
    opacity: 1;
}

.product-thumb:hover {
    box-shadow: 0 0 0 1px #adb5bd;
    opacity: 0.92;
}

.product-detail-thumbs .product-thumb {
    box-shadow: 0 0 0 2px #dee2e6;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.product-detail-thumbs .product-thumb.active,
.product-detail-thumbs .product-thumb:hover {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.product-detail-thumbs.product-thumb-row {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
}

.product-thumb-more {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 6px;
    line-height: 1;
    white-space: nowrap;
}

.product-thumb-more:hover {
    text-decoration: underline;
}

.product-card-body {
    padding-top: 0.75rem;
}

.product-card-title {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.product-card-meta {
    min-height: 2.8em;
    margin-bottom: 0.5rem;
}

.product-card-meta-empty {
    visibility: hidden;
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 0.7rem;
    max-width: calc(100% - 20px);
    white-space: normal;
    text-align: left;
    pointer-events: none;
}

.gallery-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    opacity: 0.85;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background: rgba(255,255,255,0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-prev-btn { left: 8px; }
.gallery-next-btn { right: 8px; }

.gallery-main-click {
    cursor: zoom-in;
}

.shop-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.shop-lightbox.show {
    display: block;
}

.shop-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.shop-lightbox-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.shop-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.shop-lightbox-close,
.shop-lightbox-prev,
.shop-lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 2;
}

.shop-lightbox-close { top: 16px; right: 16px; }
.shop-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.shop-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.shop-lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
}

body.shop-lightbox-open {
    overflow: hidden;
}

.shop-sticky-head {
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.shop-sticky-head .navbar {
    box-shadow: none;
}

.shop-catbar {
    background: #fff;
    border-top: 1px solid #eef1f4;
}

.shop-catbar .shop-category-btn {
    flex: 0 0 auto;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.shop-catbar::-webkit-scrollbar,
.shop-catbar .container::-webkit-scrollbar {
    height: 4px;
}
.catalog-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.shop-category-nav {
    padding: 0.25rem 0;
}

.shop-category-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    border: 2px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.shop-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f6ff;
}

.shop-category-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.shop-category-btn-all.active {
    background: #212529;
    border-color: #212529;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.25);
}

.shop-category-mobile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #0d6efd;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.12);
}

.shop-category-mobile-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.shop-category-mobile-select {
    border-width: 2px;
    border-color: #0d6efd;
    font-weight: 600;
    border-radius: 12px;
}

.catalog-kat-heading {
    color: #495057;
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e9ecef;
}

/* Checkout – výdejní box */
#box-select-wrap {
    display: none;
}

#box-select-wrap.show {
    display: block;
}

#address-fields-wrap.is-required {
    padding: 0.85rem 1rem;
    border: 1px solid #cfe2ff;
    border-radius: 0.5rem;
    background: #f8fbff;
}

.box-pickup-label {
    display: inline-block;
    background: #fff3cd;
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-weight: 700;
    color: #000;
}
.box-pickup-card .btn-success {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.shop-legal-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.shop-legal-content h2 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.shop-legal-content p { margin-bottom: 0.85rem; line-height: 1.55; }
.shop-legal-content ul { margin-bottom: 1rem; }
