/* Modern CSS for Qeyafah Website */

/* Omani Rial Currency Font */
@font-face {
    font-family: 'OMR_PUA';
    src: url('../fonts/OMR_PUA.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.omr-rial {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transition: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.omr-rial::before {
    content: '\E000';
    font-family: 'OMR_PUA' !important;
    font-style: normal;
    font-weight: normal;
    transition: none !important;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Size variants */
.omr-rial-sm,
.omr-rial-sm::before {
    font-size: 14px;
}

.omr-rial-md,
.omr-rial-md::before {
    font-size: 20px;
}

.omr-rial-lg,
.omr-rial-lg::before {
    font-size: 30px;
}

:root {
    /* Omani Traditional Color Palette - Custom Colors */
    --primary: #2E5D5D;
    /* RGB(46, 93, 93) - Deep Teal */
    --primary-dark: #1f4545;
    /* RGB(31, 69, 69) - Darker Teal */
    --primary-light: #3d7373;
    /* Lighter variant */
    --secondary: #DAC3AC;
    /* Golden Brown from bisht trim */
    --accent: #E0E0E0;
    /* Off-white/Light Grey from thobe */
    --success: #2E5D5D;
    /* Deep Teal for success */
    --warning: #DAC3AC;
    /* Golden for warnings */
    --danger: #8B4513;
    /* Deep Brown for danger */
    --info: #2E5D5D;
    /* Deep Teal for info */

    /* Banner-Inspired Header/Footer Colors */
    --banner-brown: #6B4226;
    /* Rich brown from traditional garments */
    --banner-dark-brown: #4A2B1A;
    /* Deep brown from shadows */
    --banner-gold: #D4AF37;
    /* Golden accents from jewelry/trim */
    --banner-cream: #F5F2E8;
    /* Cream from traditional fabric */
    --banner-copper: #B87333;
    /* Copper tones from accessories */

    /* Omani Traditional Neutral Colors */
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #9aa0a6;
    --gray-500: #5f6368;
    --gray-600: #3c4043;
    --gray-700: #202124;
    --gray-800: #171717;
    --gray-900: #0d1117;

    /* Omani Traditional Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;

    /* Omani Traditional Text Colors */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --text-inverse: #ffffff;

    /* Omani Traditional Border Colors */
    --border-light: #e8eaed;
    --border-medium: #dadce0;
    --border-dark: #9aa0a6;

    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Global Styles - Modern Design System */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

body {
    font-family: 'Droid Arabic Kufi', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Background Pattern for entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, var(--primary) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--primary) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 25px 25px;
    }

    100% {
        background-position: 50px 50px, 75px 75px;
    }
}

/* Floating elements container */
.floating-elements-global {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.float-element-global {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    animation: floatGlobal 8s ease-in-out infinite;
    opacity: 0.1;
}

.global-element-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.global-element-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 85%;
    animation-delay: 2s;
}

.global-element-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 90%;
    animation-delay: 4s;
}

.global-element-4 {
    width: 60px;
    height: 60px;
    top: 25%;
    left: 75%;
    animation-delay: 1s;
}

.global-element-5 {
    width: 140px;
    height: 140px;
    top: 85%;
    left: 15%;
    animation-delay: 3s;
}

.global-element-6 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes floatGlobal {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) translateX(-20px) rotate(240deg);
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Hidden Scrollbar - maintains scroll functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Smooth Animations */
* {
    transition: all var(--transition-fast);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--text-inverse);
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-slide-in-down {
    animation: slideInDown 0.6s ease-out;
}

/* Staggered Animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

/* Hover Animations */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform var(--transition-normal);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Loading Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-10px);
    }

    70% {
        transform: translateY(-5px);
    }

    90% {
        transform: translateY(-2px);
    }
}

.loading-spin {
    animation: spin 1s linear infinite;
}

.loading-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.loading-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Typography - Droid Arabic Kufi Style */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Droid Arabic Kufi', serif;
    font-weight: 500;
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* RTL Support for Bootstrap Components */
.navbar-nav {
    direction: rtl;
}

.navbar-nav .nav-link {
    text-align: right;
}

.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

/* Modern Form Elements */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-align: right;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 176, 176, 0.1);
    outline: none;
}

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

/* Modern Search Input */
.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input .form-control {
    padding-right: 3rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.search-input .form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(59, 176, 176, 0.1);
}

.search-input .search-icon {
    position: absolute;
    right: var(--space-md);
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.search-input .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-input .search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    direction: rtl;
    gap: var(--space-sm);
}

.input-group .form-control {
    flex: 1;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-right: none;
}

/* Select Dropdown */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-left: 2.5rem;
}

/* Checkbox and Radio */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    transition: all var(--transition-normal);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 176, 176, 0.1);
}

/* Labels */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: block;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-lg);
}

/* Floating Labels */
.floating-label {
    position: relative;
}

.floating-label .form-control {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.floating-label .form-label {
    position: absolute;
    top: 0.75rem;
    right: var(--space-md);
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    pointer-events: none;
    background: var(--bg-primary);
    padding: 0 var(--space-xs);
}

.floating-label .form-control:focus+.form-label,
.floating-label .form-control:not(:placeholder-shown)+.form-label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
}

/* RTL Support for Cards - Home page only */
.home-page .card-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    position: relative;
    min-height: 200px;
}

.card-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-text {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

/* RTL Support for Lists */
.list-group-item {
    text-align: right;
}

.list-group-item-action.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.list-group-item-action:hover {
    background-color: rgba(46, 158, 158, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.list-group-item-action:focus {
    background-color: rgba(46, 158, 158, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* RTL Support for Buttons */
.btn {
    text-align: center;
}

/* RTL Support for Text Alignment */
.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

/* Navigation - Banner-Inspired Omani Style */
.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--banner-cream) !important;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%) !important;
    box-shadow: 0 4px 20px rgba(46, 158, 158, 0.4);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(46, 158, 158, 0.1) 25%,
            rgba(46, 158, 158, 0.05) 50%,
            rgba(46, 158, 158, 0.1) 75%,
            transparent 100%);
    pointer-events: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--banner-cream) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0 0.25rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--banner-gold) !important;
    background-color: rgba(176, 144, 80, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--banner-gold) !important;
    background-color: rgba(176, 144, 80, 0.2);
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover:before {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    border: none;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--border-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

/* Outline Button */
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--text-inverse);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--text-inverse);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, var(--danger) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-xl {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* Button with Icon */
.btn i {
    font-size: 1em;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Modern Card System */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 1;
}

.home-page .card:hover .card-body {
    z-index: 2;
    position: relative;
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.home-page .card-body {
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    position: relative;
    min-height: 180px;
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-lg);
}

/* Product Cards */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.home-page .product-card .card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    height: 100%;
    min-height: 220px;
    gap: var(--space-md);
    position: relative;
}

.product-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.product-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Category Cards */
.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.home-page .category-card .card-body {
    padding: var(--space-2xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    min-height: 200px;
    position: relative;
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(46, 158, 158, 0.3));
}

.category-card:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-dark);
    filter: drop-shadow(0 6px 12px rgba(46, 158, 158, 0.4));
}

/* Sales Categories - Gold styling */
.sales-categories .category-card:hover {
    border-color: var(--secondary);
}

.sales-categories .category-card i {
    color: var(--secondary);
    filter: drop-shadow(0 4px 8px rgba(176, 144, 80, 0.3));
}

.sales-categories .category-card:hover i {
    color: var(--secondary);
    filter: drop-shadow(0 6px 12px rgba(176, 144, 80, 0.4));
}

/* Card Action Buttons - Home page only */
.home-page .card-body .btn {
    margin-top: auto;
    min-width: 120px;
    font-weight: 500;
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    transition: all var(--transition-normal);
}

.home-page .card-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-card {
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.product-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

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

.home-page .card-body {
    padding: var(--space-xl);
    background-color: var(--card-background);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-height: 180px;
    position: relative;
}

.card-title {
    color: var(--theme-gray);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Price Styling - Swift App Style */
.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-green);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1rem;
    opacity: 0.7;
}

/* Badges - Swift App Style */
.badge {
    font-size: 0.75rem;
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

.badge.bg-success {
    background-color: var(--theme-green) !important;
}

.badge.bg-warning {
    background-color: var(--theme-brown) !important;
    color: var(--theme-gray) !important;
}

.badge.bg-danger {
    background-color: var(--theme-red) !important;
}

/* Modern Footer Styles - Matching Header - GREEN OVERRIDE */
.footer-modern,
footer.footer-modern,
footer.footer-modern.footer-modern {
    background: linear-gradient(135deg, #2E9E9E 0%, #4A6B6B 50%, #2E9E9E 100%) !important;
    color: #F5F2E8 !important;
    padding: 4rem 0 2rem !important;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #30A0A0 !important;
    box-shadow: 0 -4px 20px rgba(46, 158, 158, 0.4) !important;
    /* Force visibility - should be GREEN like header */
    min-height: 400px !important;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--banner-gold);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.4);
}

.footer-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.1) 25%,
            rgba(212, 175, 55, 0.05) 50%,
            rgba(212, 175, 55, 0.1) 75%,
            transparent 100%);
    pointer-events: none;
}

/* Footer Brand Section */
.footer-brand {
    position: relative;
}

.footer-title {
    color: var(--banner-gold);
    font-family: 'Droid Arabic Kufi', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.footer-title i {
    color: var(--banner-gold);
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-description {
    color: var(--banner-cream);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Social Links */
.social-links-modern {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-full);
    color: var(--banner-cream);
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    background: var(--banner-gold);
    color: var(--banner-dark-brown);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border-color: var(--banner-gold);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer Sections */
.footer-section {
    position: relative;
}

.footer-heading {
    color: var(--banner-gold);
    font-family: 'Droid Arabic Kufi', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--banner-gold) 0%, var(--banner-copper) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: var(--space-sm);
}

.footer-link {
    color: var(--banner-cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    position: relative;
    opacity: 0.85;
}

.footer-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--banner-gold);
    transition: width var(--transition-normal);
    box-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

.footer-link:hover {
    color: var(--banner-gold);
    padding-right: var(--space-md);
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-link:hover::before {
    width: 20px;
}

.footer-link i {
    font-size: 0.8rem;
    margin-left: var(--space-sm);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.footer-link:hover i {
    opacity: 1;
    color: var(--banner-gold);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Contact Info */
.contact-info-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--banner-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--banner-gold) 0%, var(--banner-copper) 100%);
    border-radius: var(--radius-lg);
    color: var(--banner-dark-brown);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-icon i {
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--banner-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.contact-value {
    color: var(--banner-cream);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Divider */
.footer-divider {
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.3) 25%,
            rgba(212, 175, 55, 0.6) 50%,
            rgba(212, 175, 55, 0.3) 75%,
            transparent 100%);
    margin: 3rem 0 2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.2);
}

/* Footer Bottom */
.footer-copyright {
    color: var(--banner-cream);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-legal-links {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--banner-cream);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    position: relative;
    opacity: 0.7;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--banner-gold);
    transition: width var(--transition-normal);
    box-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

.legal-link:hover {
    color: var(--banner-gold);
    opacity: 1;
}

.legal-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-modern {
        padding: 3rem 0 1.5rem;
    }

    .footer-legal-links {
        justify-content: center;
        margin-top: var(--space-lg);
    }

    .social-links-modern {
        justify-content: center;
    }

    .contact-item {
        padding: var(--space-sm);
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    display: none;
}

.loading.show {
    display: block;
}

/* Product Detail Page */
.product-images img {
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.thumbnail {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--secondary-color);
}

/* Cart Page */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-image {
        height: 150px;
    }

    .home-page .card-body {
        padding: var(--space-lg);
        min-height: 150px;
        gap: var(--space-sm);
    }

    .home-page .product-card .card-body {
        min-height: 180px;
        padding: var(--space-lg);
    }

    .home-page .category-card .card-body {
        min-height: 160px;
        padding: var(--space-lg);
        gap: var(--space-md);
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    /* Mobile products layout - 2 items per row */
    .product-card {
        margin-bottom: 1rem;
    }

    .product-card .card-img-top {
        height: 150px;
        object-fit: cover;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .product-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .product-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

/* Custom Scrollbar - Hidden */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Final Footer Override - Must match header colors */
footer.footer-modern {
    background: linear-gradient(135deg, #5ABAB4 0%, #28616F 50%, #5ABAB4 100%) !important;
    border-top: 2px solid #6FCCC6 !important;
}

/* ABSOLUTE FINAL FOOTER OVERRIDE - Match header colors */
footer.footer-modern,
footer.footer-modern.footer-modern,
.footer-modern,
footer[class*='footer-modern'] {
    background: linear-gradient(135deg, #5ABAB4 0%, #28616F 50%, #5ABAB4 100%) !important;
    background-color: #5ABAB4 !important;
    border-top: 2px solid #6FCCC6 !important;
    /* This MUST match the header colors */
}


/* Banner Logo Styling */
.logo-container {
    transition: all var(--transition-normal);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(90, 186, 180, 0.5) !important;
}

/* Responsive Banner Logo */
@media (max-width: 991px) {
    .logo-container {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 2rem;
    }

    .logo-container img {
        max-width: 90px !important;
        max-height: 90px !important;
    }
}

@media (max-width: 576px) {
    .logo-container {
        width: 120px !important;
        height: 120px !important;
    }

    .logo-container img {
        max-width: 70px !important;
        max-height: 70px !important;
    }
}

/* Updated Banner Logo Styling - Centered Version */
.logo-container {
    transition: all var(--transition-normal);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(90, 186, 180, 0.5) !important;
}

/* Responsive Banner Logo - Centered */
@media (max-width: 991px) {
    .logo-container {
        width: 200px !important;
        height: 200px !important;
    }

    .logo-container img {
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

@media (max-width: 576px) {
    .logo-container {
        width: 150px !important;
        height: 150px !important;
    }

    .logo-container img {
        max-width: 90px !important;
        max-height: 90px !important;
    }

    .banner {
        min-height: 300px !important;
    }
}

/* Updated Banner Styling - Extended Height */
.banner {
    min-height: 800px !important;
}

/* Responsive Banner - Extended Version */
@media (max-width: 991px) {
    .banner {
        min-height: 700px !important;
    }

    .logo-container {
        width: 200px !important;
        height: 200px !important;
        margin-bottom: 2rem !important;
    }

    .logo-container img {
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

@media (max-width: 576px) {
    .banner {
        min-height: 600px !important;
    }

    .logo-container {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 1.5rem !important;
    }

    .logo-container img {
        max-width: 90px !important;
        max-height: 90px !important;
    }

    .banner h2 {
        font-size: 1.8rem !important;
    }

    .banner .lead {
        font-size: 1rem !important;
    }
}

/* Updated Banner Styling - Reduced Height */
.banner {
    min-height: 600px !important;
}

/* Responsive Banner - Reduced Version */
@media (max-width: 991px) {
    .banner {
        min-height: 500px !important;
    }

    .logo-container {
        width: 200px !important;
        height: 200px !important;
        margin-bottom: 1.5rem !important;
    }

    .logo-container img {
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

@media (max-width: 576px) {
    .banner {
        min-height: 450px !important;
    }

    .logo-container {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 1rem !important;
    }

    .logo-container img {
        max-width: 90px !important;
        max-height: 90px !important;
    }

    .banner .lead {
        font-size: 1rem !important;
    }
}







/* Fix container overflow for dropdown visibility */