/**
 * style.css - التصميم العام والأنماط الأساسية لمتجر نباتاتي (Plant Store)
 * يدعم اتجاه RTL والخطوط العربية الحديثة ومتوافق مع جميع الشاشات
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent-color: #52b788;
    --accent-light: #d8f3dc;
    --warm-earth: #bc6c25;
    --warm-light: #fefae0;
    --dark-text: #1e293b;
    --muted-text: #64748b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --box-shadow-hover: 0 20px 30px -10px rgba(45, 106, 79, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
}

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

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

/* ==================== شريط الإعلانات العلوي ==================== */
.top-announcement-bar {
    background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 100%);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.top-announcement-bar a {
    color: #ffd166;
    text-decoration: underline;
    font-weight: 700;
}

/* ==================== شريط التنقل (Navbar) ==================== */
.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.brand-logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.search-form-wrap {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.search-input {
    border-radius: 50px;
    padding: 10px 42px 10px 18px;
    border: 1.5px solid var(--border-color);
    background-color: #f8fafc;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
    outline: none;
}

.search-btn-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text);
    pointer-events: none;
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#customerNotifNavWrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.action-icon-btn,
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    outline: none;
    padding: 0;
    line-height: 1;
}

.action-icon-btn:hover,
.nav-icon-btn:hover {
    background-color: #f0fdf4;
    border-color: #2d6a4f;
    color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.15);
}

.action-icon-btn:active,
.nav-icon-btn:active {
    transform: scale(0.94);
    box-shadow: 0 1px 2px rgba(45, 106, 79, 0.1);
}

.action-icon-btn:focus-visible,
.nav-icon-btn:focus-visible {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.25);
}

.action-icon-btn.active,
.nav-icon-btn.active {
    background-color: #e8f5e9;
    border-color: #2d6a4f;
    color: #1b4332;
    box-shadow: inset 0 2px 4px rgba(45, 106, 79, 0.1);
}

.nav-actions .btn-outline-success {
    border: 1.5px solid #2d6a4f;
    color: #2d6a4f;
    background-color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(45, 106, 79, 0.08);
}

.nav-actions .btn-outline-success:hover {
    background-color: #2d6a4f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.nav-actions .btn-outline-success:active {
    transform: scale(0.96);
}

.action-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 10px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-family: monospace;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }
    #customerNotifNavWrapper {
        gap: 8px;
    }
    .action-icon-btn,
    .nav-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 5px;
    }
    #customerNotifNavWrapper {
        gap: 5px;
    }
    .action-icon-btn,
    .nav-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.category-nav-bar {
    background-color: #fbfdfc;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 0.95rem;
}

.category-nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    white-space: normal;
}

.category-nav-item { min-width: 0; }
.category-nav-item a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    .category-nav-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px 14px;
        overflow: hidden;
        white-space: nowrap;
    }

    .category-nav-item { min-width: 0; flex: 1 1 0; }
    .category-nav-item a {
        min-width: 0;
        width: 100%;
        justify-content: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-inline: 6px;
    }
}

.category-nav-item a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-nav-item a:hover,
.category-nav-item a.active {
    color: var(--primary-dark);
    background-color: var(--accent-light);
    font-weight: 700;
}

/* ==================== زر وعناصر عامة ==================== */
.btn-plant-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-plant-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
    transform: translateY(-2px);
}

.btn-plant-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.8px solid var(--primary-color);
    padding: 9px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-plant-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.badge-plant-sale {
    background-color: #e63946;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
}

.badge-plant-new {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
}

.badge-plant-bestseller {
    background-color: #bc6c25;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
}

.section-title-wrap {
    margin-bottom: 2rem;
    position: relative;
}

.section-subtitle {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* ==================== البانر الرئيسي (Hero) ==================== */
.hero-section {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 60px 45px;
    margin-top: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 1.15rem;
    color: #d8f3dc;
    max-width: 580px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-img-box {
    position: relative;
    text-align: center;
}

.hero-img-box img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    max-height: 380px;
    object-fit: cover;
    margin: 0 auto;
}

.hero-floating-card {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #ffffff;
    color: var(--dark-text);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== مميزات المتجر (Features) ==================== */
.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--accent-light);
    transform: translateY(-3px);
}

.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--primary-dark);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin: 0;
}

/* ==================== بطاقات الفئات (Category Cards) ==================== */
.category-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    text-align: center;
    display: block;
}

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

.category-card-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card-body {
    padding: 16px 12px;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.category-card-count {
    font-size: 0.82rem;
    color: var(--muted-text);
}

/* ==================== بطاقة المنتج (Product Card) ==================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: #c7eed8;
    transform: translateY(-5px);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    height: 230px;
}

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

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

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    background: #ffffff;
    color: #e63946;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-meta {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-title a:hover {
    color: var(--primary-color);
}

/* سمات العناية السريعة */
.plant-care-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.care-tag {
    font-size: 0.74rem;
    background-color: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #f59e0b;
    margin-bottom: 12px;
}

.product-rating span.count {
    color: var(--muted-text);
    font-size: 0.78rem;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

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

.product-old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.btn-add-to-cart {
    width: 100%;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    border: none;
    font-weight: 700;
    padding: 9px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==================== راية التخفيضات (Promo Banner) ==================== */
.promo-banner {
    background: linear-gradient(135deg, #bc6c25 0%, #dda15e 100%);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.promo-banner .badge-code {
    background: #ffffff;
    color: var(--warm-earth);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 1px;
}

/* ==================== تذييل الصفحة (Footer) ==================== */
.main-footer {
    background-color: #112217;
    color: #cbd5e1;
    padding-top: 60px;
    padding-bottom: 25px;
    margin-top: 70px;
    border-top: 4px solid var(--accent-color);
}

.footer-brand-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand-title i {
    color: var(--accent-color);
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    color: #112217;
    transform: translateY(-2px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 45px;
    padding-top: 25px;
    font-size: 0.88rem;
    color: #64748b;
}

/* ==================== منبثق التنبيه (Toast Notification) ==================== */
.toast-container-custom {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-toast {
    background: #1b4332;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    animation: slideInLeft 0.3s ease forwards;
}

.custom-toast.toast-error {
    background: #b91c1c;
}

.custom-toast.toast-info {
    background: #0369a1;
}

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

/* ==================== عناصر إضافية للتصفية والصفحات ==================== */
.filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.order-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.order-stepper::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 5%;
    left: 5%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.step-item.active .step-circle {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.step-item.completed .step-circle {
    background-color: #10b981;
    color: #ffffff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-text);
}

.step-item.active .step-label {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ==================== أنماط تتبع الشحنة المتقدمة ومسار التوصيل ==================== */
.shipment-tracking-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tracking-track-wrapper {
    position: relative;
    margin: 45px 15px 35px;
}

.tracking-track-bg {
    position: absolute;
    top: 25px;
    right: 5%;
    left: 5%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 4px;
    z-index: 1;
}

.tracking-track-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #2d6a4f 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.tracking-truck-marker {
    position: absolute;
    top: -30px;
    transform: translateX(50%);
    transition: right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tracking-truck-bubble {
    background-color: #1b4332;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: bounceTruck 1.8s infinite ease-in-out;
}

.tracking-truck-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2d6a4f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 2px;
}

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

.tracking-steps-grid {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tracking-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step-node-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tracking-step-node.completed .step-node-icon {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.tracking-step-node.active .step-node-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(45, 106, 79, 0.2);
    transform: scale(1.08);
}

.tracking-step-node.cancelled .step-node-icon {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.step-node-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.tracking-step-node.upcoming .step-node-title {
    color: #94a3b8;
    font-weight: 500;
}

.step-node-desc {
    font-size: 0.75rem;
    color: var(--muted-text);
    max-width: 120px;
    line-height: 1.4;
}

.step-node-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* شريط الإلغاء المميز */
.cancelled-order-banner {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==================== زر الواتساب العائم للتواصل والدعم ==================== */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 1080;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: waPulse 2.5s infinite;
}

.floating-whatsapp-btn:hover {
    background-color: #1eb954;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.floating-whatsapp-btn .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-whatsapp-btn .whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1e293b;
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

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

@media (max-width: 768px) {
    .floating-whatsapp-btn {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
    .floating-whatsapp-btn .whatsapp-tooltip {
        display: none;
    }
}

/* ==================== زر اشترِ الآن المميز (Buy Now) ==================== */
.btn-plant-buy-now {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.btn-plant-buy-now:hover {
    background: linear-gradient(135deg, #143527 0%, #235841 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 106, 79, 0.35);
    color: #ffffff;
}

/* ==================== شارة التقييم الموثق ==================== */
.badge-verified-purchase {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* نجوم تفاعلية */
.interactive-stars {
    display: inline-flex;
    gap: 6px;
    font-size: 1.5rem;
    color: #cbd5e1;
    cursor: pointer;
}

.interactive-stars i.active,
.interactive-stars i:hover,
.interactive-stars i.hovered {
    color: #eab308;
}
