

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #FFFFFF;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-search-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        align-items: center !important;
        height: 64px !important;
        gap: 12px !important;
        position: relative !important;
        width: 100% !important;
    }
    .header-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
    }
    .header-center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 10px !important;
        flex-shrink: 0 !important;
    }
    .header-center .brand-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        line-height: 1 !important;
    }
    .header-center .brand-logo img,
    .header-center .site-header-logo-img {
        max-height: 34px !important;
        max-width: 140px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .main-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        color: #111827 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
    }
    .mobile-menu-btn svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        display: block !important;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-detail-layout {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        height: 56px !important;
        gap: 0 !important;
        width: 100% !important;
    }
    .header-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: 100% !important;
        z-index: 2 !important;
    }
    .header-center {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        z-index: 1 !important;
        max-width: calc(100% - 150px) !important;
        padding: 0 !important;
        pointer-events: auto !important;
    }
    .header-center .brand-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        line-height: 1 !important;
    }
    .header-center .brand-logo img,
    .header-center .site-header-logo-img {
        max-height: 28px !important;
        max-width: 110px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        gap: 4px !important;
        z-index: 2 !important;
    }
    .header-account-btn {
        display: none !important;
    }
    .mobile-search-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-search-wrap {
        display: none !important;
    }
    .header-search-wrap.active {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #FFFFFF !important;
        padding: 10px 16px !important;
        border-bottom: 1px solid var(--color-border) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }
    .header-search-wrap.active .header-search-form {
        width: 100% !important;
    }
    .header-search-wrap.active .header-search-input {
        width: 100% !important;
        font-size: 14px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 14px 0 40px !important;
        border-radius: 8px !important;
        border: 1px solid #D1D5DB !important;
        background-color: #F9FAFB !important;
    }
    .header-search-wrap.active .search-submit-btn {
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .header-action-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
    }
    .header-action-btn svg {
        width: 19px !important;
        height: 19px !important;
    }
    .mobile-menu-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .mobile-menu-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    .cart-badge {
        top: -1px !important;
        right: -1px !important;
        font-size: 9px !important;
        min-width: 15px !important;
        height: 15px !important;
        line-height: 15px !important;
        padding: 0 3px !important;
    }
    .brand-logo {
        font-size: 18px !important;
        letter-spacing: 1.5px !important;
    }
    .announcement-bar {
        font-size: 10.5px !important;
        padding: 6px 12px !important;
        line-height: 1.35 !important;
    }
    .announcement-bar-content {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 2px 6px !important;
    }
    
    .hero-section {
        padding: 30px 0 50px;
    }
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
    }
    .hero-text-col {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }
    .hero-badge {
        align-self: center;
    }
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero-text {
        font-size: 14.5px;
        margin-bottom: 25px;
    }
    .hero-actions {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }
    .btn-hero {
        width: 100%;
        max-width: 320px;
        padding: 13px 20px;
    }
    .hero-features {
        justify-content: center;
        gap: 15px;
    }
    .hero-visual-card {
        aspect-ratio: 4 / 5;
        max-height: 480px;
        margin: 0 auto;
        max-width: 440px;
    }
    .hero-floating-badge {
        bottom: 16px;
        left: 16px;
        padding: 8px 14px;
    }

    
    .promo-editorial-card {
        grid-template-columns: 1fr;
    }
    .promo-editorial-content {
        padding: 36px 20px;
        text-align: center;
    }
    .promo-editorial-image {
        min-height: 240px;
        order: -1;
    }

    
    .auth-page-wrapper {
        padding: 30px 12px;
        min-height: auto;
    }
    .auth-card {
        padding: 32px 20px;
        box-shadow: none;
        border-color: var(--color-border);
    }
    .auth-title {
        font-size: 22px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 10px;
    }
    .product-thumb {
        margin-bottom: 10px;
    }
    .product-title {
        font-size: 13px;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery, .product-detail-info {
        position: static;
    }
    .product-gallery {
        flex-direction: column-reverse;
        gap: 12px;
    }
    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .thumb-item {
        width: 64px;
        flex-shrink: 0;
    }
    .gallery-main {
        max-height: 520px;
    }
    .detail-title {
        font-size: 22px;
    }
    .detail-price {
        font-size: 22px;
    }
    .quantity-add-row {
        flex-direction: row;
        gap: 10px;
    }
    .quantity-add-row .btn-add-to-cart {
        font-size: 12.5px;
        letter-spacing: 0.8px;
    }
    
    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-payments {
        order: -1;
        padding: 6px 12px;
        max-width: 100%;
    }
    .footer-payment-img {
        height: 24px;
        max-width: 290px;
    }
    .footer-copyright {
        white-space: normal;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    
    .cart-table thead {
        display: none;
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .cart-table tr {
        position: relative;
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
    }
    .cart-table td {
        padding: 6px 0;
        border: none;
        text-align: left !important;
    }
    .cart-product-cell {
        gap: 14px;
        align-items: flex-start;
    }
    .cart-product-cell img {
        width: 72px;
        height: 96px;
        object-fit: cover;
        border-radius: var(--border-radius);
        flex-shrink: 0;
    }

    
    .mobile-sticky-buy-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 12px 18px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
        z-index: 9999;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--color-border);
    }
    .mobile-sticky-buy-bar.visible {
        transform: translateY(0);
    }
    .mobile-sticky-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }
    .mobile-sticky-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }
    .mobile-sticky-price {
        font-size: 15px;
        font-weight: 700;
        color: var(--color-primary);
    }
    .mobile-sticky-buy-bar .btn {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .header-inner {
        height: 52px !important;
        gap: 0 !important;
    }
    .header-center {
        max-width: calc(100% - 130px) !important;
    }
    .header-center .brand-logo img,
    .header-center .site-header-logo-img {
        max-height: 25px !important;
        max-width: 100px !important;
    }
    .header-right {
        gap: 3px !important;
    }
    .header-action-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .header-action-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .mobile-menu-btn {
        width: 34px !important;
        height: 34px !important;
    }
    .mobile-menu-btn svg {
        width: 19px !important;
        height: 19px !important;
    }
    .cart-badge {
        top: -1px !important;
        right: -1px !important;
        font-size: 8.5px !important;
        min-width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }
    .product-grid {
        gap: 12px 8px;
    }
    .product-info {
        padding: 10px 4px 4px;
    }
    .product-title {
        font-size: 12.5px;
        line-height: 1.35;
    }
    .product-price {
        font-size: 13.5px;
    }
    .announcement-bar-content {
        font-size: 10px !important;
        letter-spacing: 0.25px !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    .header-inner {
        height: 48px !important;
        gap: 0 !important;
    }
    .header-center {
        max-width: calc(100% - 110px) !important;
    }
    .header-center .brand-logo img,
    .header-center .site-header-logo-img {
        max-height: 22px !important;
        max-width: 85px !important;
    }
    .brand-logo {
        font-size: 14.5px !important;
        letter-spacing: 1px !important;
    }
    .header-right {
        gap: 2px !important;
    }
    .header-action-btn {
        width: 28px !important;
        height: 28px !important;
    }
    .header-action-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    .mobile-menu-btn {
        width: 30px !important;
        height: 30px !important;
    }
    .mobile-menu-btn svg {
        width: 17px !important;
        height: 17px !important;
    }
    .cart-badge {
        top: -2px !important;
        right: -2px !important;
        font-size: 8px !important;
        min-width: 13px !important;
        height: 13px !important;
        line-height: 13px !important;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-text {
        font-size: 13px;
    }
    .btn-hero {
        max-width: 100%;
        font-size: 12.5px;
        padding: 11px 16px;
    }
    .auth-card {
        padding: 20px 12px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 6px;
    }
    .product-thumb {
        margin-bottom: 6px;
    }
    .product-title {
        font-size: 11.5px;
    }
    .product-price {
        font-size: 12.5px;
    }
    .detail-title {
        font-size: 20px;
    }
    .detail-price .price-current {
        font-size: 20px !important;
    }
    .quantity-selector {
        height: 42px;
    }
    .qty-btn {
        width: 38px;
        height: 42px;
    }
    .footer-payment-img {
        height: 20px;
        max-width: 240px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .hero-section {
        padding: 80px 0 100px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1560px;
    }
}
