* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* Light Theme Colors */
    --main-bg: #fff;
    --main-color: #000;
    --main-bg-image: url(backgroundWebSite/backgroundWebSite1.jpg);
    --header-bg: #ea593c;
    --header-text: #000000;
    --header-hover: #3498db;
    --hero-bg: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
    --hero-text: #ffffff;
    --feature-color: #2cfa2c;
    --button-primary: #3498db;
    --button-hover: #2980b9;
    --cart-bg: #007bff;
    --grid-bg: rgba(255,255,255,0.1);
    --pattern-color: #9C92AC;
    --pattern-opacity: 0.1;
    --btn-txt-color:#ffffff;
    --btn-bg:#ea593c;
    --btn-txt-color-sc:#fff;
    --btn-bg-sc:#25b471;
    --product-details-bg:#ffffff;
    --cart-sidebar-bg : #fff;
    --cart-sidebar-items-bg: #ffffff;
    --modal-content:#ffffff;
    --offcanvas-body: rgb(255, 255, 255);
    --offcanvas-body: rgb(255, 255, 255);
    /* ================ قنات البحث ================== */
    --search-bg:rgba(255, 255, 255, 0.55);
    /* =============================================== */
    /*=============== اتصل بنا =========== */
    --contact-section: rgb(255,255,255);
    --form-control-bg:rgb(255, 255, 255);
    /* ==================================== */
    /* ============ carde ============ */
    --card-color-bg:#ffffff;
    --card-color:rgb(37, 37, 37);
    /* =============================== */
    /* ============form-select ================= */
    --form-select:rgb(51 134 149 / 75%);
    --form-select-txt: rgb(255, 255, 255);

    /* ========================================== */

    --color-carde-info: #007bff;
    /* =================================================== */
    --color1: #b9e651;
    --color2: #e9c482;
    --color3: rgb(253 150 107);
    --color4: rgb(200 194 114);
    --color5: rgb(189 153 116);
    --color6: rgb(241 119 32);
    --color7: rgb(253 184 13);
    --color8: rgb(255 240 164);

    /* =============================== */
    --cart-sidebar-h3 : #007bff;
    --btn-fine : blue;
    /* =============================== */
    /*==== order-summary ====*/
    --order-summary-bg:rgb(248, 249, 250);
    --order-summary-txt:black;
    --order-summary-titel:#007bff;
    --order-summary-border-color:rgb(0, 123, 255);
    /* ======================== */
    --category-link:#ea593c;
    --icone-dark-mode-white:#000000;
    /* ==================== */
    --text-title-head:#ea593c;
    /* ============================= */
    --nameOfproduct-bg:#ea593c4d;
    --nameOfproduct-txt:#ea593c;
    /* ++++++++++++++++ */
    --header-show:block;
}

/*rgb(6,19,77) rgb(85,48,217) */
/* الوضع الداكن */
body.dark {
    /* Dark Theme Colors */
    --main-bg: rgb(2,57,77);
    --main-color: #e0e0e0;
    --main-bg-image: url(backgroundWebSite/backgroundWebSiteDark.jpg);
    --header-bg: rgb(77, 77, 77);
    --header-text: #ffffff;
    --header-hover: #64b5f6;
    --hero-bg: linear-gradient(135deg, #0d0d0d 0%, #1e1e1e 100%);
    --hero-text: #f5f5f5;
    --feature-color: #00e676;
    --button-primary: #2962ff;
    --button-hover: #448aff;
    --cart-bg: #1e88e5;
    --grid-bg: rgba(255, 255, 255, 0.05);
    --pattern-color: #7e57c2;
    --pattern-opacity: 0.1;
    --btn-txt-color:#ffffff;
    --btn-bg:#4c4083;
    --btn-txt-color-sc:#fff;
    --btn-bg-sc:#4d886c;   
    --cart-sidebar-bg : #5b5b5b;
    --cart-sidebar-items-bg:#3e3e3e;
    --product-details-bg:#444444bf;
    --offcanvas-body: rgb(75, 75, 75);
    --modal-content:#4b4b4be6;
    --offcanvas-body: rgb(75, 75, 75);
    /* ================ قنات البحث ================== */
    --search-sssssbg: rgb(018, 067, 139);
    
    --search-bg: rgb(88 88 88 / 58%);
    /* =============================================== */
    --product-bg:#3d3d3d73;
    /*=============== اتصل بنا =========== */
    --contact-section:#212529;
    --form-control-bg:#585858;
    /* ==================================== */
    /* ============ carde ============ */
    --card-color-bg:#5e5e5e52;
    --card-color:white;
    --txt-muted:rgb(149 202 255);
    /* =============================== */
    background-color: var(--main-bg);
    color: var(--main-color);
    /* ============form-select ================= */
    --form-select:rgb(66 66 66);
    --form-select-txt: rgb(255, 255, 255);
    /* ========================================== */

    --color-carde-info: #6d97c5;
   /* =================================================== */
   --color1: #7d7d7d8b;
   --color2: #8a8a8a8c;
   --color3: rgba(44, 44, 44, 0.406);
   --color4: rgba(99, 99, 99, 0.462);
   --color5: rgba(108, 108, 108, 0.758);
   --color6: rgba(139, 139, 139, 0.391);
   --color7: rgba(170, 170, 170, 0.253);
   --color8: rgba(116, 116, 116, 0.537);
   /* =============================== */
   --cart-sidebar-h3 : #bababa;
   --btn-fine : #28a745;
   /* =============================== */
   /*==== order-summary ====*/
   --order-summary-bg:rgba(39, 39, 39, 0.776);
   --order-summary-txt:rgb(157, 157, 157);
   --order-summary-titel:#c8c8c8;
   --order-summary-border-color:rgba(136, 136, 136, 0.864);
   /* ======================== */
   --category-link:rgba(149, 149, 149, 0.791);
   --icone-dark-mode-white:#fff;
   /* ================================ */
   --text-title-head:white;
   /* ===================================== */
   --nameOfproduct-bg:transparent;
    --nameOfproduct-txt:#d1d1d1;
    /* ================ */
    --header-show:block;
}
.stA{
    background-color: var(--category-link) !important;
}
.text-whites {
    color: var(--text-title-head) !important;
}
.icone-dark-mode-white{
    color: var(--icone-dark-mode-white) !important;
    background: transparent;
    border: 0;
}
.category-link {
    color: var(--category-link);
    font-size: 2.4rem;
    font-weight: 600;
    font-weight: bold;
    width:fit-content;
    text-decoration: none;
    text-transform:uppercase;
}

.category-link {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.category-link::after {
    content: '';
    background: var(--category-link);
    position: absolute;
    right: 50%;
    bottom: -1px;
    height: 0.2em;
    width: 50%;
    transition: all 0.3s ease;
}

.category-link:hover::after {
    right: 0;
    width: 100%;
    height: 0.2em;
    bottom: 0;
}
.bg-primary {
    background-color: var(--offcanvas-body) !important;
    color: var(--main-color) !important;
}
.text-primary {
    color: var(--main-color) !important;
}
/* ============================== */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: currentColor; /* أو حدد لون معين مثل #000 */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 60%; /* يمكنك تغيير العرض حسب رغبتك */
}


/* ================================= */
.product-name{
    color:var(--main-color) !important;
}
.order-form{
    background-color: var(--product-details-bg) !important;
}
.main-image{
    background-color: var(--product-details-bg) !important;
}
.thumbnail-images .image-wrapper {
    background-color: var(--product-details-bg) !important;
}
.modal-content{
    background-color: var(--modal-content); /* --modal-content:#39629d; */
}
.offcanvas-body{
    background-color: var(--offcanvas-body);
}
.categories-dropdown {
    background-color: var(--main-bg) !important;
    color: var(--main-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color1) rgba(0, 0, 0, 0.1);
}

.categories-dropdown::-webkit-scrollbar {
    width: 6px;
}

.categories-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.categories-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--color1);
    border-radius: 3px;
}

.categories-dropdown .dropdown-item {
    color: var(--main-color);
    padding: 10px 20px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-dropdown .dropdown-item:hover {
    background-color: rgba(var(--color1-rgb), 0.1);
    color: var(--color1);
    transform: translateX(5px);
    border-left: 3px solid var(--color1);
    text-decoration: none;
}

.categories-dropdown .dropdown-item:active {
    background-color: rgba(var(--color1-rgb), 0.2);
}

.categories-dropdown .dropdown-item i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.categories-dropdown .dropdown-item:hover i {
    transform: scale(1.1);
}
.form-select{
    background: var(--form-select);
    color: var(--form-select-txt);


}
.card-body {
    background-color: var(--card-color-bg) !important;
    color: var(--card-color) !important;
}
.card {
    background:var(--card-color-bg) ;
    color: var(--card-color);
}
.text-muted {
    --bs-text-opacity: 1;
    color: var(--txt-muted) !important;
}
.main{
    /* background:var(--main-bg); */
    background-image: var(--main-bg-image) !important; /* --main-bg-image */
    background: fixed;
}
.search-section{
    /* background: linear-gradient(139deg, #23668b8f 0%, #89c2ffb0 100%) !important; */
    border-radius: 25px;
    margin-bottom: 10px;
    background:var(--search-bg) !important;
}
.form-control{
    background-color: var(--form-control-bg) !important;
    color:var(--main-color)!important;
}
.form-control::placeholder{
    color:var(--main-color);
}
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    background-color: var(--main-bg);
    background-image: linear-gradient(to right, var(--grid-bg) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--grid-bg) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--main-color) !important; /* النص */
    padding-top: 80px;
}

header {
    background-color: var(--header-bg) !important ; 
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--pattern-opacity);
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color, rgba(0,0,0,0.1));
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 78px;
    height: 50px;
    width: 60px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    scale: 2;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--header-text) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--header-hover);
}

.cart-icon {
    cursor: pointer;
}

.search-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-container input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
    transition: width 0.3s ease;
}

.search-container input:focus {
    width: 250px;
    outline: none;
}

.search-container button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #2980b9;
}

.hero {
    background: var(--hero-bg);
    padding: 4rem 5%;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin : 0 !important;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--hero-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--hero-text);
    margin-bottom: 1.5rem;
}

.hero-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    color: var(--feature-color);
}

.hero-features .feature i {
    margin-left: 10px;
    font-size: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    /* padding: 12px 24px; */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background:var(--btn-bg-sc);
    color:var(--btn-txt-color-sc);
    border-radius:20px !important;
    border: 0;
}
.btn:hover {
    background-color: var(--btn-bg-sc) !important;
    opacity: 0.8;
}
.btn-primary {
    background-color: var(--btn-bg) !important;
    color: var(--btn-txt-color) !important;
    border-radius:20px !important;
    border: 0;
}
.nameOfproduct {
    background: var(--nameOfproduct-bg);
    color: var(--nameOfproduct-txt);
    
    border-radius: 15px;
    width: fit-content;
    padding: 1px 15px;
}
.priceOfproduct {
    color: #ea593c!important;
}
.descriptionOfproduct{
    color: var(--main-color) !important;
}
.btn-primary:hover {
    background-color: var(--btn-bg) !important;
    opacity: 0.8;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide hero image on mobile devices */
@media (max-width: 767.98px) {
    .hero-image {
        display: none !important;
    }
    .category-link{
        display:none !important;
    }
}

.product-grid {
   background-color: var(--search-bg); 
   
    align-items: end;
    gap: 20px;
    border-radius: 25px;
}
.product-category {
    display:flex;
    flex-direction: row;
    flex-wrap : wrap;
}
.product-card {
    width: 100%;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive adjustments for product cards */
@media (max-width: 767.98px) {
    .product-card {
        max-width: 100%;
        margin: 10px 0;
    }
    /* .product-category div {
        max-width: 228.20px !important;
    } */
    
    .product-card .card-img-top {
        height: 200px !important;
    }
    
    .product-card .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .product-card .card-body .mt-3 {
        margin-top: auto;
        width: 100%;
    }

    .product-card .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    background-color: var(--product-details-bg) !important;
    color:var(--main-color);
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info .description {
    color: #666;
    margin-bottom: 10px;
}

.product-info .category {
    color: var(--color-carde-info);/*--color-carde-info: #007bff;*/
    margin-bottom: 10px;
}

.product-info .price {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.product-info .quantity {
    color: #6c757d;
    margin-bottom: 10px;
}

.product-info button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-info button:hover {
    background-color: #0056b3;
}

.product-info button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.cart {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 300px;
    max-height: 70vh;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 15px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.cart h2 {
    text-align: center;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cart #cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart #cart-items div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cart #cart-items div button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart #cart-items div button:hover {
    background-color: #c82333;
}

.cart #cart-total {
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
    color: #28a745;
}

.cart button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart button:hover {
    background-color: #0056b3;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.cart-actions button {
    width: 48%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-clear {
    background-color: #dc3545;
    color: white;
}

.cart-checkout {
    background-color: #28a745;
    color: white;
}

.contact-section {
    padding: 2rem 5%;
    background-color: var(--contact-section);
    border-radius: 25px;
    margin-top: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--product-details-bg) !important;
}
form input::placeholder{
    color:var(--main-color);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Product Categories Styling */
.product-category {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--product-bg);
    border-radius: 8px;
}
.product-category div {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.product-category div:hover {
    transform: scale(1.05);
}
.category-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.category-products {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-card {
    width: calc(24% - 1rem);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--product-details-bg) !important; /* --product-details-bg:#39629d; */
    border-radius: 20px;
    margin: 15px;
}
.card-body[more="true"]{
    background: var(--btn-bg) !important;
    color: var(--btn-txt-color) !important;
}

.view-more-tile a{
    background-color: var(--btn-bg) !important;
    /* color: var(--btn-bg) !important; */
}
.product-details h3 {
    margin-bottom: 0.5rem;
    color: #333;
   
}

.product-details .description {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-meta .price {
    font-weight: bold;
    color: var(--color-carde-info);
}

.product-meta .quantity {
    color: #28a745;
}

.product-card button {
    width: 100%;
    padding: 0.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #0056b3;
}

.product-card button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Cart Floating Icon Styles */
.floating-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-cart-icon:hover {
    transform: scale(1.1);
}

.floating-cart-icon span {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background-color: var(--cart-sidebar-bg) !important;  /* --cart-sidebar-bg : #fff */
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    padding: 20px;
    overflow-y: auto;
}

.cart-sidebar.show {
    right: 0; /* Slide in when shown */
}

.cart-sidebar-close {
    position: absolute;
    top: 0%;
    right: 90%;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-sidebar-close:hover {
    color: #a71d2a;
}

.cart-sidebar h3 {
    border-bottom: 2px solid var(--cart-sidebar-h3); /* --cart-sidebar-h3 : #007bff */
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--cart-sidebar-h3);
}

#cart-sidebar-items {
    max-height: 60vh;
    overflow-y: auto;
}

#cart-sidebar-items > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--cart-sidebar-items-bg) !important; 
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#cart-sidebar-items > div button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#cart-sidebar-items > div button:hover {
    background-color: #c82333;
}

#cart-sidebar-total {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: left;
    margin: 15px 0;
    color: #28a745;
}

.cart-sidebar button.checkout-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-sidebar button.checkout-btn:hover {
    background-color: #0056b3;
}

/* Overlay for cart sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media screen and (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    header {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

.btnfine {
    color: white;
    background: var(--btn-fine); 
    border: 0;
    padding: 10px;
    border-radius: 10px;
}

.order-confirmation-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.confirmation-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirmation-content i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 15px;
}

.confirmation-content h4 {
    margin-bottom: 15px;
    color: #333;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 20px;
}

.confirmation-content .btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.confirmation-content .btn:hover {
    background-color: #0056b3;
}
.btn-spinner{
    border-radius: 0 !important;
    border: 0 !important;
    background-color: var(--btn-bg) !important;
    color: var(--btn-txt-color) !important;
}
input[type="number"]{
    margin: 0 !important;    
}
