:root {
    --color-primary: #ff5148;
    --white: #ffffff;
    --black: #1d201f;
    --bg-color: #F6F4F1;
}

@media (max-width: 1600px) {
    .category-megamenu{
        left: 25%;
    }
}

@media (max-width: 1400px) {
    .benefit-title {
        min-height: 38px;
    }

    .hero-card-content {
        padding-left: 0 !important;
    }

    .cart-page .col-lg-9,
    .cart-page .col-lg-3 {
        width: 100%;
    }

    .product-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {

    .categories-nav-wrapper {
        display: none;
    }

    .hero-card {
        padding-left: 1.25rem;
    }

    .category-filter {
        display: none !important;
    }

    /* PRODUCTS PAGE NAVIGATION */
    .products-section .categories-menu-sidebar {
        display: none;
    }

    .products-section .col-lg-9,
    .products-section .col-lg-3 {
        width: 100%;
    }

    /* HIDE MEGAMENU ON MOBILE */
    .category-megamenu {
        display: none !important;
    }

    /* PARTNER SHOP PRODUCT ROWS */
    .product-row-card {
        flex-direction: column;
        padding: 1rem;
    }

    .product-row-image {
        width: 100%;
        height: 200px;
        align-self: center;
        max-width: 200px;
    }

    .product-row-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .product-row-info {
        text-align: center;
    }

    .product-row-pricing {
        align-items: center;
        min-width: auto;
    }

    .product-row-price-group {
        text-align: center;
    }

    .product-row-actions {
        justify-content: center;
        width: 100%;
    }

    .add-to-cart-form-row {
        flex: 1;
        justify-content: center;
        max-width: none;
    }

    .quantity-input-row {
        width: 80px;
    }

    .add-to-cart-form-row .btn {
        flex: 1;
    }

    /* CATEGORY HEADER RESPONSIVE */
    .category-title {
        font-size: 1.75rem;
    }

    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .subcategory-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .subcategory-icon {
        width: 2rem;
        height: 2rem;
    }

    .subcategory-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .subcategory-name {
        font-size: 0.875rem;
    }
}

@media (max-width: 1100px) {
    .benefit-card {
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav.gap-4.me-auto {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .hero-card-content {
        padding: 0 !important;
    }

    .container {
        max-width: 51.25rem;
    }

    .top-nav {
        display: none;
    }

    /* BREADCRUMB MOBILE */
    .breadcrumb-wrapper {
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .breadcrumb-item {
        font-size: 0.75rem;
    }

    .breadcrumb-item svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    /* PARTNER SHOP PRODUCTS MOBILE */
    .product-row-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .product-row-image {
        height: 150px;
        max-width: 150px;
    }

    .product-row-content {
        gap: 0.75rem;
    }

    .product-row-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .product-row-sku,
    .product-row-stock {
        font-size: 0.75rem;
    }

    .product-row-price {
        font-size: 1.25rem;
    }

    .product-row-price-without-vat {
        font-size: 0.75rem;
    }

    .quantity-input-row {
        width: 70px;
        padding: 0.375rem;
        font-size: 0.875rem;
    }

    .add-to-cart-form-row .btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* CATEGORY HEADER MOBILE */
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.5rem;
    }

    .subcategory-card {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .subcategory-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .subcategory-name {
        font-size: 0.75rem;
    }

    /* Search Results Mobile Full Height */
    #searchOffcanvas .search-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 150px);
        max-height: calc(100vh - 150px);
        margin-top: 1rem;
        border-radius: 0;
        z-index: 1000;
    }

    #searchOffcanvas .search-dropdown ul {
        height: 100%;
        overflow-y: auto;
    }

    #searchOffcanvas .search-dropdown li {
        padding: 1rem;
        border-bottom: 1px solid #e5e5e5;
    }

    #searchOffcanvas .search-dropdown img {
        width: 60px !important;
        height: 60px !important;
    }
}


@media (max-width: 992px) {
    .header .container {
        padding: 0 15px;
    }

    #categoryBtnModal {
        padding: 0.5rem 1rem;
    }

    .benefit-title {
        min-height: max-content;
    }

    .footer-main .row .col-md-12 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .top-nav .nav {
        gap: 0.5rem !important;
    }

    .benefits-grid {
        display: none !important;
    }

    .benefits-slider {
        display: block !important;
    }

    .footer-links li {
        text-align: center;
    }

    .footer-newsletter-text {
        text-align: center;
    }

    /* Cart Items Mobile Layout */
    .cart-items-header {
        display: none;
    }

    .cart-item-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border: 1px solid #e5e5e5;
        border-radius: 0.5rem;
        background: #fff;
        margin-bottom: 1rem;
        position: relative;
    }

    .cart-item-row:last-child {
        border: 1px solid #e5e5e5;
    }

    .cart-item-product {
        width: 100%;
        justify-content: flex-start;
    }

    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal,
    .cart-item-no-vat {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-price::before {
        content: "Cena:";
        font-weight: 600;
        color: var(--black);
    }

    .cart-item-quantity::before {
        content: "Počet:";
        font-weight: 600;
        color: var(--black);
    }

    .cart-item-subtotal::before {
        content: "Medzisúčet:";
        font-weight: 600;
        color: var(--black);
    }

    .cart-item-no-vat::before {
        content: "Bez DPH:";
        font-weight: 600;
        color: var(--black);
    }

    .cart-item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

}



@media (min-width: 992px) {
    .benefits-slider {
        display: none;
    }
}

@media (max-width: 768px) {
    .header py-3 {
        padding: 12px 0;
    }

    #searchOffcanvas {
        width: 100%;
    }

    .hero-card-bg img {
        display: none;
    }

    .hero-card {
        background: linear-gradient(135deg, var(--color-primary) 0%, #ff7268 50%, #ff9088 100%);
    }
}





@media (max-width: 576px) {
    .p-5 {
        padding: 3rem 0 !important;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .thumb-slider-container {
        display: none;
    }

}

@media (max-width: 500px) {
    .cart-sidebar {
        width: 100%;
        height: 100%;
    }

    .products-list .d-flex div:not(.fw-bold) {
        max-width: 315px;
        width: 100%;
    }

    .products-list .d-flex div.fw-bold {
        text-align: end;
    }

    /* BREADCRUMB SMALL MOBILE */
    .breadcrumb-wrapper {
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
    }

    .breadcrumb-item {
        font-size: 0.6875rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding-right: 0.25rem;
    }

    /* PARTNER SHOP VERY SMALL SCREENS */
    .partner-shop-page h1 {
        font-size: 1.5rem;
    }

    .partner-shop-page .mb-4 p {
        font-size: 0.875rem;
    }

    .product-row-list {
        gap: 0.75rem;
    }

    .product-row-card {
        padding: 0.5rem;
    }

    .product-row-image {
        height: 120px;
        max-width: 120px;
    }

    .product-row-title {
        font-size: 0.9375rem;
    }

    .product-row-price {
        font-size: 1.125rem;
    }

    .add-to-cart-form-row {
        width: 100%;
    }

    .quantity-input-row {
        width: 60px;
    }

    /* CATEGORY HEADER SMALL MOBILE */
    .category-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.375rem;
    }

    .subcategory-card {
        padding: 0.375rem;
    }

    .subcategory-icon {
        width: 2rem;
        height: 2rem;
    }

    .subcategory-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .subcategory-name {
        font-size: 0.6875rem;
    }
}

/* PDF VIEWER RESPONSIVE */
@media (max-width: 768px) {
    .pdf-page-spread {
        flex-direction: column;
        align-items: center;
    }

    .pdf-page-spread canvas {
        max-width: 100%;
    }

    .pdf-modal-header {
        padding: 0.625rem 1rem;
    }

    .pdf-modal-viewer {
        padding: 1rem 0.5rem;
    }
}