/* --- General Styles --- */
body { margin: 0; font-family: 'Cairo', sans-serif; background-color: #f9f9f9; color: #333; direction: rtl; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Announcement Bar Styles & Animation --- */
.announcement-bar { background-color: #1A2942; color: white; padding: 10px 0; overflow: hidden; white-space: nowrap; }
.announcement-text { display: inline-block; animation: scroll-rtl 25s linear infinite; }
.announcement-text span { font-weight: 500; }
.announcement-text .separator { margin: 0 50px; opacity: 0.5; }
@keyframes scroll-rtl { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- Navigation Bar --- */
.navbar { background-color: #fff; padding: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: bold; color: #333; text-decoration: none; }
.star-icon { color: gold; font-size: 1em; margin-right: 5px; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    /* --- NEW LINES TO CENTER THE MENU --- */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* --- END OF NEW LINES --- */
}
.nav-links a { text-decoration: none; color: #555; font-size: 16px; font-weight: 500; }
/* --- Nav Social Icons --- */
/* --- Nav Social Icons (UPDATED) --- */
.nav-social-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Slightly less gap for a tighter look */
    margin-left: 20px; /* More space from menu items */
    margin-right: auto; /* Push them to the right, next to the logo on desktop */
}

.social-icon-link {
    color: #555; /* Slightly softer color */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: flex; /* Make sure SVG is centered if needed */
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: #000; /* Darker on hover */
}

.social-icon-link svg {
    width: 26px; /* Slightly larger icons */
    height: 26px;
    fill: currentColor;
}
/* --- Homepage Styles --- */
.product-section { padding: 60px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; }
.product-grid {
    display: grid;
    /* This is the fix: 
      - Columns will be at least 280px.
      - They will NOT grow larger than 350px.
      - auto-fit will create as many columns as fit.
    */
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); 
    justify-content: center; /* This will center the grid items */
    max-width: 1200px; 
    gap: 30px;
    margin: 0 auto;
}
/* --- Nav Cart Button --- */
.nav-cart-btn {
    text-decoration: none;
    color: #333;
    font-size: 26px; /* Makes the 🛒 emoji bigger */
    position: relative; /* Required for positioning the badge */
    display: block;
    padding: 5px;
}

.cart-item-count {
    position: absolute;
    top: -5px;
    right: -8px; /* Positions the red circle */
    background-color: #e74c3c; /* Red color */
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%; /* Makes it a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    display: none; /* Will be shown by JavaScript if cart > 0 */
}
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-card { 
    background-color: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 0 10px 15px 10px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 280px;
}
.product-card h3 { font-size: 20px; margin: 15px 0 10px 0; }
.details-btn { 
    display: inline-block; 
    background-color: #000; 
    color: #fff !important; 
    padding: 10px 25px; 
    margin-top: 15px; /* Added margin for spacing */
    border-radius: 5px; 
    font-weight: bold; 
    text-decoration: none;
}

/* --- Square Image Wrapper (This makes it square) --- */
.square-image-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Optional: rounds the image corners slightly */
}
.square-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Color Name List Styles (Homepage) --- */
.color-name-list { 
    margin-top: 10px; 
    margin-bottom: 5px; /* Reduced margin */
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    padding: 0 10px; 
}
.color-name-list .color-swatch,
.color-swatches a.color-swatch {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    background-color: #f0f0f0;
    border: 2px solid #f0f0f0;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}
.color-name-list .color-swatch:hover,
.color-swatches a.color-swatch:hover {
    background-color: #e0e0e0;
    color: #333;
}
.color-swatches a.color-swatch.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    font-weight: 700; 
} 
.product-info-column .color-name-list { justify-content: flex-start; }

/* --- Homepage Discount Price Styles --- */
.homepage-price {
    line-height: 1.3;
    margin-bottom: 10px; 
    /* This centers the price block itself */
    display: flex;
    justify-content: center;
    align-items: center;
}
.homepage-price .price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.price-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center; /* This centers the text inside the wrapper */
    line-height: 1.2;
}
.original-price {
    font-size: 15px;
    color: #e74c3c; /* This makes the original price RED on the homepage */
    text-decoration: line-through;
    font-weight: 400;
}
.price-wrapper .price {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* --- Product Detail Page Styles --- */
.product-details-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 20px; 
}
.product-image-column img { 
    width: 100%; 
    border-radius: 8px; 
    border: 1px solid #eee; 
}

/* This is the new, clean fix */
.product-info-column {
    display: flex;
    flex-direction: column;
    /* This one line adds 25px of space between all items */
    gap: 25px; 
}
.product-info-column h1 { 
    font-size: 36px; 
    margin: 0; /* Reset margin */
}
.product-info-column .product-description { 
    line-height: 1.7; 
    color: #555; 
    margin: 0; /* Reset margin */
}
.size-options { 
    margin: 0; /* Reset margin */
}
.quantity-selector { 
    margin: 0; /* Reset margin */
}

/* (The rest of the styles are the same) */
.size-options > label { display: block; font-weight: bold; margin-bottom: 15px; font-size: 18px; }
.size-option input[type="radio"] { display: none; }
.size-option label { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 2px solid #ddd; border-radius: 8px; margin-bottom: 10px; cursor: pointer; }
.size-option input[type="radio"]:checked + label { border-color: #000; box-shadow: 0 0 0 2px #000; }
.quantity-selector label { font-weight: bold; margin-left: 10px; }
.quantity-controls-product-page { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 5px; width: fit-content; }
.quantity-controls-product-page button { width: 40px; height: 40px; border: none; background-color: #f9f9f9; cursor: pointer; font-size: 20px; }
.quantity-controls-product-page span { padding: 0 20px; font-size: 18px; font-weight: 700; }
.add-to-cart-full-btn { width: 100%; padding: 15px; font-size: 18px; font-weight: bold; color: #fff; background-color: #000; border: none; border-radius: 8px; cursor: pointer; }
.product-extra-details { margin-top: 20px; padding-top: 30px; border-top: 1px solid #eee; }
.product-extra-details h3 { font-size: 20px; margin-bottom: 15px; color: #333; }
.product-extra-details p { font-size: 16px; line-height: 1.8; color: #555; }
.product-extra-details ul { list-style: none; padding-right: 0; margin-bottom: 30px; }
.product-extra-details li { font-size: 16px; color: #555; margin-bottom: 10px; padding-right: 25px; position: relative; }
.product-extra-details li::before { content: '✔'; color: #008000; position: absolute; right: 0; top: 0; }
.special-offer { background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-top: 20px; }
@media (max-width: 768px) { .product-details-container { grid-template-columns: 1fr; } }

/* --- About Us Page Styles --- */
.about-us-container { max-width: 800px; margin: 60px auto; padding: 50px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); text-align: center; }
.about-us-container h1 { font-size: 38px; color: #222; margin-bottom: 20px; }
.about-us-container h2 { font-size: 28px; color: #333; margin-top: 50px; margin-bottom: 25px; border-top: 1px solid #eee; padding-top: 30px; }
.about-us-container p, .about-us-container li { font-size: 18px; line-height: 1.9; color: #555; }
.about-us-container ul { list-style: none; padding-right: 0; margin-top: 25px; display: inline-block; text-align: right; }
.about-us-container li { margin-bottom: 18px; }
/* This adds the cool quotation mark */

/* --- Footer Styles --- */
.site-footer {
    background-color: #111; /* Dark background */
    color: #aaa; /* Light grey text */
    padding: 50px 0 30px 0;
    margin-top: 60px; /* Space above the footer */
    font-size: 15px;
    text-align: right; /* RTL text alignment */
}

.site-footer .container {
    max-width: 1100px;
}

.footer-grid {
    display: grid;
    /* Creates 3 responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff; /* White title */
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding-right: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333; /* Separator line */
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #888;
}
/* --- New Checkout Page Styles --- */
.checkout-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* --- Left Column (Form) --- */
.checkout-form-column {
    padding-right: 50px;
    border-right: 1px solid #eee;
}

.checkout-form-column h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
}

.checkout-form-group {
    margin-bottom: 20px;
}
.checkout-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}
.checkout-form-group input,
.checkout-form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    box-sizing: border-box; /* Fixes padding issues */
}
.checkout-name-fields {
    display: flex;
    gap: 15px;
}
.checkout-name-fields .checkout-form-group {
    width: 100%;
}
.checkout-city-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}
.checkout-form-group.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.checkout-form-group.remember-me input {
    width: auto;
}

.shipping-method-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}
.shipping-method-box label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
}
.shipping-method-box label span:last-child {
    font-weight: 700;
    color: #111;
}
.shipping-method-box input[type="radio"] {
    display: none;
}
.shipping-method-box input[type="radio"]:checked + label {
    border-color: #000;
    box-shadow: 0 0 0 2px #000;
    background-color: #f9f9f9;
}

.payment-method-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}
.payment-method-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkout-pay-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* --- Right Column (Summary) --- */
.checkout-summary-column {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    height: fit-content; /* Make it stick */
    position: sticky;
    top: 40px;
}

#checkout-items-list .cart-item {
    align-items: flex-start;
}
#checkout-items-list .cart-item img {
    width: 65px;
    height: 65px;
    margin-left: 12px;
}
#checkout-items-list .cart-item .item-details {
    padding-top: 5px;
}
#checkout-items-list .cart-item p { font-size: 15px; }
#checkout-items-list .cart-item small { font-size: 13px; }

.checkout-summary-column .discount-code {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.checkout-summary-column .discount-code input {
    flex-grow: 1; padding: 12px; border: 1px solid #ccc; border-radius: 5px;
    font-family: 'Cairo', sans-serif; font-size: 15px;
}
.checkout-summary-column .discount-code button {
    padding: 12px 15px; font-family: 'Cairo', sans-serif; font-size: 15px;
    font-weight: 600; background-color: #ddd; border: 1px solid #ccc;
    border-radius: 5px; cursor: pointer; color: #333;
}

.checkout-summary-column .order-total p {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    font-size: 16px;
    color: #555;
}
.checkout-summary-column .order-total p span:last-child {
    font-weight: 700;
    color: #111;
}
.checkout-summary-column .order-total .total-price {
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}
.checkout-summary-column .order-total .total-price span {
    font-size: 20px;
}

/* Mobile responsive for checkout page */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .checkout-form-column {
        padding-right: 0;
        border-right: none;
        order: 2; /* Form comes second */
    }
    .checkout-summary-column {
        order: 1; /* Summary comes first */
        position: static;
        margin-bottom: 30px;
    }
}
/* --- Responsive Mobile Menu Styles --- */

/* 1. Style the hamburger button itself */
.mobile-menu-toggle {
    display: none; /* Hidden by default on PC */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Make sure it's on top */
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s linear;
}

/* 2. This is the CSS that only applies to phones (screens 768px or less) */
@media (max-width: 768px) {


/* Hide the original desktop-only links */
.nav-social-links {
    display: none;
}  
    .navbar .container {
        /* This makes the logo left, and menu icons right */
        justify-content: space-between;
    }

    /* Show the hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide the normal links */
.nav-links {
    display: none; /* Hide the list by default */
    position: absolute;
    top: 70px; /* Position it below the navbar */
    right: 0;
    left: 0; /* Reset left property */
    transform: none; /* Reset the transform */
    background-color: #fff;
    width: 100%;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

    /* This class is added by JavaScript to show the menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Keep cart icon and menu toggle on the right */
    /* We need to re-order them visually */
    .nav-cart-btn {
        order: 2; /* Cart icon comes second */
    }
    .mobile-menu-toggle {
        order: 3; /* Hamburger icon comes third (far right) */
        margin-right: 15px; /* Add some space */
    }
    .nav-links {
        order: 4; /* The dropdown menu itself */
    }
    .logo {
        order: 1; /* Logo stays first */
    }
}
/* --- Success Popup Styles --- */
#success-popup {
    position: fixed; /* Sits on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 2000; /* Higher than the cart overlay */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box; /* Fixes padding issues */
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
    direction: rtl; /* Ensure right-to-left */
}

.popup-icon {
    font-size: 50px;
    color: #008000; /* Green */
    line-height: 1;
}

.popup-content h2 {
    font-size: 24px;
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.popup-content .close-popup-btn {
    display: inline-block;
    background-color: #000;
    color: #fff !important;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}
/* --- Pro Cart Form Font --- */
.shipping-form input,
.shipping-form textarea,
.shipping-selection select {
    font-family: 'Cairo', sans-serif;
    font-size: 16px; /* Makes the typing font clean and readable */
}
/* --- Styles for image-based icons in the nav --- */
.social-icon-link .icon-image {
    width: 26px;  /* Matches the size of the Facebook icon */
    height: 26px;
    object-fit: contain; /* Makes sure the logo fits perfectly */
    vertical-align: middle; /* Aligns it nicely with the Facebook icon */
}
/* --- Mobile Menu Social Links (NEW) --- */
.nav-links-social {
    display: none; /* Hide this block on desktop */
    align-items: center;
    justify-content: center;
    gap: 30px; /* Space between the icons */
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Styles the <img> tag for your WhatsApp logo */
.nav-links-social .icon-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Styles the <svg> tag for your Facebook logo */
.nav-links-social svg {
    width: 28px;
    height: 28px;
    stroke: #555; /* Color of the Facebook icon */
}
/* --- Final Social Icon Logic --- */

/* 1. Hide the MOBILE links on DESKTOP */
.nav-links-social {
    display: none;
}

/* 2. On MOBILE... */
@media (max-width: 768px) {
    /* HIDE the DESKTOP links */
    .nav-social-links {
        display: none;
    }
    /* SHOW the MOBILE links */
    .nav-links-social {
        display: flex; /* This will make them appear in the dropdown */
        align-items: center;
        justify-content: center;
        gap: 30px; /* Space between the icons */
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    /* Style the icons inside the mobile menu */
    .nav-links-social .icon-image {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    .nav-links-social svg {
        width: 28px;
        height: 28px;
        stroke: #555;
    }
}
/* --- UPGRADED PROFESSIONAL CART STYLES (NEW) --- */
#cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,.6);
    z-index: 999; opacity: 0; visibility: hidden;
    transition: opacity .3s ease,visibility .3s ease;
}
#cart-overlay.is-visible { opacity: 1; visibility: visible; }

.side-cart {
    position: fixed; top: 0; right: -100%;
    width: 450px; max-width: 90%; height: 100%;
    background-color: #ffffff; /* Clean white background */
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0,0,0,.15); /* Softer shadow */
    transition: right .4s ease-in-out;
    display: flex; flex-direction: column;
}
.side-cart.is-open { right: 0; }

.cart-header {
    padding: 20px;
    text-align: right; /* Changed to right */
    background-color: #fff; /* White background */
    color: #111; /* Black text */
    border-bottom: 1px solid #eee; /* Light border */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 { margin: 0; font-size: 20px; }

.side-cart .close-btn {
    position: static; /* No longer absolute */
    font-size: 28px;
    color: #111; /* Black X */
    text-decoration: none; font-weight: 300; /* Thinner */
    transition: color 0.2s;
    order: 2; /* Put on the right */
}
.side-cart .close-btn:hover { color: #888; }

.cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff; /* White content background */
}

#cart-items-list {
    background-color: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.cart-item {
    display: flex; align-items: center;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative; padding-right: 0; /* Removed padding */
}
.cart-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cart-item img {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 8px;
    margin-left: 15px; border: 1px solid #eee;
}
.cart-item .item-details { flex-grow: 1; }
.cart-item p { margin: 0 0 5px 0; font-weight: 600; font-size: 16px; }
.cart-item small { color: #666; font-size: 14px; }
.cart-item .item-price { font-weight: 700; font-size: 15px; }

.quantity-controls { display: flex; align-items: center; margin-top: 10px; }
.quantity-controls span { padding: 0 15px; font-size: 16px; }
.quantity-controls button {
    width: 28px; height: 28px; border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer; font-size: 18px;
    line-height: 1;
}
.remove-item-btn {
    position: absolute; top: 0; right: 0;
    width: 24px; height: 24px; border: none;
    background: transparent; font-size: 20px; color: #999;
    cursor: pointer;
}
.remove-item-btn:hover { color: #000; }

.cart-footer {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 15px rgba(0,0,0,.03);
}

.cart-footer .discount-code {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}
.cart-footer .discount-code input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
}
.cart-footer .discount-code button {
    padding: 12px 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer .order-total p {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: #333; /* Dark text */
    font-size: 16px;
    font-weight: 500;
}
.cart-footer .order-total p span:last-child {
    color: #111;
    font-weight: 700;
}
/* --- Cart Original Price Style --- */
.cart-footer .original-subtotal {
    text-decoration: line-through; /* CROSS OUT THE PRICE */
    color: #888; /* Muted grey color for the text */
    font-size: 0.9em; 
}
/* Ensure the price amount itself is also muted */
.cart-footer .original-subtotal span:last-child {
    color: #888; 
}

/* --- Cart Savings Style --- */
.cart-footer .savings-line {
    color: #2ecc71; /* Bright Green color for savings */
    font-weight: bold;
    /* This adds a separator line to distinguish the savings row */
    border-top: 1px dashed #ccc; 
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.05em; /* Slightly larger text */
}
/* Make the savings amount extra bold and bright green */
.cart-footer .savings-line span { 
    color: #2ecc71 !important; /* Force the color */
    font-weight: 700;
}

/* This is the new Checkout button */
.checkout-btn {
    width: 100%;
    padding: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
}
.checkout-btn:hover {
    background-color: #333;
}

/* --- New Checkout Page Styles --- */
.checkout-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* --- Left Column (Form) --- */
.checkout-form-column {
    padding-right: 50px;
    border-right: 1px solid #eee;
}

.checkout-form-column h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
}

.checkout-form-group {
    margin-bottom: 20px;
}
.checkout-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}
.checkout-form-group input,
.checkout-form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    box-sizing: border-box; /* Fixes padding issues */
}
.checkout-name-fields {
    display: flex;
    gap: 15px;
}
.checkout-name-fields .checkout-form-group {
    width: 100%;
}
.checkout-city-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.payment-method-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}
.payment-method-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.payment-method-box input[type="radio"] {
    display: none;
}
.payment-method-box input[type="radio"]:checked + label {
    border-color: #000;
    box-shadow: 0 0 0 2px #000;
}

.checkout-pay-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* --- Right Column (Summary) --- */
.checkout-summary-column {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    height: fit-content; /* Make it stick */
    position: sticky;
    top: 40px;
}

#checkout-items-list .cart-item {
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    padding-right: 0;
}
#checkout-items-list .cart-item img {
    width: 65px;
    height: 65px;
    margin-left: 12px;
}
#checkout-items-list .cart-item .item-details {
    padding-top: 5px;
}
#checkout-items-list .cart-item p { font-size: 15px; }
#checkout-items-list .cart-item small { font-size: 13px; }
#checkout-items-list .cart-item .item-price { font-size: 14px; }
#checkout-items-list .remove-item-btn { display: none; } /* Hide remove button on this page */
#checkout-items-list .quantity-controls { display: none; } /* Hide quantity controls on this page */


.checkout-summary-column .order-total p {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    font-size: 16px;
    color: #555;
}
.checkout-summary-column .order-total p span:last-child {
    font-weight: 700;
    color: #111;
}
.checkout-summary-column .order-total .total-price {
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}
.checkout-summary-column .order-total .total-price span {
    font-size: 20px;
}

/* Mobile responsive for checkout page */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .checkout-form-column {
        padding-right: 0;
        border-right: none;
        order: 2; /* Form comes second */
    }
    .checkout-summary-column {
        order: 1; /* Summary comes first */
        position: static;
        margin-bottom: 30px;
    }
}
/* --- TESTIMONIAL SECTION FINAL STYLES: EXACT IMAGE MATCH --- */

/* 1. Style the card for better padding and structure */
.testimonial-card {
    padding: 30px 25px !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 2. Style the stars (centered, big, with space below) */
.testimonial-card .stars {
    text-align: center !important;
    font-size: 22px !important;
    margin-bottom: 15px !important; 
}

/* 3. Apply the Amiri font (Normal style, not Bold, not Italic) */
.testimonial-card .review-text {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-right: 35px; /* Space for the quote */

/* 4. FIX THE QUOTE MARK: Match size and position from image */
/* Note: This rule targets the existing CSS you have for the quote mark */
.testimonial-card .review-text::before {
    content: '”' !important; 
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 60px !important; /* HUGE SIZE to match image */
    color: #e0e0e0 !important; /* Light background color */
    position: absolute !important;
    top: -15px !important;
    right: -5px !important; 
    line-height: 1 !important;
    z-index: 1 !important;
}

/* 5. Ensure Customer Name is Bold (700) and uses Cairo */
.testimonial-card .customer-name {
    font-family: 'Cairo', sans-serif !important; 
    font-size: 17px !important;
    font-weight: 700 !important; /* Forces Bold */
    text-align: right !important;
    margin-top: 15px !important;
}
/* --- CHECKOUT SUMMARY: FINAL CLEAN PRICE STYLING --- */

/* 1. Ensure all new lines are displayed and spaced correctly */
.checkout-summary-column .order-total .total-line {
    display: flex !important;
    justify-content: space-between !important;
    margin: 14px 0 !important;
}

/* 2. Style the Original Total PRICE (Crossed out and Red) */
.checkout-summary-column #original-subtotal {
    color: #e74c3c !important; /* Red Color */
    text-decoration: line-through !important; /* Adds the crossed-out line */
    font-weight: 500 !important;
}

/* 3. Style the Savings amount (Red and Bold) */
.checkout-summary-column #savings-total {
    color: #e74c3c !important; /* Red Color */
    font-weight: 700 !important;
}

/* 4. Style the Final Total Line Separator */
.checkout-summary-column .order-total .total-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}
/* --- CHECKOUT SUMMARY: FINAL LABEL STYLING --- */

/* 1. Make the "Original Total" label text RED */
.checkout-summary-column .order-total .original-subtotal span:first-child {
    color: #e74c3c !important; /* Forces Red */
    font-weight: 500 !important;
}

/* 2. Make the "You Saved" label text GREEN and bold */
.checkout-summary-column .order-total .savings-line span:first-child {
    color: #2ecc71 !important; /* Forces Green */
    font-weight: 700 !important;
}