/* ==========================================================================
   INDEX PAGE - MODERN REDESIGN
   Enhanced styles for the homepage with modern UI components
   ========================================================================== */

:root {
    /* Social proof inspired warm gold / amber palette */
    --primary-color: #d4840e;
    --secondary-color: #b8620a;
    --accent-color: #f5c842;
    --dark-color: #2c1505;
    --text-dark: #5e472f;
    --light-color: #fff8ee;
    --success-color: #28a745;       /* Green for success */
    --warning-color: #ffc107;       /* Yellow for warnings */
    --danger-color: #dc3545;        /* Red for errors */
    --sidebar-width: 250px;
    
    /* Orange gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #1a0e04);
    
    /* Legacy variables for compatibility */
    --index-primary: var(--primary-color);
    --index-secondary: var(--light-color);
    --index-accent: var(--success-color);
    --index-warning: var(--warning-color);
    --index-danger: var(--danger-color);
    --index-gradient: var(--gradient-primary);
    --index-shadow: 0 4px 25px rgba(0,0,0,0.1);
    --index-shadow-hover: 0 8px 35px rgba(0,0,0,0.15);
}

/* UAE Symbol Font */
@font-face {
    font-family: 'UAESymbol';
    src: url('../font/font.ttf') format('truetype');
}

/* Enhanced Hero Section */
.modern-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.02) 50%, transparent 55%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 1;
}

/* Hero Section with Background Image */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
    color: white !important;
}

.hero-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Mobile-specific enhancements for readability */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
        url('../images/hero-bg.jpg') center/cover no-repeat;
        padding: 3rem 1rem;
        background-position: center center;
    }
    
    .hero-content {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
        text-shadow: 2px 2px 10px rgba(0,0,0,1), 0 0 25px rgba(0,0,0,0.9);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        text-shadow: 1px 1px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    }
    
    .hero-badge {
        background: rgba(255,255,255,0.35);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255,255,255,0.5);
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 0.75rem;
        background-position: center center;
    }
    
    .hero-content {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.5);
    line-height: 1.1;
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.7);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    border: 2px solid transparent;
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filter-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

.modern-filter-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--index-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.modern-filter-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-select,
.search-input {
    background: var(--bg-secondary) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modern-select:focus,
.search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1) !important;
    outline: none;
    background: white !important;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0.5rem;
}

.filter-submit {
    background: var(--gradient-primary) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.reset-filters {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 2px solid var(--border-primary) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--text-muted) !important;
    color: var(--text-primary) !important;
}

/* Enhanced Product Grid */
.products-section {
    margin-top: 2rem;
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.products-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.modern-product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(28, 28, 28, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(230, 126, 34, 0.14);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modern-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(24, 24, 24, 0.16);
    border-color: rgba(230, 126, 34, 0.35);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--danger-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    z-index: 3;
}

.badge-featured {
    background: var(--accent-color) !important;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.42) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.modern-product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn,
.product-overlay .btn-wishlist {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: translateY(20px);
}

.modern-product-card:hover .product-overlay-btn,
.modern-product-card:hover .product-overlay .btn-wishlist {
    transform: translateY(0);
}

.product-overlay-btn:hover,
.product-overlay .quick-view-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.product-overlay .btn-wishlist:hover,
.product-overlay .btn-wishlist.active {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.product-card-content {
    padding: 1rem 1rem 1.1rem !important;
    gap: 1rem;
}

.product-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.product-name {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary) !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.95rem;
}

.product-link-title {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link-title:hover {
    color: var(--primary-color) !important;
}

.product-name-ar {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 400;
    direction: rtl;
    text-align: right;
}

.product-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    background: #fff3e6;
    color: #8f4f0a;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.product-pill:hover {
    background: #f6a54f;
    color: #fff;
}

.product-code {
    font-size: 0.73rem;
    color: #6b7280;
    background: #f8f9fa;
    border: 1px dashed #d7dde3;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.product-price {
    margin-bottom: 1rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: #c43d1e !important;
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
    text-shadow: none;
    background-color: #fff4ef;
    padding: 0.2rem 0.52rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.price-usd {
    font-size: 0.76rem;
    color: #667085 !important;
    font-weight: 600;
    background-color: #f5f7fa;
    padding: 0.18rem 0.46rem;
    border-radius: 6px;
    display: inline-block;
}

.uae-symbol {
    font-family: 'UAESymbol', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 5px;
    display: inline-block;
}

/* Enhanced Product Actions */
.product-actions {
    padding-top: 0.8rem;
    border-top: 1px solid #f2ece5;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

/* Product Action Rows */
.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.56rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 11px;
    transition: all 0.3s ease;
}

.product-action-btn i {
    font-size: 1rem;
}

/* Product icon buttons row */
.product-icons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    width: 100%;
}

.product-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 10px;
    border: 1.3px solid;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0;
}

.product-icon-btn:focus {
    outline: none;
    box-shadow: none;
}

/* WhatsApp icon */
.whatsapp-icon-btn {
    border-color: #25D366;
    color: #25D366;
}

.whatsapp-icon-btn:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* View icon */
.view-icon-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 132, 14, 0.35);
}

/* Share icon */
.share-icon-btn {
    border-color: var(--gray-600);
    color: var(--gray-600);
}

.share-icon-btn:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 71, 47, 0.35);
}

/* Wishlist icon */
.wishlist-icon-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.wishlist-icon-btn:hover,
.wishlist-icon-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

/* Enhanced Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--index-shadow);
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Brand Section */
.brand-title {
    display: inline-block;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0.25rem;
}

.brand-title a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(230, 126, 34, 0.05);
}

.brand-title a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-submit,
    .reset-filters,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .modern-filter-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    
    .btn-label {
        display: inline;
        margin-left: 0.5rem;
    }
    
    .action-btn {
        width: auto;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .modern-product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .product-name {
        font-size: 0.85rem;
        min-height: 2.6rem;
        -webkit-line-clamp: 2;
    }
    
    .product-name-ar {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .product-meta {
        font-size: 0.75rem;
        padding: 4px 0;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        margin-bottom: 0.75rem;
    }
    
    .price-current {
        font-size: 1.2rem;
    }
    
    .price-usd {
        font-size: 0.75rem;
    }
    
    /* Mobile Action Buttons */
    .action-buttons-row {
        gap: 0.4rem;
    }
    
    .action-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    
    .action-icon-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
}

@media (max-width: 350px) {
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success States */
.btn-success-state {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

/* Scroll Animations - FIXED */
.product-card {
    /* Remove the hidden state - products should be visible by default */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.product-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add a loading state class for when needed */
.product-card.loading {
    opacity: 0;
    transform: translateY(30px);
}

/* High Performance Optimizations */
.modern-product-card,
.product-image img,
.btn {
    will-change: transform;
}

/* Product Meta Information Styles */
.product-meta {
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.product-meta .meta-item {
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.product-meta .meta-item i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.product-meta .meta-item a {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.product-meta .meta-item a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@media (max-width: 576px) {
    .product-action-btn {
        min-height: 40px;
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .product-action-btn i {
        font-size: 0.9rem;
    }
    
    .action-row-secondary,
    .action-row-tertiary {
        grid-template-columns: 1fr 1fr;
    }
}

/* Focus Improvements */
.btn:focus-visible,
.page-link:focus-visible,
.modern-select:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2) !important;
}


/* ====== Availability Notice Banner ====== */
.availability-notice {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 60%, #fff8ed 100%);
    border: 1px solid rgba(212, 132, 14, 0.2);
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(28, 28, 28, 0.07), 0 1px 3px rgba(212, 132, 14, 0.08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.availability-notice::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #f5c842 0%, #d4840e 50%, #b8620a 100%);
    border-radius: 18px 0 0 18px;
}

.availability-notice::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(212, 132, 14, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.availability-notice:hover {
    box-shadow: 0 12px 32px rgba(28, 28, 28, 0.11), 0 2px 6px rgba(212, 132, 14, 0.12);
    transform: translateY(-1px);
}

.availability-notice-icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5c842 0%, #d4840e 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(212, 132, 14, 0.35);
}

.availability-notice-text {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.65;
    flex: 1;
}

.notice-title-bilingual {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.97rem;
    color: var(--primary-700);
    margin-bottom: 0.28rem;
    letter-spacing: 0.01em;
}

.notice-title-divider {
    color: rgba(212, 132, 14, 0.4);
    font-weight: 300;
    font-size: 0.85rem;
}

.notice-title-bilingual [lang="ar"] {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 700;
    direction: rtl;
}

.notice-lang-en {
    display: block;
    margin-bottom: 0.3rem;
}

.notice-lang-ar {
    display: block;
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--gray-600, #555);
    border-top: 1px dashed rgba(212, 132, 14, 0.2);
    padding-top: 0.3rem;
    margin-top: 0.1rem;
}

.notice-cod-highlight {
    display: block;
    margin-top: 0.3rem;
    color: #b8620a;
    font-size: 0.88rem;
}

.availability-notice-text a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #25d366 0%, #1aad52 100%);
    color: #fff;
    padding: 0.22rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28);
    margin: 0 0.15rem;
}

.availability-notice-text a:hover {
    background: linear-gradient(135deg, #1ebe5d 0%, #159944 100%);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.40);
}

@media (max-width: 576px) {
    .availability-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.1rem 1rem 1.4rem;
    }

    .availability-notice-icon {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}

/* ====== Trust Teaser Section ====== */
.trust-teaser {
    background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
    border: 1px solid rgba(230, 123, 46, 0.12);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.trust-proof-card {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 18px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.trust-proof-media {
    display: block;
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    background: #f8f9fa;
}

.trust-proof-body {
    padding: 1.25rem;
}

.trust-proof-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.trust-proof-quote {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}
