/* CSS Variables */
/* Almarai Regular */
@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --c-p: #004f51;
    --c-s: #a29382;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #004f51;
    --gradient-primary: linear-gradient(135deg, var(--c-p), #028185);
    --gradient-secondary: linear-gradient(135deg, var(--c-s), #bfae9c);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.2);
}

main.main-page {
    margin-top: 70px;
    margin-bottom: 80px;
}

.accordion .accordion-item.border-bottom {
    border-bottom: var(--bs-border-width) var(--bs-border-style) #939393 !important;
}
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fffdfa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* صندوق اللودر */
.coffee-loader {
  text-align: center;
  position: relative;
}

/* الحبوب */
.bean {
  width: 20px;
  height: 30px;
  background: #6f4e37;
  border-radius: 50% / 60%;
  display: inline-block;
  margin: 0 5px;
  animation: bounce 1.2s infinite;
}

/* كل حبة تتحرك بتأخير مختلف */
.bean1 { animation-delay: 0s; }
.bean2 { animation-delay: 0.2s; }
.bean3 { animation-delay: 0.4s; }

/* الأنيميشن */
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
}

/* النص */
.loading-text {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: var(--c-p);
  font-family: "Cairo", sans-serif;
  letter-spacing: 1px;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Almarai', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: ltr;
    overflow-x: hidden;
}

body[dir="rtl"] {
    direction: rtl;
}

.container {
    max-width: 95% !important;
    border-radius: 20px;
    position: relative;
    z-index: 9;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--c-p);
    border: 2px solid var(--c-p);
}

.btn-outline-primary:hover {
    background: var(--c-p);
    color: white;
    transform: translateY(-2px);
}

.actve {
    padding: 5px 30px;
    border-radius: 20px !important;
    background: var(--gradient-secondary);
    color: white !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    padding: 5px 0;
}

.navbar-brand .brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: bold;
    font-size: 20px;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #007a7d;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--c-p) !important;
}

/* Desktop Icons */
.desktop-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--c-p);
    background: var(--light-gray);
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--c-s);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.language-btn.active {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-light);
}

.language-btn:hover:not(.active) {
    background: var(--light-gray);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-bottom-bar.show {
    transform: translateY(0);
}

.bottom-bar-item {
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-bar-item i {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    display: block;
}

.bottom-bar-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    display: block;
}

.bottom-bar-item:hover i,
.bottom-bar-item:hover span {
    color: var(--c-p);
}

.bottom-bar-item .badge {
    position: absolute;
    top: 0.5rem;
    right: 50%;
    transform: translateX(50%);
    background: var(--c-s);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    overflow: hidden;
}

.hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-image: url('../imgWeb/h2.webp');
    background-size: cover;
    background-position: center;
}

.hero-slide:nth-child(2) {
    background-image: url('../imgWeb/h9.webp');
    justify-content: flex-start !important;
}

.hero-slide:nth-child(3) {
    background-image: url('../imgWeb/h3.webp');
    justify-content: end !important;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    width: 60%;
}



.hero-slide:nth-child(1) .hero-content {
    padding: 20px 0;
    background-color: #00000042;
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--c-p);
    text-shadow: 0px 2px 4px rgb(0 0 0 / 70%);
}

.hero-subtitle {
    text-shadow: -1px 1px 2px #000000d9;
    color: var(--c-s);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn.primary {
    background: var(--white-color);
    color: var(--c-p);
    box-shadow: var(--shadow-light);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: var(--c-p);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-btn.secondary:hover {
    background: var(--white-color);
    color: var(--c-p);
    transform: translateY(-3px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    opacity: 0.7;
    color: var(--c-s);
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--white-color);
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
    z-index: 9;
}

.section-title h2 {
    color: var(--c-p);
    text-shadow: 1px 3px 4px rgb(0 0 0 / 48%);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* About Section */
.about-index {
    z-index: 99;
    position: relative;
    border-radius: 20px;
    max-width: 98%;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--c-p);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Categories Section */
.categories-section {}

.category-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    perspective: 1000px;
    z-index: 9;
}

.category-card {
    width: 100%;
    height: 350px;
    position: relative;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
}

.category-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cont-front-sec {
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #00000087;
    color: wheat;
}

.card-front i {
    font-size: 2.5rem;
    color: wheat;
    margin-bottom: 10px;
}

.card-front img {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-back {
    background: var(--secondary-color, #6f4e37);
    color: #fff;
    transform: rotateY(180deg);
    padding: 20px;
}

.card-back h4 {
    margin-bottom: 10px;
}

.card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Featured Products Section */
.featured-products-section {
    position: relative;
    overflow: hidden;
}

.featured-products-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" width="100%" height="100%"><defs><pattern id="dots" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="0.7" fill="%2300585b"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.7;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.product-card {
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
}
@media (min-width: 867px) {
    .product-card.product-view {
    max-width: 300px;
    }
    
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    text-align: center;
    padding: 1.5rem;
}

.product-title {
    font-weight: bold;
    color: var(--c-p);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-price {
    display: flex;
    font-size: 1.2rem;
    justify-content: center;
    color: var(--c-s);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.product-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.price-pro {
    color: var(--c-p);
}

.seles {
    z-index: 9;
    background-color: #00000085;
    font-size: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.star {
    z-index: 9;
    color: gold;
    font-size: 22px;

}

.bi.bi-star-fill {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 1rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--c-s);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-text p {
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    color: var(--c-p);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.author-info p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-primary);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: var(--white-color);
    color: var(--c-p);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Footer */
.footer {
    overflow: hidden;
    position: relative;
    background: var(--c-s);
    color: var(--c-p);
    font-weight: 700;
}

.cont-footer-img-bg {
    opacity: 0.2;
    right: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;

}

.footer-img-bg {
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--c-p);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-section p {
    color: var(--c-p);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--c-p);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Page Headers */
.page-header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.8;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

/* Blog Styles */
.blog-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-title {
    color: var(--c-p);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-s);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blog-category {
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--c-s);
}

.blog-author {
    color: var(--c-p);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Featured Blog */
.featured-blog {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.featured-blog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.featured-blog-image {
    height: 400px;
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-blog-card:hover .featured-blog-image img {
    transform: scale(1.05);
}

.featured-blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.featured-blog-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}



.featured-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.featured-blog-title {
    color: var(--c-p);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* Featured Articles in Blog Grid */
.featured-article-left,
.featured-article-right {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.featured-article-left:hover,
.featured-article-right:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.featured-article-left .blog-image,
.featured-article-right .blog-image {
    height: 300px;
    overflow: hidden;
}

.featured-article-left .blog-image img,
.featured-article-right .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article-left:hover .blog-image img,
.featured-article-right:hover .blog-image img {
    transform: scale(1.05);
}

.featured-article-left .blog-content,
.featured-article-right .blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Toast Notifications */
/* keep legacy .toast if used elsewhere; introduce .donio-toast to avoid conflicts */
.donio-toast {
    position: fixed;
    top: 15%;
    left: 50%;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    z-index: 3000;
    transform: translate(-50%, -60%) scale(0.98);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    backdrop-filter: blur(6px);
    text-align: center;
    font-size: 17px;
    width: auto;
    box-shadow: 0 3px 11px 0px #00000070;
}

.donio-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.donio-toast.success {
    background: var(--gradient-primary);
}

.donio-toast.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* style for product name span inside toast */
.donio-toast .toast-product-name {
    color: var(--c-s);
    margin: 0 5px;
    font-weight: 700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 95vw);
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.cart-sidebar.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #eee;
}

.cart-header h5 {
    margin: 0;
    color: var(--c-p);
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.cart-items {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.ci-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.ci-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ci-title {
    font-weight: 700;
    color: var(--c-p);
}

.ci-price {
    color: var(--c-s);
}

.ci-line {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.ci-line strong {
    color: var(--c-p);
}

.ci-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 700;
}

.qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.ci-remove {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #dc3545;
    cursor: pointer;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    background: #fff;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.no-scroll {
    overflow: hidden;
}

/* Wishlist Sidebar */
.wish-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.wish-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.wish-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(420px, 95vw);
    height: 100vh;
    background: #fff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.wish-sidebar.show {
    transform: translateX(0);
    opacity: 1;
}

.wish-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #eee;
}

.wish-header h5 {
    margin: 0;
    color: var(--c-p);
}

.wish-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.wish-items {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wish-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.wi-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.wi-title {
    font-weight: 700;
    color: var(--c-p);
}

.wi-price {
    color: var(--c-s);
}

.wi-remove {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #dc3545;
    cursor: pointer;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 200px;
        text-align: center;
    }

    .floating-elements {
        display: none;
    }

    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
    }

    .desktop-icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .featured-blog-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-article-left .row,
    .featured-article-right .row {
        flex-direction: column;
    }

    .featured-article-left .blog-image,
    .featured-article-right .blog-image {
        height: 250px;
    }

    .featured-article-left .blog-content,
    .featured-article-right .blog-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .featured-blog-content2 {
        padding: 1.5rem;
    }

    .featured-blog-content {
        padding: 1.5rem;
    }

    .featured-blog-title {
        font-size: 1.8rem;
    }

    .featured-article-left .blog-content,
    .featured-article-right .blog-content {
        padding: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }

    .floating-elements {
        display: none;
    }
}

/* RTL Support */
body[dir="rtl"] .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body[dir="rtl"] .floating-element:nth-child(1) {
    left: auto;
    right: 10%;
}

body[dir="rtl"] .floating-element:nth-child(2) {
    right: auto;
    left: 15%;
}

body[dir="rtl"] .floating-element:nth-child(3) {
    left: auto;
    right: 20%;
}

body[dir="rtl"] .floating-element:nth-child(4) {
    right: auto;
    left: 25%;
}

body[dir="rtl"] .floating-element:nth-child(5) {
    right: auto;
    left: 10%;
}

body[dir="rtl"] .footer-links li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Navbar Hide/Show on Scroll */
.navbar.hidden {
    transform: translateY(-100%);
}

.mobile-bottom-bar.hidden {
    transform: translateY(100%);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.search-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.search-modal-content {
    color: var(--gradient-primary);
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: popUp 0.4s ease forwards;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--c-p);
}

.search-box button {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.user-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.user-modal-content {
    color: var(--gradient-primary);
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: popUp 0.4s ease forwards;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.user-info-box {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-info-box p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin: 10px 0;
    background: #fff;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background 0.3s ease;
}

.user-info-box p:hover {
    background: #fdfdfd;
    transform: translateX(5px);
}

.user-info-box strong {
    text-align: justify;
    color: var(--c-p);
    font-weight: 700;
    min-width: 160px;
    /* عشان التيكست يبقى مرتب */
}

.user-info-box span {
    font-weight: 700;
    color: #555;
}

.logout-box {
    margin-top: 25px;
}

.logout-box a {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
}

.logout-box a:hover {
    opacity: 0.9;
}

.user-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

.ser-cont,
.contact-card {
    border-bottom: 4px solid var(--c-s);
}

.ser-cont .value-icon i {
    font-size: 40px;
}

.map-container {
    display: flex;
    align-items: center;
}

.list-group-item.active {
    background-color: var(--c-p);
    border-color: var(--c-p);
}

.img-fluid {
    max-width: 100%;
    max-height: 430px;
}

#modalProductCategory {
    font-size: 22px;
    font-weight: 700;
}

.w-and-d {
    display: flex;
    justify-content: space-around;
}

span#modalProductPrice {
    color: var(--c-p) !important;

}

.show-product {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.show-product {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (min-width: 767px) and (max-width: 991px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        margin: 0 !important;
    }

    button.navbar-toggler {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 866px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 767px) {

    .product-grid,
    .category-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    h1 {
        font-size: 48px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .testimonial-grid > :nth-child(3) {
        grid-column: span 2;
        justify-self: center;
    }

    p {
        font-size: 18px;
    }

    .img-icon-nav {
        width: 80px;
    }

    .nav-link {
        padding: 5px;
    }

    .text-center.cont-icon-mob * {
        margin-bottom: -1px;
    }

    .bottom-bar-item {
        padding: 10px 0px;
    }

    .hero-content {
        width: 80%;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
    }

    .hero-btn {
        width: 160px;
    }

    .hero-btn {
        padding: 11px 1.25rem;
    }

    .title-section-p {
        font-size: 20px;
        font-weight: 700;
    }

    .cont-front-sec h4 {
        font-size: 24px;
    }

    .product-content {
        padding: 10px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-actions .btn {
        padding: 6px 13px;
        font-size: 14px;
    }

    .seles {
        font-size: 14px;
    }

    /*  product  */
    .main-cat {
        display: flex;
        flex-direction: column;
    }

    .cat-product-cont {
        align-items: center;
        justify-content: space-between;
    }

    .map-container {
        flex-direction: column;

    }

    /*  about  */
    .cart-sidebar,
    .wish-sidebar {
        width: min(373px, 95vw);
    }

    .donio-toast {
        top: 13%;
        padding: 10px 1rem;
        font-size: 15px;
    }

    button.btn.btn-outline-secondary.d-md-none.mb-2 {
        background: var(--gradient-primary);
        color: white !important;
    }

    main.main-page {
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .btn:hover {
        color: var(--bs-btn-hover-color);
        background-color: none;
        border-color: none;
    }

    h2 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 18px;
    }

    .container {
        max-width: 98% !important;
    }

    p {
        font-size: 16px;
    }

    .title-section-p {
        margin-bottom: 30px;
        font-size: 18px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-content {
        width: 90%;
    }

    .hero-btn {
        padding: 11px 0;
        width: 133px;
        font-size: 14px;
    }

    .hero-content {
        background-color: #00000000 !important;
        backdrop-filter: blur(0px) !important;
    }

    .hero-slide:nth-child(2) {
        justify-content: center !important;
    }

    .hero-slide:nth-child(3) {
        justify-content: center !important;
    }

    .section-title h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 24px;
    }

    .category-card {
        height: 215px;
    }

    .cont-front-sec h4,
    .card-back h4 {
        font-size: 18px;
    }

    .card-front i {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .card-back {
        padding: 10px;
    }

    .product-image {
        height: 180px;
    }

    .star {
        font-size: 16px;
    }

    .seles {
        font-size: 13px;
    }

    .product-content {
        padding: 10px 5px;
    }

    .product-price {
        margin-bottom: 2px;
        font-size: 16px;
    }


    .add-to-cart {}

    .Cart-mob-add {
        display: none !important;
    }

    .product-actions .btn {
        padding: 0px 3px;
        border: none;
        box-shadow: none;
        background: none;
    }

    .product-title {
        font-size: 16px;
    }

    .Cart-mob-icon {
        padding: 5px 10px;
        font-size: 22px;
        display: block !important;
        color: var(--c-p);
    }

    .testimonial-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .testimonial-grid > :nth-child(3) {
        grid-column: auto;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 8px 1.5rem;
        font-size: 16px;
    }

    .newsletter-content p {
        margin-bottom: 1rem;
        font-size: 16px;
    }

    .footer-content {
        gap: 1rem;
        justify-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .cart-sidebar,
    .wish-sidebar {
        width: min(373px, 74vw);
    }

    .cart-item {
        position: relative;
        gap: 0.25rem;
        padding: 3px;
    }

    .ci-img img {
        width: 60px;
        height: 60px;
    }

    .ci-remove {
        top: 1px;
        right: 10px;
        position: absolute;
    }

    .search-box {
        flex-direction: column;
    }

    .table > :not(caption) > * > * {
        padding: 8px 4px;
    }

    .fw-semibold {
        width: 100px;
    }

    .justify-content-between .d-flex.gap-2 {
        display: none !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        margin-top: 10px;
        justify-content: center !important;
    }

    h1 {
        font-size: 30px;
    }

    .step-item {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .stepper {
        gap: 5px !important;
    }

    .donio-toast {
        width: 85%;
        padding: 10px;
        font-size: 14px;
    }
}

.page-header h1 {
    text-shadow: 0px 3px 3px #2d2c2c;
}

.mob-num {
    right: 30% !important;
}

.nav-link {
    display: inline-block;
}

.row {
    justify-content: center !important;
}
#Invoices-go-mob a{
    text-decoration: none;
    color: var(--c-p);
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-radius: 50px !important;
}
.blog-media {
    text-align: center;
}
video {
    width: 100%;
    height: 100%;
}
video {
    text-align: center;
    max-width: 100% !important;
    max-height: 400px;
}
.featured-blog-image {
    text-align: center;
}