body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    /* padding-top: 130px; */
    /* Account for fixed header height */
    overflow-x: clip;
    /* background: url('/images/main-background.png') repeat; */
    background: #ffefda;
    touch-action: manipulation;
}

html {
    touch-action: manipulation;
    overflow-x: clip;
}

body {
    -webkit-tap-highlight-color: transparent;
}
* {
    -webkit-tap-highlight-color: transparent;
}

/* iOS/Android - remove ALL touch highlights, selections and active states */
button,
a,
input,
select,
textarea,
img,
svg {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Prevent ANY visual feedback on focus and active */
button:focus,
button:active,
a:focus,
input:focus,
input:active,
img:focus,
svg:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Specifically for nav-btn - prevent active state background */
.nav-btn:active {
    background: transparent !important;
}

/* Keep subcategory-link background on active state */
a:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

a:active:not(.subcategory-link):not(.category-item) {
    background: none !important;
}

/* body::after {
    content: '';
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: url('/images/back-right-bottom.png') no-repeat center center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
} */

.header {
    color: white;
}

.w-100 {
    width: 100%;
}

.top-header {
    /* background: linear-gradient(135deg, #ff8c00, #ffa500); */
    background: #ff8c00;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* transition: transform 0.3s ease; */
    position: relative;
}

.top-svg-icon {
    width: 25px;
    height: 25px;
}

.top-svg-icon svg {
    width: 100%;
    height: 100%;
}

.top-svg-icon svg path {
    fill: #333;
    transition: fill 0.3s;
}

.nav-btn:hover .top-svg-icon svg path,
.nav-btn.active .top-svg-icon svg path {
    fill: white;
}

.card-icon {
    width: 30px;
}

/* Turuncu header gizlendiğinde */
.top-header.header-hidden {
    /* transform: translateY(-100%); */
}

/* Gradient zigzag - turuncu header altında */
/* .bottom-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: url("/images/triangle.svg");
    background-repeat: repeat-x;
    z-index: 1999;
} */
.top-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: url("/images/triangle.svg");
    /* background-size: 20px 10px; */
    background-repeat: repeat-x;
    z-index: 1999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: unset;
    color: white;
    /* padding: 8px 0px; */
    padding-left: 0px !important;
}

.logo > img {
    width: 65px;
    /* height: 40px; */
}

.nav-buttons {
    display: flex;
    /* gap: 10px; */
    flex-wrap: wrap;
    max-width: 100%;
}

.nav-btn {
    /* background: rgba(255, 255, 255, 0.2); */
    border: none;
    color: white;
    padding: 8px 15px;
    /* border-radius: 25px; */
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    /* iOS tap highlight removal */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-btn:hover,
.nav-btn.active {
    /* background: #c77103; */
    color: white;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn.active .info {
    /* background: #c77103; */
    color: white;
    text-decoration: none;
}

.nav-btn:hover .info {
    /* background: #c77103; */
    color: white;
    text-decoration: none;
}

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    padding: 6px 12px !important;
}

.lang-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flag-icon {
    /* width: 25px; */
    /* height: 17px; */
    border-radius: 4px;
    object-fit: cover;
    /* iOS tap highlight removal for images */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none; /* Prevent direct interaction with image */
}

.lang-text {
    font-size: 12px;
    font-weight: 600;
    color: black;
    /* line-height: 1; */
}

.lang-arrow {
    font-size: 10px;
    color: white;
    margin-top: -2px;
}

.cart-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    /* top: -5px; */
    right: 20px;
    min-width: 18px;
}

.categories-nav {
    background: #8b0000;
    padding: 0;
    /* padding-top: 4px; */
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    -webkit-overflow-scrolling: touch;
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* .bottom-header {
            background-image: url("/images/tirangle-2.svg");
            background-repeat: repeat-x;
            background-position: top left;
            background-size: 40px 20px;
            transition: all 0.3s ease;
        } */

/* Kırmızı menü sticky olduğunda */
.bottom-header.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background-image: none;
    padding-top: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.categories-nav::-webkit-scrollbar {
    height: 4px;
    display: block;
    /* Force display for WebKit/iOS */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.categories-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.categories-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.categories-list {
    display: flex;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* .categories-list>a:not(:last-child)::after {
            content: "";
            display: inline-block;
            width: 1.6px;
            height: 12px;
            background-color: white;
            vertical-align: middle;
            position: absolute;
            right: 0;
            top: 23px;
        } */

.category-item {
    padding: 20px 25px 12px 25px;
    color: white;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bolder;
    font-family: "Gabriela", serif;
    letter-spacing: 1px;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* iOS tap highlight removal */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.category-item.active {
    color: #8b0000 !important;
    border-bottom-color: #ffa500 !important;
    background: white !important;
    text-decoration: none;
}

/* Active category's next divider is #8b0000 */
.category-item.active + .category-divider {
    background-color: #8b0000 !important;
}

/* Active category's previous divider is #8b0000 */
.category-divider:has(+ .category-item.active) {
    background-color: #8b0000 !important;
}
/* Hover effect - only for desktop with mouse */
@media (hover: hover) and (pointer: fine) {
    .category-item:hover {
        color: white;
        border-bottom-color: #ffa500;
        background: #720101c2;
        text-decoration: none;
    }

    /* Active state always wins over hover */
    .category-item.active:hover {
        color: #8b0000 !important;
        background: white !important;
    }
}

/* Touch effect - only for mobile touch devices */
@media (hover: none) {
    .category-item:active {
        color: white;
        border-bottom-color: #ffa500;
        background: #720101c2;
        text-decoration: none;
    }

    /* Active state always wins */
    .category-item.active:active {
        color: #8b0000 !important;
        background: white !important;
    }
}

/* Category divider hardware acceleration for iOS */
.category-divider {
    background-color: white;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 0px 20px;
}

.container-2 {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    padding: 0px 20px 0px 20px;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    /* max-width: 1000px; */
    max-height: 90vh;
    overflow-y: hidden;
    position: relative;
}

.modal-layout-desktop {
    height: 90vh;
}

/* Prevent body scroll when modal is open - for all screen sizes */
body.modal-open {
    /* overflow: hidden; */
    position: fixed;
    width: 100%;
}

.addtocartformfixed {
    background: white;
    padding: 15px;
    margin: 15px -15px -15px -15px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        width: 100%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .top-header {
        position: relative;
        z-index: 1000;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .bottom-header {
        position: relative;
        z-index: 998;
        width: 100%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .categories-nav {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }

    .category-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* iOS Safari specific fix */
    @supports (-webkit-touch-callout: none) {
        .header {
            position: -webkit-sticky;
            position: fixed;
        }

        .bottom-header {
            position: relative;
        }

        body {
            -webkit-overflow-scrolling: touch;
        }
    }

    .bottom-header.nav-sticky {
        top: 0 !important;
        z-index: 998;
    }

    .top-header.header-hidden {
        transform: translateY(-100%);
    }

    /* Subcategories sticky behavior */
    .subcategories-sidebar.mobile-1 {
        position: fixed !important;
        padding: 5px 0px !important;
        padding-left: 8px !important;
        top: 93px;
        z-index: 1500 !important;
        transition: none !important;
        background: #ffefda;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto !important;
    }

    .subcategories-sidebar.mobile-1.sub-fixed {
        position: fixed !important;
        top: 50px !important;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        z-index: 1500 !important;
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    }
}

@media (max-width: 768px) {
    .info {
        display: none !important;
    }

    .modal {
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height - mobil tarayıcılar için */
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    .addtocartformfixed {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        padding: 15px;
        margin: 0px 0px -5px 0px;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .subcategories-sidebar {
        /* margin-top: 17px !important; */
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 33px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: white;
    color: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff8c00;
    color: white;
}

.btn-primary:hover {
    background: #e67e00;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

@media ((min-width: 991px) and (max-width: 1024px)) {
    .subcategories-sidebar {
        margin-top: 0px !important;
    }
}

@media (max-width: 1024px) {
    /* Product card image height */
    .product-image-slider {
        height: 250px !important;
    }

    .slider-image {
        height: 100% !important;
    }

    /* Gradient background for products without images */
    .product-card > div[onclick*="openProductModal"] {
        height: 250px !important;
    }
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    /* height: fit-content; */
}

.product-image-slider {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s;
    border-radius: 8px;
}

.product-no-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
}

.product-no-image-emoji {
    font-size: 36px;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.product-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Default: hide mobile, show desktop */
.mobile-1 {
    display: none !important;
}

.desktop-1 {
    display: block !important;
}

/* Prevent desktop flash on mobile - hide immediately */
@media (max-width: 1024px) {
    .desktop-1 {
        display: none !important;
    }

    .mobile-1 {
        display: block !important;
    }
}

/* Mobile-1 specific styles */
.subcategories-sidebar.mobile-1 {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 250px;
    max-width: 100%;
    border-radius: 12px;
    padding: 15px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: auto;
}

/* Desktop-1 specific styles */
.subcategories-sidebar.desktop-1 {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 250px;
    max-width: 100%;
    border-radius: 12px;
    padding: 0px;
    overflow: hidden;
    z-index: 999;
}

@media (max-width: 1024px) {
    body {
        position: relative;
        min-height: calc(100vh - 100px);
    }

    .main-content-layout {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .container {
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .container-2 {
        /* overflow-x: clip !important; */
        /* overflow-y: visible !important; */
    }

    .subcategories-sidebar {
        /* margin-left: -15px !important; */
        /* margin-right: -15px !important; */
        border-radius: 0 !important;
        /* margin-top: 30px; */
        padding-left: 8px !important;
        /* padding-right: 0 !important; */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .mobile-1 {
        display: block !important;
    }

    .desktop-1 {
        display: none !important;
    }

    .subcategories-list {
        margin: 0 !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .card-btn > span {
        padding-right: 4px;
    }
}

@media (min-width: 1025px) {
    body {
        position: relative;
        min-height: calc(100vh - 130px);
    }

    main {
        /* min-height: calc(100vh - 130px); */
        margin-top: 134px;
    }

    section {
        /* min-height: calc(100vh - 130px); */
        margin-top: 134px;
    }

    .mobile-1 {
        display: none !important;
    }

    .desktop-1 {
        display: block !important;
    }

    /* Subcategories sidebar desktop */
    /* .subcategories-sidebar.desktop-1 {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    } */

    /* Subcategory link styles */
    .subcategory-link {
        transition: all 0.3s;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Disable transitions on page load - only for specific elements */
    .preload .subcategories-sidebar.desktop-1 {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .header {
        /* padding-top: 8px; */
    }

    /* Subcategory link mobile styles */
    .subcategory-link {
        transition: all 0.3s !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .header-content {
        padding: 5px 11px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        /* width: 60px !important; */
    }

    .nav-buttons {
        gap: 3px;
        flex-wrap: wrap;
        align-items: center;
        max-width: 100%;
    }

    .nav-btn {
        /* padding: 6px 8px; */
        font-size: 20px;
        min-width: auto;
        white-space: nowrap;
    }

    /* Mobile Language Switcher */
    .lang-switcher {
        padding: 4px 8px !important;
    }

    .lang-vertical {
        gap: 4px;
    }

    .flag-icon {
        /* width: 19px;
        height: 12px; */
    }

    .lang-text {
        font-size: 10px;
        display: none;
    }

    .lang-arrow {
        font-size: 9px;
    }

    .cart-count {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: -3px !important;
        right: -3px !important;
    }

    .categories-nav {
        /* top: 60px; */
        /* padding: 8px 0; */
        height: 50px;
        display: flex;
    }

    .categories-list {
        padding: 0px !important;
    }

    .category-item {
        padding: 14px 18px 8px 18px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container {
        padding: 0px 10px 10px 10px;
        /* max-width: 100%; */
    }

    .container-2 {
        padding: 0px 10px 10px 10px;
        /* max-width: 100%; */
    }

    main {
        margin-top: 172px;
    }

    section {
        margin-top: 115px;
    }

    /* Mobile specific improvements */
    h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
        font-family: "Gabriela", serif;
        letter-spacing: 0.5px;
    }

    /* Mobile card improvements */
    .card,
    .category-card,
    .product-card {
        margin-bottom: 1rem;
    }

    /* Mobile button improvements */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Mobile table improvements */
    .table-responsive {
        font-size: 0.875rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
    }

    .addtocartform {
        margin-bottom: 111px;
    }

    .addtocartbutton {
        width: 50%;
        font-size: 14px;
        padding: 13px;
        border-radius: 12px;
        background: #ff8c00;
        border: none;
        color: white;
        font-weight: bold;
    }

    .flex-mobile {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        /* padding-top: 6px; */
    }

    .subcategories-sidebar {
        /* margin-top: 10px !important; */
    }

    .header-content {
        padding: 5px 11px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo img {
        /* width: 50px !important; */
    }

    .nav-buttons {
        gap: 2px;
        max-width: 100%;
    }

    .nav-btn {
        padding: 4px 6px;
        font-size: 20px;
    }

    /* Smaller Mobile Language Switcher */
    .lang-switcher {
        padding: 3px 6px !important;
    }

    .lang-vertical {
        gap: 4px;
    }

    .flag-icon {
        /* width: 15px;
        height: 10px; */
    }

    .lang-text {
        font-size: 10px;
    }

    .lang-arrow {
        font-size: 8px;
    }

    .cart-count {
        width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        top: -2px !important;
        right: -2px !important;
    }

    .categories-nav {
        /* top: 50px; */
        /* padding: 6px 0; */
    }

    .category-item {
        padding: 12px 15px 4px 15px;
        font-size: 13px;
    }

    .container {
        padding: 0px 8px 8px 8px;
    }

    .container-2 {
        padding: 0px 8px 8px 8px;
    }

    main {
        margin-top: 150px;
    }

    /* Home page specific margin */
    .home-page main {
        margin-top: 110px;
    }

    section {
        margin-top: 105px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 18px;
        padding-left: 0px !important;
    }
}

@media (max-width: 376px) {
    .modal-scrollable-content {
        overflow-y: auto;
        height: 330px;
    }

    .nav-btn {
        font-size: 19px !important;
    }

    .addtocartform {
        margin-bottom: 111px;
    }
}

@media (max-width: 361px) {
    .nav-btn {
        font-size: 18px !important;
    }
}

@media ((min-width: 768px) and (max-width: 1024px)) {
    main {
        /* min-height: calc(100vh - 130px); */
        margin-top: 175px;
    }

    section {
        /* min-height: calc(100vh - 130px); */
        margin-top: 132px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        /* padding: 10px; */
        height: 32px;
        padding-left: 0px !important;
    }

    .logo > img {
        /* width: 75px; */
        /* height: 32px; */
    }
}

@media (max-width: 991px) {
    body {
        /* padding-top: 100px; */
    }

    .category_title {
        margin: 0px 0px 10px 0px !important;
        font-size: 18px !important;
    }

    .category_desc {
        margin: 8px 0px 16px 0px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        /* padding: 10px; */
        height: 42px;
        padding-left: 0px !important;
    }

    .logo > img {
        /* width: 75px !important; */
        /* height: 42px; */
    }
}

@media (max-width: 480px) {
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        /* padding: 10px; */
        height: 24px;
        padding-left: 0px !important;
    }

    .logo > img {
        /* width: 65px !important; */
        /* height: 42px; */
    }
}

@media (max-width: 1200px) {
    .categories-list {
        padding: 0px;
    }

    .logo {
        /* padding: 8px 0px; */
        padding-left: 0px !important;
    }

    .logo > img {
        width: 65px;
        /* height: 40px; */
    }

    .modal-layout-desktop {
        height: 550px;
    }
}

textarea,
input {
    box-sizing: border-box;
}

.info {
    color: black;
}

.card_minus {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.card_kol {
    width: 40px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.card_plus {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category_title {
    margin: 0px 0px 13px 0px;
    font-size: 24px !important;
    font-family: "Gabriela", serif;
    letter-spacing: 0.5px;
    line-height: 24px;
}

.category_desc {
    margin: 8px 0px 18px 0px;
    /* font-size:16px; */
}

.products-content {
    /* margin-top: 134px; */
}

.footer_content {
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid;
    font-style: italic;
    margin-top: 20px;
}

.footer-relative {
    position: relative;
}

.footer-absolute {
    position: absolute;
    bottom: 0;
    padding-left: 267px;
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-evenly {
    justify-content: space-evenly;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

.modal-image-side {
    width: 57%;
    position: relative;
    background: #f8f9fa;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.card-btn {
    width: 55%;
    font-size: 14px;
    padding: 15px;
    border-radius: 12px;
    background: #ff8c00;
    border: none;
    color: white;
    font-weight: bold;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-btn > span {
    padding-right: 6px;
}

.quantity-all-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 40%;
}

@media ((min-width: 768px) and (max-width: 991px)) {
    .modal-image-side {
        width: 57%;
        padding: 10px;
    }

    .card-btn {
        font-size: 12px;
        width: 45%;
        padding: 6px;
        height: 40px;
    }

    .quantity-all-btn {
        gap: 4px;
        width: 35%;
    }
}

/* @media ((min-width: 768px) and (max-width: 899px)) {
            .card-btn{
                width: 45%;
                padding: 6px;
            }
        } */
@media ((min-width: 992px) and (max-width: 1199px)) {
    .modal-image-side {
        width: 57%;
        padding: 10px;
    }

    .card-btn {
        font-size: 12px;
    }

    .quantity-all-btn {
        gap: 4px;
        width: 35%;
    }
}

.add-to-cart-btn {
    border-radius: 12px;
}

/* Gabriela font for product names, categories, and subcategories */
.product-card h3,
.category-card h3,
.subcategory-link,
h4.category_title,
h2,
h3,
h4 {
    font-family: "Gabriela", serif !important;
    letter-spacing: 0.5px !important;
    font-size: 18px;
}

/* Roboto for all other text */
body,
p,
span,
div,
a,
button,
input,
textarea,
label {
    font-family: "Roboto", sans-serif;
}

.flex-column {
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
}
@media ((min-width: 500px) and (max-width: 1024px)) {
    .main-content-layout {
        margin-top: 5px;
    }

    .subcategories-sidebar {
        margin-top: 5px;
    }
}
@media (min-width: 500px) {
    .header {
        /* position: fixed; */
        /* top: 0; */
        /* z-index: 999; */
        /* width: 100%; */
    }
    .top-header {
        /* position: sticky; */
        /* z-index: 776; */
    }
    .bottom-header {
        /* position: fixed; */
        /* z-index: 667; */
    }
}

.card-desc {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67px;
}

.card-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    -webkit-line-clamp: 2;
    min-height: 46px;
    max-height: 46px;
    overflow: hidden;
}

/* Subcategory elements - iOS hardware acceleration */
.subcategories-sidebar,
.subcategories-list,
.subcategory-link {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Ensure all text inside subcategories is visible on iOS */
.subcategory-link * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Subcategories Sidebar - Unified Responsive Design */
.subcategories-sidebar {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 250px;
    max-width: 100%;
    border-radius: 12px;
    padding: 0px;
    overflow: hidden;
}

.subcategories-list {
    margin: 0;
    padding: 0;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .subcategories-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 0px 12px 8px !important;
        overflow-x: auto !important;
        border-radius: 0 !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .subcategories-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .subcategories-list {
        display: flex !important;
        gap: 8px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch;
        width: auto !important;
        flex-wrap: nowrap !important;
    }

    .subcategory-link {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.9rem !important;
        padding: 8px 14px !important;
        margin: 0 !important;
        min-width: auto !important;
        border-radius: 8px !important;
    }

    .products-content {
        padding: 0 15px !important;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .subcategories-sidebar {
        position: fixed;
        z-index: 3000;
    }

    .subcategory-link {
        transition: all 0.3s;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Mobile specific - smaller screens */
@media (max-width: 768px) {
    .subcategories-sidebar {
        padding: 10px 0px 10px 8px !important;
    }

    .subcategories-list {
        gap: 6px !important;
    }

    .subcategory-link {
        font-size: 0.875rem !important;
        padding: 8px 12px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 6px !important;
        font-weight: bolder !important;
    }
}

/* Mobile specific - very small screens */
@media (max-width: 480px) {
    .subcategories-list {
        gap: 4px !important;
    }

    .subcategory-link {
        font-size: 0.8rem !important;
        padding: 1px 10px !important;
        min-height: 36px !important;
        border-radius: 6px !important;
    }
}

@media ((min-width: 768px) and (max-width: 1024px)) {
    .subcategories-sidebar {
        top: 116px !important;
    }
}

/* Mobile sticky behavior */
@media (max-width: 1024px) {
    .subcategories-sidebar {
        position: fixed !important;
        padding: 5px 0px 5px 8px !important;
        top: 93px;
        z-index: 3000;
        transition: none !important;
        background: #ffefda;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto !important;
    }

    .subcategories-sidebar.sub-fixed {
        position: fixed !important;
        top: 50px !important;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

@media (min-width: 1024px) {
    main {
        padding: 0px 15px !important;
    }
}
/* @media ((min-width: 1024px) and (max-width: 1201px)) {
    main {
        padding: 0px 15px !important;
    }
} */

.px-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}
