/* Custom Styles */
.icons-footer img{
    object-fit: contain;
}
button{
    cursor: pointer;
}

/* Admin Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Responsive Tables - Show as cards on mobile */
    .responsive-table {
        display: block;
        width: 100%;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody {
        display: block;
    }
    
    .responsive-table tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border: none;
        text-align: right;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    .responsive-table td[data-label]:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #6b7280;
        margin-right: 1rem;
        flex-shrink: 0;
        min-width: 100px;
    }
    
    .responsive-table td[data-label=""]:before {
        display: none;
    }
    
    .responsive-table td > div {
        text-align: right;
        flex: 1;
        min-width: 0;
    }
    
    /* Product field with image - keep horizontal layout on mobile */
    .responsive-table td > .flex.items-center {
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.75rem;
        width: 100%;
    }
    
    /* Actions field - keep horizontal layout */
    .responsive-table td > .flex.items-center.justify-end,
    .responsive-table td > .flex.justify-end {
        flex-direction: row !important;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    /* Product image on mobile - make it a bit larger */
    .responsive-table td .flex-shrink-0 {
        flex-shrink: 0;
    }
    
    .responsive-table td .flex-shrink-0 img {
        width: 48px;
        height: 48px;
        object-fit: cover;
    }
    
    /* Product name and description on mobile */
    .responsive-table td > .flex.items-center > div:last-child {
        text-align: right;
        flex: 1;
        min-width: 0;
    }
    
    .responsive-table td > .flex.items-center > div:last-child > div:first-child {
        font-weight: 600;
        margin-bottom: 0.25rem;
        word-break: break-word;
    }
    
    .responsive-table td > .flex.items-center > div:last-child > div:last-child {
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    /* Checkbox alignment */
    .responsive-table td[data-label=""] {
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    
    /* Filter forms */
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form > * {
        width: 100% !important;
        margin-bottom: 0.75rem;
    }
    
    .filter-form > div:last-child {
        margin-bottom: 0;
    }
    
    /* Header actions */
    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .header-actions > * {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    /* Bulk actions */
    .bulk-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bulk-actions > * {
        width: 100%;
    }
    
    /* Search results mobile */
    #mobile-search-container .relative {
        position: relative;
    }
    
    #admin-search-results-mobile {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 60vh;
        z-index: 1000;
        margin-top: 0.5rem;
    }
    
    /* Mobile search container animation */
    #mobile-search-container {
        animation: slideDown 0.2s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Table wrapper */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}