/* ========================================
   MOBILNÍ RESPONZIVNÍ CSS PRO E-SHOP
   Společný soubor pro všechny shop stránky
   ======================================== */

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* ========== MODERN MENU TOGGLE - CHEVRON ========== */

.nav-item.menu-toggle {
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    padding-right: 35px !important;
}

.nav-item.menu-toggle:hover {
    background: rgba(0,0,0,0.3);
}

/* Modern chevron icon - small and subtle */
.nav-item.menu-toggle::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid white;
    border-bottom: 1.5px solid white;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-item.menu-toggle.active::after {
    transform: translateY(-20%) rotate(-135deg);
}

/* ========== FOOTER ========== */
.footer {
    background: #3E2723;
    color: white;
    padding: 40px 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #C4A574;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #C4A574;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #999;
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* ========== FOOTER FEATURES BANNER ========== */
.footer-features-banner {
    background: transparent;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 0;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    justify-items: center;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 35px;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon-img {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    max-width: 100%;
    height: auto;
}

.feature-text {
    flex: 1;
}

.feature-title {
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    white-space: normal;
    line-height: 1.3;
}

.feature-subtitle {
    color: #C4A574;
    font-size: 13px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Top bar - menší font */
    .top-bar {
        font-size: 10px !important;
        padding: 6px 10px !important;
        line-height: 1.4 !important;
    }

    /* Header - vertikální layout */
    .header-content {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 15px !important;
    }

    .logo img {
        height: 70px !important;
    }

    /* Vyhledávání - plná šířka */
    .search-box {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .search-input {
        font-size: 16px !important; /* Zabrání auto-zoom na iOS */
        padding: 10px 50px 10px 12px !important;
    }

    /* Košík - menší */
    .cart-info {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }

    .cart-icon {
        font-size: 20px !important;
    }

    /* Navigace - hamburger menu */
    .nav-content {
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative !important;
    }

    .mobile-menu-btn {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        background: rgba(0,0,0,0.2) !important;
    }

    .nav-item:not(.menu-toggle) {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .nav-item.menu-toggle {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    /* Dropdown menu - 2 sloupce na mobilu */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    /* Features banner - 2 sloupce na mobilu */
    .features-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .feature-item {
        padding: 20px 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        border-right: 1px solid rgba(255,255,255,0.2) !important;
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    }

    .feature-item:nth-child(2n) {
        border-right: none !important;
    }

    .feature-icon-img {
        width: 50px !important;
        height: 50px !important;
    }

    .feature-title {
        font-size: 13px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .feature-subtitle {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Hero - přes celou šířku na mobilu */
    .hero {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    .hero img {
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Detail produktu - menší texty */
    .price-with-vat {
        font-size: 20px !important;
        white-space: nowrap !important;
    }

    .price-without-vat {
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .product-detail-title {
        font-size: 22px !important;
    }

    /* Container - menší padding */
    .container {
        padding: 0 15px !important;
        margin: 20px auto !important;
        max-width: 100% !important;
    }

    .section-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    /* Produkty - 2 sloupce na mobilu */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }

    .product-card {
        max-width: 100% !important;
    }

    .product-image {
        height: 150px !important;
    }

    .product-info {
        padding: 12px !important;
    }

    .product-name {
        font-size: 15px !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    .variant-label {
        font-size: 14px !important;
    }

    .variant-price {
        font-size: 18px !important;
    }

    .product-price {
        font-size: 18px !important;
        font-weight: bold !important;
    }

    .btn-add-cart {
        padding: 10px !important;
        font-size: 14px !important;
    }

    /* Kategorie - menší tlačítka */
    .category-filter {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .category-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .category-btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    /* Footer - menší padding */
    .footer {
        padding: 30px 15px 0 !important;
        margin-top: 40px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding-bottom: 20px !important;
    }

    .footer-section h3 {
        font-size: 13px !important;
    }

    .footer-section a {
        font-size: 13px !important;
    }

    .footer-logo {
        max-width: 200px !important;
        height: auto !important;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 15px !important;
    }

    .empty-icon {
        font-size: 48px !important;
    }

    /* Dropdown menu */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    /* Košík stránka */
    .cart-items {
        padding: 15px !important;
    }

    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 15px !important;
    }

    .cart-item-image {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 15px !important;
    }

    .cart-item-info {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .cart-item-actions {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .cart-summary {
        position: static !important;
        margin-top: 20px !important;
    }

    /* Checkout stránka */
    .checkout-container {
        flex-direction: column !important;
    }

    .checkout-form {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .checkout-summary {
        width: 100% !important;
        position: static !important;
    }

    .form-row {
        flex-direction: column !important;
    }

    .form-group {
        width: 100% !important;
    }

    /* Product detail */
    .product-detail {
        flex-direction: column !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Nadpis produktu na střed */
    .product-title,
    .product-detail-title {
        text-align: center !important;
    }

    .product-detail-image {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .product-detail-info {
        width: 100% !important;
        padding: 20px 15px !important;
    }

    /* Selecty - plná šířka */
    select,
    .variant-select,
    input[type="text"],
    input[type="number"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Quantity controls */
    .quantity-controls {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-detail-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .product-detail-price {
        font-size: 26px !important;
    }

    /* Detail produktu - menší texty */
    .price-with-vat {
        font-size: 24px !important;
    }

    .price-without-vat {
        font-size: 16px !important;
    }

    /* Tabulky - scrollable */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    table {
        min-width: 600px !important;
    }

    /* Buttony - plná šířka */
    .btn-primary,
    .btn-success,
    .btn-checkout {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Tlačítko DO KOŠÍKU - menší font aby se vešlo na řádek */
    .btn-buy {
        font-size: 15px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
    }

    /* Steps - menší */
    .steps {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .step {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* Order summary */
    .order-items {
        padding: 15px !important;
    }

    .order-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .order-item-image {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 10px !important;
    }

    .order-totals {
        padding: 15px !important;
    }

    /* Realizace - Gallery */
    .gallery {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .gallery-item img {
        max-width: 100% !important;
        height: auto !important;
        min-height: 250px !important;
    }

    .gabion-image img {
        max-width: 100% !important;
        height: auto !important;
    }

    .page-title h1 {
        font-size: 28px !important;
    }

    .page-title p {
        font-size: 14px !important;
    }

    .content-box {
        padding: 30px 20px !important;
    }

    .page-header h1 {
        font-size: 24px !important;
    }

    .section-title {
        font-size: 18px !important;
    }

    /* Kontakt stránka */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Consumption tables - plná šířka na mobilu */
    .product-info {
        padding: 0 !important;
    }

    .consumption-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .consumption-section * {
        max-width: none !important;
    }

    /* Nadpis na střed */
    .consumption-title {
        text-align: center !important;
        margin: 0 auto 10px auto !important;
    }

    /* Tabulky na střed */
    .consumption-table-wrapper {
        text-align: center !important;
    }

    .table-scroll-wrapper {
        display: flex !important;
        justify-content: center !important;
    }

    /* Obě tabulky stejně velké na mobilu */
    .consumption-table {
        font-size: 13px !important;
        border: 1px solid #EFEBE9 !important;
        margin: 0 auto 10px auto !important;
        display: inline-table !important;
    }

    .consumption-table th {
        padding: 10px 6px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    .consumption-table td {
        padding: 8px 6px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .contact-card {
        padding: 20px 15px !important;
    }

    .contact-card h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .contact-card br {
        display: none !important;
    }

    .contact-card p {
        font-size: 15px !important;
    }

    .opening-hours {
        padding: 20px 15px !important;
    }

    .opening-hours h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .hours-row {
        padding: 10px 0 !important;
    }

    .day {
        font-size: 14px !important;
    }

    .time {
        font-size: 14px !important;
    }

    .map-container {
        padding: 15px !important;
    }

    .map-container h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .map-frame {
        height: 300px !important;
    }
}

/* Tablet - 2 sloupce */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }

    .hero-title {
        font-size: 36px !important;
    }

    .hero-subtitle {
        font-size: 18px !important;
    }

    .container {
        padding: 0 30px !important;
    }
}

/* Velmi malé mobily */
@media (max-width: 480px) {
    .top-bar {
        font-size: 9px !important;
        padding: 5px !important;
    }

    .logo img {
        height: 60px !important;
    }

    /* Features - 1 sloupec na malých mobilech */
    .features-content {
        grid-template-columns: 1fr !important;
    }

    .feature-item {
        border-right: none !important;
    }

    .feature-icon-img {
        width: 35px !important;
        height: 35px !important;
    }

    .feature-title {
        font-size: 10px !important;
    }

    .feature-subtitle {
        font-size: 9px !important;
    }

    .hero-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .hero-subtitle {
        font-size: 12px !important;
    }

    /* Produkty - 2 sloupce i na malých mobilech */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-image {
        height: 130px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-name {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }

    .variant-label {
        font-size: 13px !important;
    }

    .variant-price {
        font-size: 16px !important;
    }

    .product-price {
        font-size: 16px !important;
    }

    .btn-add-cart {
        padding: 8px !important;
        font-size: 13px !important;
    }

    /* Detail produktu - menší texty */
    .price-with-vat {
        font-size: 22px !important;
        white-space: nowrap !important;
    }

    .price-without-vat {
        font-size: 15px !important;
        white-space: nowrap !important;
    }

    .product-detail-title {
        font-size: 18px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .product-detail-price {
        font-size: 18px !important;
    }

    .product-detail-image {
        height: 220px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Selecty a inputy - plná šířka */
    select,
    .variant-select,
    input[type="text"],
    input[type="number"],
    .quantity-controls {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
    }
}

/* ========== STŘEDNÍ OBRAZOVKY (1025px - 1200px) ========== */
@media (min-width: 1025px) and (max-width: 1200px) {
    /* Search box - zmenšit aby se vešel do headeru */
    .search-box {
        max-width: 300px !important;
        margin: 0 15px !important;
    }

    /* Features banner - 2 sloupce na menších PC */
    .features-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .feature-item {
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    }
}

/* ========== DESKTOP (1025px a více) ========== */
@media (min-width: 1025px) {
    /* Produkty - auto-fill na desktopu */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }

    /* Header - horizontální layout, větší logo */
    .header-content {
        flex-direction: row;
        padding: 0 32px;
    }

    /* Vyhledávání - omezená šířka aby nezabralo celý header */
    .search-box {
        max-width: 500px;
        flex-grow: 1;
        margin: 0 24px;
    }

    /* Navigace - horizontální */
    .nav-content {
        flex-direction: row;
        padding: 0 32px;
    }

    /* Features banner - vždy 4 sloupce na desktopu */
    .features-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Footer - 3 sloupce */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Container - větší padding na širokých obrazovkách */
    .container {
        padding: 0 32px;
        margin: 40px auto;
    }

    /* Kategorie stránka - sidebar + obsah */
    .category-filter {
        position: sticky;
        top: 20px;
    }
}

/* ========== VELKÉ OBRAZOVKY (1400px a více) ========== */
@media (min-width: 1400px) {
    /* Produkty - větší karty na velkých monitorech */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 35px;
    }

    /* Větší padding pro lepší čitelnost */
    .container {
        padding: 0 48px;
    }

    .features-content {
        grid-template-columns: repeat(4, 1fr);
    }
}
