
* {
    font-family: "Almarai", sans-serif;
}
body {
    background-position-y: 100px;

}



.publishing-houses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.publisher-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.publisher-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    /*position: relative;*/
    /*width: 100%;*/
    /*padding-top: 100%; !* 1:1 Aspect Ratio *!*/
    /*margin-bottom: 15px;*/
    /*overflow: hidden;*/

    width: 30px;
    height: 30px;
}


.publisher-image {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*height: 100%;*/
    /*object-fit: contain;*/
    /*padding: 39px;*/
}

.publisher-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-count {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}


.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: 15px;
}


/* Modern WooCommerce My Account Styles */
body.woocommerce-account .woocommerce {
    direction: rtl; /* Right-to-left for Arabic */
    display: flex;
    max-width: 1200px; /* Limit width for larger screens */
    margin: 20px auto; /* Center on page with some margin */
    background-color: #fff; /* White background for container */
    border-radius: 8px;
    overflow: hidden; /* For rounded corners to work properly with inner elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.woocommerce-MyAccount-navigation {
    background-color: #f8f9fa; /* Light grey background for navigation */
    border-left: 1px solid #dee2e6; /* Light border to separate navigation and content */
    padding: 20px;
    width: 250px; /* Fixed width for navigation */
    flex-shrink: 0; /* Prevent navigation from shrinking */
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #495057; /* Dark grey text color */
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth hover effect */
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link.is-active a {
    background-color: #e9ecef; /* Lighter grey on hover and active */
    color: #212529; /* Darker text on hover and active */
}

.woocommerce-MyAccount-navigation-link.is-active a {
    font-weight: 600; /* Bold for active link */
}

.woocommerce-MyAccount-content {
    padding: 20px;
    flex-grow: 1; /* Content area takes remaining space */
}

.woocommerce-MyAccount-content > *:last-child { /* Remove margin-bottom from last element in content */
    margin-bottom: 0;
}

.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid;
}

.woocommerce-notices-wrapper .woocommerce-message {
    background-color: #e7f8e9;
    border-color: #c3e6cb;
    color: #155724;
}

.woocommerce-notices-wrapper .woocommerce-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.woocommerce-MyAccount-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.woocommerce-MyAccount-content strong {
    font-weight: 600;
    color: #333;
}

.woocommerce-MyAccount-content a {
    color: #70352d; /* Modern blue link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: #57241D; /* Darker blue on hover */
    text-decoration: underline;
}


.woocommerce ul.products li.product a img {
    border-radius: 5px;
}

.category-slider .count {
    background: transparent;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    right: auto;
    color: #310f0e;
    background-color: #e4ceae;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    background-color: #fa9c36;
    text-decoration: none;
    background-image: none;
    color: #110d0d;
}


/* General Styling */
.category-slider {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Spacing below the slider */
    padding: 15px 0;
}

.category-slider .swiper-wrapper {
    display: flex;
}

.category-slider .swiper-slide {
    text-align: center;
    width: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 25px; /* Spacing between slides */
    white-space: nowrap;
    border: 1px solid #D9BF46;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-slider .swiper-slide:first-child {
    margin-left: 0; /* Remove margin for the first slide */
}

.category-slider .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.category-slider .swiper-slide a {
    text-decoration: none;
    color: #57241D;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    transition: color 0.3s ease;
}

.category-slider .swiper-slide a:hover {
    color: #F68932;
}

.category-slider .swiper-slide i {
    font-size: 1.5em;
    color: #D9BF46;
}

.category-slider .woocommerce-loop-category__title {
    font-size: 1em;
    margin: 0;
    line-height: 1;
    font-weight: 600;
}

.category-slider .count {
    font-size: 0.9em;
    color: #8B4036;
    margin-left: 5px;
}

/* Navigation Buttons (Optional) */
.category-slider .swiper-button-next,
.category-slider .swiper-button-prev {
    color: #57241D;
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .category-slider .swiper-slide {
        padding: 10px 15px; /* Adjust padding for smaller screens */
        margin-left: 15px; /* Adjust margin for smaller screens */
    }

    .category-slider .swiper-slide i {
        font-size: 1.2em; /* Adjust icon size for smaller screens */
    }

    .category-slider .woocommerce-loop-category__title {
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }

    .category-slider .count {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }

    .category-slider .swiper-slide:first-child {
        margin-left: 0;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce {
        flex-direction: column; /* Stack navigation and content on smaller screens */
        margin: 10px; /* Reduce margin on small screens */
    }

    .woocommerce-MyAccount-navigation {
        width: 100%; /* Navigation takes full width */
        border-left: none; /* Remove left border on mobile */
        border-bottom: 1px solid #dee2e6; /* Add bottom border to separate nav and content */
        padding: 10px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex; /* Horizontal navigation on mobile */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        padding-bottom: 10px; /* Add padding below horizontal nav */
    }

    .woocommerce-MyAccount-navigation li {
        margin-left: 10px; /* Space between nav items horizontally */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .woocommerce-MyAccount-navigation li:first-child {
        margin-left: 0; /* Remove left margin from first item */
    }

    .woocommerce-MyAccount-navigation-link a {
        padding: 8px 12px; /* Slightly smaller padding for mobile nav */
        white-space: nowrap; /* Prevent text wrapping in horizontal nav */
    }

    .woocommerce-MyAccount-content {
        padding: 15px; /* Reduce content padding on small screens */
    }
}

/* Optional: If you want to customize scrollbar for horizontal mobile nav (webkit browsers) */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        height: 5px; /* Adjust scrollbar height */
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar-track {
        background: #f1f1f1; /* Scrollbar track color */
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb {
        background: #ccc; /* Scrollbar thumb color */
        border-radius: 3px;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb:hover {
        background: #bbb; /* Scrollbar thumb hover color */
    }
}




