/* =============================================
   Azab Clinic - Main Stylesheet
   Colors based on logo: Teal/Emerald theme
   ============================================= */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #115e59;
    --accent: #2dd4bf;
    --dark: #134e4a;
    --light: #f0fdfa;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.8;
    direction: rtl;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   Top Bar
   ============================================= */
.top-bar {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.top-whatsapp {
    color: var(--white) !important;
    font-weight: 600;
}

.top-whatsapp:hover {
    color: var(--accent) !important;
}

/* =============================================
   Navigation
   ============================================= */
.main-navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
    z-index: 1000;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--light);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.cart-icon-nav {
    position: relative;
    color: var(--gray-700);
    font-size: 1.3rem;
    margin-right: 20px;
}

.cart-icon-nav:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

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

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-doctor-img {
    max-height: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-buttons .btn {
    padding: 12px 35px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    margin-left: 10px;
    margin-bottom: 10px;
}

.btn-primary-custom {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.btn-primary-custom:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   Section Styles
   ============================================= */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--accent));
    border-radius: 2px;
}

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

/* =============================================
   Service Cards
   ============================================= */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}

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

.service-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.service-card .btn-link:hover {
    color: var(--primary-dark);
}

/* =============================================
   Product Cards
   ============================================= */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}

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

.product-card .product-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-info h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 1rem;
}

.product-card .product-info .category-name {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card .price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-card .current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card .old-price {
    font-size: 0.95rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-card .btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.product-card .btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

/* =============================================
   About Section
   ============================================= */
.about-section .about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
}

.about-section .about-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-section .about-content p {
    color: var(--gray-700);
    line-height: 2;
    margin-bottom: 15px;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    padding: 8px 0;
    color: var(--gray-700);
    font-weight: 500;
}

.about-features li i {
    color: var(--primary);
    margin-left: 10px;
    font-size: 1.1rem;
}

/* =============================================
   Page Header / Breadcrumb
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    justify-content: center;
    background: none;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* =============================================
   Forms
   ============================================= */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* =============================================
   Cart Page
   ============================================= */
.cart-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
    padding: 15px;
    border: none;
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.cart-table .product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-summary h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
}

.cart-summary .total-row.grand-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    border-top: 2px solid var(--gray-200);
    padding-top: 15px;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control button {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-control button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 5px;
    font-weight: 600;
}

/* =============================================
   Contact Page
   ============================================= */
.branch-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.branch-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.branch-card h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.branch-card .branch-info p {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.branch-card .branch-info i {
    color: var(--primary);
    width: 25px;
}

/* =============================================
   Product Detail Page
   ============================================= */
.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
    border-color: var(--primary);
}

.product-detail .product-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.product-detail .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-detail .product-price .old {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-right: 10px;
}

.product-detail .product-desc {
    color: var(--gray-700);
    line-height: 2;
    margin-bottom: 25px;
}

/* =============================================
   Footer
   ============================================= */
.main-footer {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    color: var(--white);
    padding: 60px 0 0;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-widget h5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-contact-item {
    margin-bottom: 10px;
}

.footer-contact-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================
   WhatsApp Floating Button
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =============================================
   Testimonials
   ============================================= */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
}

.testimonial-card .stars {
    color: var(--warning);
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .client-name {
    font-weight: 700;
    color: var(--secondary);
}

/* =============================================
   Alerts & Messages
   ============================================= */
.alert-custom {
    border-radius: var(--radius);
    padding: 15px 20px;
    font-weight: 500;
    border: none;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin: 20px 0;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--success);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-doctor-img {
        max-height: 300px;
        margin-top: 30px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .product-card .product-img {
        height: 200px;
    }
    
    .cart-icon-nav {
        margin-right: 10px;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.text-primary-custom {
    color: var(--primary) !important;
}

.mb-section {
    margin-bottom: 80px;
}

.rounded-custom {
    border-radius: var(--radius);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--gray-300);
}

.pagination .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}
