/* --- Global Variables & Reset --- */
:root {
    --primary-color: #004e82;
    --bg-light-gray: #f8f9fa;
    --accent-yellow: #f8e71c;
    /* The yellow from your button */
    --text-navy: #004e82;
    --text-muted: #777777;
    --text-dark: #333333;
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
    --font-main: "Alexandria", sans-serif;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    color: var(--text-dark);
}

/* --- Reusable Section Wrapper --- */
.section-wrapper {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* --- Reusable Section Title --- */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
}

/* --- Reusable Custom Button --- */
.btn-custom {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-custom-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-custom-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Reusable Custom Card --- */
.card-custom {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
}

/* --- Header Specific Styles --- */

.bg-primary-custom {
    background-color: var(--primary-color);
}

.header-container-inner {
    background-color: var(--bg-light-gray);
    border-radius: 15px;
    /* Rounded corners per design */
}

/* Icons & Links */
.header-icons .icon-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.header-icons .icon-link:hover {
    color: var(--primary-color);
}

.lang-switcher {
    font-size: 0.9rem;
    font-weight: 600;
}

.small-icon {
    font-size: 0.7rem;
}

/* Search Bar Customization */
.search-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.form-control-custom {
    border: none;
    padding: 10px 40px 10px 15px;
    width: 100%;
    outline: none;
    text-align: right;
    /* RTL focus */
}

.search-icon-inside {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.btn-search {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0;
    padding: 0 25px;
    font-size: 0.9rem;
}

.btn-search:hover {
    background-color: #003a61;
}

/* --- Category Navigation Styles --- */

.category-nav-wrapper {
    background-color: #fff;
    padding: 10px 0 20px 0;
}

.category-list {
    gap: 30px;
    /* Spacing between categories */
}

.category-list a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: var(--transition);
    position: relative;
}

.category-list a:hover {
    color: var(--secondary-color);
}

/* Optional: Underline effect on hover */
.category-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.category-list a:hover::after {
    width: 80%;
}

/* Responsive adjustments for categories */
@media (max-width: 991px) {
    .category-list {
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Allow horizontal scroll on mobile */
        justify-content: flex-start !important;
        padding-bottom: 10px;
    }

    .category-list a {
        font-size: 0.95rem;
        white-space: nowrap;
        /* Prevent text wrapping */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-icons {
        justify-content: center !important;
    }

    .text-end {
        text-align: center !important;
    }
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
}

/* --- Hero Specific Styles --- */

.hero-main-section {
    background-color: var(--bg-light-gray);
    padding: 60px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1.3;
}

.highlight-text {
    background: #fff;
    padding: 0 15px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-navy);
    font-weight: 500;
}

/* Tilted Image Effect */
.hero-img-tilted {
    border-radius: 30px;
    transform: rotate(-3deg);
    /* Slight tilt per design */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-img-tilted:hover {
    transform: rotate(0deg) scale(1.02);
}

/* New Button Variant */
.btn-custom-accent {
    background-color: var(--accent-yellow);
    color: var(--text-navy);
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(248, 231, 28, 0.4);
}

.btn-custom-accent:hover {
    background-color: var(--text-navy);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-img-tilted {
        transform: rotate(0deg);
        max-height: 400px;
    }
}

/* --- Category Slider Specific Styles --- */

.category-slider {
    padding: 0 40px;
    /* Space for arrows */
}

.category-slide-item {
    padding: 15px 10px;
    /* Spacing between sliding items */
}

/* Customizing Slick Arrows to match brand */
.category-slider .slick-prev,
.category-slider .slick-next {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: var(--transition);
}

.category-slider .slick-prev:hover,
.category-slider .slick-next:hover {
    background-color: var(--primary-color);
}

.category-slider .slick-prev::before,
.category-slider .slick-next::before {
    color: var(--primary-color);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    opacity: 1;
}

.category-slider .slick-prev:hover::before,
.category-slider .slick-next:hover::before {
    color: #fff;
}

/* RTL Arrows adjustment */
.category-slider .slick-prev::before {
    content: "\f054";
}

/* Right arrow icon for "Back" in RTL */
.category-slider .slick-next::before {
    content: "\f053";
}

/* Left arrow icon for "Next" in RTL */

.category-slider .slick-prev {
    left: -20px;
}

.category-slider .slick-next {
    right: -20px;
}

/* --- Updated Section Title with Underline --- */
.section-title-underlined {
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title-underlined::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* --- Category Card Specific Styles --- */
.category-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.category-icon-box {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow from design */
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-card-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

/* Hover States */
.category-card-wrapper:hover .category-icon-box {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: #fff;
}

.category-card-wrapper:hover .category-card-name {
    color: var(--secondary-color);
}

/* Responsive Scaling */
@media (max-width: 576px) {
    .category-icon-box {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .category-card-name {
        font-size: 0.85rem;
    }
}

/* --- Category Slider Specific Styles --- */

.category-slider {
    padding: 0 40px;
    /* Space for arrows */
}

.category-slide-item {
    padding: 15px 10px;
    /* Spacing between sliding items */
}

/* Customizing Slick Arrows to match brand */
.category-slider .slick-prev,
.category-slider .slick-next {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: var(--transition);
}

.category-slider .slick-prev:hover,
.category-slider .slick-next:hover {
    background-color: var(--primary-color);
}

.category-slider .slick-prev::before,
.category-slider .slick-next::before {
    color: var(--primary-color);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    opacity: 1;
}

.category-slider .slick-prev:hover::before,
.category-slider .slick-next:hover::before {
    color: #fff;
}

/* RTL Arrows adjustment */
.category-slider .slick-prev::before {
    content: "\f054";
}

/* Right arrow icon for "Back" in RTL */
.category-slider .slick-next::before {
    content: "\f053";
}

/* Left arrow icon for "Next" in RTL */

.category-slider .slick-prev {
    left: -20px;
}

.category-slider .slick-next {
    right: -20px;
}

/* --- Pixel-Perfect Promo Styles --- */

.banner-promo {
    height: 380px;
    /* Increased height to match aspect ratio */
    border-radius: 8px;
    /* Sharper rounded corners per design */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    /* Content pushed to bottom-right in RTL */
    padding: 40px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Specific Design Overlay: Darkens bottom area only */
.banner-promo::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 1;
}

.banner-overlay-content {
    position: relative;
    z-index: 2;
    text-align: right;
    width: 100%;
}

.banner-title-pixel {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle-pixel {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

/* Button Refinement: Matching the specific yellow and shadow */
.btn-accent-pixel {
    background-color: #ffeb3b;
    /* Vibrant Yellow */
    color: #004e82;
    /* Navy text */
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(255, 235, 59, 0.35);
    /* Soft yellow glow */
    transition: var(--transition);
}

.btn-accent-pixel:hover {
    transform: translateY(-3px);
    background-color: #fdd835;
    box-shadow: 0 12px 25px rgba(255, 235, 59, 0.5);
    color: #004e82;
}

.banner-promo:hover {
    transform: translateY(-5px);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .banner-promo {
        height: 300px;
        padding: 25px;
    }

    .banner-title-pixel {
        font-size: 1.4rem;
    }
}

/* --- Best Sellers Specific Styles --- */

.section-title-pixel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Product Card Refinement */
.product-card {
    border: 1px solid #eeeeee;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    /* Orange discount badge */
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 10px;
    height: 2.4em;
    /* Ensures alignment if names vary in length */
    overflow: hidden;
}

.curr-price {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-right: 5px;
}

.product-rating {
    font-size: 0.75rem;
    color: #777;
}

.rating-val {
    font-weight: 600;
    color: #333;
}

.installment-badges img {
    height: 20px;
    width: auto;
    border-radius: 3px;
}

/* Cart Button - Pixel Matching */
.btn-add-cart {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: #003a61;
    color: #fff;
    transform: none;
    /* Removed lift for this specific button type */
}

/* Responsive adjustment */
@media (max-width: 576px) {
    .product-img-wrapper {
        height: 140px;
    }

    .product-name {
        font-size: 0.8rem;
    }
}

/* --- Brands Section Specific Styles --- */

.brands-fluid-section {
    background-color: #f5f5f5;
    /* Specific light gray background from design */
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
}

.brand-logo-img {
    max-width: 120px;
    filter: grayscale(100%);
    /* Matches the monochromatic look in design */
    opacity: 0.6;
    transition: var(--transition);
    /* Reusing your global transition */
    cursor: pointer;
}

.brand-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Ensure logos don't get too small on mobile */
@media (max-width: 576px) {
    .brand-logo-img {
        max-width: 80px;
    }
}

/* --- Newsletter Specific Styles --- */

.newsletter-fluid-section {
    background-color: #004e82;
    /* Navy background matching top bar and buttons */
    padding: 60px 0;
}

.newsletter-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-input {
    height: 55px;
    border-radius: 10px;
    /* Matching the soft roundness in design */
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    color: #666;
}

.newsletter-input:focus {
    box-shadow: none;
    outline: none;
}

/* Specific white button with navy text from design */
.btn-newsletter-submit {
    height: 55px;
    background-color: #ffffff;
    color: #004e82;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-newsletter-submit:hover {
    background-color: #f8f9fa;
    color: #003a61;
    transform: translateY(-2px);
}

/* Responsive spacing for mobile stacking */
@media (max-width: 767px) {
    .newsletter-fluid-section {
        padding: 40px 15px;
    }

    .newsletter-input,
    .btn-newsletter-submit {
        height: 50px;
    }
}


.section-wrapper {
    padding: 60px 0;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
}

/* --- Footer Specific Styles --- */
.footer-wrapper {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.brand-logo {
    font-family: sans-serif;
    /* Replace with specific tech font if available */
    font-weight: 800;
    text-transform: lowercase;
    margin-bottom: 0;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.brand-subtext {
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-top: -5px;
    opacity: 0.8;
}

.footer-text {
    line-height: 1.8;
    font-size: 1rem;
    max-width: 300px;
    font-family: var(--font-main);
    font-weight: 400;
}

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

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

.footer-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.footer-links li a:hover {
    opacity: 0.7;
}

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

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
}

.footer-contact li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .footer-title {
        margin-bottom: 15px;
    }

    .section-wrapper {
        padding: 40px 0;
    }
}

.woocommerce-tabs {
    display: none;
}

.product {
    display: flex;

    del bdi {
        font-size: 18px;
        color: gray;
    }

    ins {
        text-decoration: none;
        font-size: 26px;
    }

    .price {
        display: flex;
        flex-direction: column-reverse;
    }

    .variable-item {
        border-radius: 50% !important;

        span {
            border-radius: 50%;
        }
    }

    .product_meta {
        display: none;
    }

}

.single-product #sidebar {
    display: none;
}

.single-product main {
    margin-top: 50px;
}

.woocommerce-breadcrumb {
    display: none;
}

.woocommerce div.product form.cart .variations label {
    font-size: 16px;
    color: #034E85;
}

.woo-variation-swatches .variable-items-wrapper {
    gap: 4px;
}

.woocommerce span.onsale {
    display: none;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price {
    color: var(--primary-color);
}


/* ICON BUTTON */
.icon-btn {
    background: none;
    border: 0;
    font-size: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CART COUNT */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #8b3e2f;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-count.show {
    display: flex;
}

/* USER DROPDOWN */
.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.user-wrapper:hover .user-dropdown {
    display: block;
}

/* CART OVERLAY */
#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
}

/* CART PANEL */
#mini-cart-panel {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: left .3s ease;
    padding: 20px;
    overflow-y: auto;
}

#mini-cart-panel.open {
    left: 0;
}

#cart-overlay.show {
    display: block;
}

#cart-close {
    background: none;
    border: 0;
    font-size: 28px;
    position: absolute;
    top: 10px;
    right: 15px;
}

/* --- Auth Popup Styles --- */
.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-popup-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.auth-popup-overlay.show .auth-popup-box {
    transform: translateY(0);
}

.auth-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.auth-popup-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.auth-popup-tabs {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form button {
    color: white;
}

.auth-form.active {
    display: block;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.custom-product-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0 0 18px;
    transition: 0.3s ease;
    max-width: 370px;
    margin: auto;
}

.custom-product-card:hover {
    transform: translateY(-4px);
}

.custom-product-card .sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff6b2c;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 14px;
    border-bottom-right-radius: 10px;
    z-index: 2;
    line-height: 1;
}

.custom-product-card .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 20px 10px;
    min-height: 250px;
}

.custom-product-card .product-image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.custom-product-card .product-content {
    padding: 16px;
}

.custom-product-card .product-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.custom-product-card .product-title a {
    text-decoration: none;
    color: #555;
}

.custom-product-card .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    gap: 10px;
}

.custom-product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-product-card .product-price del {
    color: #9e9e9e;
    font-size: 14px;
    font-weight: 400;
}

.custom-product-card .product-price del .woocommerce-Price-amount {
    text-decoration: line-through;
}

.custom-product-card .product-price ins {
    text-decoration: none;
    color: #f15a24;
    font-size: 22px;
    font-weight: 700;
}

.custom-product-card .product-price .normal-price {
    color: #f15a24;
}

.custom-product-card .product-rating {
    color: #222;
    font-size: 18px;
    white-space: nowrap;
}

.custom-product-card .product-rating span {
    color: #666;
}

.custom-product-card .payment-methods {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.custom-product-card .payment-methods img {
    height: 27px;
    object-fit: contain;
}

.custom-product-card .button {
    width: calc(100% - 32px);
    margin: auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #00528f !important;
    color: #fff !important;
    border-radius: 12px !important;
    min-height: 45px;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-decoration: none;
    border: 0 !important;
    transition: 0.3s ease;
    gap: 10px;
}

.custom-product-card .button:hover {
    background: #003f70 !important;
}

.custom-product-card .button::before {
    content: "←";
    font-size: 24px;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .shop-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Shop Header Banner --- */
.shop-header {
    background-color: var(--primary-color);
    padding: 100px 20px;
    aspect-ratio: 3 / 1;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.shop-header.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.shop-header .container {
    position: relative;
    z-index: 2;
}

.shop-header h1 {
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-description {
    font-size: 1.1rem;
    margin: 15px auto 0;
    opacity: 0.9;
    line-height: 1.6;
}

.shop-description p {
    margin-bottom: 0;
}

.page-title {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .shop-header {
        padding: 60px 0;
    }

    .shop-header h1 {
        font-size: 2rem;
    }

    .shop-description {
        font-size: 0.95rem;
    }
}

.woocommerce a.added_to_cart {
    display: none !important;
}

.related.products {
    display: none;
}

/* =========================================
   PRODUCT LAYOUT
========================================= */

.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PRODUCT GALLERY
========================================= */

.woocommerce-product-gallery {
    border: 1px solid #0a5a9c;
    border-radius: 12px;
    padding: 40px;
    background: #fff;
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    width: 100%;
}

.woocommerce-product-gallery__image {
    float: right !important;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    max-width: 420px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 10px;
}

/* hide zoom icon */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Beautiful Premium Gallery Thumbnails Style */
.woocommerce-product-gallery ol.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 20px 0 0 0 !important;
    list-style: none;
    justify-content: center;
    width: 100%;
    clear: both;
}

.woocommerce-product-gallery ol.flex-control-thumbs li {
    width: 80px;
    cursor: pointer;
    flex-shrink: 0;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery ol.flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: #0a5a9c;
    box-shadow: 0 4px 12px rgba(10, 90, 156, 0.2);
}

/* =========================================
   PRODUCT SUMMARY
========================================= */

/* title */
.summary .product_title {
    font-size: 37px;
    line-height: 1.3;
    color: #0a5a9c;
    font-weight: 500;
    margin-bottom: 25px;
}

/* blue line */
.summary .product_title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: #0a5a9c;
    margin-top: 20px;
    margin-left: auto;
}

/* price */
.summary .price {
    font-size: 48px;
    font-weight: 700;
    color: #0a5a9c;
    margin-bottom: 40px;
}

.summary .price del {
    display: block;
    font-size: 24px;
    color: #999;
    margin-top: 10px;
}

.summary .price ins {
    text-decoration: none;
}

/* quantity + button */
.summary form.cart {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-direction: row-reverse;
}

/* quantity box */
.summary .quantity {
    width: 140px;
}

.summary .quantity input.qty {
    width: 100%;
    height: 55px;
    border-radius: 50px;
    border: none;
    background: #f3f3f3;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0a5a9c;
}

/* add to cart button */
.single_add_to_cart_button {
    flex: 1;
    height: 55px;
    border-radius: 50px !important;
    background: #0a5a9c !important;
    border: none !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    transition: 0.3s;
}

.single_add_to_cart_button:hover {
    background: #08497d !important;
}

/* hide meta */
.product_meta {
    display: none;
}

/* remove tabs */
.woocommerce-tabs {
    display: none;
}

.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: unset;
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    width: unset;
}

/* checkout */

/* 1. Main Layout Split (Flexbox) */
form.woocommerce-checkout {
    display: flex;
    flex-direction: row;
    /* Places billing on right, summary on left for RTL */
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

/* 2. Right Side: Billing & Shipping Fields */
.col2-set {
    flex: 1;
    width: 60% !important;
    float: none !important;
}

.col2-set .col-1,
.col2-set .col-2 {
    width: 100% !important;
    float: none !important;
}

/* 3. Left Side: Order Details (Sticky/Fixed) */
#order_review_heading,
#order_review {
    width: 35% !important;
    float: none !important;
}

#order_review {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    /* Distance from top of screen when scrolling */
    background: #fdfdfd;
    padding: 45px 0 0;
    border: unset;
    border-radius: 12px;
    box-shadow: unset;
}

/* 4. Input Field Design (Matching your image) */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid #E2E2E2 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    background-color: #fff !important;
    height: 50px;
    font-size: 15px;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

/* 5. Order Table Styling (Left Side) */
.shop_table.woocommerce-checkout-review-order-table {
    border: none !important;
    background: transparent !important;
}

.shop_table.woocommerce-checkout-review-order-table thead {
    display: none;
    /* Hide header for cleaner look */
}

.shop_table tr td,
.shop_table tr th {
    border: none !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* 6. Place Order Button */
#place_order {
    background-color: transparent;
    color: black;
    font-size: 18px;
    border-radius: 10px;
    width: 100%;
    transition: 0.3s ease;
    border: 2px solid #000;
}

#place_order:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* 7. RTL Specific Adjustments */
body.rtl .woocommerce-checkout .form-row-first {
    float: right !important;
    width: 48% !important;
}

body.rtl .woocommerce-checkout .form-row-last {
    float: left !important;
    width: 48% !important;
}

/* Responsive: Stack on Mobile */
@media (max-width: 991px) {
    form.woocommerce-checkout {
        flex-direction: column;
    }

    .col2-set,
    #order_review,
    #order_review_heading {
        width: 100% !important;
    }

    #order_review {
        position: relative;
        top: 0;
    }
}

#order_review_heading,
.woocommerce-form-coupon-toggle,
.woocommerce-terms-and-conditions-wrapper {
    display: none;
}

th.translated-ar {
    text-align: start;
}

.shop_table tr td.product-name {
    text-align: justify;
    padding-left: 13px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    text-align: right;
}

.woocommerce-checkout #payment {
    background-color: unset;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgb(228, 228, 228);
    margin: 5px 0;

    p {
        color: #000;
    }
}

.woocommerce-shipping-fields {
    display: none;
}

.woocommerce-checkout .form-row label[for="order_comments"] {
    display: none;

    &+span {
        margin-top: 20px;
        display: block;
    }
}

.woocommerce-billing-fields h3 {
    margin-bottom: 20px;
    color: #000;
}

.woocommerce form .form-row {
    margin: 0 0 25px;
}

#order_review :is(span, label) {
    color: #000;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    text-align: start;
}

.woocommerce form .form-row-first,
.woocommerce-page form .form-row-first {
    float: right;
}

.woocommerce form .form-row-last,
.woocommerce-page form .form-row-last {
    float: left;
}

/* --- Thank You Page Container --- */
.woocommerce-order {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    /* Ensures proper Arabic alignment */
}

/* Success Message */
.woocommerce-notice--success {
    background-color: #e6fcf5 !important;
    color: #0ca678 !important;
    padding: 20px !important;
    border-radius: 10px;
    border-right: 5px solid #0ca678;
    /* Green accent on the right for RTL */
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Order Overview Bar (Number, Date, Total) --- */
.woocommerce-order-overview {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}

.woocommerce-order-overview li {
    flex: 1;
    min-width: 140px;
    font-size: 14px;
    color: #888;
    text-align: center;
    border-left: 1px solid #eee;
}

.woocommerce-order-overview li:last-child {
    border-left: none;
}

.woocommerce-order-overview li strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-top: 5px;
}

/* --- Table Styling --- */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.woocommerce-table--order-details thead th {
    background: #f8f9fa;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #555;
    border-radius: 8px 8px 0 0;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.woocommerce-table--order-details tfoot th {
    color: #888;
    font-weight: 400;
}

.woocommerce-table--order-details tfoot td {
    font-weight: 600;
    color: #333;
}

.order-total td strong {
    color: #d6336c;
    /* Color for the total amount */
    font-size: 1.2rem;
}

/* --- Address Section --- */
.woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.woocommerce-column__title {
    font-size: 18px;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

address {
    font-style: normal;
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    line-height: 1.8;
    color: #666;
}

.woocommerce-column--shipping-address {
    display: none;
}

.woocommerce-page .col2-set::before {
    display: none;
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before {
    position: relative;
}

.woocommerce-thankyou-order-details+p {
    display: none;
}

.woocommerce-checkout .bg-image {
    background-position: top;
}

/* Responsive for Mobile */
@media (max-width: 600px) {
    .woocommerce-order-overview {
        flex-direction: column;
        gap: 15px;
    }

    .woocommerce-order-overview li {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout .woocommerce-error {
    display: none;
}

.woocommerce div.product form.cart.variations_form {
    justify-content: flex-end;
}