
.card {
    transition: transform 0.2s;
    min-height: 220px;
    max-height: 550px;
    width: 100%;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white !important;

}

.card-content{
    text-align: center;
}

.product-image {
    width: 100%;
    height: auto; /* Change height to auto to show all image */
    max-height: 400px; /* Limit max height - Change this value to make the images larger or smaller on desktop */
    object-fit: contain; /* Change object-fit to contain */
    display: block;
}

.card-body {
    padding: 1rem;
    background-color: white !important;
    text-align: center;
}

.card-title {
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.text-muted {
    font-size: 1.5rem;
    color: #6c757d;
}

.product-image {
        max-height: 220px; /* Change this value to make the images larger or smaller on mobile */
        min-height: 220px; /* Change this value to make the images larger or smaller on mobile */
    }


    .carousel{
        min-height: 200px;


    }


/* Mobile-Friendly Adjustments */
@media (max-width: 767.98px) {
    .card {
        min-height: 200px;
        max-height: 300px;
        width: 100%;
        border-radius: 6px;
        padding: 2px;

    }

    .carousel{
        min-height: 200px;


    }

    .product-image {
        max-height: 220px; /* Change this value to make the images larger or smaller on mobile */
        max-height: 22px; /* Change this value to make the images larger or smaller on mobile */
    }

    .card-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .text-muted {
        font-size: 1.5rem;
        text-align: center;
    }
}

.product-image[onload] + .skeleton-loading,
.product-image[onload] + .skeleton-loading-body {
    display: none;
}
.card-content{
  display: block;
}



/* Out of stock overlay */
.position-absolute.bg-black.bg-opacity-50 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}


.position-absolute.bg-black.bg-opacity-50 span {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}



/* Custom carousel control icons */
.custom-carousel-icon {
    font-size: 50px; /* Increase icon size */
    color: rgba(255, 255, 255, 0.8); /* Make the icon black */
    background-color: black; /* Optional: Add a background */
    border-radius: 50%; /* Optional: Make the icon circular */
    padding: 10px; /* Add padding for better spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */

}

@media (max-width: 767.98px) {
    .custom-carousel-icon {
    font-size: 35px; /* Increase icon size */

    }
    }


       /* Default size for desktop */
/* Default size for desktop */
.logo-img {
    height: 100px; /* Default height */
    width: 200px; /* Default width */
    transition: all 0.3s ease; /* Smooth transition for resizing */
}

/* Adjust size for mobile devices */
@media (max-width: 767.98px) {
    .logo-img {
        height: 60px; /* Smaller height for mobile */
        width: 120px; /* Smaller width for mobile */
    }
}


.logo-title {
    margin-left: 5em;
    text-decoration: none;
    color: #272121;
}

@media screen and (max-width: 776px) {
    .show-alert {
        font-size: 0.8em;
    }
    .rss-logo {
        height: 5em;
    }
    .logo-title {
        font-size: 0.8em;
        margin-left: 0;
    }
}

@media screen and (max-width: 380px) {
    .show-alert {
        font-size: 0.6em;
    }
    .rss-logo {
        height: 3em;
    }
    .logo-title {
        font-size: 0.5em;
        margin-left: 0;
    }
}

/* Center the wrapper div */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}







.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Container for the buttons */
.button-container {
    position: absolute;
    top: auto; /* Align with the navbar */
    right: 80px; /* Position at the right of the page */
    display: flex;
    gap: 10px; /* Space between buttons */
    z-index: 10; /* Ensure buttons are above the navbar */

}

/* Button styles */
.btn {
    padding: 8px 16px;
    font-size: 20px;
    color: white;
    background-color: white; /* A modern purple shade */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: red; 
    transform: translateY(-2px); 
    color: white;
}


.btn:active {
    background-color: white; 
    transform: translateY(0); 
    color: white;
}

.product-contect-page {
        margin-top: 120px;
    }
.brand-contect-page{
        margin-top: 120px;
    }
    .show-product-contect-page{
        margin-top: 120px;
    }

    .home-contect-page{
        margin-top: 70px;
    }

/* Responsive styles */
@media (max-width: 776px) {
    .button-container {
        top: auto; /* Move buttons below the navbar on small screens */
        right: 10px;

    }
    .home-contect-page{
        margin-top: 60px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 20px;
    }

    .product-contect-page {
        margin-top: 80px;
    }
    .brand-contect-page{
        margin-top: 80px;
    }
    .show-product-contect-page{
        margin-top: 80px;
    }
}
/* Base styles for the go-back button */
.go-back-button {
    position: absolute;
    left: 2%; /* Position from the left */
    z-index: 10; /* Ensure it's above other elements */
    background-color: #F5BF28; /* Button background color */
    color: white; /* Icon color */
    border: none; /* Remove border */
    border-radius: 50%; /* Make it circular */
    width: 80px; /* Button size */
    height: 80px; /* Button size */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon */
}

/* Hover effect */
.go-back-button:hover {
    background-color: #b97827; /* Darker color on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Icon inside the button */
.go-back-button i {
    font-size: 50px; /* Icon size */
}

/* Mobile devices (max-width: 776px) */
@media (max-width: 776px) {
    .go-back-button {
        width: 50px; /* Smaller button size */
        padding: 25px; /* Smaller button size */
        height: 40px; /* Smaller button size */
        left: 5%; /* Adjust position */
    }
    .go-back-button i {
        font-size: 30px; /* Smaller icon size */
    }
    .home-img  {
        max-height: 300px;
        min-height: 300px;

    }
}

.sold_out {
    top: 2em;
    left: -6em;
    color: #fff;
    display: block;
    position: absolute;
    text-align: center;
    text-decoration: none;
    letter-spacing: .06em;
    background-color: Red;
    padding: 0.2em 5em 0.2em 6em;
    -webkit-box-shadow: 0 0 0.5em rgba(0,0,0,0.5);
    -webkit-transform: rotate(-45deg) scale(0.75,1);
    z-index: 10;
    font-size: 20px;
    font-weight: bold;
}


/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .sold_out {
        top: 1em; /* Adjust top position */
        left: -6em; /* Adjust left position */
        padding: 0.2em 5em 0.2em 4.5em;
        font-weight: bold;
        font-size: 17px; /* Reduce font size */
        -webkit-transform: rotate(-45deg) scale(0.6,1); /* Adjust scale */
    }
}





/* Image Styles */
.product-image {
    opacity: 0; /* Hide image initially */
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
}

.product-image.loaded {
    opacity: 1; /* Show image after it's loaded */
}

/* Card Content */
.card-content {
    display: none; /* Hide content initially */
}

.card-content.loaded {
    display: block; /* Show content after loading */
}

.btn{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
}


.thumbnail-item-container {
                position: relative;
            }

            .skeleton-loader {
                position: absolute;
                top: 0;
                left: 0;
                width: 90px;
                height: 90px;
                background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
                background-size: 200% 100%;
                animation: skeleton-loading 1.5s linear infinite;
                border-radius: 5px;
            }

            .thumbnail-skeleton {
                width: 80px;
                height: 80px;
            }

            @keyframes skeleton-loading {
                0% {
                    background-position: 200% 0;
                }
                100% {
                    background-position: -200% 0;
                }
            }



            .carousel-inner {
    background-color: white;
    border: 2px  black; /* Corrected border syntax */
    border-radius: 10px; /* Adds rounded corners for a modern look */
    text-align: center;


}
    .little-img {
    background-color: white;
    border: 2px  black; /* Corrected border syntax */
    border-radius: 10px; /* Adds rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */

}



.cate-card {
  min-width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: white !important;
  
 
}

/* Mobile version adjustments */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .cate-card {
    min-width: 160px; /* Or adjust as needed for smaller screens */
    background-color: white !important;
    height: 150px; /* Or adjust as needed for smaller screens */
    border-radius: 8px; /* Slightly smaller radius for smaller screens */
    font-size: 50px;
  }
}



.image-name{
    position: absolute; bottom:2%; left: 50%;
    transform: translate(-50%, -50%); z-index: 3;
    color: black;
    font-weight: bold;
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); */
}



.center-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove default margin */
  }

  .center-button {
    padding: 15px 30px;
    font-size: 2.2em;
    background-color: #F09528;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .center-button:hover {
    background-color: #ad7025;
  }

  @media (max-width: 768px) {
    .center-button {
      padding: 12px 25px;
      font-size: 1.5em;
    }
  }


  .callBTN{
    color: white;
    background-color: #F09528;
    padding: 10px;
    border-radius: 10px;
    border: none;
  }

  .detail-part{
    background-color: white;
  }

  @media (max-width: 768px) {
            .detail-part{

                margin-top: 20px;

        }
  }


        #mobileSidebar.offcanvas {
  width: 300px; /* Adjust width as you like */
  max-width: 80vw; /* optional: max width relative to viewport */
}




.language-btn {
    font-size: 100px; /* adjust size as needed */
}


    /* Custom styles for the modal */
    .modal-content {
        background-color: transparent;
        border: none;
    }
    .modal-body {
        padding: 0;
    }
    .modal-dialog {
        max-width: 2500px;
    }

    /* Parallel layout for desktop */
    @media (min-width: 768px) {
        .show-product-contect-page .row {
            display: flex;
        }

        .show-product-contect-page .col-md-6:first-child {
            width: 50%;
        }

        .show-product-contect-page .col-md-6:last-child {
            width: 50%;
            padding-right: 20px; /* Add some padding for spacing */
        }
    }
    
    :root {
  --primary-color: #007bff;
  --text-color: #333;
  --background-light: #f7fafc;
  --card-background: #fff;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
}




/* Page container and content */
.product-page-container {
  padding: 2rem 1rem;
}

.product-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Carousel */
.product-carousel-container {
  position: relative;
}

.carousel-image,
.video-thumbnail {
  object-fit: contain;
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 600px;
}

.product-status-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  z-index: 10;
}

.carousel-control-next,
.carousel-control-prev {
  width: auto;
  opacity: 1;
}

.custom-carousel-icon {
  font-size: 2rem;
  color: white;
}

/* Thumbnails */
.product-thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  border-radius: 0.25rem;
  background-color: var(--card-background);
}

.product-thumbnail,
.product-video-btn {
  width: 70px;
  height: 70px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  padding: 0;
  background-color: var(--card-background);
}

.product-thumbnail.active-thumbnail {
  border-color: var(--primary-color);
}

.product-video-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Details */
.product-details-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  border-radius: 0.25rem;
  background-color: var(--card-background);
}

.product-info-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.info-label {
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
}

.info-value {
  margin-bottom: 0;
}

.info-divider {
  margin: 0.5rem 0;
  border-color: var(--border-color);
}

.product-description .info-label {
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-dialog {
  max-width: 600px;
}

.modal-content {
  background-color: var(--background-light);
  border: none;
  box-shadow: 0 4px 8px var(--shadow-color);
}

.modal-header {
  border-bottom: none;
}

.close-modal-btn {
  background: none;
  border: none;
  padding: 0;
}

.close-modal-btn i {
  font-size: 2.5rem;
  color: red;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-content-wrapper {
    padding: 0 0.5rem;
  }


}

  .cate-name-m {
font-size:25px;
  }


@media (max-width: 768px) {
  .cate-name-m {
font-size:16px;
  }
}


    #productCarousel {
        position: relative;
    }

    .carousel-indicators-custom {
        position: absolute;
        bottom: 0; /* Adjust as needed */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 10;
        gap: 8px; /* Adds space between thumbnails */
    }

    .carousel-indicators-custom .img-thumbnail {
        width: 80px; /* Set a fixed size for thumbnails */
        height: 80px;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s ease-in-out;
    }

    .carousel-indicators-custom .img-thumbnail.active-thumbnail {
        border-color: #0d6efd; /* Highlight color for active thumbnail */
    }

    /* Style the video thumbnail button to look like the others */
    .carousel-indicators-custom .product-video-btn {
        width: 80px;
        height: 80px;
        border: none;
        padding: 0;
        background: none;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-indicators-custom .product-video-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    
    .cate-card {
     background-color: white !important;
    border: none;
    display: block;
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.2s;
}

.cate-card:hover {
    transform: scale(1.03);
}

.cate-card.active {
    outline: .5px solid black;
}

.category-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border: none;
    display: block;
}


.cate-name-m {

    width: 100%;
    /*background: rgba(255, 255, 255, 0.8);*/
    text-align: center;
    font-weight: bold;

}
.cate-card {
    /* Optional: Sets a max height for the entire card if needed */
    height: 200px; 
    background-color: white !important;
    overflow: hidden;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .category-image {
        max-height: 150px;
    }

    .cate-card {
        padding: 8px;
        background-color: white !important;
    }

    .cate-name-m {
        font-size: 18px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .category-image {
        max-height: 150px;
        min-height: 140px;
        padding: 0;
    }

    .cate-card {
        
        height:200px;
    }

    .cate-name-m {
        font-size: 18px;
         width: 100%;
        
    }
}



.category-image {
    /* Ensures the image itself fills its container */
    width: 100%;

    object-fit: contain; /* Prevents the image from being distorted */
}

.cate-name-m {
    /* Sets a fixed height for the title area */
    height: 50px; 
    overflow: hidden; /* Hides any text that is too long */
    display: flex;
    align-items: center; /* Vertically centers the text */
    justify-content: center; /* Horizontally centers the text */
}


.category-row {
    display: flex;
    overflow-x: auto; /* allows horizontal scroll */
    gap: 10px;        /* horizontal spacing between cards */
    padding: 10px 0;
    scroll-behavior: smooth; /* optional: smooth scrolling */
}

/* Optional: hide scrollbar */
.category-row::-webkit-scrollbar {
    display: none;
}


.category-row {
    display: flex;
    overflow-x: auto; /* allows horizontal scroll */
    gap: 15px;        /* horizontal spacing between cards */
    padding: 10px 0;
    scroll-behavior: smooth; /* optional: smooth scrolling */
}

/* Optional: hide scrollbar */
.category-row::-webkit-scrollbar {
    display: none;
}

.category-row {
    display: flex;
    overflow-x: auto;   /* enable horizontal scroll */
    overflow-y: hidden;
    white-space: nowrap;
}

/* Show a thin scrollbar */
.category-row::-webkit-scrollbar {
    height: 8px;  /* scrollbar height */
}

.category-row::-webkit-scrollbar-track {
    background: #f1f1f1; /* track color */
}

.category-row::-webkit-scrollbar-thumb {
    background: #888;    /* scrollbar color */
    border-radius: 4px;
}

.category-row::-webkit-scrollbar-thumb:hover {
    background: #555;    
}

/* For Firefox */
.category-row {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}


    .carousel-image,
    .video-thumbnail {
        width: 100%;
        height: 500px; /* الطول ثابت لكل الصور */
        object-fit: contain; /* يضمن ظهور الصورة كاملة */
        background-color: white; /* لون خلفية للفراغات */
        object-position: center; /* يخلي الصورة بالوسط */
    }
    
    
    
    
    
    
    


    

