/* Base Styles and Variables */
:root {
    /* Light Theme Colors */
    --primary-color-light: #00c853;
    --secondary-color-light: #ff5722;
    --accent-color-light: #ffeb3b;
    --text-color-light: #333333;
    --text-secondary-light: #666666;
    --bg-color-light: #ffffff;
    --card-bg-light: #f9f9f9;
    --card-border-light: #eaeaea;
    
    /* Dark Theme Colors */
    --primary-color-dark: #00e676;
    --secondary-color-dark: #ff7043;
    --accent-color-dark: #ffee58;
    --text-color-dark: #f5f5f5;
    --text-secondary-dark: #bbbbbb;
    --bg-color-dark: #121212;
    --card-bg-dark: #1e1e1e;
    --card-border-dark: #333333;
    
    /* Common Variables */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 15px;
    
    /* Initial Theme (Light) */
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --accent-color: var(--accent-color-light);
    --text-color: var(--text-color-light);
    --text-secondary: var(--text-secondary-light);
    --bg-color: var(--bg-color-light);
    --card-bg: var(--card-bg-light);
    --card-border: var(--card-border-light);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --accent-color: var(--accent-color-dark);
    --text-color: var(--text-color-dark);
    --text-secondary: var(--text-secondary-dark);
    --bg-color: var(--bg-color-dark);
    --card-bg: var(--card-bg-dark);
    --card-border: var(--card-border-dark);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    transition: background-color 0.5s ease;
}

.circle-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
}

.circle-2 {
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background-color: var(--secondary-color);
}

.circle-3 {
    top: 40%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    transform: translate(-50%, -50%);
}

.bg-fruit, .bg-leaf {
    position: absolute;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.bg-fruit img, .bg-leaf img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fruit-1 {
    top: 15%;
    right: 5%;
    width: 100px;
    height: 100px;
    animation: float 8s ease-in-out infinite;
}

.fruit-2 {
    bottom: 10%;
    left: 8%;
    width: 150px;
    height: 150px;
    animation: float 10s ease-in-out infinite reverse;
}

.fruit-3 {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    animation: float 9s ease-in-out infinite 1s;
}

.leaf-1 {
    top: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    animation: spin 15s linear infinite;
}

.leaf-2 {
    bottom: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation: spin 20s linear infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 60px;
    height: 30px;
    background-color: #111;
    border-radius: 30px;
    position: relative;
    padding: 0 5px;
}

.theme-switch-label .fa-sun {
    color: #f39c12;
}

.theme-switch-label .fa-moon {
    color: #f1c40f;
}

/* Add styling for the Threads image icon */
.social-icons a .social-icon-img {
    width: 100%; /* Make the image fill the anchor's width */
    height: 100%; /* Make the image fill the anchor's height */
    object-fit: contain; /* Ensure the image fits within the bounds without cropping */
    border-radius: 50%; /* Apply circular shape to the image */
    padding: 5px; /* Add some padding to prevent the icon from touching the edge */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for hover effects and filter */
    
    /* Apply filter to make it green */
    filter: invert(40%) sepia(90%) saturate(1500%) hue-rotate(80deg) brightness(1.2); /* Adjust these values for your desired shade of green */
}

.social-icons a:hover .social-icon-img {
    transform: scale(1.1); /* Slightly enlarge on hover */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%); /* Revert to white on hover for contrast */
}

/* Ensure the anchor tag itself doesn't have an underline, even if it contains an image */
.social-icons a {
    text-decoration: none;
}

.toggle-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-switch-label .toggle-ball {
    transform: translateX(30px);
}

/* Header Styles */
header {
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.title-container {
    text-align: center;
}

.title-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 2.8rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-en {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.location {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Banner Styles */
.header-banner {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(255, 87, 34, 0.1));
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* QR Code Styling */
.qr-code {
    height: 200px;
    width: 200px;
    object-fit: contain;
    margin: 0 25px 0 15px; 
    border-radius: 10px;
    padding: 5px;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    position: relative; 
    left: -65px; /* For desktop view */
}

.qr-code:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Add this media query to adjust QR code position on mobile */
@media (max-width: 768px) {
    .qr-code {
        left: 0; /* Reset the left offset on mobile */
        height: 150px;
        width: 150px;
        margin: 15px auto; /* Center it horizontally */
    }
}

/* Add this for even smaller screens */
@media (max-width: 480px) {
    .qr-code {
        height: 120px;
        width: 120px;
    }
}

.banner-image {
    flex: 1;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Navigation Styles with draggable categories */
nav {
    margin-bottom: 40px;
    position: relative;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--card-border);
}

.nav-arrow:hover {
    opacity: 1;
    background-color: var(--primary-color);
    color: white;
}

.nav-arrow.prev {
    left: -5px;
}

.nav-arrow.next {
    right: -5px;
}

.menu-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    cursor: grab; /* Show grab cursor to indicate draggable */
    user-select: none; /* Prevent text selection while dragging */
    position: relative;
    padding: 10px 0;
}

.menu-tabs-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.menu-tabs-container.grabbing {
    cursor: grabbing; /* Change cursor when actively dragging */
}

.menu-tabs {
    display: inline-flex;
    list-style: none;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: background-color 0.5s ease, border-color 0.5s ease;
    padding: 0;
    margin: 0;
    width: max-content; /* Allow the container to be as wide as needed */
}

.menu-tabs li {
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    position: relative;
    white-space: nowrap;
}

.menu-tabs li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu-tabs li:hover::after {
    width: 70%;
}

.menu-tabs li.active {
    color: var(--primary-color);
}

.menu-tabs li.active::after {
    width: 70%;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
}

/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Section Title Styles */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.title-icon {
    margin-right: 15px;
    font-size: 1.8rem;
}

.title-decoration {
    position: relative;
    margin-left: 15px;
    width: 40px;
    height: 3px;
}

.title-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transform: translateY(-50%);
}

/* Juice Section Styles */
.juice-section {
    margin-bottom: 60px;
}

.juice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Juice Card Styles */
.juice-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.5s ease;
    border: 1px solid var(--card-border);
    position: relative;
}

.juice-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.juice-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: rgba(0, 200, 83, 0.05);
    transition: background-color 0.5s ease;
}

.juice-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 20px;
}

.juice-card:hover .juice-image {
    transform: scale(1.05);
}

.juice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.juice-card:hover .juice-overlay {
    opacity: 1;
}

.quick-view-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.juice-card:hover .quick-view-btn {
    transform: translateY(0);
    opacity: 1;
}

.quick-view-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.juice-info {
    padding: 20px;
}

.juice-name-container {
    margin-bottom: 15px;
}

.juice-name {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.5s ease;
}

.juice-name-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.juice-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.size-selector {
    display: flex;
    gap: 5px;
}

.size-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--primary-color);
}

.size-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ddd;
    color: #888;
    border-color: #ccc;
}

.size-btn.disabled:hover {
    background-color: #ddd;
    color: #888;
    transform: none;
}

.price-tag {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.5s ease;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.05), rgba(255, 87, 34, 0.05));
    border-radius: var(--border-radius);
    transition: background 0.5s ease;
}

.benefits-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
    border: 1px solid var(--card-border);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

/* Location Section */
.location-section {
    margin-bottom: 60px;
}

.location-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.5s ease;
    border: 1px solid var(--card-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.5s ease;
}

.info-item p {
    color: var(--text-color);
    transition: color 0.5s ease;
}

/* Footer Styles */
footer {
    background-color: var(--card-bg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 40px 0 20px;
    position: relative;
    transition: background-color 0.5s ease;
    border-top: 1px solid var(--card-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-title-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    transition: color 0.5s ease;
}

.footer-title-en {
    font-size: 1rem;
    color: var(--primary-color);
    transition: color 0.5s ease;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    text-decoration: none; /* This line removes the underline */
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.5s ease;
}

/* Order Panel Styles */
.order-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s ease, background-color 0.5s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--card-border);
}

.order-panel.active {
    right: 0;
}

.order-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.order-panel-header h3 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-panel-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-panel-btn:hover {
    transform: rotate(90deg);
}

.order-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.order-summary {
    padding: 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    transition: background-color 0.5s ease;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.total-amount {
    color: var(--secondary-color);
    transition: color 0.5s ease;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.clear-order-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 30px;
    background-color: #f1f1f1;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-order-btn:hover {
    background-color: #e0e0e0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, background-color 0.5s ease;
    transform: scale(0.9);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.close-modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-height: 300px;
    background-color: rgba(0, 200, 83, 0.05);
    padding: 20px;
    transition: background-color 0.5s ease;
}

.modal-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.5s ease;
}

.modal-arabic {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.modal-description {
    margin-bottom: 25px;
}

.modal-description p {
    color: var(--text-color);
    line-height: 1.8;
    transition: color 0.5s ease;
}

.modal-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-sizes {
    display: flex;
    gap: 10px;
}

.modal-size-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-size-btn:hover {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--primary-color);
}

.modal-size-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.modal-size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ddd;
    color: #888;
    border-color: #ccc;
}

.modal-size-btn.disabled:hover {
    background-color: #ddd;
    color: #888;
    transform: none;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: color 0.5s ease;
}

.modal-add-btn {
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.modal-add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Order Item Styles */
.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    transition: border-color 0.5s ease;
}

.order-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.order-item-content {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.5s ease;
}

.order-item-size {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.5s ease;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.5s ease;
}

.quantity-btn {
    background-color: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.5s ease;
}

.quantity-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.quantity-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: #ff5252;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.remove-btn:hover {
    transform: scale(1.2);
}

/* Empty Cart Message */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-cart i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.empty-cart p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.5s ease;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 200, 83, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.5s ease;
}

.no-results p {
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

/* Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 200, 83, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease;
}

.animate-slide {
    animation: slideUp 0.8s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 200, 83, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 200, 83, 0.5);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .juice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-container {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-text {
        margin-bottom: 20px;
    }
    
    .qr-code {
        margin: 15px 0;
    }
    
    .juice-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image img {
        min-height: 200px;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-arabic {
        font-size: 1rem;
    }
    
    .modal-price {
        font-size: 1.5rem;
    }
    
    .order-panel {
        max-width: 100%;
        right: -100%; /* Make sure it's fully off-screen */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .title-ar {
        font-size: 2rem;
    }
    
    .title-en {
        font-size: 1.5rem;
    }
    
    .location {
        font-size: 1rem;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .qr-code {
        height: 80px;
        width: 80px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .juice-image-container {
        height: 200px;
    }
    
    .juice-name {
        font-size: 1.1rem;
    }
    
    .price-tag {
        font-size: 1.1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-bottom: 15px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo img {
        margin-bottom: 10px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    .theme-switch-label {
        width: 50px;
        height: 25px;
    }
    
    .toggle-ball {
        width: 21px;
        height: 21px;
    }
    
    .theme-switch:checked + .theme-switch-label .toggle-ball {
        transform: translateX(25px);
    }
}

/* Dark Mode Specific Adjustments */
html[data-theme="dark"] .bg-circle {
    opacity: 0.07;
}

html[data-theme="dark"] .bg-fruit, 
html[data-theme="dark"] .bg-leaf {
    opacity: 0.07;
}

html[data-theme="dark"] .juice-image-container {
    background-color: rgba(0, 230, 118, 0.05);
}

html[data-theme="dark"] .modal-image img {
    background-color: rgba(0, 230, 118, 0.05);
}

html[data-theme="dark"] .benefits-section {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.05), rgba(255, 112, 67, 0.05));
}

html[data-theme="dark"] .size-btn:hover {
    background-color: rgba(0, 230, 118, 0.2);
}

/* Accessibility Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Accessibility */
button:focus, 
a:focus, 
input:focus, 
.theme-switch:focus + .theme-switch-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .theme-toggle,
    .cart-icon,
    .floating-btn,
    .add-to-cart-btn,
    .order-panel,
    .modal,
    .toast-container {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
      
    header,
    .juice-card,
    .benefit-item,
    .location-info,
    footer {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .juice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
