
html{
    scroll-behavior: auto !important;

}
@media (max-width: 768px){
    .headerDiv h3{
        font-size: .8rem !important;
        position: absolute;
        left: 70px !important;
    }
    .headerDiv{
        height: 68px;
    }
    .category{
        justify-content:start !important;
    }
    #categories .row{
        justify-content: center !important;
    }
    #cartModal{
        height: 100% !important;
    }

}
@keyframes bound {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
.cartActive{
    position: absolute;

    background-color:  #25d466;

    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    opacity: 1;
    animation: bound 2s ease-in-out infinite;
    left: 5px;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease-in;
    font-size: 15px;
    font-weight: 500;
    width: 200px;
    height: 40px;
}
.cartActive *{
    color: inherit;
    stroke: currentColor;
    fill: currentColor;
}
.cartActive h2 {
    font-size: inherit;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.cartActive .cartCount {
    position: absolute;
    right: -1px;
    top: -9px;
    background-color: rgb(86, 60, 41);

    border-radius: 50%;
    width: 16px;
    justify-content: center;
    display: flex
;
}
.search-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
    position: relative;
    background-color: white;
    border-radius: 10px;
}
.search-container input {
    width: 100%;
    background-color: #fbfaf9;
    padding: 12px 45px 12px 20px; border-radius: 10px;
}
.search-container svg {
    position: absolute;
    top: 33px;
    right: 28px;
}
.product-item.hidden {
    display: none !important;
}

.category-section.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}
main{
    width: 100%;
}
* {
    margin: 0;
    padding: 0;
}
.headerDiv {
    position: sticky;
    top: 0;
    width: 100%;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: top, transform;
    z-index: 50;
    background-color: rgb(86, 60, 41);

    /* الخلفية (Gradient) */
    background-image: linear-gradient(
            to right,
            rgb(193, 102, 37),
            rgb(86, 60, 41),
            rgba(193, 102, 37, 0.8)
    );

    /* حدود شبه شفافة باللون الأساسي */
    border-bottom: 0.8px solid rgba(193, 102, 37, 0.3);

    /* ظل أنيق وخفيف */
    box-shadow:
            rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
            rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;

    /* إعدادات الخط والاتجاه */
    direction: rtl;
    font-family: "Tajawal", "Noto Sans Arabic", "Cairo", system-ui, sans-serif;
    color: rgb(46, 37, 31);

    /* تنسيقات عامة */
    box-sizing: border-box;
    text-size-adjust: 100%;
    padding: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#categories .row{
    justify-content: start ;
}
.headerDiv .circlePhoto{
    position: absolute;
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
}
.headerDiv h3{
  color: white;
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
}
/* الطبقة الشفافة فوق الخلفية */
.headerDiv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom right,
            rgba(255, 200, 150, 0.15),
            rgba(255, 230, 180, 0.1),
            rgba(255, 255, 200, 0.15)
    );
    pointer-events: none;
}
.headerDiv .cart{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    width: 100px;
    height: 40px;
    position: absolute;

    left: 5px;
    background-color: white;
border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease-in;
    font-size: 15px;
    font-weight: 500;
    color: rgb(0 0 0);
    border: white 1px solid;

}
.headerDiv .cart * {
    color: inherit;
    stroke: currentColor;
    fill: currentColor;
}
.headerDiv .cart h2 {
    font-size: inherit;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.headerDiv .cart:hover{
    background-color: #563c29;
    color: white;
}
@keyframes hoverFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate-float {
    position: relative;
    top: 10%;
    transform: translate(-50%, -50%);

    animation: hoverFloat 2.5s ease-in-out infinite;
}
.category{
    text-decoration: none;
    background-color: white;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function:
            cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-weight:500;
    min-width: fit-content;
    color: rgb(46, 37, 31);
    cursor: pointer;
padding: 12px;
    border-radius: 0.75rem;
    margin: 5px 10px;
    width: fit-content;

}
.category img{
    height: 30px;
    margin-left: 10px;
}
.category *{
    color: inherit;
    stroke: currentColor;
    fill: currentColor;
}
.category:hover{
    background-color: rgb(86, 60, 41);
    color: white;
}
.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    --tw-shadow-colored: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
}

.rowWithOutWrap{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
}
.product-card {
    position: relative;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}
.addCart{
    background-color: rgb(193, 102, 37);
    background-image:linear-gradient(135deg, rgb(193, 102, 37), rgb(227, 141, 79)) ;
    cursor: pointer;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke ,opacity;
    transition-timing-function:
            cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    color: white;
    font-weight: 500;
border-radius: 10px;
    padding: 5px 12px;
    opacity:1;
}
.addCart:hover{
    background-image: linear-gradient(135deg, rgb(193, 102, 37), rgb(227, 141, 79));
    background-color: #c16625e6;
    opacity: .9;
}
.product-card .description{
    color: #847062;
    font-size: 14px;
    font-weight: 500;
}
.product-card .price{
    color: #c16625;
    font-size: 18px;
    font-weight: bold;
    display: contents;
}
.product-card .title{
    color: #563c29;
    font-size: 18px;
    font-weight: bold;
}
/* الصورة */
.product-card img {
    transition: transform 0.5s ease;
}

/* التأثير عند المرور */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* الصورة تكبُر بسلاسة */
.product-card:hover img {
    transform: scale(1.08);
}

/* نصوص الكارت */
.product-card .card-body {
    transition: color 0.3s ease;
}

.product-card:hover .card-body {
    color: #563c29; /* لونك الأساسي لو حابب */
}

/* ===== المودال الرئيسي ===== */
#productModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeUp 0.4s ease-out;
}

/* ===== صورة المنتج ===== */
#productModal img {
    border-radius: 15px;
    transition: transform 0.5s ease;
}

#productModal img:hover {
    transform: scale(1.05);
}

/* ===== العنوان والسعر ===== */
#productModal .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #563c29;
}

#productModal .fw-bold {
    color: #c16625;
    font-size: 1.1rem;
}

/* ===== أزرار الكمية ===== */
#productModal .input-group button {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#productModal .input-group button:hover {
    background-color: #563c29;
    color: #fff;
}

/* ===== زر "إضافة إلى السلة" ===== */
#productModal #addToCartBtn {
    background-color: #c16625;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#productModal #addToCartBtn:hover {
    background-color: #563c29;
    transform: translateY(-2px);
}

/* ===== أنيميشن ظهور المودال ===== */
@keyframes modalFadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
#productModal .modal-body {
    padding: 1.5rem;
    text-align: center;
}
#cartModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.scrollUp{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color:  rgb(46, 37, 31);
    background-image: linear-gradient(
            to bottom,
            rgb(193, 102, 37),
            rgb(86, 60, 41),
            rgba(193, 102, 37, 0.8)
    );
    color: #fff;
    font-size: 30px;
    text-align: center;
    line-height: 50px;
}
.footer-section {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
    padding: 50px 0 20px;
    margin-top: 60px;
    direction: rtl;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-block h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-section h3 {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.store-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.working-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    background: rgba(255,255,255,0.5);
    padding: 12px;
    border-radius: 8px;
}

.working-hours svg {
    color: #e67e22;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon {
    background: #ffecd1;
}

.location-icon {
    background: #ffd4c4;
}

.contact-item span {
    color: #555;
    font-size: 15px;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-whatsapp, .btn-call {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-call {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #dee2e6;
}

.btn-call:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.services-list li:hover {
    background: rgba(255,255,255,0.8);
    transform: translateX(-5px);
}

.services-list svg {
    color: #27ae60;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(0,0,0,0.1);
    margin-top: 30px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-whatsapp, .btn-call {
        width: 100%;
    }
}
