/* =============================================
   MOBILE OPTIMIZATION - All Pages
   EpicKey Gaming E-commerce
   ============================================= */

/* ===== GLOBAL MOBILE FIXES ===== */

/* Better touch targets (minimum 44px) */
@media (max-width: 992px) {
    a, button, input[type="submit"], .btn {
        min-height: 44px;
    }
    
    /* Prevent horizontal overflow on all pages */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Smoother animations on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Reduce section padding globally */
    section {
        padding: 50px 0;
    }
    
    /* ===== UNIVERSAL OVERFLOW PREVENTION ===== */
    /* This is the "home page logic" applied to ALL pages */
    *, *::before, *::after {
        box-sizing: border-box;
    }
    
    /* Every grid child must respect its column — prevents ANY grid blowout */
    .checkout-grid > *,
    .cart-layout > *,
    .cart-item > *,
    .product-detail-grid > *,
    .product-detail > *,
    .account-grid > *,
    .contact-content > *,
    .contact-page-grid > *,
    .success-card > *,
    .order-details > *,
    .newsletter-content > *,
    .footer-content > *,
    .form-row > *,
    .products-layout > *,
    .filters-container > *,
    .sort-options > *,
    .products-header > * {
        min-width: 0;
        max-width: 100%;
    }
    
    /* All forms — prevent input overflow */
    form, .form-group, .form-row,
    .checkout-form, .order-summary,
    .auth-card, .settings-section,
    .contact-form, .success-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* All inputs must stay within their container */
    input, select, textarea, button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* All images must be fluid */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables must scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    thead, tbody, tr, td, th {
        max-width: 100%;
    }
}

/* ===== HEADER & NAVIGATION ===== */
@media (max-width: 992px) {
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    /* Smaller logo on mobile */
    .logo a {
        font-size: 22px;
        gap: 8px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    /* Better header actions spacing */
    .header-actions {
        gap: 6px;
    }
    
    .header-actions button,
    .header-actions > a:not(.login-link) {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    /* Login button compact */
    .login-link {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }
    
    .login-link span {
        display: none;
    }
    
    .login-link i {
        font-size: 16px;
    }
    
    /* User button compact */
    .user-dropdown .user-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 5px;
    }
    
    .user-dropdown .user-name {
        max-width: 60px;
        font-size: 12px;
    }
    
    /* Mobile nav improvements */
    .nav {
        padding: 10px 0;
        background: #ffffff;
    }
    
    .nav-menu > li > a {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .nav .dropdown-menu li a {
        padding: 12px 20px 12px 35px;
        font-size: 13px;
    }
    
    /* Better mobile search dropdown */
    .header-search-form {
        width: calc(100vw - 30px);
        max-width: 360px;
        right: -60px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 10px 0;
    }
    
    .logo a {
        font-size: 20px;
        gap: 6px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-actions button,
    .header-actions > a:not(.login-link) {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .login-link {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .cart-count {
        top: -4px;
        right: -4px;
        font-size: 9px;
        min-width: 18px;
        height: 18px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    /* Search dropdown to full width */
    .header-search-form {
        position: fixed;
        top: 60px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
    }
}

/* ===== HERO SECTION ===== */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 140px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 38px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .stat h3 {
        font-size: 26px;
    }
    
    .stat p {
        font-size: 13px;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Floating cards: push tighter on tablet */
    .floating-card {
        padding: 8px 10px;
        max-width: 180px;
    }
    .floating-card img {
        width: 40px;
        height: 40px;
    }
    .card-label {
        font-size: 9px;
    }
    .card-title {
        font-size: 11px;
    }
    .floating-card-1 {
        top: -10px;
        right: -15px;
    }
    .floating-card-2 {
        bottom: -10px;
        right: -15px;
    }
    .hero-rating-badge {
        left: -10px;
        top: -10px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .hero-price-tag {
        bottom: 10px;
        left: 10px;
    }

    /* New hero marketing elements */
    .hero-urgency-bar {
        padding: 8px 0;
    }
    .urgency-inner {
        font-size: 11px;
        gap: 6px;
    }
    .urgency-sep {
        display: none;
    }
    .urgency-inner > span:nth-child(n+4) {
        display: none;
    }
    .hero-social-proof {
        justify-content: center;
    }
    .hero-usp-row {
        justify-content: center;
    }
    .hero-live-activity {
        margin: 0 auto 25px;
    }
    .hero-price-tag {
        bottom: 10px;
        left: auto;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 125px 0 50px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat h3 {
        font-size: 22px;
    }
    
    .hero-image {
        max-width: 300px;
    }

    /* Hide floating cards on small tablets — too cluttered */
    .floating-card,
    .hero-rating-badge {
        display: none;
    }
    
    /* Market hero mobile */
    .urgency-inner {
        font-size: 11px;
    }
    .hero-social-proof {
        gap: 8px;
        margin-bottom: 12px;
    }
    .sp-avatar {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .social-proof-text {
        font-size: 12px;
    }
    .hero-usp-row {
        gap: 8px;
        margin-bottom: 20px;
    }
    .usp-pill {
        font-size: 11px;
        padding: 5px 10px;
    }
    .btn-hero-shop {
        font-size: 14px !important;
        padding: 14px 24px !important;
    }
    .hero-live-activity {
        padding: 8px 14px;
        margin-bottom: 20px;
    }
    .live-text {
        font-size: 12px;
        max-width: 280px;
    }
    .hero-price-tag {
        padding: 8px 14px;
    }
    .hero-price-value {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 115px 0 40px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat h3 {
        font-size: 20px;
    }
    
    .stat p {
        font-size: 12px;
    }
    
    .hero-image {
        max-width: 250px;
    }

    .floating-card,
    .hero-rating-badge {
        display: none;
    }
    
    /* Hero marketing 576 */
    .hero-urgency-bar {
        padding: 6px 0;
    }
    .urgency-inner {
        font-size: 10px;
    }
    .sp-avatar {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
    .hero-usp-row {
        gap: 6px;
        margin-bottom: 16px;
    }
    .usp-pill {
        font-size: 10px;
        padding: 4px 8px;
        gap: 4px;
    }
    .usp-pill i {
        font-size: 11px;
    }
    .btn-hero-shop {
        font-size: 13px !important;
        padding: 14px 20px !important;
    }
    .hero-live-activity {
        padding: 7px 12px;
    }
    .live-text {
        font-size: 11px;
        max-width: 230px;
    }
    .hero-price-tag {
        padding: 6px 12px;
        border-radius: 10px;
    }
    .hero-price-label {
        font-size: 9px;
    }
    .hero-price-value {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: 108px 0 35px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .hero-social-proof {
        gap: 6px;
        margin-bottom: 10px;
    }
    .social-proof-text {
        font-size: 11px;
    }
    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    .hero-usp-row {
        gap: 5px;
    }
    .usp-pill {
        font-size: 9px;
    }
    .hero-live-activity {
        padding: 6px 10px;
    }
    .live-text {
        font-size: 10px;
        max-width: 200px;
    }
    .hero-stats {
        gap: 10px;
    }
    .stat {
        padding: 10px 12px;
    }
    .stat h3 {
        font-size: 18px;
    }
}

/* ===== SECTION TITLES ===== */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
}

/* ===== CATEGORIES SECTION ===== */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .category-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .category-card p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-arrow {
        width: 30px;
        height: 30px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    .category-card p {
        display: none;
    }
    
    .category-arrow {
        display: none;
    }
}

/* ===== FEATURES SECTION ===== */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .feature-content h3 {
        font-size: 15px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 16px;
        gap: 12px;
    }
    
    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .feature-content h3 {
        font-size: 14px;
    }
    
    .feature-content p {
        font-size: 12px;
    }
}

/* ===== HOME PAGE PRODUCTS GRID ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        overflow: hidden;
        max-width: 100%;
    }
    
    .product-card {
        border-radius: 8px;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .product-image {
        height: 150px !important;
    }
    
    .product-image img {
        padding: 5px;
    }
    
    .product-info {
        padding: 10px 10px 6px;
    }
    
    .product-category {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .product-card .product-title {
        font-size: 11px !important;
        height: 32px;
        max-height: 32px;
        -webkit-line-clamp: 2;
        margin-bottom: 4px;
    }
    
    .product-price-row {
        gap: 5px;
        margin-bottom: 2px;
    }
    
    .product-price-row .price-current,
    .price-current {
        font-size: 14px;
    }
    
    .product-price-row .price-old,
    .price-old {
        font-size: 10px;
    }
    
    .product-card-actions {
        padding: 0 10px 10px;
    }
    
    .btn-add-to-cart {
        padding: 7px 8px;
        font-size: 11px;
        gap: 5px;
        letter-spacing: 0;
    }
    
    .btn-add-to-cart i {
        font-size: 11px;
    }
    
    .product-badge {
        top: 6px;
        right: 6px;
        padding: 3px 7px;
        font-size: 9px;
    }
    
    /* Hide overlay on mobile - not tap-friendly */
    .product-overlay {
        display: none;
    }
    
    .product-description {
        display: none;
    }
    
    .product-rating {
        font-size: 11px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .product-image {
        height: 130px !important;
    }
    
    .product-info {
        padding: 8px 8px 4px;
    }
    
    .product-category {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    .product-card .product-title {
        font-size: 10px !important;
        height: 28px;
        max-height: 28px;
    }
    
    .product-price-row .price-current,
    .price-current {
        font-size: 13px;
    }
    
    .product-price-row .price-old,
    .price-old {
        font-size: 9px;
    }
    
    .product-card-actions {
        padding: 0 8px 8px;
    }
    
    .btn-add-to-cart {
        padding: 6px;
        font-size: 10px;
        gap: 4px;
        border-radius: 6px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .product-image {
        height: 110px !important;
    }
    
    .product-info {
        padding: 6px 6px 3px;
    }
    
    .product-card .product-title {
        font-size: 9px !important;
        height: 24px;
        max-height: 24px;
    }
    
    .product-price-row .price-current,
    .price-current {
        font-size: 12px;
    }
    
    .product-price-row .price-old,
    .price-old {
        font-size: 8px;
    }
    
    .product-card-actions {
        padding: 0 6px 6px;
    }
    
    .btn-add-to-cart {
        padding: 5px 4px;
        font-size: 9px;
        gap: 3px;
    }
    
    .product-badge {
        padding: 2px 5px;
        font-size: 8px;
    }
    
    .product-category {
        font-size: 7px;
        margin-bottom: 2px;
    }
}

/* ===== PROMO BANNER ===== */
@media (max-width: 992px) {
    .promo-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
        text-align: center;
    }
    
    .promo-text h2 {
        font-size: 32px;
    }
    
    .promo-text p {
        font-size: 16px;
    }
    
    .promo-image {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .promo-content {
        gap: 20px;
        padding: 30px 0;
    }
    
    .promo-text h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .promo-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .promo-image {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .promo-text h2 {
        font-size: 22px;
    }
    
    .promo-text p {
        font-size: 13px;
    }
    
    .promo-text .btn {
        width: 100%;
    }
    
    .promo-image {
        max-width: 220px;
    }
}

/* ===== PRODUCTS LISTING PAGE ===== */
@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Sidebar becomes full-width compact block */
    .filters-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .filters-container {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .products-info {
        text-align: center;
    }
    
    .sort-options {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    /* Kill min-width from search-box.css and products.css */
    .search-box {
        width: 100%;
        min-width: 0 !important;
    }
    
    .search-input {
        width: 100%;
    }
    
    .sort-select-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .sort-select-wrapper select {
        flex: 1;
        min-width: 0 !important;
    }
    
    .sort-options select {
        min-width: 0 !important;
    }
    
    /* Products grid - force 2 columns */
    .products-main {
        max-width: 100%;
        overflow: hidden;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .product-card {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    /* Products listing grid - force 2-column */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .products-section {
        padding: 15px 0;
    }
    
    .products-section .section-title,
    .products-header h1,
    .products-title {
        font-size: 18px;
    }
    
    .products-count {
        font-size: 12px;
    }
    
    /* Filters stacked vertically on small screens */
    .filters-container {
        flex-direction: column !important;
        gap: 0;
        padding: 0;
    }
    
    .filter-group {
        min-width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .filter-group:last-child {
        border-bottom: none;
    }
    
    .filter-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Category filter list - compact */
    .category-filter-wrapper {
        max-height: 180px;
    }
    
    .category-filter-list li a {
        font-size: 13px;
        padding: 7px 12px;
    }
    
    /* Price filter */
    .price-inputs {
        gap: 8px;
    }
    
    .price-inputs input {
        font-size: 14px;
        padding: 8px 10px;
        max-width: none;
    }
    
    .btn-apply-price {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }
    
    .btn-clear-filters {
        padding: 10px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
    
    /* Better pagination on mobile */
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* Sort & Search section - nice mobile styling */
    .products-header {
        padding: 12px;
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .products-info {
        text-align: left;
    }
    
    .sort-options {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
        min-width: 0 !important;
        position: relative;
    }
    
    .search-input {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px 10px 36px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        background: #f8f9fa;
        transition: border-color 0.2s;
    }
    
    .search-input:focus {
        border-color: #00b96b;
        background: #fff;
    }
    
    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
        font-size: 14px;
    }
    
    .sort-select-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .sort-select-wrapper label {
        font-size: 12px;
        white-space: nowrap;
        color: #6c757d;
        font-weight: 600;
    }
    
    .sort-select-wrapper select,
    .sort-options select,
    .sort-select {
        flex: 1;
        width: 100%;
        min-width: 0 !important;
        font-size: 14px;
        padding: 10px 30px 10px 12px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        background: #f8f9fa;
        color: #1a1a1a;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        cursor: pointer;
    }
    
    .sort-select-wrapper select:focus,
    .sort-options select:focus {
        border-color: #00b96b;
        background-color: #fff;
        outline: none;
    }
    
    /* View mode buttons */
    .view-mode {
        display: none;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .products-section {
        padding: 10px 0;
    }
    
    .products-header {
        padding: 10px;
        gap: 8px;
    }
    
    .products-title {
        font-size: 16px !important;
    }
    
    .products-count {
        font-size: 11px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .filter-group {
        padding: 10px 12px;
        min-width: 100% !important;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 10px 8px 32px;
    }
    
    .sort-select-wrapper select,
    .sort-options select {
        font-size: 13px;
        padding: 8px 26px 8px 10px;
    }
    
    .sort-select-wrapper label {
        font-size: 11px;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */
@media (max-width: 992px) {
    .product-detail,
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    
    .product-gallery,
    .product-images-section {
        max-width: 100%;
    }
    
    .gallery-main img,
    .product-main-image,
    .main-image img {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0;
    }
    
    .product-detail,
    .product-detail-grid {
        gap: 20px;
    }
    
    .gallery-main img,
    .product-main-image,
    .main-image img {
        max-height: 300px;
    }
    
    /* Thumbnails row */
    .gallery-thumbs,
    .product-thumbnails,
    .thumbnail-images {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .gallery-thumb img,
    .product-thumbnails img,
    .thumbnail img {
        height: 60px;
        object-fit: cover;
    }
    
    /* Product info section */
    .product-detail-info h1,
    .product-info-section h1,
    .product-info-section .product-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .product-detail-price,
    .detail-price .price-current,
    .product-price-section .product-price {
        font-size: 26px;
    }
    
    .detail-price .price-old,
    .product-price-section .compare-price {
        font-size: 16px;
    }
    
    /* Actions buttons */
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn,
    .add-to-cart-detail,
    .btn-add-cart,
    .btn-add-to-cart {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 14px;
    }
    
    .btn-wishlist-detail {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    /* Quantity selector */
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-selector input {
        width: 60px;
        font-size: 16px;
    }
    
    .quantity-selector button {
        width: 44px;
        height: 44px;
    }
    
    /* Product features */
    .product-features {
        gap: 12px;
    }
    
    .product-features .feature-item {
        padding: 12px;
        font-size: 13px;
        gap: 12px;
    }
    
    .product-features .feature-item i {
        font-size: 18px;
    }
    
    .product-features .feature-item strong {
        font-size: 13px;
    }
    
    .product-features .feature-item span {
        font-size: 11px;
    }
    
    /* Product tabs */
    .product-tabs .tab-nav,
    .tabs-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .product-tabs .tab-nav button,
    .tabs-nav button,
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    /* Related products */
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-main img,
    .product-main-image,
    .main-image img {
        max-height: 250px;
    }
    
    .gallery-thumb img,
    .product-thumbnails img,
    .thumbnail img {
        height: 50px;
    }
    
    .product-detail-info h1,
    .product-info-section h1,
    .product-info-section .product-title {
        font-size: 18px;
    }
    
    .product-detail-price,
    .detail-price .price-current,
    .product-price-section .product-price {
        font-size: 22px;
    }
    
    .product-actions .btn,
    .add-to-cart-detail,
    .btn-add-cart,
    .btn-add-to-cart {
        padding: 12px;
        font-size: 13px;
    }
    
    .related-products h2,
    .related-products .section-title {
        font-size: 20px;
    }
}

/* ===== BREADCRUMB ===== */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 0;
        font-size: 12px;
    }
    
    .breadcrumb .container {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .breadcrumb .container a,
    .breadcrumb .container span {
        font-size: 12px;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 3px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 10px 0;
        font-size: 11px;
    }
}

/* ===== CART PAGE ===== */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .cart-summary {
        position: static;
    }
    
    /* Keep 5-column grid but smaller */
    .cart-item {
        grid-template-columns: 80px 1fr 120px 100px 36px;
        gap: 12px;
        padding: 15px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 20px 0;
    }
    
    .cart-header {
        padding: 15px 15px;
    }
    
    .cart-header h1 {
        font-size: 20px;
    }
    
    /* Cart item - compact card layout with image on left */
    .cart-item {
        display: grid !important;
        grid-template-columns: 75px 1fr !important;
        grid-template-rows: auto auto auto;
        gap: 0 12px;
        padding: 15px;
        align-items: start;
    }
    
    /* Image - small thumbnail on the left */
    .item-image {
        width: 75px !important;
        height: 75px !important;
        border-radius: 8px;
        grid-row: 1 / 3;
        grid-column: 1;
    }
    
    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* Details - next to image */
    .item-details {
        grid-column: 2;
        grid-row: 1;
    }
    
    .item-name {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .item-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .item-category {
        font-size: 11px;
    }
    
    .item-price {
        font-size: 14px;
        font-weight: 600;
        color: #00b96b;
    }
    
    /* Quantity + total - row next to image */
    .item-quantity {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
        width: fit-content;
        margin-top: 8px;
    }
    
    .qty-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .qty-input {
        width: 36px !important;
        height: 30px !important;
        font-size: 14px;
    }
    
    /* Total price and remove - bottom row */
    .item-total {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        margin-top: 8px;
        border-top: 1px solid #f0f0f0;
        text-align: left;
    }
    
    .total-price {
        font-size: 16px;
    }
    
    .item-remove {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        margin: 0;
        width: 34px;
        height: 34px;
        font-size: 14px;
        position: relative;
        top: 5px;
    }
    
    /* Cart actions */
    .cart-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .btn-continue,
    .btn-clear {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 13px;
    }
    
    /* Cart summary */
    .cart-summary {
        padding: 20px;
        border-radius: 8px;
    }
    
    .cart-summary h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .summary-row {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .summary-total {
        font-size: 16px;
    }
    
    .total-amount {
        font-size: 20px;
    }
    
    .btn-checkout {
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .shipping-notice {
        font-size: 12px;
        padding: 10px;
        border-radius: 8px;
    }
    
    /* Payment methods */
    .cart-summary .payment-methods {
        padding-top: 15px;
    }
    
    .cart-summary .payment-methods i {
        font-size: 24px;
    }
    
    /* Empty cart */
    .empty-cart {
        padding: 50px 20px;
    }
    
    .empty-cart i {
        font-size: 60px;
    }
    
    .empty-cart h2 {
        font-size: 20px;
    }
    
    .empty-cart p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .empty-cart .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .cart-item {
        grid-template-columns: 65px 1fr !important;
        gap: 0 10px;
        padding: 12px;
    }
    
    .item-image {
        width: 65px !important;
        height: 65px !important;
    }
    
    .item-name {
        font-size: 12px !important;
    }
    
    .item-price {
        font-size: 13px;
    }
    
    .qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px;
    }
    
    .qty-input {
        width: 32px !important;
        height: 28px !important;
        font-size: 13px;
    }
    
    .total-price {
        font-size: 15px;
    }
    
    .cart-header {
        padding: 12px;
    }
    
    .cart-header h1 {
        font-size: 18px;
    }
}

/* ===== CHECKOUT PAGE ===== */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 30px 0;
    }
    
    .checkout-section h1,
    .checkout-section .section-title {
        font-size: 22px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 20px;
    }
    
    .form-title,
    .summary-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Summary items */
    .summary-item {
        gap: 10px;
    }
    
    .summary-item img {
        width: 50px;
        height: 50px;
    }
    
    .summary-item-details h4 {
        font-size: 13px;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .summary-row.total-row {
        font-size: 16px;
    }
    
    .btn-place-order {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .checkout-form,
    .order-summary {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
    
    .summary-item img {
        width: 45px;
        height: 45px;
    }
}

/* ===== AUTH PAGES (Login/Register) ===== */
@media (max-width: 768px) {
    .auth-section {
        padding: 30px 0;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
        border-width: 1px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.85rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 25px 15px;
        margin: 0;
    }
    
    .auth-header h1 {
        font-size: 1.35rem;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .social-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* ===== ACCOUNT PAGES ===== */
@media (max-width: 992px) {
    .account-section {
        padding: 20px 0;
    }
    
    .account-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .account-sidebar {
        position: static !important;
        border-radius: 10px;
        overflow: hidden;
    }
    
    /* Compact user info - horizontal */
    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 15px 20px;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .user-avatar i {
        font-size: 1.2rem;
    }
    
    .user-info h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    
    .user-info p {
        font-size: 0.75rem;
    }
    
    /* Horizontal scrollable nav */
    .account-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-top: 1px solid #e5e5e5;
    }
    
    .account-nav::-webkit-scrollbar {
        display: none;
    }
    
    .account-nav a {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 13px;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .account-nav a:last-child {
        border-right: none;
    }
    
    .account-nav a.active {
        border-bottom: 3px solid #00b96b;
        color: #00b96b;
        background: #f0f9f5;
    }
    
    .account-nav a.active i {
        color: #00b96b;
    }
    
    /* Account content */
    .account-content {
        border-top: none;
        border-radius: 10px;
    }
    
    /* Dashboard stats - keep row of 3 */
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
    }
    
    .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    .stat-info p {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .account-section {
        padding: 15px 0;
    }
    
    .account-grid {
        gap: 12px;
    }
    
    .account-content {
        padding: 20px 15px;
    }
    
    .account-content h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .account-content h2 {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }
    
    /* Dashboard stats - 3 columns compact */
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        gap: 6px;
        border-radius: 8px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-icon i {
        font-size: 0.9rem;
    }
    
    .stat-info h3 {
        font-size: 1.1rem;
    }
    
    .stat-info p {
        font-size: 0.65rem;
    }
    
    /* ===== ORDERS TABLE → CARD LAYOUT ===== */
    /* Hide table header, convert rows to stacked cards */
    .orders-table {
        overflow: visible;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .orders-table table {
        display: block;
        min-width: 0;
    }
    
    .orders-table thead {
        display: none;
    }
    
    .orders-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .orders-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        padding: 14px;
        background: #f9f9f9;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        border-left: 4px solid #00b96b;
    }
    
    .orders-table td {
        display: block;
        padding: 0;
        font-size: 13px;
        border: none;
        color: #333;
    }
    
    /* Order ID — bold, left */
    .orders-table td:nth-child(1) {
        font-weight: 700;
        font-size: 14px;
        color: #0a0a0a;
        flex: 0 0 auto;
    }
    
    /* Date — right side */
    .orders-table td:nth-child(2) {
        margin-left: auto;
        font-size: 12px;
        color: #888;
    }
    
    /* Status — full width below */
    .orders-table td:nth-child(3) {
        flex: 0 0 100%;
        order: 3;
    }
    
    .orders-table td:nth-child(3) .status-badge {
        display: inline-block;
        padding: 4px 12px;
        font-size: 11px;
        border-radius: 20px;
    }
    
    /* Total — next to status  */
    .orders-table td:nth-child(4) {
        flex: 0 0 100%;
        order: 4;
        font-weight: 700;
        font-size: 15px;
        color: #00b96b;
        margin-top: 4px;
    }
    
    /* Action button — full width */
    .orders-table td:nth-child(5) {
        flex: 0 0 100%;
        order: 5;
        margin-top: 6px;
    }
    
    .btn-view {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* Order cards (orders page) */
    .order-card {
        margin-bottom: 12px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 15px;
    }
    
    .order-info h3 {
        font-size: 0.95rem;
    }
    
    .order-date {
        font-size: 0.8rem;
    }
    
    .order-body {
        padding: 14px 15px;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-total {
        font-size: 1.05rem;
        color: #00b96b;
    }
    
    .order-footer {
        flex-direction: column;
        padding: 12px 15px;
        gap: 8px;
    }
    
    .btn-view-order,
    .btn-cancel-order {
        width: 100%;
        justify-content: center;
        padding: 11px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* Account details */
    .account-details {
        padding: 20px 15px;
        border-radius: 10px;
        margin-top: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    
    .detail-item {
        background: #fff;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #eee;
    }
    
    .detail-item strong {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #999;
    }
    
    .detail-item span {
        font-size: 0.9rem;
        color: #0a0a0a;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 8px;
        margin-top: 12px;
    }
    
    /* Settings form */
    .settings-section {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .settings-form .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Recent orders heading */
    .recent-orders {
        margin-bottom: 0;
    }
    
    /* Empty state */
    .empty-state {
        padding: 40px 15px;
        border-radius: 10px;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
    }
    
    .empty-state p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .account-section {
        padding: 10px 0;
    }
    
    .account-grid {
        gap: 10px;
    }
    
    .account-content {
        padding: 15px 12px;
    }
    
    .account-content h1 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .account-content h2 {
        font-size: 1.05rem;
    }
    
    /* Smaller nav items */
    .account-nav a {
        padding: 10px 12px;
        font-size: 12px;
        gap: 5px;
    }
    
    .account-nav a i {
        font-size: 13px;
    }
    
    .user-info {
        padding: 12px 15px;
    }
    
    .user-info h3 {
        font-size: 0.85rem;
    }
}

/* ===== ORDER SUCCESS PAGE ===== */
@media (max-width: 768px) {
    .success-section {
        padding: 30px 0;
    }
    
    .success-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .success-icon i {
        font-size: 3.5rem;
    }
    
    .success-card h1 {
        font-size: 1.4rem;
    }
    
    .order-number {
        font-size: 0.95rem;
    }
    
    .success-message {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .order-details {
        padding: 15px;
    }
    
    .detail-row {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .order-items {
        padding: 15px;
    }
    
    .item-row {
        padding: 10px;
        gap: 10px;
    }
    
    .item-row img {
        width: 50px;
        height: 50px;
    }
    
    .delivery-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .success-card {
        padding: 25px 15px;
        margin: 0;
    }
    
    .success-card h1 {
        font-size: 1.2rem;
    }
    
    .success-icon i {
        font-size: 3rem;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
    
    .footer-col ul li a {
        font-size: 13px;
    }
    
    .contact-info li {
        justify-content: center;
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .payment-methods {
        justify-content: center;
        font-size: 24px;
        gap: 10px;
    }
}

/* ===== NEWSLETTER & CONTACT SECTION (footer.css) ===== */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 22px;
    }
    
    .newsletter-text {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        width: 100%;
        padding: 12px 16px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 12px;
    }
    
    /* Contact section */
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Back to top button */
    .back-to-top {
        width: 44px;
        height: 44px;
        right: 15px;
        bottom: 15px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .newsletter-title {
        font-size: 20px;
    }
    
    .newsletter-text {
        font-size: 13px;
    }
}

/* ===== CONTACT PAGE ===== */
@media (max-width: 768px) {
    .contact-page-section {
        padding: 30px 0;
    }
    
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card i {
        font-size: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== BUTTONS - Mobile Improvements ===== */
@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-footer .btn,
    .view-all-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* ===== SEARCH-BOX / SEARCH RESULTS ===== */
@media (max-width: 768px) {
    .search-results {
        padding: 20px 0;
    }
    
    .search-results h1 {
        font-size: 20px;
    }
    
    .search-info {
        font-size: 13px;
    }
}

/* ===== ADMIN PAGES - Mobile ===== */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        width: 260px;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-topbar {
        padding: 10px 15px;
    }
    
    /* Admin tables */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 700px;
    }
}

/* ===== UTILITIES FOR MOBILE ===== */
@media (max-width: 768px) {
    /* Force full-width images in containers */
    .container img {
        max-width: 100%;
        height: auto;
    }
    
    /* Prevent any grid child from overflowing */
    .products-grid > *,
    .categories-grid > *,
    .features-grid > * {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Fix inputs on iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
    }
    
    /* Better spacing for mobile containers */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
}

/* ===== SMOOTH SCROLLBAR ON MOBILE ===== */
@media (max-width: 992px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
}

/* ===== FIX ENHANCEMENTS.CSS MOBILE ISSUES ===== */
@media (max-width: 992px) {
    /* Disable hover transforms on links (causes jank on tap) */
    a:hover {
        transform: none !important;
    }
    
    /* Disable card hover transforms on mobile (not tap-friendly) */
    .product-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    /* Disable button hover lift effects on mobile */
    .btn:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    /* Reduce complex animations */
    .hero-badge {
        animation: none;
    }
    
    .hero-image {
        animation: none;
    }
    
    .promo-image img {
        animation: none;
    }
    
    /* Disable newsletter hover scale */
    .newsletter-input-group:hover {
        transform: none;
    }
    
    /* Table rows - no scale on mobile */
    table tbody tr:hover {
        transform: none;
    }
    
    /* Price hover - no scale on mobile */
    .product-card:hover .product-price,
    .product-card:hover .price-current {
        transform: none;
    }
}

/* ===== BREADCRUMB MOBILE FIX ===== */
@media (max-width: 992px) {
    .breadcrumb {
        padding: 85px 0 20px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 75px 0 15px;
    }
    
    .breadcrumb-list li {
        font-size: 12px;
        gap: 6px;
    }
    
    .breadcrumb-list {
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 70px 0 12px;
    }
    
    .breadcrumb-list li {
        font-size: 11px;
    }
}

/* ===== MAIN CONTENT TOP PADDING ===== */
@media (max-width: 992px) {
    main {
        padding-top: 62px;
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 56px;
    }
}

/* ===== CART NOTIFICATION MOBILE ===== */
@media (max-width: 768px) {
    .cart-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        width: auto;
        border-radius: 8px;
        padding: 12px 15px;
    }
    
    .notification-content {
        font-size: 13px;
        gap: 10px;
    }
    
    .notification-content i {
        font-size: 18px;
    }
}

/* ===== ADD-TO-CART BUTTON ON PRODUCT CARDS ===== */
@media (max-width: 768px) {
    .add-to-cart-btn {
        padding: 10px;
        font-size: 11px;
        border-radius: 6px;
        letter-spacing: 0;
    }
    
    .add-to-cart-btn i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .add-to-cart-btn {
        padding: 8px;
        font-size: 10px;
        gap: 5px;
    }
}

/* ===== PRODUCT DETAIL PAGE - 400px Narrow ===== */
@media (max-width: 400px) {
    .product-detail-section {
        padding: 10px 0;
    }
    
    .product-detail,
    .product-detail-grid {
        gap: 15px;
    }
    
    .main-image img,
    .gallery-main img,
    .product-main-image {
        max-height: 200px;
    }
    
    .gallery-thumbs,
    .product-thumbnails,
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .gallery-thumb img,
    .product-thumbnails img,
    .thumbnail img {
        height: 40px;
    }
    
    .product-detail-info h1,
    .product-info-section h1,
    .product-info-section .product-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .product-detail-price,
    .detail-price .price-current,
    .product-price-section .product-price {
        font-size: 20px;
    }
    
    .detail-price .price-old,
    .product-price-section .compare-price {
        font-size: 14px;
    }
    
    .product-actions .btn,
    .add-to-cart-detail,
    .btn-add-cart,
    .btn-add-to-cart {
        padding: 10px;
        font-size: 12px;
    }
    
    .quantity-selector input {
        width: 50px;
        font-size: 14px;
    }
    
    .quantity-selector button {
        width: 38px;
        height: 38px;
    }
    
    .product-features .feature-item {
        padding: 10px;
        font-size: 12px;
        gap: 10px;
    }
    
    .product-features .feature-item i {
        font-size: 16px;
    }
    
    .tab-content {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .product-tabs .tab-nav button,
    .tabs-nav button,
    .tab-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .related-products h2,
    .related-products .section-title {
        font-size: 18px;
    }
    
    .product-meta {
        font-size: 11px;
        gap: 8px;
    }
    
    .rating-count {
        font-size: 11px;
    }
}

/* ===== CART PAGE - 400px Narrow ===== */
@media (max-width: 400px) {
    .cart-section {
        padding: 10px 0;
    }
    
    .cart-header {
        padding: 10px;
    }
    
    .cart-header h1 {
        font-size: 16px;
    }
    
    .cart-count {
        font-size: 12px;
    }
    
    .cart-item {
        grid-template-columns: 55px 1fr !important;
        gap: 0 8px;
        padding: 10px;
    }
    
    .item-image {
        width: 55px !important;
        height: 55px !important;
    }
    
    .item-name {
        font-size: 11px !important;
    }
    
    .item-category {
        font-size: 10px;
    }
    
    .item-price {
        font-size: 12px;
    }
    
    .qty-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px;
    }
    
    .qty-input {
        width: 28px !important;
        height: 26px !important;
        font-size: 12px;
    }
    
    .total-price {
        font-size: 14px;
    }
    
    .item-total {
        padding-top: 8px;
        margin-top: 6px;
    }
    
    .item-remove {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .cart-summary {
        padding: 15px;
    }
    
    .cart-summary h2 {
        font-size: 16px;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .summary-total {
        font-size: 14px;
    }
    
    .total-amount {
        font-size: 18px;
    }
    
    .btn-checkout {
        padding: 12px;
        font-size: 14px;
    }
    
    .shipping-notice {
        font-size: 11px;
    }
    
    .cart-actions {
        padding: 10px;
        gap: 8px;
    }
    
    .btn-continue,
    .btn-clear {
        padding: 10px;
        font-size: 12px;
    }
    
    .empty-cart {
        padding: 30px 15px;
    }
    
    .empty-cart i {
        font-size: 48px;
    }
    
    .empty-cart h2 {
        font-size: 18px;
    }
    
    .empty-cart p {
        font-size: 13px;
    }
}

/* ===== CHECKOUT PAGE - 400px Narrow ===== */
@media (max-width: 400px) {
    .checkout-section {
        padding: 15px 0;
    }
    
    .checkout-section h1,
    .checkout-section .section-title {
        font-size: 18px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 12px;
        border-radius: 8px;
    }
    
    .form-title,
    .summary-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .summary-item {
        gap: 8px;
    }
    
    .summary-item img {
        width: 40px;
        height: 40px;
    }
    
    .summary-item-details h4 {
        font-size: 12px;
    }
    
    .summary-row {
        font-size: 12px;
    }
    
    .summary-row.total-row {
        font-size: 15px;
    }
    
    .btn-place-order {
        padding: 12px;
        font-size: 14px;
    }
}

/* ===== AUTH PAGES - 576px ===== */
@media (max-width: 576px) {
    .auth-section {
        padding: 20px 0;
    }
    
    .auth-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .auth-header h1 {
        font-size: 1.3rem;
    }
    
    .auth-header p {
        font-size: 0.8rem;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }
    
    .social-buttons .btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* ===== AUTH PAGES - 400px Narrow ===== */
@media (max-width: 400px) {
    .auth-card {
        padding: 20px 12px;
        margin: 0;
        border-radius: 8px;
    }
    
    .auth-header h1 {
        font-size: 1.2rem;
    }
    
    .auth-header p {
        font-size: 0.75rem;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 13px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 13px;
    }
    
    .form-options {
        font-size: 12px;
    }
    
    .form-options a {
        font-size: 12px;
    }
    
    .social-buttons .btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .auth-footer {
        font-size: 12px;
    }
}

/* ===== ACCOUNT PAGES - 400px Narrow ===== */
@media (max-width: 400px) {
    .account-section {
        padding: 8px 0;
    }
    
    .account-grid {
        gap: 8px;
    }
    
    .account-sidebar {
        border-radius: 8px;
    }
    
    .user-info {
        padding: 10px 12px;
    }
    
    .user-info h3 {
        font-size: 0.8rem;
    }
    
    .user-info p {
        font-size: 0.7rem;
    }
    
    .account-nav a {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .account-nav a i {
        font-size: 12px;
    }
    
    .account-content {
        padding: 12px 10px;
    }
    
    .account-content h1 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .account-content h2 {
        font-size: 1rem;
    }
    
    /* Stats: 3 across, tiny */
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .stat-card {
        padding: 10px 6px;
        gap: 4px;
        border-radius: 6px;
    }
    
    .stat-icon {
        width: 30px;
        height: 30px;
    }
    
    .stat-icon i {
        font-size: 0.8rem;
    }
    
    .stat-info h3 {
        font-size: 1rem;
    }
    
    .stat-info p {
        font-size: 0.6rem;
    }
    
    /* Order cards tighter */
    .orders-table tr {
        padding: 10px;
        gap: 4px 10px;
        border-radius: 8px;
    }
    
    .orders-table td:nth-child(1) {
        font-size: 13px;
    }
    
    .orders-table td:nth-child(2) {
        font-size: 11px;
    }
    
    .orders-table td:nth-child(4) {
        font-size: 14px;
    }
    
    .btn-view {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Order cards (orders page) */
    .order-header {
        padding: 10px 12px;
    }
    
    .order-info h3 {
        font-size: 0.85rem;
    }
    
    .order-body {
        padding: 10px 12px;
    }
    
    .order-footer {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .btn-view-order,
    .btn-cancel-order {
        padding: 9px;
        font-size: 12px;
    }
    
    /* Account details */
    .account-details {
        padding: 12px 10px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-item {
        padding: 8px 10px;
    }
    
    .detail-item strong {
        font-size: 0.7rem;
    }
    
    .detail-item span {
        font-size: 0.8rem;
    }
    
    .btn-secondary {
        padding: 10px;
        font-size: 12px;
    }
    
    .settings-section {
        padding: 12px 10px;
    }
    
    .settings-form .form-group input {
        padding: 10px;
        font-size: 13px;
    }
    
    .settings-form .form-group label {
        font-size: 12px;
    }
    
    .empty-state {
        padding: 25px 10px;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1rem;
    }
    
    .empty-state p {
        font-size: 0.8rem;
    }
}

/* ===== ORDER SUCCESS PAGE - 400px Narrow ===== */
@media (max-width: 400px) {
    .success-section {
        padding: 15px 0;
    }
    
    .success-card {
        padding: 20px 10px;
        margin: 0;
        border-radius: 8px;
    }
    
    .success-card h1 {
        font-size: 1.1rem;
    }
    
    .success-icon i {
        font-size: 2.5rem;
    }
    
    .order-number {
        font-size: 0.85rem;
    }
    
    .success-message {
        font-size: 0.8rem;
    }
    
    .order-details {
        padding: 10px;
    }
    
    .order-details h2 {
        font-size: 1rem;
    }
    
    .detail-row {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    
    .order-items {
        padding: 10px;
    }
    
    .order-items h3 {
        font-size: 0.95rem;
    }
    
    .item-row {
        padding: 8px;
        gap: 8px;
    }
    
    .item-row img {
        width: 40px;
        height: 40px;
    }
    
    .item-row .item-name {
        font-size: 12px;
    }
    
    .item-row .item-qty {
        font-size: 11px;
    }
    
    .item-row .item-price {
        font-size: 12px;
    }
    
    .delivery-info {
        padding: 12px;
        font-size: 12px;
    }
    
    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ===== CONTACT PAGE - 400px Narrow ===== */
@media (max-width: 400px) {
    .contact-container {
        margin-top: 65px !important;
        padding: 0 10px !important;
    }
    
    .contact-hero {
        margin-bottom: 30px !important;
    }
    
    .contact-hero h1 {
        font-size: 1.4rem !important;
    }
    
    .contact-hero p {
        font-size: 0.85rem !important;
    }
    
    .contact-content {
        gap: 20px !important;
    }
    
    .info-card {
        padding: 15px !important;
    }
    
    .info-card i {
        font-size: 1.5rem !important;
    }
    
    .info-card h3 {
        font-size: 1rem !important;
    }
    
    .contact-form {
        padding: 15px 12px !important;
    }
    
    .contact-form h2 {
        font-size: 1.2rem !important;
    }
    
    .contact-form .form-group {
        margin-bottom: 18px;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .contact-form .btn-submit {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .social-link {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* Contact page grid (from contact.css or inline) */
    .contact-page-section {
        padding: 15px 0;
    }
    
    .contact-page-grid {
        gap: 15px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .contact-form-section {
        padding: 20px 12px;
    }
}

/* ===== FOOTER & NEWSLETTER - 400px Narrow ===== */
@media (max-width: 400px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-col h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-col ul li a {
        font-size: 12px;
    }
    
    .contact-info li {
        font-size: 12px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
    
    .payment-methods {
        font-size: 20px;
        gap: 8px;
    }
    
    .newsletter-section {
        padding: 25px 0;
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    .newsletter-text {
        font-size: 12px;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
    }
    
    .newsletter-form button {
        padding: 10px;
        font-size: 13px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 10px;
        bottom: 10px;
        font-size: 16px;
    }
}

/* ===== BREADCRUMB - 400px Narrow ===== */
@media (max-width: 400px) {
    .breadcrumb {
        padding: 65px 0 10px;
    }
    
    .breadcrumb-list li {
        font-size: 10px;
    }
    
    .breadcrumb .container a,
    .breadcrumb .container span {
        font-size: 10px;
    }
}

/* ===== FEATURES SECTION - 400px Narrow ===== */
@media (max-width: 400px) {
    .features-grid {
        gap: 10px;
    }
    
    .feature-card {
        padding: 12px;
        gap: 10px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .feature-content h3 {
        font-size: 13px;
    }
    
    .feature-content p {
        font-size: 11px;
    }
}

/* ===== PROMO BANNER - 400px Narrow ===== */
@media (max-width: 400px) {
    .promo-content {
        gap: 15px;
        padding: 20px 0;
    }
    
    .promo-text h2 {
        font-size: 20px;
    }
    
    .promo-text p {
        font-size: 12px;
    }
    
    .promo-image {
        max-width: 180px;
    }
}

/* ===== PREVENT BODY SCROLL WHEN MOBILE MENU OPEN ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


/* =============================================
   TRENDING STRIP + CATEGORIES PILLS + TRUST BAR
   Mobile Responsive
   ============================================= */

/* === 992px Tablet === */
@media (max-width: 992px) {
    /* Trending Strip */
    .trending-strip {
        padding: 25px 0 20px;
    }
    .trending-title-row h2 {
        font-size: 20px;
    }
    .trending-card {
        flex: 0 0 160px;
    }
    .trending-card-img {
        height: 130px;
        padding: 10px;
    }
    .trending-scroll-btn {
        display: none;
    }
    
    /* Categories Pills */
    .categories-compact {
        padding: 14px 0;
    }
    .cat-pill {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Trust Bar */
    .trust-bar {
        padding: 10px 0;
    }
    .trust-bar-inner {
        gap: 0;
        justify-content: center;
    }
    .trust-item {
        padding: 5px 12px;
        font-size: 12px;
    }
    .trust-item i {
        font-size: 14px;
    }
    .trust-divider {
        height: 16px;
    }
}

/* === 768px Mobile === */
@media (max-width: 768px) {
    /* Trending Strip */
    .trending-strip {
        padding: 20px 0 16px;
    }
    .trending-title-row h2 {
        font-size: 18px;
    }
    .trending-fire {
        font-size: 20px;
    }
    .trending-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .trending-view-all {
        font-size: 13px;
    }
    .trending-scroll {
        gap: 12px;
    }
    .trending-card {
        flex: 0 0 150px;
    }
    .trending-card-img {
        height: 120px;
        padding: 8px;
    }
    .trending-card-info {
        padding: 8px 10px 36px;
    }
    .trending-card-info h3 {
        font-size: 12px;
    }
    .trending-price {
        font-size: 14px;
    }
    .trending-cart-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
        bottom: 6px;
        right: 6px;
    }
    
    /* Categories Pills */
    .categories-compact {
        padding: 12px 0;
    }
    .cat-pill {
        padding: 7px 12px;
        font-size: 12px;
        gap: 5px;
    }
    .cat-pill i {
        font-size: 12px;
    }
    .cat-pill-count {
        font-size: 10px;
        padding: 1px 5px;
    }

    /* Trust Bar - 2 rows on mobile */
    .trust-bar {
        padding: 10px 0;
    }
    .trust-bar-inner {
        justify-content: center;
        gap: 2px 0;
    }
    .trust-item {
        padding: 4px 10px;
        font-size: 11px;
    }
    .trust-divider {
        height: 14px;
    }
}

/* === 576px Small Mobile === */
@media (max-width: 576px) {
    .trending-strip {
        padding: 16px 0 14px;
    }
    .trending-title-row h2 {
        font-size: 16px;
    }
    .trending-fire {
        font-size: 18px;
    }
    .trending-scroll {
        gap: 10px;
    }
    .trending-card {
        flex: 0 0 140px;
    }
    .trending-card-img {
        height: 110px;
    }
    .trending-card-info {
        padding: 6px 8px 34px;
    }
    .trending-card-cat {
        font-size: 9px;
    }
    .trending-card-info h3 {
        font-size: 11px;
        margin: 3px 0 5px;
    }
    .trending-price {
        font-size: 13px;
    }
    .trending-old-price {
        font-size: 10px;
    }
    
    /* Categories Pills */
    .categories-compact {
        padding: 10px 0;
    }
    .categories-pills-scroll {
        gap: 8px;
    }
    .cat-pill {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Trust Bar - stacked icons only */
    .trust-bar {
        padding: 8px 0;
    }
    .trust-item {
        padding: 3px 8px;
        font-size: 11px;
    }
    .trust-item i {
        font-size: 13px;
    }
    .trust-divider {
        height: 12px;
    }
}

/* === 400px Extra Small === */
@media (max-width: 400px) {
    .trending-strip {
        padding: 14px 0 12px;
    }
    .trending-title-row h2 {
        font-size: 15px;
    }
    .trending-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    .trending-view-all {
        font-size: 12px;
    }
    .trending-card {
        flex: 0 0 130px;
    }
    .trending-card-img {
        height: 100px;
        padding: 6px;
    }
    .trending-card-info {
        padding: 5px 7px 32px;
    }
    .trending-card-info h3 {
        font-size: 11px;
    }
    .trending-price {
        font-size: 12px;
    }
    .trending-cart-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    /* Trust bar - hide text, show only icons */
    .trust-item span {
        display: none;
    }
    .trust-item i {
        font-size: 16px;
    }
    .trust-item {
        padding: 4px 10px;
    }
    .trust-divider {
        height: 16px;
    }
}
