/* ========================================
   MOBILE ENHANCEMENTS - MODERN E-COMMERCE
   ======================================== */

/* Mobile-First Responsive Design System */
:root {
  /* Mobile-specific breakpoints */
  --mobile-xs: 320px;
  --mobile-sm: 375px;
  --mobile-md: 414px;
  --mobile-lg: 480px;
  --tablet-sm: 768px;
  --tablet-md: 1024px;
  --desktop-sm: 1200px;
  --desktop-lg: 1440px;
  
  /* Mobile-specific spacing */
  --mobile-padding: 16px;
  --mobile-margin: 12px;
  --mobile-gap: 8px;
  
  /* Mobile-specific font sizes */
  --mobile-text-xs: 0.75rem;
  --mobile-text-sm: 0.875rem;
  --mobile-text-base: 1rem;
  --mobile-text-lg: 1.125rem;
  --mobile-text-xl: 1.25rem;
  --mobile-text-2xl: 1.5rem;
  --mobile-text-3xl: 1.875rem;
  
  /* Mobile-specific touch targets */
  --touch-target: 44px;
  --touch-target-large: 48px;
  
  /* Mobile-specific shadows */
  --mobile-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --mobile-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --mobile-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   GLOBAL MOBILE ENHANCEMENTS
   ======================================== */

/* Mobile viewport optimization */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px; /* Slightly smaller base font for mobile */
  }
  
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
    overscroll-behavior: contain;
  }
  
  /* Prevent horizontal scroll */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Enhanced touch targets */
  button, 
  .btn, 
  a[role="button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    padding: 12px 16px;
    font-size: var(--mobile-text-base);
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  /* Mobile-optimized focus states */
  button:focus,
  .btn:focus,
  a:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
  }
}

/* ========================================
   HEADER MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  /* Mobile header optimization */
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .header-top {
    padding: 8px 0;
    font-size: var(--mobile-text-xs);
    line-height: 1.4;
  }
  
  .header-content {
    padding: 12px var(--mobile-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .logo {
    font-size: var(--mobile-text-lg);
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .logo i {
    font-size: var(--mobile-text-xl);
  }
  
  /* Mobile navigation toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Mobile navigation overlay */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile navigation menu */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--background);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--mobile-shadow-lg);
  }
  
  .mobile-nav.active {
    right: 0;
  }
  
  .mobile-nav .nav-menu {
    padding: 20px 0;
    margin: 0;
    list-style: none;
  }
  
  .mobile-nav .nav-menu li {
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-nav .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav .nav-menu li a {
    display: flex;
    align-items: center;
    padding: 16px var(--mobile-padding);
    color: var(--foreground);
    text-decoration: none;
    font-size: var(--mobile-text-base);
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: var(--touch-target);
  }
  
  .mobile-nav .nav-menu li a:hover,
  .mobile-nav .nav-menu li a.active {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
  }
  
  .mobile-nav .nav-menu li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
  }
  
  /* Hide desktop navigation on mobile */
  .desktop-nav {
    display: none;
  }
  
  /* Mobile header actions */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .cart-icon,
  .user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    border-radius: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .cart-icon:hover,
  .user-icon:hover {
    background: var(--primary-600);
    transform: scale(1.05);
  }
  
  .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-error);
    color: white;
    font-size: var(--mobile-text-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
  }
}

/* ========================================
   HERO SECTION MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .modern-hero {
    padding: 40px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
    margin-bottom: 24px;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    border-radius: 20px;
    font-size: var(--mobile-text-sm);
    font-weight: 600;
    margin-bottom: 16px;
  }
  
  .hero-title {
    font-size: var(--mobile-text-3xl);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .title-main {
    display: block;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .title-sub {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 4px;
  }
  
  .hero-description {
    font-size: var(--mobile-text-base);
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 24px;
  }
  
  .hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }
  
  .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--mobile-shadow-sm);
  }
  
  .feature-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--mobile-text-sm);
  }
  
  .feature span {
    font-size: var(--mobile-text-sm);
    font-weight: 500;
    color: var(--foreground);
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-primary,
  .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: var(--mobile-text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: var(--touch-target-large);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    box-shadow: var(--mobile-shadow-md);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--mobile-shadow-lg);
  }
  
  .btn-secondary {
    background: var(--card);
    color: var(--foreground);
    border: 2px solid var(--border);
  }
  
  .btn-secondary:hover {
    background: var(--muted);
    border-color: var(--primary);
  }
  
  .hero-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .crackers-display {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  .cracker-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--mobile-text-lg);
    animation: cracker-float 3s ease-in-out infinite;
  }
  
  .cracker-1 { top: 20%; left: 20%; animation-delay: 0s; }
  .cracker-2 { top: 60%; right: 20%; animation-delay: 1s; }
  .cracker-3 { bottom: 20%; left: 50%; animation-delay: 2s; }
  
  .hero-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--mobile-shadow-sm);
  }
  
  .stat {
    text-align: center;
  }
  
  .stat-number {
    font-size: var(--mobile-text-xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
  }
  
  .stat-label {
    font-size: var(--mobile-text-xs);
    color: var(--muted-foreground);
    margin-top: 4px;
  }
}

/* ========================================
   PRODUCTS & CATEGORIES MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .section-title {
    font-size: var(--mobile-text-2xl);
    text-align: center;
    margin-bottom: 24px;
    padding: 0 var(--mobile-padding);
  }
  
  .categories-section,
  .products-section {
    padding: 40px var(--mobile-padding);
  }
  
  .categories-grid,
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .category-card,
  .product-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mobile-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
  }
  
  .category-card:hover,
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mobile-shadow-lg);
  }
  
  .category-image,
  .product-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .category-image i,
  .product-image i {
    font-size: var(--mobile-text-2xl);
    color: var(--primary);
  }
  
  .category-info,
  .product-info {
    padding: 16px;
  }
  
  .category-info h3,
  .product-info h3 {
    font-size: var(--mobile-text-base);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
  }
  
  .category-info p,
  .product-info p {
    font-size: var(--mobile-text-sm);
    color: var(--muted-foreground);
    margin-bottom: 12px;
  }
  
  .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .current-price {
    font-size: var(--mobile-text-lg);
    font-weight: 700;
    color: var(--primary);
  }
  
  .original-price {
    font-size: var(--mobile-text-sm);
    color: var(--muted-foreground);
    text-decoration: line-through;
  }
  
  .add-to-cart {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--mobile-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--touch-target-large);
  }
  
  .add-to-cart:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
  }
}

/* ========================================
   CART PAGE MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .cart-section {
    padding: 20px var(--mobile-padding);
  }
  
  .cart-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .cart-items {
    order: 2;
  }
  
  .cart-summary {
    order: 1;
    position: sticky;
    top: 80px;
    z-index: 10;
  }
  
  .cart-header {
    padding: 16px var(--mobile-padding);
  }
  
  .cart-header h2 {
    font-size: var(--mobile-text-lg);
  }
  
  .clear-cart-btn {
    padding: 8px 12px;
    font-size: var(--mobile-text-sm);
  }
  
  .cart-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px var(--mobile-padding);
  }
  
  .item-image {
    width: 60px;
    height: 60px;
    font-size: var(--mobile-text-lg);
  }
  
  .item-details h3 {
    font-size: var(--mobile-text-base);
  }
  
  .item-category {
    font-size: var(--mobile-text-sm);
  }
  
  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
  }
  
  .qty-btn {
    width: var(--touch-target);
    height: var(--touch-target);
    font-size: var(--mobile-text-lg);
  }
  
  .quantity-controls input[type="number"] {
    width: 60px;
    height: var(--touch-target);
    text-align: center;
    font-size: var(--mobile-text-base);
  }
  
  .item-total {
    text-align: right;
    margin-top: 12px;
  }
  
  .total-price {
    font-size: var(--mobile-text-lg);
    font-weight: 700;
  }
  
  .remove-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
  }
  
  .summary-card {
    padding: 20px var(--mobile-padding);
  }
  
  .summary-card h3 {
    font-size: var(--mobile-text-lg);
  }
  
  .checkout-btn {
    width: 100%;
    padding: 16px;
    font-size: var(--mobile-text-base);
    min-height: var(--touch-target-large);
  }
  
  .promo-form {
    display: flex;
    gap: 8px;
  }
  
  .promo-form input {
    flex: 1;
    height: var(--touch-target);
  }
  
  .promo-form button {
    padding: 8px 16px;
    height: var(--touch-target);
  }
  
  .trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  
  .trust-badge {
    padding: 12px;
    font-size: var(--mobile-text-sm);
  }
}

/* ========================================
   ACCOUNT PAGE MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .account-section {
    padding: 20px var(--mobile-padding);
  }
  
  .account-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  
  .account-sidebar {
    order: 2;
    flex: none;
    width: 100%;
  }
  
  .account-content {
    order: 1;
    padding: 20px var(--mobile-padding);
  }
  
  .account-content h2 {
    font-size: var(--mobile-text-2xl);
    margin-bottom: 20px;
  }
  
  .sidebar-header {
    padding: 20px var(--mobile-padding);
  }
  
  .sidebar-header .fa-user-circle {
    font-size: 3rem;
  }
  
  .sidebar-header h3 {
    font-size: var(--mobile-text-lg);
  }
  
  .sidebar-nav li a {
    padding: 16px var(--mobile-padding);
    font-size: var(--mobile-text-base);
    min-height: var(--touch-target);
  }
  
  .orders-table {
    overflow-x: auto;
  }
  
  .table-header,
  .order-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px var(--mobile-padding);
  }
  
  .table-header {
    display: none;
  }
  
  .order-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
  }
  
  .order-row div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
  }
  
  .order-row div::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted-foreground);
  }
  
  .status-badge {
    padding: 4px 8px;
    font-size: var(--mobile-text-xs);
  }
}

/* ========================================
   CHECKOUT PAGE MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .checkout-section {
    padding: 20px var(--mobile-padding);
  }
  
  .checkout-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .checkout-form {
    order: 2;
  }
  
  .checkout-summary {
    order: 1;
    position: sticky;
    top: 80px;
    z-index: 10;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: var(--mobile-text-sm);
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: var(--mobile-text-base);
    min-height: var(--touch-target);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
  }
  
  .checkout-summary {
    background: var(--card);
    border-radius: 16px;
    padding: 20px var(--mobile-padding);
    box-shadow: var(--mobile-shadow-md);
  }
  
  .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: var(--mobile-text-lg);
  }
  
  .place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--mobile-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--touch-target-large);
  }
  
  .place-order-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
  }
}

/* ========================================
   PRODUCT DETAILS MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .product-details {
    padding: 20px var(--mobile-padding);
  }
  
  .product-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .product-images {
    order: 1;
  }
  
  .product-info {
    order: 2;
  }
  
  .product-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mobile-shadow-md);
  }
  
  .main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  .product-title {
    font-size: var(--mobile-text-2xl);
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .current-price {
    font-size: var(--mobile-text-2xl);
    font-weight: 800;
    color: var(--primary);
  }
  
  .original-price {
    font-size: var(--mobile-text-lg);
    color: var(--muted-foreground);
    text-decoration: line-through;
  }
  
  .product-description {
    font-size: var(--mobile-text-base);
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 24px;
  }
  
  .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .quantity-selector label {
    font-size: var(--mobile-text-base);
    font-weight: 600;
  }
  
  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .qty-btn {
    width: var(--touch-target);
    height: var(--touch-target);
    font-size: var(--mobile-text-lg);
  }
  
  .quantity-input {
    width: 60px;
    height: var(--touch-target);
    text-align: center;
    font-size: var(--mobile-text-base);
    border: 2px solid var(--border);
    border-radius: 8px;
  }
  
  .add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--mobile-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--touch-target-large);
  }
  
  .add-to-cart-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
  }
  
  .product-features {
    margin-top: 24px;
    padding: 20px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--mobile-shadow-sm);
  }
  
  .product-features h3 {
    font-size: var(--mobile-text-lg);
    margin-bottom: 16px;
  }
  
  .features-list {
    list-style: none;
    padding: 0;
  }
  
  .features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: var(--mobile-text-sm);
  }
  
  .features-list li i {
    color: var(--primary);
    font-size: var(--mobile-text-sm);
  }
}

/* ========================================
   FOOTER MOBILE ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  .footer {
    padding: 40px var(--mobile-padding) 20px;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: var(--mobile-text-lg);
    margin-bottom: 16px;
  }
  
  .footer-section p,
  .footer-section ul li a {
    font-size: var(--mobile-text-sm);
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
  }
  
  .social-links a {
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: var(--mobile-text-lg);
    transition: all 0.2s ease;
  }
  
  .social-links a:hover {
    background: var(--primary-600);
    transform: scale(1.1);
  }
  
  .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--mobile-text-sm);
    color: var(--muted-foreground);
  }
}

/* ========================================
   UTILITY CLASSES FOR MOBILE
   ======================================== */

@media screen and (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-visible {
    display: block !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-text-left {
    text-align: left !important;
  }
  
  .mobile-text-right {
    text-align: right !important;
  }
  
  .mobile-mt-0 { margin-top: 0 !important; }
  .mobile-mt-1 { margin-top: var(--mobile-margin) !important; }
  .mobile-mt-2 { margin-top: calc(var(--mobile-margin) * 2) !important; }
  .mobile-mt-3 { margin-top: calc(var(--mobile-margin) * 3) !important; }
  
  .mobile-mb-0 { margin-bottom: 0 !important; }
  .mobile-mb-1 { margin-bottom: var(--mobile-margin) !important; }
  .mobile-mb-2 { margin-bottom: calc(var(--mobile-margin) * 2) !important; }
  .mobile-mb-3 { margin-bottom: calc(var(--mobile-margin) * 3) !important; }
  
  .mobile-p-0 { padding: 0 !important; }
  .mobile-p-1 { padding: var(--mobile-padding) !important; }
  .mobile-p-2 { padding: calc(var(--mobile-padding) * 2) !important; }
  .mobile-p-3 { padding: calc(var(--mobile-padding) * 3) !important; }
  
  .mobile-px-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .mobile-px-1 { padding-left: var(--mobile-padding) !important; padding-right: var(--mobile-padding) !important; }
  .mobile-px-2 { padding-left: calc(var(--mobile-padding) * 2) !important; padding-right: calc(var(--mobile-padding) * 2) !important; }
  
  .mobile-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  .mobile-py-1 { padding-top: var(--mobile-padding) !important; padding-bottom: var(--mobile-padding) !important; }
  .mobile-py-2 { padding-top: calc(var(--mobile-padding) * 2) !important; padding-bottom: calc(var(--mobile-padding) * 2) !important; }
}

/* ========================================
   ANIMATIONS FOR MOBILE
   ======================================== */

@keyframes cracker-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

@media screen and (max-width: 768px) {
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .mobile-nav .nav-menu li a {
      border: 2px solid transparent;
    }
    
    .mobile-nav .nav-menu li a:hover,
    .mobile-nav .nav-menu li a.active {
      border-color: var(--primary);
    }
    
    .btn-primary,
    .btn-secondary {
      border: 2px solid currentColor;
    }
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    :root {
      --background: #0f172a;
      --foreground: #f8fafc;
      --card: #1e293b;
      --card-foreground: #f8fafc;
      --border: #334155;
      --muted: #334155;
      --muted-foreground: #94a3b8;
    }
  }
}

/* ========================================
   EXTRA SMALL MOBILE DEVICES
   ======================================== */

@media screen and (max-width: 375px) {
  :root {
    --mobile-padding: 12px;
    --mobile-margin: 8px;
  }
  
  .hero-title {
    font-size: var(--mobile-text-2xl);
  }
  
  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .mobile-nav {
    width: 100%;
    max-width: none;
  }
  
  .cart-item {
    padding: 12px var(--mobile-padding);
  }
  
  .summary-card {
    padding: 16px var(--mobile-padding);
  }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media screen and (max-width: 768px) and (orientation: landscape) {
  .modern-hero {
    min-height: 50vh;
    padding: 20px 0;
  }
  
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  
  .hero-text {
    order: 1;
    flex: 1;
  }
  
  .hero-visual {
    order: 2;
    flex: 0 0 200px;
  }
  
  .hero-title {
    font-size: var(--mobile-text-xl);
  }
  
  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .feature {
    flex: 1;
    min-width: 120px;
  }
} 