/**
 * QuickCart Mobile Styles
 * ========================
 * Professional, Clean, International Look
 * For all pages on mobile devices
 */

/* ===================================================
   BASE MOBILE STYLES
   =================================================== */

/* Smooth scrolling on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        overflow-x: hidden;
    }
}

/* ===================================================
   NAVBAR MOBILE
   =================================================== */
@media (max-width: 768px) {
    .nav-top {
        padding: 6px 0 !important;
        font-size: 10px !important;
    }
    
    .nav-container {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    
    .logo {
        font-size: 20px !important;
    }
    
    .logo-icon {
        font-size: 8px !important;
    }
    
    .nav-right {
        gap: 8px !important;
    }
    
    .nav-icon-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .nav-icon-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .cart-count,
    .wishlist-count {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: -4px !important;
        right: -4px !important;
    }
    
    .mobile-menu-toggle {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ===================================================
   PRODUCT GRID - MOBILE OPTIMIZED
   =================================================== */
@media (max-width: 768px) {
    .product-grid,
    .products-grid,
    .products-grid-modern,
    .shop-section .product-grid,
    .featured-products .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
}

/* ===================================================
   PRODUCT CARD - CLEAN INTERNATIONAL STYLE
   =================================================== */
@media (max-width: 768px) {
    .product-card,
    .modern-product-card {
        background: #fff;
        border-radius: 8px !important;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        border: 1px solid #f5f5f5 !important;
        transition: box-shadow 0.2s ease;
    }
    
    .product-card:active,
    .modern-product-card:active {
        box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    }
    
    /* Image Container */
    .product-card .product-image,
    .product-image-container,
    .product-image-wrapper {
        position: relative;
        aspect-ratio: 1/1.25 !important;
        overflow: hidden;
        background: #f9f9f9;
    }
    
    .product-card .product-image img,
    .product-image-container img,
    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: none !important;
    }
    
    /* Hide hover effects */
    .product-card .product-image img.hover-img,
    .product-card:hover .product-image img,
    .hover-img {
        display: none !important;
        opacity: 0 !important;
    }
    
    /* Hide action buttons on mobile for product cards only */
    .product-card .product-actions,
    .product-card .quick-actions,
    .quick-actions,
    .quick-view-btn {
        display: none !important;
    }
    
    /* Wishlist Button - Small & Clean */
    .product-wishlist,
    .wishlist-btn {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.95) !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
        z-index: 5 !important;
    }
    
    .product-wishlist i,
    .product-wishlist svg,
    .wishlist-btn i,
    .wishlist-btn svg {
        font-size: 12px !important;
        width: 14px !important;
        height: 14px !important;
        color: #666 !important;
    }
    
    .product-wishlist.active i,
    .product-wishlist.active svg,
    .wishlist-btn.active i {
        color: #e74c3c !important;
    }
    
    /* Badges - Minimal */
    .product-badges,
    .product-badge {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 4 !important;
    }
    
    .badge,
    .product-badge {
        display: inline-block;
        padding: 3px 8px !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        border-radius: 3px !important;
    }
    
    .badge-sale,
    .badge-discount {
        background: #e74c3c !important;
        color: #fff !important;
    }
    
    .badge-new {
        background: #27ae60 !important;
        color: #fff !important;
    }
    
    /* Product Info - Compact */
    .product-info,
    .product-details {
        padding: 10px !important;
    }
    
    /* Brand - Subtle */
    .product-brand {
        display: block;
        font-size: 9px !important;
        color: #999 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 3px !important;
    }
    
    /* Title - Clear & Readable */
    .product-title,
    .product-name {
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        color: #333 !important;
        margin: 0 0 4px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        max-height: 32px !important;
    }
    
    .product-title a,
    .product-name a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    /* Rating - Compact */
    .product-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 4px 0 !important;
    }
    
    .product-rating .stars,
    .stars {
        font-size: 10px !important;
        color: #f5a623 !important;
        letter-spacing: -1px;
    }
    
    .product-rating .rating-count,
    .rating-count {
        font-size: 9px !important;
        color: #999 !important;
    }
    
    /* Price - Clear Hierarchy */
    .product-price {
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        margin-top: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .price-current,
    .current-price {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #222 !important;
    }
    
    .price-old,
    .original-price,
    .price-original {
        font-size: 11px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }
    
    .discount-percent {
        font-size: 10px !important;
        color: #27ae60 !important;
        font-weight: 500 !important;
    }
    
    /* Hide sizes/colors on mobile cards */
    .product-sizes,
    .product-colors,
    .size-options {
        display: none !important;
    }
}

/* Extra Small Phones */
@media (max-width: 380px) {
    .product-grid {
        gap: 6px !important;
        padding: 0 6px !important;
    }
    
    .product-info,
    .product-details {
        padding: 8px !important;
    }
    
    .product-brand {
        display: none !important;
    }
    
    .product-title,
    .product-name {
        font-size: 11px !important;
        -webkit-line-clamp: 1 !important;
        max-height: 15px !important;
    }
    
    .product-rating {
        display: none !important;
    }
    
    .price-current {
        font-size: 13px !important;
    }
    
    .price-old {
        font-size: 10px !important;
    }
}

/* ===================================================
   SHOP PAGE SPECIFIC
   =================================================== */
@media (max-width: 768px) {
    .shop-section {
        padding: 15px 0 !important;
    }
    
    .shop-container {
        padding: 0 !important;
    }
    
    .shop-toolbar {
        padding: 10px 12px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    .mobile-filter-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        background: #722F37 !important;
        color: #fff !important;
    }
    
    .product-count {
        font-size: 12px !important;
        color: #666 !important;
    }
    
    .sort-select,
    .sort-dropdown .filter-chip {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        border: 1px solid #e0e0e0 !important;
        background: #fff !important;
    }
    
    .view-toggle {
        display: none !important;
    }
    
    /* Shop Hero */
    .shop-hero {
        min-height: 180px !important;
        padding: 30px 15px !important;
    }
    
    .shop-hero h1 {
        font-size: 24px !important;
    }
    
    .shop-hero p {
        font-size: 13px !important;
    }
}

/* ===================================================
   CATEGORY HERO
   =================================================== */
@media (max-width: 768px) {
    .category-hero,
    .modern-hero {
        min-height: 200px !important;
        padding: 40px 15px !important;
    }
    
    .category-hero h1 {
        font-size: 26px !important;
        letter-spacing: 1px !important;
    }
    
    .category-hero p {
        font-size: 13px !important;
    }
    
    .category-stats {
        display: none !important;
    }
    
    .breadcrumb {
        font-size: 11px !important;
        gap: 8px !important;
    }
}

/* ===================================================
   FILTER SIDEBAR MOBILE
   =================================================== */
@media (max-width: 768px) {
    .filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 1001 !important;
        background: #fff !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
    }
    
    .filter-sidebar.open {
        left: 0 !important;
    }
    
    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .filter-header {
        position: sticky;
        top: 0;
        background: #722F37 !important;
        color: #fff !important;
        padding: 15px !important;
        z-index: 10;
    }
    
    .filter-close {
        display: flex !important;
        color: #fff !important;
    }
}

/* ===================================================
   SECTIONS & CONTAINERS
   =================================================== */
@media (max-width: 768px) {
    .section {
        padding: 30px 0 !important;
        margin: 0 !important;
    }
    
    .section-header {
        padding: 0 15px !important;
        margin-bottom: 20px !important;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 20px !important;
    }
    
    .section-header p {
        font-size: 13px !important;
    }
    
    .container {
        padding: 0 12px !important;
    }
}

/* ===================================================
   BUTTONS MOBILE
   =================================================== */
@media (max-width: 768px) {
    .btn {
        padding: 12px 20px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
    
    .btn-primary {
        background: #722F37 !important;
    }
    
    .btn-outline {
        border-width: 1px !important;
    }
}

/* ===================================================
   FORMS MOBILE
   =================================================== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
}

/* ===================================================
   FOOTER MOBILE
   =================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center;
    }
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
}

/* ===================================================
   PRODUCT DETAIL PAGE - MOBILE
   =================================================== */
@media (max-width: 768px) {
    .product-page {
        padding: 15px 10px !important;
    }
    
    .product-page .product-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .product-page .btn-add-cart,
    .product-page .btn-buy-now {
        display: flex !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }
    
    .product-page .btn-add-cart {
        background: #722F37 !important;
        color: white !important;
        border: none !important;
    }
    
    .product-page .btn-buy-now {
        background: #1a1a1a !important;
        color: white !important;
        border: none !important;
    }
    
    .product-page .btn-wishlist {
        display: flex !important;
        width: 50px !important;
        height: 50px !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
    }
    
    .product-title {
        font-size: 22px !important;
    }
    
    .product-pricing {
        flex-wrap: wrap !important;
    }
    
    .current-price {
        font-size: 22px !important;
    }
    
    .option-section {
        margin-bottom: 15px !important;
    }
    
    .size-options {
        gap: 8px !important;
    }
    
    .size-btn {
        min-width: 42px !important;
        height: 40px !important;
        font-size: 13px !important;
    }
    
    .quantity-selector {
        max-width: 140px !important;
    }
    
    .product-features {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ===================================================
   CHECKOUT PAGE - MOBILE
   =================================================== */
@media (max-width: 768px) {
    .checkout-header {
        padding: 12px 15px !important;
    }
    
    .checkout-logo {
        font-size: 20px !important;
    }
    
    .checkout-main {
        padding: 15px !important;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .place-order-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 15px !important;
    }
    
    .order-summary {
        position: static !important;
        margin-top: 20px !important;
    }
}
