/* أنماط رئيسية للموقع - تصميم احترافي عالمي */

:root {
    /* الألوان الأساسية */
    --primary: #E94B9E;
    --primary-light: #FF6BB9;
    --primary-dark: #C73E7F;
    --secondary: #6B7280;
    --accent: #F59E0B;
    
    /* ألوان الخلفية */
    --bg-main: #FAFBFC;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E5E7EB;
    --bg-card: #FFFFFF;
    --bg-dark: #111827;
    
    /* الألوان النصية */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6B7280;
    --text-light: #D1D5DB;
    --text-white: #FFFFFF;
    
    /* الألوان الإضافية */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Shadow والـ Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --rounded-xs: 4px;
    --rounded-sm: 8px;
    --rounded-md: 12px;
    --rounded-lg: 16px;
    --rounded-xl: 20px;
    --rounded-2xl: 24px;
    --rounded-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset و أساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'El Messiri', 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    
    &:hover {
        color: var(--primary-dark);
    }
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============= BUTTONS ============= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    transition: all var(--transition-normal);
    border: 0;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateX(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(233, 75, 158, 0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============= PRODUCT CARDS ============= */

.product-card {
    background: var(--bg-card);
    border-radius: var(--rounded-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(233, 75, 158, 0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-normal);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.product-rating .stars {
    color: #FCD34D;
    letter-spacing: 2px;
}

.product-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-footer .btn {
    flex: 1;
    margin: 0;
}

/* ============= BADGES ============= */

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
}

.badge-sale {
    background: linear-gradient(135deg, var(--danger) 0%, var(--warning) 100%);
    color: var(--text-white);
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============= NAVBAR ============= */

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--rounded-md);
    transition: all var(--transition-fast);
    position: relative;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(233, 75, 158, 0.08);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(233, 75, 158, 0.12);
    font-weight: 600;
}

.navbar-nav {
    gap: 0.25rem;
}

/* ============= HERO SECTION ============= */

.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 50%, rgba(233, 75, 158, 0.05) 100%);
    border-radius: var(--rounded-2xl);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 75, 158, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ============= STATS SECTION ============= */

.stats-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-normal);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--rounded-lg);
    background: linear-gradient(135deg, rgba(233, 75, 158, 0.1) 0%, rgba(233, 75, 158, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============= FORMS & INPUTS ============= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--rounded-md);
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 75, 158, 0.1);
    background: var(--bg-card);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============= SEARCH BAR ============= */

.search-bar {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    border-radius: var(--rounded-full);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-card);
    font-size: 0.95rem;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ============= ALERTS ============= */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--rounded-md);
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--info);
    color: var(--info);
}

/* ============= FOOTER ============= */

.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--text-primary) 100%);
    color: var(--text-white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-white);
    padding-right: 0.5rem;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ============= SCROLLBAR ============= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============= ANIMATIONS ============= */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============= UTILITY CLASSES ============= */
/* ================================================================
   Modal Component
   ================================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.show {
    display: flex;
}

.modal-panel {
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #111827);
    border-radius: 12px;
    max-width: 820px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
    transform: translateY(12px);
    opacity: 0;
    transition: all 240ms ease;
}

.modal-backdrop.show .modal-panel {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-secondary-200, #E5E7EB);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 1.125rem; font-weight: 700; }

.modal-body { padding: 1rem 1.25rem; }

.modal-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--color-secondary-200, #E5E7EB); display:flex; gap:0.75rem; justify-content:flex-end; }

.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-lg { max-width: 1024px; }


.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Explicitly set grid columns when class is present */
.grid.grid-cols-1 { grid-template-columns: 1fr !important; }
.grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.grid.grid-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }

.gap-4 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Responsive Grid - Large screens (lg: 1024px and up) */
@media (min-width: 1024px) {
    .lg\:grid-cols-1 { grid-template-columns: 1fr !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
}

/* Responsive Grid - Medium screens (md: up to 1023px) */
@media (max-width: 1023px) {
    .md\:grid-cols-1 { grid-template-columns: 1fr !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Responsive Grid - Small screens (sm: up to 767px) */
@media (max-width: 767px) {
    .sm\:grid-cols-1 { grid-template-columns: 1fr !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}


/* Flex Utilities */
.flex {
    display: flex;
}

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 2.5rem; }
.gap-6 { gap: 3rem; }
.gap-8 { gap: 4rem; }

/* Responsive Gap Utilities */
@media (min-width: 1024px) {
    .lg\:gap-4 { gap: 2rem; }
    .lg\:gap-6 { gap: 3rem; }
    .lg\:gap-8 { gap: 4rem; }
}

@media (max-width: 1023px) {
    .md\:gap-2 { gap: 1rem; }
    .md\:gap-3 { gap: 1.5rem; }
    .md\:gap-4 { gap: 2rem; }
    .md\:gap-6 { gap: 3rem; }
}

@media (max-width: 767px) {
    .sm\:gap-2 { gap: 1rem; }
    .sm\:gap-3 { gap: 1.5rem; }
    .sm\:gap-4 { gap: 2rem; }
}

/* Flex Sizing */
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Margin & Padding */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Display */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Responsive Display */
@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:grid { display: grid; }
    .lg\:hidden { display: none !important; }
}

@media (max-width: 1023px) {
    .md\:block { display: block; }
    .md\:hidden { display: none !important; }
}

@media (max-width: 767px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none !important; }
}

.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Width & Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.h-280 { height: 17.5rem; }
.h-96 { height: 24rem; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded { border-radius: var(--rounded-md); }
.rounded-lg { border-radius: var(--rounded-lg); }
.rounded-xl { border-radius: var(--rounded-xl); }
.rounded-full { border-radius: var(--rounded-full); }

/* ============= RESPONSIVE DESIGN ============= */

/* Extra Large (1200px and up) */
@media (max-width: 1399px) {
    .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
}

/* Large (992px and up) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Medium (768px and up) */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .grid-cols-3,
    .grid-cols-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* Small (576px and up) */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    .hero-section {
        padding: 2rem 0;
        border-radius: var(--rounded-lg);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .grid,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { 
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .stats-card {
        padding: 1.25rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
        text-align: center;
    }
    
    .footer-divider {
        margin: 1.5rem 0 1rem;
    }
    
    .container-custom {
        padding: 0 1rem;
    }
}

/* Extra Small (< 576px) */
@media (max-width: 575px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem;
        margin: 0.25rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-body {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .stats-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .container-custom {
        padding: 0 0.75rem;
    }
    
    /* Form on mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-title {
        margin-bottom: 1rem;
    }
    
    .footer-link {
        margin-bottom: 0.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        background-color: rgba(233, 75, 158, 0.15);
    }
}
