/* ============================================
   MOBILE OPTIMIZATIONS - PRICON E-COMMERCE
   App-like Mobile Experience
   ============================================ */

/* Prevent double-tap zoom on buttons */
button, .btn, input[type="submit"], input[type="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    input[type="text"], input[type="email"], input[type="number"], textarea {
        font-size: 16px !important; /* Prevents zoom */
        border-radius: 0; /* Removes default iOS styling */
    }
    
    /* Fix for iOS Safari viewport units */
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better touch targets */
    a, button, .btn, .touch-target {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Product grid optimization */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    /* Product card mobile enhancements */
    .product-card {
        background: white;
        border-radius: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .product-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Image container */
    .product-card .image-container {
        aspect-ratio: 1;
        background: #f8fafc;
        position: relative;
        overflow: hidden;
    }
    
    .product-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0.75rem;
        transition: transform 0.3s ease;
    }
    
    /* Content area */
    .product-card .content {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-card h3 {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.3;
        color: #1e293b;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }
    
    .product-card .price {
        font-size: 1rem;
        font-weight: 700;
        color: #0066cc;
        margin: 0.25rem 0;
    }
    
    /* Add to cart button */
    .product-card .add-to-cart-btn {
        width: 100%;
        background: linear-gradient(135deg, #0066cc, #3385d6);
        color: white;
        border: none;
        border-radius: 0.75rem;
        padding: 0.75rem;
        font-size: 0.875rem;
        font-weight: 600;
        min-height: 44px;
        transition: all 0.3s ease;
    }
    
    .product-card .add-to-cart-btn:active {
        transform: scale(0.95);
    }
    
    .product-card .add-to-cart-btn:disabled {
        background: #94a3b8;
        cursor: not-allowed;
    }
    
    /* Action buttons (wishlist, quick view) */
    .product-card .action-buttons {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 10;
    }
    
    .product-card .action-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 0.875rem;
        transition: all 0.3s ease;
    }
    
    .product-card .action-btn:active {
        transform: scale(0.9);
        background: #f1f5f9;
    }
    
    /* Navigation improvements */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e2e8f0;
        padding: 0.75rem;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav .nav-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        color: #64748b;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .mobile-nav .nav-item.active,
    .mobile-nav .nav-item:active {
        color: #0066cc;
        background: #eff6ff;
    }
    
    .mobile-nav .nav-item i {
        font-size: 1.25rem;
    }
    
    /* Header mobile optimization */
    .mobile-header {
        position: sticky;
        top: 0;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 1rem;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-header .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-header .logo {
        height: 2.5rem;
        width: auto;
    }
    
    .mobile-header .actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .mobile-header .action-btn {
        width: 44px;
        height: 44px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 1.125rem;
        transition: all 0.3s ease;
    }
    
    .mobile-header .action-btn:active {
        transform: scale(0.95);
        background: #f1f5f9;
    }
    
    /* Cart badge */
    .cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ef4444;
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }
    
    /* Search bar mobile */
    .mobile-search {
        padding: 0.75rem 1rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-search .search-input {
        width: 100%;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 16px;
        outline: none;
        transition: all 0.3s ease;
    }
    
    .mobile-search .search-input:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }
    
    /* Loading states */
    .loading-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    /* Form improvements */
    .mobile-form {
        padding: 1rem;
    }
    
    .mobile-form .form-group {
        margin-bottom: 1rem;
    }
    
    .mobile-form label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }
    
    .mobile-form input,
    .mobile-form select,
    .mobile-form textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        font-size: 16px;
        background: white;
        transition: all 0.3s ease;
    }
    
    .mobile-form input:focus,
    .mobile-form select:focus,
    .mobile-form textarea:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }
    
    /* Quantity controls */
    .quantity-control {
        display: flex;
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        overflow: hidden;
    }
    
    .quantity-control button {
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        color: #64748b;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .quantity-control button:active {
        background: #e2e8f0;
        color: #0066cc;
    }
    
    .quantity-control input {
        width: 60px;
        height: 44px;
        border: none;
        background: transparent;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        outline: none;
    }
    
    /* Toast notifications */
    .toast {
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10000;
        transform: translateY(-100px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .toast.success {
        border-left: 4px solid #10b981;
    }
    
    .toast.error {
        border-left: 4px solid #ef4444;
    }
    
    /* Safe area support for notched devices */
    .safe-area-top {
        padding-top: env(safe-area-inset-top);
    }
    
    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Prevent overscroll bounce on iOS */
    body {
        overscroll-behavior: none;
    }
    
    /* Better scrolling performance */
    .scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        min-height: 350px;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Large mobile devices */
@media (min-width: 481px) and (max-width: 768px) {
    .product-card h3 {
        font-size: 1rem;
    }
    
    .product-card .price {
        font-size: 1.125rem;
    }
    
    .mobile-header .logo {
        height: 3rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .product-grid {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .product-card .content {
        padding: 0.5rem;
    }
    
    .product-card h3 {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .mobile-header .actions {
        gap: 0.5rem;
    }
    
    .mobile-header .action-btn {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   ICON FIXES - Ensure FontAwesome icons display properly
   ============================================ */

/* Ensure FontAwesome icons are visible */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", FontAwesome !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.far {
    font-weight: 400;
}

/* Specific icon fixes */
.fa-plus, .fa-minus {
    font-size: inherit !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Button icon spacing */
button i, .btn i {
    margin-right: 0.5rem;
}

button i:last-child, .btn i:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Quantity control icons */
.quantity-control button i {
    font-size: 0.75rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.quantity-control button:hover i {
    color: #3b82f6;
}

/* ============================================
   QUICK VIEW MODAL FIXES
   ============================================ */

/* Fixed header for quick view modal */
#quickViewModal .bg-white {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#quickViewModal .flex-shrink-0 {
    flex-shrink: 0;
}

#quickViewModal .flex-1 {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Close button always visible */
#quickViewModal button[onclick="closeQuickView()"] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HOME PAGE PRODUCT CARD MOBILE FIXES
   ============================================ */

@media (max-width: 640px) {
    /* 2-column grid for mobile */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Smaller gaps on mobile */
    .gap-3 {
        gap: 0.5rem;
    }
    
    /* Product card mobile sizing */
    .product-card {
        min-height: 240px;
    }
    
    .product-card .content {
        padding: 0.5rem;
    }
    
    .product-card h3 {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .product-card .text-base {
        font-size: 0.875rem;
    }
    
    .product-card .text-sm {
        font-size: 0.75rem;
    }
    
    /* Button sizing for mobile */
    .product-card button, .product-card a.block {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

/* ============================================
   LOADING AND PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Smooth loading animations */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Image loading placeholder */
img[src=""], img:not([src]) {
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src=""]:before, img:not([src]):before {
    content: "Loading...";
    font-size: 0.875rem;
}

/* ============================================
   FOOTER MOBILE OPTIMIZATIONS - ULTRA COMPACT
   ============================================ */

@media (max-width: 768px) {
    /* Ultra compact footer */
    footer {
        padding: 1rem 0 !important;
    }
    
    footer .container {
        padding: 0.5rem !important;
    }
    
    /* Hide decorative elements completely */
    footer .absolute {
        display: none !important;
    }
    
    /* Compact main grid */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Company section - most compact */
    footer .lg\\:col-span-1 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    footer .lg\\:col-span-1 .mb-6 {
        margin-bottom: 0.5rem !important;
    }
    
    footer .lg\\:col-span-1 img {
        height: 2rem !important;
    }
    
    footer .lg\\:col-span-1 .text-xl {
        font-size: 1rem !important;
    }
    
    footer .lg\\:col-span-1 .text-xs {
        font-size: 0.625rem !important;
    }
    
    /* Hide company description on mobile */
    footer .lg\\:col-span-1 p {
        display: none;
    }
    
    /* Social icons - smaller and inline */
    footer .lg\\:col-span-1 .flex.items-center.gap-3 {
        justify-content: center;
        gap: 0.5rem !important;
    }
    
    footer .lg\\:col-span-1 .w-10.h-10 {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Other sections - hide on mobile to save space */
    footer .grid > div:not(.lg\\:col-span-1) {
        display: none;
    }
    
    /* Certifications - hide on mobile */
    footer .border-t.pt-8.mb-8 {
        display: none;
    }
    
    /* Additional links - hide on mobile */
    footer .border-t.pt-6.mb-6 {
        display: none;
    }
    
    /* Bottom bar - ultra compact */
    footer .border-t.pt-6 {
        padding-top: 0.5rem !important;
        border-top: 1px solid #374151 !important;
    }
    
    footer .border-t.pt-6 .flex {
        flex-direction: column !important;
        gap: 0.25rem !important;
        text-align: center;
    }
    
    footer .border-t.pt-6 .text-sm {
        font-size: 0.625rem !important;
    }
    
    /* Hide some bottom bar elements */
    footer .border-t.pt-6 .flex > div:nth-child(2) {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Even more compact on very small screens */
    footer {
        padding: 0.5rem 0 !important;
    }
    
    /* Minimal company info */
    footer .lg\\:col-span-1 .flex.items-center.space-x-3 {
        flex-direction: column !important;
        space-x: 0 !important;
        gap: 0.25rem;
    }
    
    footer .lg\\:col-span-1 img {
        height: 1.5rem !important;
    }
    
    /* Ultra compact bottom */
    footer .border-t.pt-6 {
        padding-top: 0.25rem !important;
    }
    
    footer .border-t.pt-6 .text-sm {
        font-size: 0.5rem !important;
    }
}

/* ============================================
   QUANTITY CONTROL IMPROVEMENTS
   ============================================ */

/* Better quantity control styling */
.quantity-control {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.quantity-control button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quantity-control button:hover {
    background: #e2e8f0;
    color: #3b82f6;
}

.quantity-control button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-control input {
    width: 3rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 0.875rem;
}

.quantity-control input:focus {
    outline: none;
    background: #ffffff;
}

/* Mobile quantity controls */
@media (max-width: 768px) {
    .quantity-control {
        border-radius: 0.375rem;
    }
    
    .quantity-control button {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .quantity-control input {
        width: 2.5rem;
        font-size: 0.75rem;
    }
}
/* ============================================
   JIOMART/BLINKIT STYLE PRODUCT CARDS
   ============================================ */

/* Home page product grid - JioMart style */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

@media (min-width: 640px) {
    .home-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .home-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .home-product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

/* Product card hover effects */
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Add to cart button animations */
.product-card button[onclick*="addToCart"] {
    position: relative;
    overflow: hidden;
}

.product-card button[onclick*="addToCart"]:active {
    transform: scale(0.95);
}

.product-card button[onclick*="addToCart"]:hover {
    transform: scale(1.02);
}

/* Loading state for add to cart */
.product-card button.adding-to-cart {
    pointer-events: none;
    opacity: 0.7;
}

/* Success state animation */
.product-card button.cart-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* Mobile-specific optimizations */
@media (max-width: 640px) {
    /* Smaller product cards on mobile */
    .product-card {
        min-height: 200px !important;
    }
    
    /* Compact image section */
    .product-card .aspect-square {
        aspect-ratio: 1;
    }
    
    /* Smaller padding */
    .product-card .p-2 {
        padding: 0.375rem;
    }
    
    /* Compact text */
    .product-card h3 {
        font-size: 0.625rem;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }
    
    /* Smaller price text */
    .product-card .text-sm {
        font-size: 0.625rem;
    }
    
    /* Compact buttons */
    .product-card button {
        padding: 0.375rem 0.5rem;
        font-size: 0.625rem;
        min-height: 28px;
    }
    
    /* Hide text on very small screens, show only icons */
    .product-card button span {
        display: none;
    }
    
    .product-card button i {
        margin: 0;
    }
}

/* ============================================
   COMPACT TESTIMONIALS
   ============================================ */

/* Testimonial cards mobile optimization */
@media (max-width: 768px) {
    /* Stack testimonials on mobile */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Smaller testimonial cards */
    .testimonial-card {
        padding: 1rem !important;
    }
    
    /* Compact text */
    .testimonial-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Smaller avatars */
    .testimonial-card .w-10.h-10 {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Compact author info */
    .testimonial-card .font-bold {
        font-size: 0.75rem !important;
    }
    
    .testimonial-card .text-xs {
        font-size: 0.625rem !important;
    }
}

/* ============================================
   ENHANCED MOBILE EXPERIENCE
   ============================================ */

/* Better touch targets */
@media (max-width: 768px) {
    /* Ensure all clickable elements are at least 44px */
    .product-card a,
    .product-card button {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for touch */
    .product-card .absolute.top-1.right-1 button {
        margin-bottom: 0.25rem;
    }
    
    /* Improved readability */
    .product-card {
        border-radius: 0.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Better contrast for mobile */
    .product-card h3 a {
        color: #1f2937;
        font-weight: 600;
    }
    
    .product-card .text-gray-900 {
        color: #111827;
        font-weight: 700;
    }
}

/* ============================================
   LOADING STATES AND ANIMATIONS
   ============================================ */

/* Skeleton loading for product cards */
.product-card-skeleton {
    background: #f3f4f6;
    border-radius: 0.75rem;
    padding: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.product-card-skeleton .skeleton-image {
    aspect-ratio: 1;
    background: #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card-skeleton .skeleton-text {
    height: 0.75rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.product-card-skeleton .skeleton-text.short {
    width: 60%;
}

.product-card-skeleton .skeleton-button {
    height: 2rem;
    background: #e5e7eb;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

/* Smooth transitions */
.product-card * {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
.product-card button:focus,
.product-card a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #000;
    }
    
    .product-card button {
        border: 2px solid #000;
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card *,
    .testimonial-card {
        animation: none !important;
        transition: none !important;
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* Mobile Product Card Optimizations - JioMart Style */
@media (max-width: 768px) {
    .product-card {
        min-height: 180px !important;
    }
    
    .product-card .p-2 {
        padding: 0.375rem !important;
    }
    
    .product-card h3 {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .product-card .text-sm {
        font-size: 0.7rem !important;
    }
    
    .product-card button {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Out of stock icon styling */
    .product-card button:disabled .fa-ban {
        color: #ef4444 !important;
    }
    
    /* Hide product name on mobile, show SKU */
    .product-card h3 .md\\:hidden {
        display: block !important;
        font-family: 'Courier New', monospace;
        font-weight: 600;
        color: #374151;
    }
    
    .product-card h3 .hidden.md\\:block {
        display: none !important;
    }
}

/* Desktop - Show product name, hide SKU */
@media (min-width: 769px) {
    .product-card h3 .md\\:hidden {
        display: none !important;
    }
    
    .product-card h3 .hidden.md\\:block {
        display: block !important;
    }
}
/* Product Card Spacing Fix */
.product-grid {
    gap: 1rem !important;
}

@media (max-width: 768px) {
    .product-grid {
        gap: 0.75rem !important;
    }
}

/* Ensure icons are visible on mobile */
@media (max-width: 768px) {
    .product-card .absolute.top-1.right-1,
    .product-card .absolute.top-8.right-1 {
        opacity: 1 !important;
    }
}

/* Product card hover effects */
.product-card:hover .absolute {
    opacity: 1 !important;
}