:root {
    --primary-color: #ff4e50;
    --primary-dark: #d63031;
    --dark-color: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Geomanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
    min-width: 320px;
    overflow-x: hidden;
    visibility: visible !important;
}

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 15px;
    overflow: visible;
    min-height: 60px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #ff4e50);
    text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .search-form {
        display: none;
    }
    
    .phone-info {
        display: none;
    }
    
    .user-actions {
        gap: 10px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
    min-height: 320px;
    will-change: contents;
}

.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        margin: 15px 0;
        min-height: 250px;
    }
}

.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 15px;
    min-height: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modern-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    max-width: 800px;
}

.progressive-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 6px;
}

.progressive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, filter 0.3s ease;
    display: block;
}

.progressive-image .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    filter: blur(5px);
    transform: scale(1.1);
    opacity: 1;
}

/* Banner Slider Critical Styles */
.banner-slider {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    aspect-ratio: 8/3;
    contain: layout style paint;
    background: #f0f0f0;
    will-change: transform;
    transform: translateZ(0);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 8/3;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.banner-section {
    margin: 20px 0;
}

.banner-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
    height: 300px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .banner-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }
    
    .banner-slider {
        height: 200px;
        aspect-ratio: 16/9;
    }
    
    .slider-image {
        aspect-ratio: 16/9;
        z-index: 1;
        object-fit: cover;
    }
}

.progressive-image .full-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    object-fit: cover;
}

.progressive-image.loaded .placeholder {
    opacity: 0;
}

.progressive-image.loaded .full-image {
    opacity: 1;
}

.progressive-image.error .placeholder {
    opacity: 0;
}

.progressive-image.error .full-image {
    opacity: 1;
    filter: none;
}

.progressive-image .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    z-index: 3;
    opacity: 0.7;
}

.progressive-image.loaded .loading-indicator,
.progressive-image.error .loading-indicator {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
}

.progressive-image img,
.product-image img,
.modern-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: visible !important;
    display: block !important;
}

.modern-main-image .progressive-image img,
.product-image .progressive-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@supports not (aspect-ratio: 1 / 1) {
    .product-image {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;
        background: #f8f9fa;
    }
    
    .modern-main-image {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;
        background: #fff;
        border-radius: 6px;
        max-width: 800px;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.style_container__0AGI1 {
    width: 100%;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 999;
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .style_container__0AGI1 {
        height: 30px;
    }
    
    .style_textContainer__Kf86D {
        animation-duration: 50s;
    }
    
    .style_textContainer__Kf86D span {
        padding: 0 25px !important;
        font-size: 13px !important;
    }
}

.style_wrapper__jt5ve {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.style_textContainer__Kf86D {
    display: flex;
    white-space: nowrap;
    animation: scrollText 60s linear infinite;
    color: white;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .style_textContainer__Kf86D {
        animation-duration: 70s;
    }
    
    .style_textContainer__Kf86D span {
        padding: 0 30px !important;
        font-size: 14px !important;
    }
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #fff;
}

.horizontal-menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0px;
    padding: 0;
    height: 50px;
    position: relative;
}

.horizontal-menu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #e9ecef;
}

.horizontal-menu::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #e9ecef;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #e9ecef;
}

.menu-item > a,
.menu-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    height: 100%;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.menu-item > a:hover,
.menu-link:hover {
    color: var(--primary-color);
}

.menu-item.has-dropdown > a i {
    font-size: 12px;
    transform: scale(0.833);
    transform-origin: center;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.menu-item.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-header {
    padding: 12px 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.dropdown-content {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 20px;
}

@media (max-width: 768px) {
    .horizontal-menu {
        display: none;
    }
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-top {
        padding: 8px 0;
        gap: 10px;
    }
    
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .logo .logo-text {
        font-size: 16px;
    }
    
    .logo img {
        display: none;
    }
    
    .search-form {
        display: none;
    }
    
    .user-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-search-btn {
        display: flex !important;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .phone-info {
        display: none;
    }
    
    .cart-link {
        width: 32px;
        height: 32px;
        padding: 4px;
        border-radius: 50%;
    }
    
    .cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .cart-badge {
        min-width: 20px;
        height: 19px;
        font-size: 12px;
        top: 4px;
        right: -16px;
    }
    
    .mobile-menu-toggle {
        order: 1;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .horizontal-menu {
        display: none;
    }
    
    .mobile-search-form {
        margin: 0;
    }
    
    .mobile-search-form-inner {
        padding: 10px 0;
    }
    
    .mobile-search-inputs {
        gap: 8px;
    }
    
    .mobile-search-input {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
    }
    
    .mobile-search-submit {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 15px;
    }
    
    .cart-modal {
        max-width: 90%;
        max-height: 70vh;
    }
    
    .cart-modal-header {
        padding: 10px 18px;
    }
    
    .cart-modal-header h3 {
        font-size: 16px;
    }
    
    .cart-modal-content {
        max-height: calc(70vh - 140px);
        padding: 0;
    }
    
    .cart-item {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 44px;
        height: 44px;
    }
    
    .cart-item-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .cart-item-price {
        font-size: 15px;
    }
    
    .quantity-display {
        font-size: 12px;
        padding: 3px 6px;
        min-width: 48px;
    }
    
    .remove-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .cart-footer {
        padding: 15px;
    }
    
    .cart-total-label {
        font-size: 15px;
    }
    
    .cart-total-amount {
        font-size: 17px;
    }
    
    .cart-actions {
        gap: 6px;
    }
    
    .btn-outline,
    .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .mobile-menu {
        width: 260px;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-menu-header h3 {
        font-size: 16px;
    }
    
    .mobile-menu-link {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .mobile-menu-link i {
        margin-right: 8px;
        width: 14px;
    }
}