/* ========================================
   MOBILE RESPONSIVESTYLES
   OxyVanityHair - Optimiert für alle Geräte
   ======================================== */

/* === Mobile Navigation Overlay === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    padding: 80px 30px 30px;
    overflow-y: auto;
    opacity: 0;
    transition: right 0.4s ease-in-out, opacity 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-menu-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.mobile-menu-header .logo-img,
.mobile-menu-header .mobile-logo-img {
    max-height: 88px;
    max-width: 280px;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.mobile-menu-header p {
    color: var(--primary-light);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav ul li {
    margin-bottom: 8px;
}

.mobile-menu nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu nav ul li a:hover,
.mobile-menu nav ul li a.active {
    background: var(--primary-color);
    padding-left: 30px;
}

.mobile-menu nav ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-footer .btn {
    width: 100%;
    margin-bottom: 15px;
}

/* === Tablet & Desktop Styles (1173px+) === */
@media (min-width: 1173px) {
    .mobile-menu-toggle,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* === Mobile & Tablet Styles (max-width: 768px) === */
@media (max-width: 768px) {
    /* === Container & Spacing === */
    .container {
        padding: 0 15px;
        margin-bottom: 15px;
    }
    
    /* === Header === */
    .header-top {
        font-size: 12px;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .header-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .header-info span {
        margin-right: 0;
    }
    
    .header-links {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-links a {
        margin-left: 0;
    }
    
    .header-main {
        padding: 12px 0 4px 0;
    }
    
    .header-main-content {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .logo .tagline {
        font-size: 9px;
    }
    
    /* Hide desktop navigation */
    .main-nav {
        display: none !important;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .search-box input {
        width: 140px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-box button {
        padding: 6px 12px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
    
    /* === Hero Section === */
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px;
    }
    
    .hero .btn {
        padding: 10px 24px;
        font-size: 12px;
    }
    
    /* === Page Headers === */
    .page-header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
        word-wrap: break-word;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    /* === Products Page === */
    .products-page .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* === Section Titles === */
    .section-title {
        font-size: 28px !important;
        margin-bottom: 30px;
    }
    
    /* === Features Grid === */
    .features {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .feature-item {
        padding: 15px 5px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin: 0 auto 10px;
    }
    
    .feature-item h3 {
        font-size: 12px;
        margin-bottom: 5px;
        font-weight: 600;
    }
    
    .feature-item p {
        font-size: 10px;
        line-height: 1.3;
    }
    
    /* === Categories Grid === */
    .categories-section {
        padding: 50px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        height: 250px;
        display: block;
    }
    
    .category-image {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
    }
    
    /* === Products Grid === */
    .products-section {
        padding: 50px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* === Product Card === */
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        height: 280px;
        aspect-ratio: 1 / 1;
    }
    
    .product-image img {
        object-fit: cover;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-description {
        font-size: 12px;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .product-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    .product-price {
        font-size: 20px;
        text-align: center;
    }
    
    /* === Banner === */
    .banner {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    /* === Newsletter === */
    .newsletter-section {
        padding: 50px 0;
    }
    
    .newsletter-icon {
        font-size: 48px;
    }
    
    .newsletter-box h2 {
        font-size: 24px;
    }
    
    .newsletter-box p {
        font-size: 14px;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form-inline input,
    .newsletter-form-inline button {
        width: 100%;
    }
    
    /* === Footer === */
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* === Products Page === */
    .products-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* === Product Detail === */
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .product-gallery {
        margin-bottom: 20px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail-images img {
        width: 60px;
        height: 60px;
    }
    
    .product-details h1 {
        font-size: 24px;
    }
    
    .product-actions-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .product-actions-box .btn {
        width: 100%;
    }
    
    /* === Cart Page === */
    .cart-content {
        grid-template-columns: 1fr !important;
    }
    
    .cart-items {
        order: 1;
        margin-bottom: 30px;
    }
    
    .cart-summary {
        position: static !important;
        order: 2;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        background: var(--bg-light);
        border-radius: 10px;
        padding: 15px;
        border: none;
    }
    
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-table tbody td:last-child {
        border-bottom: none;
    }
    
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .cart-product img {
        width: 100%;
        height: auto;
        max-width: 150px;
    }
    
    .quantity-control {
        margin-left: auto;
    }
    
    /* === Checkout Page === */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .order-summary {
        position: static !important;
        order: -1;
        margin-bottom: 30px;
    }
    
    .checkout-box {
        padding: 20px;
    }
    
    .checkout-box h2 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .payment-methods {
        grid-template-columns: 1fr !important;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .step {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* === Account Page === */
    .account-grid {
        grid-template-columns: 1fr !important;
    }
    
    .account-sidebar {
        margin-bottom: 30px;
    }
    
    .order-item {
        padding: 15px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .order-header h3 {
        font-size: 16px;
    }
    
    /* === Buttons === */
    .btn {
        padding: 14px 28px;
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-small {
        padding: 10px 20px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .btn-block {
        width: 100%;
    }
    
    /* === Empty States === */
    .empty-cart,
    .no-products,
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-cart i,
    .no-products i,
    .empty-state i {
        font-size: 80px;
    }
    
    .empty-cart h2,
    .no-products h2,
    .empty-state h3 {
        font-size: 24px;
    }
    
    /* === Search Page === */
    .search-results {
        padding: 40px 0;
    }
    
    /* === Category Page === */
    .category-header {
        padding: 40px 0 30px;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
}

/* === Extra Small Mobile (max-width: 480px) === */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .logo .tagline {
        font-size: 8px;
    }
    
    .search-box {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .features-grid {
        gap: 5px;
    }
    
    .feature-item {
        padding: 12px 3px;
    }
    
    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin: 0 auto 8px;
    }
    
    .feature-item h3 {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .feature-item p {
        font-size: 9px;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 400px;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .cart-product img {
        max-width: 100%;
    }
    
    .quantity-control button {
        width: 40px;
        height: 40px;
    }
    
    .quantity-control input {
        width: 70px;
    }
    
    .checkout-box {
        padding: 15px;
    }
    
    .summary-total {
        font-size: 20px;
    }
}

/* === Landscape Mobile (max-height: 500px) === */
@media (max-height: 500px) {
    .hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
}

/* === Touch-Friendly Improvements === */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn-icon {
        width: 48px;
        height: 48px;
    }
    
    .quantity-control button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-menu-close {
        min-width: 54px;
        min-height: 54px;
    }
    
    a, button {
        min-height: 44px;
    }
}

/* ============================================
   WARENKORB RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr !important;
    }
    
    .cart-items {
        order: 1;
    }
    
    .cart-summary {
        order: 2;
        position: static !important;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 0px !important;
        margin-bottom: 0px !important;
    }
    
    .page-header h1 {
        font-size: 28px !important;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding-top: 20px;
        background: #fff;
        border-radius: 12px;
        padding: 0;
        border: 1px solid var(--border-color);
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-table tbody td:last-child {
        border-bottom: none;
        background: #fafafa;
        justify-content: center;
    }
    
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        font-size: 13px;
    }
    
    /* Produktzeile - nimmt volle Breite */
    .cart-product {
        flex-direction: row !important;
        align-items: center !important;
        padding: 20px 15px !important;
        gap: 15px !important;
        background: linear-gradient(135deg, #f8f5fc, #fff);
    }
    
    .cart-product::before {
        display: none !important;
    }
    
    .cart-product img {
        width: 100px !important;
        height: 100px !important;
        border-radius: 8px !important;
        flex-shrink: 0;
    }
    
    .product-details {
        flex: 1;
        min-width: 0;
    }
    
    .product-details h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        font-weight: 600;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .product-details p {
        font-size: 13px !important;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Preis, Menge, Gesamt */
    .cart-price,
    .cart-quantity,
    .cart-subtotal {
        font-size: 15px;
    }
    
    .cart-price {
        color: var(--primary-color) !important;
        font-weight: 600;
    }
    
    .cart-subtotal {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: var(--text-dark);
    }
    
    /* Quantity Control verbessern */
    .cart-quantity .quantity-control {
        gap: 10px !important;
    }
    
    .cart-quantity .quantity-control button {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px !important;
    }
    
    .cart-quantity .quantity-control input {
        width: 55px !important;
        height: 36px !important;
        font-size: 16px;
        font-weight: 600;
        border-radius: 6px !important;
    }
    
    /* Remove Button */
    .btn-remove {
        font-size: 20px !important;
        padding: 10px;
    }
    
    /* Zusammenfassung */
    .cart-summary {
        padding: 25px 20px !important;
        margin-top: 20px;
        border-radius: 12px !important;
    }
    
    .cart-summary h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .summary-line {
        font-size: 15px;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .summary-total {
        font-size: 20px !important;
        margin: 20px 0 !important;
        padding-top: 15px !important;
    }
    
    .shipping-notice,
    .shipping-success {
        font-size: 13px !important;
        padding: 15px !important;
        text-align: center;
    }
    
    .btn-block {
        padding: 15px 20px !important;
        font-size: 16px !important;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .cart-product img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .product-details h3 {
        font-size: 14px !important;
    }
    
    .product-details p {
        font-size: 12px !important;
    }
    
    .cart-table tbody td {
        padding: 12px;
    }
    
    .cart-product {
        padding: 15px 12px !important;
        gap: 12px !important;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

