/* ============================================
   CSS Variables - Global
   ============================================ */
:root {
    --primary: #9f4022;
    --primary-dark: #7a3119;
    --primary-light: #c75e3a;
    --secondary: #1a1a2e;
    --accent: #d93d3f;
    --light: #faf5f2;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e3;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(159, 64, 34, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* ============================================
   Global Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Almarai', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

/* ============================================
   Reduce Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Placeholder
   ============================================ */
input::placeholder {
    font-size: 15px;
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-primary {
    background-color: var(--primary) !important;
}
.bg-secondary {
    background-color: var(--secondary) !important;
}
.bg-accent {
    background-color: var(--accent) !important;
}
.bg-light {
    background-color: var(--light) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.text-secondary {
    color: var(--secondary) !important;
}
.text-accent {
    color: var(--accent) !important;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   PAGE LOADER
   ============================================ */
#pageLoader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}
@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #9f4022;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}
.loader-text {
    margin-top: 16px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Almarai', sans-serif;
}

/* ============================================
   OFFLINE BANNER
   ============================================ */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff4757;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.3s;
    font-size: 0.9rem;
    direction: rtl;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.offline-banner.show {
    transform: translateY(0);
}

/* ============================================
   NAVIGATION LOADER
   ============================================ */
.nav-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nav-loader.active {
    opacity: 1;
}
.nav-loader::before {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #9f4022, #ff8a5c, #ffb347);
    border-radius: 0 3px 3px 0;
    animation: navLoader 1.5s ease-in-out infinite;
}
@keyframes navLoader {
    0% {
        width: 0%;
        margin-right: 0;
    }
    50% {
        width: 70%;
        margin-right: 0;
    }
    100% {
        width: 0%;
        margin-right: 100%;
    }
}

/* ============================================
   MAIN CONTENT ANIMATIONS
   ============================================ */
#main-content {
    animation: pageEnter 0.3s ease-out;
    min-height: 60vh;
}
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* ============================================
   CONNECTION TOAST
   ============================================ */
.connection-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    direction: rtl;
}
.connection-toast.show {
    transform: translateX(-50%) translateY(0);
}
.connection-toast.toast-online {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.connection-toast.toast-offline {
    background: linear-gradient(135deg, #dc3545, #ff4757);
}

/* ============================================
   PULL TO REFRESH
   ============================================ */
.ptr-indicator {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 24px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: top 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}
.ptr-indicator.show {
    top: 0;
}
.ptr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #9f4022;
    border-radius: 50%;
    animation: ptrSpin 0.6s linear infinite;
}
@keyframes ptrSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SIDE PROGRESS BAR (Mobile Only)
   ============================================ */
.side-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    z-index: 1030;
    pointer-events: none;
    display: none;
}
.side-progress-bar {
    width: 100%;
    background: linear-gradient(180deg, #9f4022, #ff8a5c, #ffb347);
    border-radius: 0 0 3px 3px;
    transition: height 0.15s linear;
    height: 0%;
}
.side-progress-arrow {
    position: absolute;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #ff8a5c;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: top 0.15s linear;
    box-shadow: 0 0 6px rgba(255, 138, 92, 0.5);
    top: 0%;
}

/* ============================================
   PWA INSTALL PROMPT
   ============================================ */
.pwa-install-prompt {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: calc(92vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    direction: rtl;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.pwa-install-prompt img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}
.pwa-install-prompt .install-text {
    flex: 1;
    min-width: 140px;
    text-align: right;
}
.pwa-install-prompt strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.3;
}
.pwa-install-prompt small {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-top: 2px;
}
.pwa-install-prompt .install-btn-primary {
    background: #9f4022;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
}
.pwa-install-prompt .dismiss-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    font-size: 0.8rem;
    padding: 4px 8px;
    white-space: nowrap;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--secondary);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    transition: var(--transition);
}
.top-bar-link:hover {
    color: var(--white);
}
.top-bar-link i {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--primary-light);
}
.top-bar-link span[dir="ltr"] {
    direction: ltr;
    unicode-bidi: embed;
}
.top-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}
.social-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
}
.social-link:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px 0;
}
.main-nav.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}
.nav-brand-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(159, 64, 34, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-brand-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
}
.nav-brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.nav-brand-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--light);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.nav-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-right: 4px;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    background: var(--white);
    cursor: pointer;
}
.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 64, 34, 0.15);
}
.action-btn.whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    background: #f0fdf4;
}
.contact-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
    white-space: nowrap;
}
.contact-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 64, 34, 0.3);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    padding: 0;
}
.mobile-toggle:hover {
    background: var(--light);
    border-color: var(--primary);
}
.mobile-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
}
.mobile-toggle.active .hamburger span {
    background: var(--white);
}
.hamburger {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active .hamburger span:first-child {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active .hamburger span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE MENU PANEL
   ============================================ */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 1040;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-menu-panel.active {
    right: 0;
}
.mobile-menu-top {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary), #2d2d4a);
    padding: 25px 20px 25px;
    color: var(--white);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mobile-brand img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    object-fit: contain;
    background: var(--white);
    padding: 6px;
}
.mobile-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.mobile-brand span {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Mobile Search */
.mobile-search-input {
    flex: 1;
    position: relative;
    display: flex;
}
.mobile-search-input i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 1;
}
.mobile-search-input input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Almarai', sans-serif;
}
.mobile-search-input input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
}
.mobile-search-input input::placeholder {
    color: var(--gray-600);
}
.mobile-search-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Almarai', sans-serif;
    margin-right: 8px;
}
.mobile-search-btn:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Body */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 20px;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-section {
    margin-bottom: 25px;
}
.mobile-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-links li {
    margin-bottom: 2px;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    background: var(--white);
    position: relative;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--light);
    color: var(--primary);
}
.mobile-nav-icon {
    width: 24px;
    text-align: center;
    color: var(--gray-600);
}
.mobile-nav-links a:hover .mobile-nav-icon,
.mobile-nav-links a.active .mobile-nav-icon {
    color: var(--primary);
}
.mobile-link-arrow {
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--gray-600);
    transition: var(--transition);
}
.mobile-nav-links a:hover .mobile-link-arrow {
    color: var(--primary);
    transform: translateX(-3px);
}
.products-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    margin-right: auto;
}

/* Mobile Contact Cards */
.mobile-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: right;
    direction: rtl;
}
.mobile-contact-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(159, 64, 34, 0.1);
}
.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1rem;
    flex-shrink: 0;
    order: 0;
}
.phone-icon {
    background: #e3f2fd;
    color: #1976d2;
}
.whatsapp-icon {
    background: #e8f5e9;
    color: #388e3c;
}
.email-icon {
    background: #fff3e0;
    color: #f57c00;
}
.location-icon {
    background: #fce4ec;
    color: #c62828;
}
.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    min-width: 0;
    flex: 1;
}
.contact-card-label {
    font-size: 0.7rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: right;
}
.contact-card-value {
    font-size: 0.85rem;
    color: var(--gray-800);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.contact-card-value[dir="ltr"] {
    text-align: right;
    direction: ltr;
    display: inline-block;
    unicode-bidi: plaintext;
}
.mobile-menu-footer {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}
.mobile-menu-footer p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   SEARCH MODAL - Complete Final Version
   ============================================ */

/* ============================================
   OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 1050;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================================
   MODAL CONTENT
   ============================================ */
.search-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 680px;
    max-height: 85vh;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
    z-index: 1051;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================
   SEARCH MODAL HEADER
   ============================================ */
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.search-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.search-title-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    color: white;
    font-size: .85rem;
}

.search-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
    padding: 0;
    color: var(--gray-600);
    font-size: .95rem;
}

.search-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

/* ============================================
   SEARCH MODAL BODY
   ============================================ */
.search-modal-body {
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   SEARCH INPUT GROUP
   ============================================ */
.search-input-group {
    position: relative;
    margin-bottom: 0;
}

.search-input-field {
    width: 100%;
    padding: 14px 46px 14px 46px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 1rem;
    transition: all .25s;
    font-family: 'Almarai', sans-serif;
    background: var(--gray-100);
    direction: rtl;
    color: var(--secondary);
    box-sizing: border-box;
}

.search-input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(159, 64, 34, .08);
    background: var(--white);
}

.search-input-field::placeholder {
    color: #aaa;
}

.search-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color .2s;
    opacity: 0.6;
}

.search-clear-btn:hover {
    color: #dc3545;
    opacity: 1;
}

/* ============================================
   QUICK SUGGESTIONS
   ============================================ */
.search-suggestions {
    margin-top: 1rem;
}

.suggestions-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.suggestions-label i {
    color: var(--primary);
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-item {
    padding: 6px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: .85rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Almarai', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.suggestion-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 64, 34, .2);
}

.suggestion-item:active {
    transform: scale(0.95);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results {
    margin-top: 1rem;
    animation: searchFadeIn .25s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.results-count {
    font-size: .8rem;
    color: var(--gray-600);
    font-weight: 600;
}

.results-clear-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: .75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
    font-family: 'Almarai', sans-serif;
}

.results-clear-btn:hover {
    color: #dc3545;
}

/* ============================================
   SEARCH RESULTS LIST
   ============================================ */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    padding: 4px 2px 8px 2px;
}

/* ============================================
   SEARCH RESULT ITEM
   ============================================ */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
    cursor: pointer;
    color: inherit;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 64, 34, .08);
}

.search-result-item:active {
    transform: scale(0.97);
}

.search-result-item + .search-result-item {
    margin-top: 0;
}

.result-image-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.result-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-composition {
    font-size: .75rem;
    color: var(--gray-600);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-arrow {
    color: var(--gray-600);
    font-size: .8rem;
    flex-shrink: 0;
    transition: color .2s;
}

.search-result-item:hover .result-arrow {
    color: var(--primary);
}

/* ============================================
   VIEW ALL
   ============================================ */
.search-view-all {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 64, 34, .3);
    color: white;
}

.view-all-link:active {
    transform: scale(0.97);
}

/* ============================================
   LOADING
   ============================================ */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.5rem;
    color: var(--gray-600);
    font-size: .9rem;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop - Hide FAB, show scroll-to-top */
@media (min-width: 992px) {
    .side-progress {
        display: none;
    }
}

/* Mobile - Show FAB and scroll-to-top */
@media (max-width: 991px) {
    .side-progress {
        display: block;
    }

}


/* ============================================
   NO RESULTS
   ============================================ */
.search-no-results {
    text-align: center;
    padding: 2rem 1rem;
}

.no-results-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon i {
    font-size: 1.8rem;
    color: var(--gray-600);
    opacity: .5;
}

.search-no-results p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.search-no-results span {
    font-size: .85rem;
    color: var(--gray-600);
}

/* ============================================
   MIN HINT
   ============================================ */
.search-min-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
    color: var(--gray-600);
    font-size: .85rem;
}

.search-min-hint i {
    color: var(--primary);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
.search-results-list::-webkit-scrollbar {
    width: 4px;
}

.search-results-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
.search-results-list {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-100);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Tablets & Small Screens */
@media (max-width: 768px) {
    .search-modal-content {
        width: 96%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px;
        top: 50%;
    }

    .search-modal-header {
        padding: 1rem 1.2rem;
    }

    .search-modal-title {
        font-size: 1rem;
        gap: 8px;
    }

    .search-title-icon {
        width: 32px;
        height: 32px;
        font-size: .8rem;
        border-radius: 8px;
    }

    .search-close-btn {
        width: 32px;
        height: 32px;
        font-size: .85rem;
    }

    .search-modal-body {
        padding: 1rem 1.2rem;
    }

    .search-input-field {
        padding: 12px 40px 12px 40px;
        font-size: .95rem;
        border-radius: 12px;
    }

    .search-input-icon {
        right: 14px;
        font-size: .9rem;
    }

    .search-clear-btn {
        left: 14px;
        font-size: 1rem;
    }

    .result-image-wrapper {
        width: 42px;
        height: 42px;
    }

    .result-name {
        font-size: .9rem;
    }

    .search-results-list {
        max-height: 250px;
        gap: 8px;
    }

    .search-result-item {
        padding: 10px 14px;
        gap: 12px;
    }

    .suggestion-item {
        font-size: .8rem;
        padding: 5px 12px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .search-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 16px;
        top: 50%;
    }

    .search-modal-header {
        padding: .8rem 1rem;
    }

    .search-modal-title {
        font-size: .9rem;
        gap: 6px;
    }

    .search-title-icon {
        width: 28px;
        height: 28px;
        font-size: .7rem;
        border-radius: 6px;
    }

    .search-close-btn {
        width: 28px;
        height: 28px;
        font-size: .8rem;
    }

    .search-modal-body {
        padding: .8rem 1rem;
    }

    .search-input-field {
        padding: 10px 36px 10px 36px;
        font-size: .9rem;
        border-radius: 10px;
        border-width: 1.5px;
    }

    .search-input-field::placeholder {
        font-size: .85rem;
    }

    .search-input-icon {
        right: 12px;
        font-size: .85rem;
    }

    .search-clear-btn {
        left: 12px;
        font-size: .9rem;
    }

    .search-results {
        margin-top: .8rem;
    }

    .search-results-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .search-results-list {
        gap: 8px;
        max-height: 200px;
        padding: 2px 0 6px 0;
    }

    .search-result-item {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 10px;
    }

    .result-image-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .result-name {
        font-size: .85rem;
    }

    .result-composition {
        font-size: .7rem;
    }

    .result-arrow {
        font-size: .7rem;
    }

    .suggestions-list {
        gap: 6px;
    }

    .suggestion-item {
        font-size: .75rem;
        padding: 4px 10px;
    }

    .search-loading {
        padding: 1rem;
        font-size: .85rem;
        gap: 8px;
    }

    .loading-spinner {
        width: 18px;
        height: 18px;
        border-width: 2.5px;
    }

    .search-no-results {
        padding: 1.5rem 1rem;
    }

    .no-results-icon {
        width: 50px;
        height: 50px;
    }

    .no-results-icon i {
        font-size: 1.5rem;
    }

    .search-no-results p {
        font-size: .95rem;
    }

    .search-no-results span {
        font-size: .8rem;
    }

    .view-all-link {
        font-size: .85rem;
        padding: 8px 16px;
    }

    .search-min-hint {
        font-size: .8rem;
        padding: .8rem;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .search-modal-content {
        border-radius: 12px;
    }

    .search-modal-header {
        padding: .6rem .8rem;
    }

    .search-modal-title {
        font-size: .85rem;
    }

    .search-title-icon {
        width: 24px;
        height: 24px;
        font-size: .65rem;
    }

    .search-close-btn {
        width: 24px;
        height: 24px;
        font-size: .7rem;
    }

    .search-modal-body {
        padding: .6rem .8rem;
    }

    .search-input-field {
        padding: 8px 32px 8px 32px;
        font-size: .85rem;
        border-radius: 8px;
    }

    .search-input-field::placeholder {
        font-size: .8rem;
    }

    .search-input-icon {
        right: 10px;
        font-size: .8rem;
    }

    .search-clear-btn {
        left: 10px;
        font-size: .8rem;
    }

    .result-image-wrapper {
        width: 32px;
        height: 32px;
    }

    .result-name {
        font-size: .8rem;
    }

    .search-results-list {
        gap: 6px;
        max-height: 160px;
    }

    .search-result-item {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 8px;
    }
}

/* ============================================
   SAFE AREA SUPPORT
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
    .search-modal-content {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    position: relative;
    background: linear-gradient(135deg, var(--secondary), #0a1a24);
    color: white;
    padding: 60px 0 0;
    overflow: hidden;
    border-top: 3px solid rgba(159, 64, 34, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.footer-col {
    position: relative;
    z-index: 2;
}
.footer-logo-wrapper {
    margin-bottom: 20px;
}
.footer-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}
.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(159, 64, 34, 0.3));
}
.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 3px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.footer-menu li a i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: all 0.2s ease;
}
.footer-menu li a:hover {
    color: white;
    transform: translateX(-5px);
}
.footer-menu li a:hover i {
    transform: translateX(-3px);
    color: var(--accent);
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}
.contact-info li i {
    width: 20px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-info li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    direction: ltr;
    display: inline-block;
}
.contact-info li a:hover {
    color: var(--primary);
    transform: translateX(-3px);
}
.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}
.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}
.developed-by {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.developed-by a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}
.developed-by a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: width 0.3s;
}
.developed-by a:hover {
    color: var(--primary);
}
.developed-by a:hover::after {
    width: 100%;
}
.footer-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.03;
}
.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: rotate 30s linear infinite;
}
.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation: rotate 35s linear infinite reverse;
}
.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    animation: pulse 8s ease-in-out infinite;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.03;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.05;
    }
}

/* ============================================
   FOOTER QR CODE - Clean Version
   ============================================ */
.footer-qr {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-qr-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-qr-link {
    display: block;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.footer-qr-image-container {
    border-radius: 14px;
    overflow: hidden;
    background: white;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.footer-qr-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.footer-qr-image {
    width: 90px;
    height: 90px;
    display: block;
    border-radius: 8px;
}

.footer-qr-text {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, .8);
    flex: 1;
}

.footer-qr-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.footer-qr-subtitle {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    margin-top: 2px;
}

.footer-qr-divider {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 8px 0;
    border-radius: 2px;
}

.footer-qr-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .05);
}

.footer-qr-hint i {
    color: var(--primary);
    font-size: .7rem;
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

/* Tablets & Small Laptops */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo-wrapper {
        display: flex;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-menu li a {
        justify-content: center;
    }

    .footer-menu li a i {
        display: none;
    }

    .contact-info li {
        justify-content: center;
        text-align: center;
    }

    .contact-info li i {
        margin-top: 0;
    }

    .contact-numbers {
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .developed-by {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-description {
        text-align: center;
    }
}

/* Extra Small Phones */
@media (max-width: 576px) {
    .footer-section {
        padding: 30px 0 0;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .footer-menu li a {
        font-size: 0.85rem;
    }

    .contact-info li {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .contact-info li i {
        width: auto;
    }

    .copyright p {
        font-size: 0.8rem;
    }

    .developed-by {
        font-size: 0.8rem;
    }

    .footer-logo {
        max-width: 140px;
    }

    .footer-bottom {
        padding: 15px 0;
    }
}

/* ============================================
   FOOTER QR - RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .footer-qr-wrapper {
        gap: 14px;
        justify-content: center;
    }

    .footer-qr-image {
        width: 75px;
        height: 75px;
    }

    .footer-qr-image-container {
        padding: 5px;
        border-radius: 12px;
    }

    .footer-qr-title {
        font-size: .9rem;
    }

    .footer-qr-subtitle {
        font-size: .75rem;
    }

    .footer-qr-hint {
        font-size: .65rem;
        padding: 3px 8px;
    }

    .footer-qr-divider {
        margin: 6px auto;
    }

    .footer-qr-text {
        align-items: center;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .footer-qr-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer-qr-image {
        width: 100px;
        height: 100px;
    }

    .footer-qr-image-container {
        padding: 6px;
        border-radius: 14px;
    }

    .footer-qr-image-container:hover {
        transform: scale(1.03);
    }

    .footer-qr-text {
        align-items: center;
    }

    .footer-qr-divider {
        margin: 6px auto;
    }

    .footer-qr-hint {
        margin: 0 auto;
    }

    .footer-qr-title {
        font-size: .95rem;
    }

    .footer-qr-subtitle {
        font-size: .75rem;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .footer-qr-image {
        width: 80px;
        height: 80px;
    }

    .footer-qr-image-container {
        padding: 4px;
        border-radius: 12px;
    }

    .footer-qr-title {
        font-size: .85rem;
    }

    .footer-qr-subtitle {
        font-size: .7rem;
    }

    .footer-qr-hint {
        font-size: .6rem;
        padding: 2px 8px;
    }
}

.registration-numbers {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.registration-numbers span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    direction: ltr;
    display: inline-block;
}

.registration-numbers span:first-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* In footer contact info */
.contact-info li .registration-numbers {
    margin-top: 0;
}

.contact-info li .registration-numbers span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ============================================
   TOUCH DEVICES - Better Feedback
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .footer-qr-image-container:active {
        transform: scale(0.95);
    }
}



/* ============================================
   BOTTOM NAVIGATION - Mobile App Style
   ============================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1020;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(159, 64, 34, 0.06);
    justify-content: space-around;
    align-items: center;
    height: auto;
    min-height: 60px;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    transition: all 0.2s ease;
    padding: 4px 10px;
    border-radius: 12px;
    position: relative;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.active {
    color: var(--primary);
}
.bottom-nav-item:active {
    transform: scale(0.92);
}
.nav-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.bottom-nav-item.active .nav-item-icon {
    transform: translateY(-2px);
}
.nav-item-label {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}
.center-action {
    position: relative;
    margin-top: -24px;
}
.center-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
}
.center-action:active .center-btn {
    transform: scale(0.9);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -4px;
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Mobile - Navigation */
@media (max-width: 991.98px) {
    .nav-menu {
        display: none !important;
    }
    .contact-btn-primary {
        display: none !important;
    }
    .mobile-toggle {
        display: flex !important;
    }
    .main-nav {
        padding: 12px 0;
    }
    .main-nav .container {
        height: 65px;
    }
    .nav-brand-logo {
        width: 48px;
        height: 48px;
    }
    .nav-brand-logo img {
        width: 40px;
        height: 40px;
    }
    .nav-brand-name {
        font-size: 1.15rem;
    }
    .nav-brand-subtitle {
        font-size: 0.65rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    /* Bottom Nav - Show on mobile */
    .bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .pwa-install-prompt {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .side-progress {
        display: block;
    }
}


/* Mobile Landscape & Small Tablets */
@media (max-width: 767.98px) {
    .top-bar {
        padding: 8px 0;
    }
    .top-bar-left {
        gap: 12px;
    }
    .top-bar-link span {
        display: none;
    }
    .top-bar-link i {
        font-size: 1rem;
    }
    .top-bar-divider {
        display: none;
    }
    .action-btn {
        width: 38px;
        height: 38px;
    }
    .mobile-toggle {
        width: 40px;
        height: 40px;
    }
    .mobile-menu-panel {
        width: 100%;
        max-width: 100vw;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .top-bar {
        padding: 6px 0;
    }
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .main-nav {
        padding: 10px 0;
    }
    .main-nav .container {
        height: 60px;
        padding: 0 12px;
    }
    .nav-brand {
        gap: 8px;
    }
    .nav-brand-logo {
        width: 42px;
        height: 42px;
    }
    .nav-brand-logo img {
        width: 34px;
        height: 34px;
    }
    .nav-brand-name {
        font-size: 1rem;
    }
    .nav-brand-subtitle {
        font-size: 0.6rem;
    }
    .nav-actions {
        gap: 6px;
    }
    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .mobile-toggle {
        width: 38px;
        height: 38px;
    }
    .bottom-nav {
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    }
    .nav-item-icon {
        font-size: 1.1rem;
    }
    .nav-item-label {
        font-size: 0.6rem;
    }
    .center-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .footer-section {
        padding: 50px 0 0;
    }
    .footer-grid {
        gap: 25px;
    }
    .footer-title {
        font-size: 1.2rem;
    }
    .footer-description {
        font-size: 0.9rem;
    }
    .footer-menu li a {
        font-size: 0.9rem;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .developed-by {
        justify-content: center;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .pwa-install-prompt {
        padding: 12px 14px;
        gap: 8px;
    }
    .pwa-install-prompt .install-text {
        min-width: 120px;
    }
    .pwa-install-prompt strong {
        font-size: 0.8rem;
    }
    .pwa-install-prompt small {
        font-size: 0.7rem;
    }
    .pwa-install-prompt .install-btn-primary {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
    .search-modal-content {
        width: 96%;
        max-height: 90vh;
        border-radius: 16px;
    }
    .search-modal-header {
        padding: 1rem 1.2rem;
    }
    .search-modal-title {
        font-size: 1rem;
        gap: 8px;
    }
    .search-title-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    .search-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .search-modal-body {
        padding: 1.2rem;
    }
    .search-input-field {
        padding: 12px 40px 12px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
        border-width: 1.5px;
    }
    .search-input-field::placeholder {
        font-size: 0.85rem;
    }
    .search-input-icon {
        right: 14px;
        font-size: 0.85rem;
    }
    .search-results {
        margin-top: 1rem;
    }
    .search-result-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
    }
    .result-image-wrapper {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    .result-name {
        font-size: 0.9rem;
    }
    .result-composition {
        font-size: 0.75rem;
    }
    .result-arrow {
        font-size: 0.75rem;
    }
    .search-loading {
        padding: 1.5rem;
        font-size: 0.85rem;
        gap: 10px;
    }
    .loading-spinner {
        width: 20px;
        height: 20px;
        border-width: 2.5px;
    }
    .search-no-results {
        padding: 1.5rem;
    }
    .search-no-results i {
        font-size: 2.5rem;
    }
    .search-no-results p {
        font-size: 1rem;
    }
    .search-no-results span {
        font-size: 0.8rem;
    }
    .footer-section {
        padding: 40px 0 0;
    }
    .footer-logo {
        max-width: 150px;
    }
    .footer-title {
        font-size: 1.1rem;
    }
    .footer-menu li a {
        font-size: 0.85rem;
    }
    .contact-info li {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .contact-info li i {
        width: auto;
    }
    .footer-col {
        text-align: center;
    }
    .footer-logo-wrapper {
        display: flex;
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-menu li a {
        justify-content: center;
    }
    .footer-menu li a i {
        display: none;
    }
    .contact-info li {
        justify-content: center;
        text-align: center;
    }
    .contact-info li i {
        margin-top: 0;
    }
    .contact-numbers {
        align-items: center;
    }


    .side-progress {
        display: none;
    }
}

/* PWA Safe Area Adjustments */
@supports (padding-top: env(safe-area-inset-top)) {
    .main-nav {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    .mobile-menu-panel {
        padding-top: env(safe-area-inset-top);
    }
}

/* Touch Feedback for Mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active,
    .action-btn:active,
    .mobile-nav-links a:active {
        background-color: var(--light) !important;
    }
    .mobile-contact-card:active {
        background-color: var(--gray-200) !important;
    }
    .nav-link:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}


/* ============================================
   MEDICINE DETAILS PAGE
   ============================================ */

/* Page Container */
.medicine-details-page {
    position: relative;
    padding: 50px 0 80px;
    background: linear-gradient(135deg, #fff, var(--light));
    min-height: 100vh;
    overflow: hidden;
}

/* Main Card */
.details-main-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .05);
    border: 1px solid rgba(159, 64, 34, .05);
    margin-bottom: 60px;
}

/* Image Wrapper */
.details-image-wrapper {
    position: relative;
}

.details-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light), #fff);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    transition: transform .4s ease;
}

.details-image-container:hover .details-image {
    transform: scale(1.03);
}

.details-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(159, 64, 34, .1), rgba(217, 61, 63, .1));
    pointer-events: none;
}

.details-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(159, 64, 34, .3);
}

/* Content */
.details-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.details-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.details-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.details-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: var(--light);
    border-radius: 50px;
    color: var(--secondary);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid rgba(159, 64, 34, .1);
}

.details-section {
    margin-bottom: 30px;
}

.details-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(159, 64, 34, .1);
}

.details-section-title i {
    color: var(--primary);
}

.details-section-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    padding-right: 30px;
}

/* Details Actions (Buttons) */
.details-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    flex-wrap: wrap;
}

.details-actions .btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
}

.details-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 25px rgba(159, 64, 34, .3);
}

.details-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(159, 64, 34, .4);
}

.details-actions .btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, .3);
}

.details-actions .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, .4);
}

/* Related Products */
.related-section {
    margin-top: 60px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 40px;
    text-align: center;
}

.related-medicine-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .05);
    border: 1px solid rgba(159, 64, 34, .05);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-medicine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(159, 64, 34, .15);
    border-color: var(--primary);
}

.related-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.related-medicine-card:hover .related-image {
    transform: scale(1.05);
}

.related-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(159, 64, 34, .05), rgba(217, 61, 63, .05));
    pointer-events: none;
}

.related-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    display: block;
}

.related-desc {
    color: #666;
    font-size: .85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.related-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 0;
    border-top: 1px solid rgba(159, 64, 34, .1);
    margin-top: auto;
    transition: gap .2s ease, color .2s ease;
}

.related-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ============================================
   MEDICINE DETAILS - RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .details-main-card {
        padding: 30px;
    }
    .details-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .medicine-details-page {
        padding: 40px 0 60px;
    }
    .details-main-card {
        padding: 25px;
    }
    .details-image-container {
        aspect-ratio: 4/3;
    }
    .details-image {
        padding: 20px;
    }
    .details-badge {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: .8rem;
    }
    .details-title {
        font-size: 1.8rem;
        margin-top: 20px;
    }
    .details-tag {
        padding: 6px 15px;
        font-size: .8rem;
    }
    .details-section-title {
        font-size: 1.2rem;
    }
    .details-section-text {
        font-size: 1rem;
        padding-right: 20px;
    }
    .details-actions .btn {
        padding: 12px 25px;
        font-size: .95rem;
        min-width: 160px;
    }
    .related-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .related-name {
        font-size: 1.1rem;
    }
    .related-medicine-card .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .details-main-card {
        padding: 20px;
    }
    .details-title {
        font-size: 1.5rem;
    }
    .details-tag {
        padding: 5px 12px;
        font-size: .75rem;
    }
    .details-section-title {
        font-size: 1.1rem;
    }
    .details-section-text {
        font-size: .95rem;
    }
    .details-actions {
        flex-direction: column;
    }
    .details-actions .btn {
        width: 100%;
        min-width: unset;
    }
    .related-title {
        font-size: 1.5rem;
    }
    .related-name {
        font-size: 1rem;
    }
    .related-medicine-card .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ============================================
   MEDICINES PAGE (Listing)
   ============================================ */

/* Page Container */
.medicines-page {
    position: relative;
    padding: 50px 0 80px;
    background: linear-gradient(135deg, var(--light), #fff);
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .04);
    border: 1px solid rgba(159, 64, 34, .05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-title {
    height: 22px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-text {
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.skeleton-btn {
    width: 120px;
    height: 38px;
    border-radius: 50px;
}

.skeleton-badge {
    width: 70px;
    height: 28px;
    border-radius: 50px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   SEARCH & FILTER BAR
   ============================================ */
.search-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-wrapper {
    flex: 2;
    min-width: 250px;
    position: relative;
    background: white;
    border-radius: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
    border: 1px solid rgba(159, 64, 34, .1);
    display: flex;
    align-items: center;
    transition: all .3s;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(159, 64, 34, .12);
}

.search-icon {
    padding: 0 20px;
    color: #999;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    background: transparent;
    direction: rtl;
    font-family: 'Almarai', sans-serif;
    min-width: 0;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear-btn {
    background: var(--gray-200);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
    color: #666;
    font-size: .8rem;
    transition: all .2s;
    flex-shrink: 0;
}

.search-clear-btn:hover {
    background: #dc3545;
    color: white;
}

.filter-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-select {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 1px solid rgba(159, 64, 34, .1);
    border-radius: 60px;
    font-size: .95rem;
    background: white;
    color: var(--secondary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239f4022' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
    font-family: 'Almarai', sans-serif;
    transition: all .3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(159, 64, 34, .12);
}

.filter-clear-btn {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-200);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: .7rem;
    transition: all .2s;
}

.filter-clear-btn:hover {
    background: #dc3545;
    color: white;
}

/* ============================================
   LOADING INDICATOR
   ============================================ */
.filter-loading-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    border: 1px solid rgba(159, 64, 34, .1);
    font-size: .9rem;
    color: var(--gray-600);
    font-weight: 600;
}

.filter-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

/* ============================================
   RESULTS COUNTER
   ============================================ */
.results-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-text {
    font-size: .95rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.results-text strong {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.results-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(159, 64, 34, .08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Almarai', sans-serif;
}

.clear-filters:hover {
    background: #dc2626;
    color: white;
}

/* ============================================
   MEDICINE CARDS
   ============================================ */
.medicine-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .04);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(159, 64, 34, .05);
}

.medicine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(159, 64, 34, .1);
    border-color: var(--primary);
}

.medicine-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.medicine-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.medicine-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .4s ease;
}

.medicine-card:hover .medicine-image {
    transform: scale(1.03);
}

.medicine-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(159, 64, 34, .08), rgba(217, 61, 63, .08));
}

.medicine-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(159, 64, 34, .3);
}

/* Medicine Content */
.medicine-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.medicine-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 10px;
    display: block;
}

.medicine-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.medicine-composition,
.medicine-indications {
    margin-bottom: 15px;
}

.composition-label,
.indications-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--secondary);
    font-weight: 700;
    font-size: .9rem;
}

.composition-label i,
.indications-label i {
    color: var(--primary);
    font-size: 1rem;
}

.composition-text,
.indications-text {
    color: #666;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
    padding-right: 25px;
}

.medicine-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(159, 64, 34, .1);
}

.btn-medicine-details {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s ease;
    padding: 8px 18px;
    background: var(--light);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
}

.btn-medicine-details:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateX(-3px);
}

.medicine-mini-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(40, 167, 69, .1);
    padding: 5px 12px;
    border-radius: 50px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 40px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
    border: 1px solid rgba(159, 64, 34, .06);
}

.empty-state-inner {
    text-align: center;
    max-width: 500px;
}

.empty-state-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--light), #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(159, 64, 34, .06);
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: .5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.empty-subtitle {
    color: #999;
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 25px rgba(159, 64, 34, .2);
}

.btn-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(159, 64, 34, .3);
    color: white;
}

/* ============================================
   MEDICINES PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .medicines-page {
        padding: 40px 0 60px;
    }
    .search-filter-bar {
        flex-direction: column;
        gap: 10px;
    }
    .search-wrapper,
    .filter-wrapper {
        width: 100%;
        min-width: 100%;
    }
    .medicine-content {
        padding: 20px;
    }
    .medicine-name {
        font-size: 1.2rem;
    }
    .empty-state {
        padding: 30px 20px;
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .search-input {
        padding: 14px 0;
        font-size: .9rem;
    }
    .filter-select {
        padding: 14px 40px 14px 15px;
        font-size: .9rem;
    }
    .empty-state-icon {
        width: 65px;
        height: 65px;
    }
    .empty-state-icon i {
        font-size: 1.8rem;
    }
    .empty-title {
        font-size: 1.2rem;
    }
    .results-counter {
        flex-direction: column;
        align-items: flex-start;
    }
    .clear-filters {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   ABOUT PAGE
   ============================================ */

/* Page Container */
.about-full-section {
    position: relative;
    padding: 60px 0 80px;
    background: #fff;
    overflow: hidden;
}

/* ============================================
   MISSION VISION GRID
   ============================================ */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mv-card {
    background: linear-gradient(135deg, #fff, var(--light));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(159, 64, 34, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(159, 64, 34, .08);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 20px;
}

.mv-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
    font-size: .95rem;
}

/* ============================================
   FULL FEATURES GRID
   ============================================ */
.full-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.full-feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(159, 64, 34, .08);
    transition: all .3s ease;
}

.full-feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(159, 64, 34, .08);
}

.full-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.full-feature-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.full-feature-content p {
    color: #666;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FULL STATS ROW
   ============================================ */
.full-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.full-stat-card {
    background: linear-gradient(135deg, var(--secondary), #1a2e3f);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    color: white;
    transition: transform .3s ease, box-shadow .3s ease;
}

.full-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.full-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ff8a5c;
    margin: 0 auto 15px;
}

.full-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.full-stat-label {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: .9;
}

.full-stat-card p {
    font-size: .8rem;
    opacity: .7;
    margin: 0;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(159, 64, 34, .1);
    transition: all .3s ease;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(159, 64, 34, .06);
}

.cert-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.cert-card span {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.cert-card small {
    color: #666;
    font-size: .8rem;
}

/* ============================================
   ABOUT CTA
   ============================================ */
.about-cta {
    background: linear-gradient(135deg, var(--light), #fff);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(159, 64, 34, .1);
}

.about-cta h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.about-cta p {
    color: #666;
    margin-bottom: 25px;
}

.about-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
}

.about-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.about-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(159, 64, 34, .3);
    color: white;
}

.about-btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.about-btn-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ============================================
   ABOUT PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-full-section {
        padding: 40px 0 60px;
    }
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    .full-features-grid {
        grid-template-columns: 1fr;
    }
    .full-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-cta {
        padding: 30px 20px;
    }
    .about-cta h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .full-stats-row {
        grid-template-columns: 1fr;
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .about-cta {
        padding: 25px 15px;
    }
    .about-cta h3 {
        font-size: 1.1rem;
    }
    .about-btn {
        padding: 10px 20px;
        font-size: .85rem;
    }
    .about-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .about-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   CONTACT PAGE
   ============================================ */

/* Page Container */
.contact-modern {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #fff, var(--light));
    overflow: hidden;
    border-bottom: 1px solid rgba(159, 64, 34, .1);
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-card {
    position: relative;
    background: white;
    border-radius: 30px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .05);
    border: 1px solid rgba(159, 64, 34, .05);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(159, 64, 34, .12);
    border-color: var(--primary);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 20px;
    transition: transform .3s ease, background .3s ease;
    box-shadow: 0 10px 25px rgba(159, 64, 34, .1);
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.08);
}

.contact-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.contact-link {
    display: block;
    color: var(--primary) !important;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center !important;
}

.contact-link:hover {
    color: var(--accent) !important;
}

.contact-card-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(159, 64, 34, .1);
    color: #666;
    font-size: .9rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .05);
    border: 1px solid rgba(159, 64, 34, .05);
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    display: block;
}

.form-subtitle {
    color: #666;
    font-size: 1rem;
}

.required-star {
    color: #dc3545;
    margin-right: 2px;
    font-weight: bold;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary);
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(159, 64, 34, .1);
    border-radius: 15px;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: var(--light);
    direction: rtl;
    font-family: 'Almarai', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(159, 64, 34, .1);
    background: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, .1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239f4022' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

/* Success Message */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b1dfbb;
    border-right: 4px solid #28a745;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #155724;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-success i {
    font-size: 1.2rem;
}

/* Validation Error */
.validation-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1px solid #fecaca;
    border-right: 4px solid #dc3545;
    border-radius: 10px;
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
}

.validation-error i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 25px rgba(159, 64, 34, .3);
    font-family: 'Almarai', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(159, 64, 34, .4);
}

.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* ============================================
   LOCATION CARD
   ============================================ */
.location-card {
    background: linear-gradient(135deg, var(--secondary), #1a2e3f);
    border-radius: 25px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.location-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.location-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.location-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .95rem;
    opacity: .9;
}

.location-details i {
    width: 20px;
    color: var(--primary);
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
    margin-bottom: 25px;
    border: 1px solid rgba(159, 64, 34, .1);
    cursor: pointer;
    position: relative;
    background: #f8f9fa;
    min-height: 300px;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    z-index: 1;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.map-placeholder span {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 15px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid rgba(159, 64, 34, .1);
    transition: transform .2s ease, background .2s ease;
    min-width: 120px;
}

.quick-action-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* ============================================
   HOURS BANNER
   ============================================ */
.hours-banner {
    margin-top: 50px;
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .03);
    border: 1px solid rgba(159, 64, 34, .05);
}

.hours-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hours-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.hours-label {
    font-size: .85rem;
    color: #666;
    margin-bottom: 3px;
}

.hours-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ============================================
   CONTACT PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .quick-actions {
        flex-direction: column;
    }
    .quick-action-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-modern {
        padding: 40px 0;
    }
    .contact-card {
        padding: 25px 20px;
    }
    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 20px;
    }
    .contact-card-title {
        font-size: 1.1rem;
    }
    .contact-link {
        font-size: 1rem;
    }
    .contact-form-wrapper {
        padding: 25px;
    }
    .form-title {
        font-size: 1.5rem;
    }
    .form-control {
        padding: 10px 15px;
        font-size: .9rem;
    }
    .btn-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .location-card {
        padding: 20px;
    }
    .map-container {
        min-height: 250px;
    }
    .hours-banner {
        padding: 20px;
        margin-top: 40px;
    }
    .hours-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hours-item {
        width: 100%;
        justify-content: center;
    }
    .hours-value {
        font-size: .9rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 20px 15px;
    }
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .contact-form-wrapper {
        padding: 20px;
    }
    .form-title {
        font-size: 1.3rem;
    }
    .map-container {
        min-height: 200px;
    }
    .hours-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .validation-error {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}


/* ============================================
   FAQ PAGE
   ============================================ */

/* Page Container */
.faq-page-section {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #fff, var(--light));
    overflow: hidden;
}

/* ============================================
   FAQ SEARCH
   ============================================ */
.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    border: 2px solid rgba(159, 64, 34, .08);
    transition: all .3s ease;
}

.faq-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(159, 64, 34, .12);
}

.faq-search .search-icon {
    padding: 0 20px;
    color: #999;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-search-input {
    flex: 1;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    background: transparent;
    direction: rtl;
    font-family: 'Almarai', sans-serif;
    min-width: 0;
}

.faq-search-input:focus {
    outline: none;
}

.faq-search-input::placeholder {
    color: #aaa;
}

.faq-search-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Almarai', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.faq-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(159, 64, 34, .3);
}

/* ============================================
   FAQ CATEGORIES
   ============================================ */
.faq-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.faq-cat-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(159, 64, 34, .15);
    background: white;
    color: var(--secondary);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
    font-family: 'Almarai', sans-serif;
}

.faq-cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.faq-cat-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(159, 64, 34, .3);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category-group {
    margin-bottom: 30px;
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
    border: 1px solid rgba(159, 64, 34, .06);
    transition: all .3s ease;
}

.faq-category-group:hover {
    box-shadow: 0 8px 30px rgba(159, 64, 34, .08);
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(159, 64, 34, .08);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid rgba(159, 64, 34, .06);
    transition: all .3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    transition: all .3s ease;
    gap: 15px;
}

.faq-question:hover {
    padding-right: 10px;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    flex: 1;
    line-height: 1.4;
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all .3s ease;
    flex-shrink: 0;
    font-size: .85rem;
}

.faq-item.active .faq-toggle-icon {
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 0 16px 0;
}

.faq-answer p {
    color: #666;
    font-size: .95rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   FAQ CONTACT BANNER
   ============================================ */
.faq-contact-banner {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--secondary), #1a2e3f);
    border-radius: 25px;
    padding: 35px 40px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    min-width: 200px;
}

.banner-heading {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.banner-text p {
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
    margin: 0;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-actions .btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
}

.banner-actions .btn-call {
    background: white;
    color: var(--secondary);
}

.banner-actions .btn-call:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(159, 64, 34, .3);
}

.banner-actions .btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, .25);
}

.banner-actions .btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}

/* ============================================
   FAQ PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .faq-page-section {
        padding: 40px 0 60px;
    }
    .faq-category-group {
        padding: 20px;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    .banner-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .faq-search-wrapper {
        margin-bottom: 30px;
        padding: 0 5px;
    }
    .faq-search {
        padding: 4px;
        border-radius: 50px;
    }
    .faq-search .search-icon {
        padding: 0 14px;
        font-size: 0.95rem;
    }
    .faq-search-input {
        padding: 12px 0;
        font-size: .9rem;
    }
    .faq-search-btn {
        padding: 10px 18px;
        font-size: .85rem;
        border-radius: 40px;
    }
    .faq-cat-btn {
        padding: 8px 16px;
        font-size: .8rem;
    }
    .faq-category-group {
        padding: 16px;
        border-radius: 16px;
    }
    .question-text {
        font-size: .95rem;
    }
    .banner-heading {
        font-size: 1.2rem;
    }
    .faq-contact-banner {
        padding: 25px 20px;
    }
    .banner-actions .btn {
        padding: 10px 20px;
        font-size: .85rem;
    }
}

@media (max-width: 576px) {
    .faq-search-wrapper {
        padding: 0;
    }
    .faq-search {
        padding: 3px;
        border-radius: 40px;
        border-width: 1.5px;
    }
    .faq-search .search-icon {
        padding: 0 10px;
        font-size: .85rem;
    }
    .faq-search-input {
        padding: 10px 0;
        font-size: .82rem;
    }
    .faq-search-input::placeholder {
        font-size: .8rem;
    }
    .faq-search-btn {
        padding: 8px 14px;
        font-size: .78rem;
        gap: 4px;
    }
    .faq-search-btn i {
        font-size: .75rem;
    }
    .faq-categories {
        gap: 6px;
    }
    .faq-cat-btn {
        padding: 6px 12px;
        font-size: .75rem;
        border-radius: 40px;
    }
    .faq-category-group {
        padding: 14px;
        border-radius: 14px;
    }
    .question-text {
        font-size: .9rem;
    }
    .faq-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: .75rem;
    }
    .banner-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .faq-search-btn {
        padding: 6px 10px;
        font-size: .7rem;
    }
    .faq-search-btn i {
        display: none;
    }
    .faq-search-input {
        font-size: .78rem;
        padding: 8px 0;
    }
    .faq-cat-btn {
        padding: 5px 10px;
        font-size: .7rem;
    }
}


/* ============================================
   WHY US PAGE
   ============================================ */

/* Page Container */
.why-full-section {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #fff, var(--light));
    overflow: hidden;
    border-bottom: 3px solid rgba(159, 64, 34, .1);
}

/* ============================================
   WHY CARDS
   ============================================ */
.why-card {
    position: relative;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    border: 1px solid rgba(159, 64, 34, .05);
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(159, 64, 34, .15);
    border-color: var(--primary);
}

.card-inner {
    position: relative;
    padding: 35px 25px 30px;
    text-align: center;
    z-index: 2;
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shape {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    transition: transform .3s ease, background .3s ease, color .3s ease;
    box-shadow: 0 10px 25px rgba(159, 64, 34, .15);
}

.why-card:hover .icon-shape {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.08) rotate(3deg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    display: block;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.card-text {
    color: #666;
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 80px;
}

.card-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    background: var(--light);
    padding: 12px 15px;
    border-radius: 50px;
    border: 1px solid rgba(159, 64, 34, .1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-title {
    color: #666;
    font-size: .9rem;
    font-weight: 600;
}

/* ============================================
   FEATURE SECONDARY
   ============================================ */
.feature-secondary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .03);
    border: 1px solid rgba(159, 64, 34, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    height: 100%;
}

.feature-secondary:hover {
    transform: translateX(-3px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(159, 64, 34, .1);
}

.feature-secondary-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.feature-secondary:hover .feature-secondary-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.08) rotate(3deg);
}

.feature-secondary-content .feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    display: block;
}

.feature-secondary-content p {
    color: #666;
    font-size: .9rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   SECTION SUBTITLE
   ============================================ */
.section-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ============================================
   ADVANTAGE CARDS
   ============================================ */
.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(159, 64, 34, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
}

.advantage-card.highlight-card {
    background: linear-gradient(135deg, #fff9f5, #fff);
    border-color: var(--primary);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.advantage-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.advantage-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    color: #555;
    font-size: .95rem;
}

.advantage-list li:last-child {
    border-bottom: none;
}

.advantage-list li i {
    color: var(--primary);
    font-size: .9rem;
    flex-shrink: 0;
}

.highlight-card .advantage-list li i {
    color: #ffa500;
}

/* ============================================
   WHY CTA
   ============================================ */
.why-cta {
    background: linear-gradient(135deg, var(--secondary), #1a2e3f);
    border-radius: 25px;
    padding: 40px;
    color: white;
    margin-top: 30px;
    text-align: center;
}

.why-cta h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-cta p {
    color: rgba(255, 255, 255, .8);
    margin-bottom: 25px;
}

.why-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.why-cta-buttons .btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
}

.why-cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.why-cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(159, 64, 34, .3);
    color: white;
}

.why-cta-buttons .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.why-cta-buttons .btn-outline-primary:hover {
    background: white;
    color: var(--secondary);
    border-color: white;
    transform: translateY(-2px);
}

/* ============================================
   WHY US PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .why-full-section {
        padding: 40px 0 60px;
    }
    .card-title {
        font-size: 1.3rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .feature-secondary {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .icon-shape {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 20px;
    }
    .card-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .card-inner {
        padding: 25px 15px 20px;
    }
    .card-title {
        font-size: 1.2rem;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .card-text {
        font-size: .85rem;
        min-height: auto;
        margin-bottom: 15px;
    }
    .card-stats {
        padding: 8px 12px;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .stat-title {
        font-size: .8rem;
    }
    .feature-secondary {
        padding: 15px;
        gap: 12px;
    }
    .feature-secondary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        border-radius: 15px;
    }
    .section-subtitle {
        font-size: 1.4rem;
    }
    .why-cta {
        padding: 30px 20px;
    }
    .advantage-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .why-full-section {
        padding: 30px 0 50px;
    }
    .icon-shape {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 18px;
    }
    .card-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .why-cta h3 {
        font-size: 1.2rem;
    }
    .advantage-header h4 {
        font-size: 1.1rem;
    }
    .why-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .why-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PAGE HEADER / HERO COMPONENT
   ============================================ */

.page-header-modern {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    isolation: isolate;
}

/* Background */
.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, .93) 0%, rgba(20, 30, 45, .9) 50%, rgba(31, 41, 55, .93) 100%);
    z-index: 2;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 3;
    opacity: .5;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(159, 64, 34, .12) 0%, transparent 70%);
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(217, 61, 63, .08) 0%, transparent 70%);
}

/* Content */
.page-header-content {
    position: relative;
    z-index: 4;
}

.page-header-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.header-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 12px 30px rgba(159, 64, 34, .35);
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.page-header-title .text-gradient {
    background: linear-gradient(135deg, #ff8a5c 0%, #ffb347 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* ✅ Fix for Arabic characters clipping */
    display: inline-block;
    padding: 2px 0;
    line-height: 1.4;
    /* ✅ Better vertical spacing */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.page-header-subtitle {
    color: rgba(255, 255, 255, .7);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    margin-top: 10px;
}

.breadcrumb-list {
    list-style: none;
    padding: 10px 22px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
    padding: 4px 10px;
    border-radius: 20px;
}

.breadcrumb-link:hover {
    color: white;
    background: rgba(255, 255, 255, .12);
}

.breadcrumb-link i {
    font-size: .8rem;
}

.breadcrumb-item.active span {
    color: #ff8a5c;
    font-weight: 700;
    font-size: .85rem;
    padding: 4px 8px;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, .25);
    font-size: .65rem;
}

/* ============================================
   PAGE HEADER - RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .page-header-modern {
        padding: 55px 0 45px;
    }
    .page-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header-modern {
        padding: 45px 0 40px;
    }
    .page-header-title {
        font-size: 1.7rem;
    }
    .page-header-subtitle {
        font-size: .9rem;
        margin-bottom: 20px;
    }
    .header-icon-wrapper {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
        border-radius: 16px;
    }
    .page-header-icon {
        margin-bottom: 15px;
    }
    .breadcrumb-list {
        padding: 8px 16px;
        gap: 4px;
    }
    .breadcrumb-link,
    .breadcrumb-item.active span {
        font-size: .78rem;
    }
    .bg-pattern {
        background-size: 15px 15px;
    }
}

@media (max-width: 576px) {
    .page-header-modern {
        padding: 35px 0 30px;
    }
    .page-header-title {
        font-size: 1.4rem;
    }
    .header-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 14px;
    }
    .breadcrumb-list {
        padding: 6px 12px;
        gap: 3px;
    }
    .breadcrumb-link,
    .breadcrumb-item.active span {
        font-size: .7rem;
        padding: 2px 6px;
    }
    .breadcrumb-separator {
        font-size: .55rem;
    }
    .bg-shape-1 {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -50px;
    }
    .bg-shape-2 {
        width: 150px;
        height: 150px;
        bottom: -50px;
        left: -40px;
    }
}

@media (max-width: 400px) {
    .page-header-title {
        font-size: 1.25rem;
    }
    .header-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    .breadcrumb-list {
        padding: 5px 10px;
    }
}


/* ============================================
   REGISTRATION NUMBERS - About Page
   ============================================ */
.registration-section {
    padding: 20px 0;
}

.registration-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.registration-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(159, 64, 34, .08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
    transition: all .3s;
}

.registration-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(159, 64, 34, .1);
}

.registration-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--light), white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.registration-content {
    display: flex;
    flex-direction: column;
}

.registration-label {
    font-size: .75rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.registration-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    direction: ltr;
    display: inline-block;
}

.registration-content small {
    font-size: .7rem;
    color: var(--gray-600);
}

/* ============================================
   EXPORT LICENSE BADGES
   ============================================ */
.export-license {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(159, 64, 34, .1);
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid rgba(159, 64, 34, .1);
}

.license-badge i {
    color: var(--primary);
    font-size: .9rem;
}

/* ============================================
   REGISTRATION - RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-card {
        padding: 16px 20px;
    }
    
    .license-badge {
        font-size: .75rem;
        padding: 4px 12px;
    }
}