/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: #420142;
    color: #FFFFFF;
    direction: rtl;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.navbar-title {
    font-size: 1.5rem;
    color: #ee930b;
    font-weight: 700;
    text-shadow: 0 0 5px #ee930b;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    color: #ee930b;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #FFFFFF;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #ee930b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a i {
    transition: transform 0.3s;
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ee930b;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: #ee930b;
    color: #FFFFFF;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-toggle:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #ee930b;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.cart-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cart-icon {
    font-size: 1.8rem;
    color: #ee930b;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #FFD700;
    color: #420142;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Offers Section */
.offers-section {
    background: linear-gradient(135deg, #420142, #2a002a);
    padding: 50px 20px;
    text-align: center;
}

.offers-title {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #FFD700;
    animation: fadeIn 1s ease-in;
}

/* Custom Offer Button - الزر الجديد الملفت */
.custom-offer-btn {
    background: linear-gradient(45deg, #FFD700, #ee930b, #FFD700);
    background-size: 200% 200%;
    color: #420142;
    border: 2px solid #FFD700;
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 20px auto 40px;
    max-width: 350px;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-offer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.custom-offer-btn:hover::before {
    left: 100%;
}

.custom-offer-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 0;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 15px 35px rgba(255, 215, 0, 0.8); }
}

.offers-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.offer-card:hover {
    transform: translateZ(10px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.5);
}

.offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #FFD700;
}

.offer-card h4 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.original-price {
    font-size: 1rem;
    color: #AAAAAA;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.discounted-price {
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 10px;
}

.offer-card .description {
    font-size: 0.9rem;
    color: #DDDDDD;
    margin-bottom: 15px;
}

.offer-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #420142;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.countdown {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.countdown .time-label {
    display: block;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 5px;
}

.countdown .time {
    font-size: 1rem;
    color: #FFD700;
    font-weight: 700;
    margin: 0 5px;
}

.order-btn {
    background: linear-gradient(90deg, #ee930b, #FFD700);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.order-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #FFD700, #ee930b);
}

/* Modal Styles */
.order-modal, .cart-modal, .success-modal, .quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.order-modal.active, .cart-modal.active, .success-modal.active, .quiz-modal.active {
    display: flex;
}

.order-modal.active .modal-content, .quiz-modal.active .modal-content {
    animation: fadeInScale 0.5s ease-in-out;
}

.modal-content {
    background: linear-gradient(145deg, #1a001a, #420142);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 15px;
    position: relative;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal, .close-cart-modal, .close-success-modal, .close-quiz-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    z-index: 10;
}

.close-modal:hover, .close-cart-modal:hover, .close-success-modal:hover, .close-quiz-modal:hover {
    transform: scale(1.3);
    color: #FFFFFF;
}

.modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.modal-header img {
    width: 50%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700;
}

.modal-body p {
    font-size: 0.9rem;
    color: #FFFFFF;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
}

.comment-section {
    margin-bottom: 15px;
}

.comment-section h4 {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 8px;
}

.comment-section textarea {
    width: 100%;
    height: 60px;
    background: #0c000c;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    resize: none;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-section textarea:focus {
    border-color: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 215, 0, 0.4);
    outline: none;
}

.total-price {
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 10px;
}

.total-price h4 {
    font-size: 1rem;
    color: #FFD700;
}

.total-price span {
    color: #FFFFFF;
    font-weight: 700;
}

.modal-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-footer button {
    background: linear-gradient(90deg, #ee930b, #FFD700);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.modal-footer button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #FFD700, #ee930b);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #1a001a, #2a002a);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateY(-3px);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.cart-item-details {
    flex: 1;
    margin-right: 15px;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    color: #FFD700;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: #FFFFFF;
}

.cart-total {
    background: rgba(255, 215, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
}

.cart-total h4 {
    font-size: 1.3rem;
    color: #FFD700;
}

.cart-total span {
    color: #FFFFFF;
}

.remove-item {
    background: #ff5555;
    color: #FFFFFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.remove-item:hover {
    background: #ff7777;
    transform: scale(1.1);
}

.confirm-cart-btn {
    background: #FFD700;
    color: #420142;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.confirm-cart-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #45a049, #4CAF50);
}

/* Success Modal */
.success-modal .modal-content {
    background: linear-gradient(145deg, #1a001a, #420142);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.success-message i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

/* Combo Selection */
.combo-selection {
    margin-bottom: 15px;
}

.combo-selection h4 {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 8px;
}

.combo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #FFFFFF;
    cursor: pointer;
}

.combo-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FFD700;
    cursor: pointer;
}

.combo-checkbox i {
    font-size: 1.2rem;
    color: #FFD700;
}

.combo-checkbox span {
    flex: 1;
}

/* Quiz Modal Styles - ستايل المودال الجديد للكويز */
.quiz-modal .modal-content {
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    padding: 20px;
}

.quiz-modal h2 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 25px;
    text-shadow: 0 0 5px #FFD700;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.quiz-choice {
    background: linear-gradient(135deg, #ee930b, #FFD700);
    color: #FFFFFF;
    border: 2px solid #FFD700;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 12px 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.quiz-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quiz-choice:hover::before {
    left: 100%;
}

.quiz-choice:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFD700, #ee930b);
}

.quiz-result-image {
    width: 80%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #FFD700;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.quiz-result h2 {
    font-size: 1.6rem;
    color: #FFD700;
    margin: 20px 0;
    text-shadow: 0 0 8px #FFD700;
}

.quiz-result p {
    font-size: 1rem;
    color: #FFFFFF;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    line-height: 1.5;
}

.quiz-result .discounted-price {
    font-size: 1.4rem;
    color: #FFD700;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 0 5px #FFD700;
}

/* Footer Styles */
.site-footer {
    background: #0c000c;
    color: #FFFFFF;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.footer-column {
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-5px);
}

.footer-column h3 {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #FFD700;
}

.footer-logo-container {
    margin-bottom: 15px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px #FFD700);
    transition: transform 0.5s ease;
}

.footer-logo:hover {
    transform: rotateY(360deg);
}

.footer-logo-text {
    display: block;
    font-size: 1.3rem;
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    margin: 10px 0;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    color: #FFD700;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #FFFFFF;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700;
}

.contact-info li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.95rem;
}

.contact-info i {
    color: #FFD700;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        justify-content: space-between;
        height: 60px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        flex-direction: column;
        padding: 15px;
        text-align: center;
        animation: slideDown 0.3s;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 8px 0;
    }
    .hamburger {
        display: flex;
    }
    .logo {
        width: 50px;
        height: 50px;
    }
    .navbar-title {
        font-size: 1.2rem;
    }
    .navbar-right {
        gap: 10px;
    }
    .social-icons {
        gap: 6px;
    }
    .social-icon {
        font-size: 1.2rem;
    }
    .cart-icon {
        font-size: 1.5rem;
    }
    .cart-count {
        font-size: 0.8rem;
        padding: 2px 6px;
        min-width: 18px;
        height: 18px;
    }
    .offers-section {
        padding: 30px 15px;
    }
    .offers-title {
        font-size: 2rem;
    }
    .custom-offer-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
        max-width: 280px;
        margin: 15px auto 30px;
    }
    .offer-image {
        height: 250px;
    }
    .quiz-modal .modal-content {
        max-width: 95%;
        padding: 15px;
    }
    .quiz-choice {
        display: block;
        width: 90%;
        margin: 10px auto;
        padding: 10px 20px;
    }
    .quiz-result-image {
        width: 90%;
        height: 150px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .offer-card h4 {
        font-size: 1.3rem;
    }
    .offer-card .description {
        font-size: 0.85rem;
    }
    .original-price {
        font-size: 0.9rem;
    }
    .discounted-price {
        font-size: 1.1rem;
    }
    .countdown {
        font-size: 0.8rem;
        padding: 8px;
    }
    .countdown .time {
        font-size: 0.9rem;
    }
    .order-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .order-modal .modal-content {
        max-width: 90%;
        padding: 10px;
    }
    .order-modal .modal-header img {
        height: 100px;
        margin-bottom: 8px;
    }
    .order-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    .order-modal .modal-body p {
        font-size: 0.85rem;
        padding: 6px;
        margin-bottom: 10px;
    }
    .order-modal .comment-section h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .order-modal .comment-section textarea {
        height: 50px;
        font-size: 0.85rem;
        padding: 6px;
    }
    .order-modal .total-price {
        padding: 8px;
        margin-bottom: 10px;
    }
    .order-modal .total-price h4 {
        font-size: 0.9rem;
    }
    .order-modal .modal-footer button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .success-modal .modal-content {
        max-width: 90%;
        padding: 15px;
    }
    .success-message p {
        font-size: 1rem;
    }
    .quiz-modal h2 {
        font-size: 1.3rem;
    }
    .quiz-choice {
        font-size: 1rem;
        padding: 8px 15px;
    }
    .quiz-result h2 {
        font-size: 1.4rem;
    }
    .quiz-result-image {
        height: 120px;
    }
}