html,
body {
    height: 100%;
    margin: 0;
    background: #fb639c;
    font-family: Arial, sans-serif;
}

.app-wrapper {
    max-width: 480px;
    margin: auto;
    padding-bottom: 2rem;
}

.category-buttons-wrapper {
    position: sticky;
    top: 100px;
    z-index: 9;
    padding: 0.5rem 1rem;
}

.category-buttons {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: none;
}

.category-buttons::-webkit-scrollbar {
    display: none;
}

.category-buttons button {
    background-color: white;
    color: #000;
    border: none;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 999px;
    transition: all 0.2s ease-in-out;
}

.category-buttons button.active {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.category-buttons .btn-dark {
    background-color: #000 !important;
    color: white !important;
}

.category-grid .category-btn {
    margin-bottom: 1rem;
    background-color: white;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-grid .category-btn.active {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.product-section {
    background-image: linear-gradient(to bottom, #f28ab3, #fb639c);
    width: 100%;
}

.section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
    padding-top: 12px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 100%;
    height: 1.5px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.product-card {
    background-color: white;
    border-radius: 20px;
    margin-bottom: 1rem;
    padding: 0.8rem;
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.15);
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    background: white;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}


.product-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.product-card .desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 3px;
    line-height: 1.2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .price {
    font-weight: bold;
    font-size: 14px;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border-radius: 2px 0 9px 2px;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.whatsapp-icon-circle {
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.whatsapp-text {
    color: white;
    font-size: 10px;
    line-height: 1;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    text-decoration: none;
}

.draggable-modal::before {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 10px;
    margin: 10px auto 0;
}

.row.g-3 {
    margin-bottom: 0.5rem;
}

.modal-dialog-bottom {
    position: fixed;
    bottom: 0;
    margin: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    top: 60px; /* <-- أضف هذا السطر */
    max-height: calc(100vh - 60px); /* <-- أضف أو عدله حسب ما هو موجود عندك */
}

.modal-price {
    border-radius: 50px 50px 0 0 !important;
    margin:auto;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:98%;
    box-shadow: 1px -2px 20px rgba(0, 0, 0, 0.3) !important;
}

.modal-content {
    padding: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.modal .carousel-inner {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.modal .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    padding: 0;
    margin: 0 auto;
    display: block;
}

.modal .px-4.pt-2 {
    padding-top: 0.5rem !important;
}

.product-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 18px 1rem;
    box-sizing: border-box;
}

.product-carousel .product-card:first-child {
    margin-left: 6px;
}

.product-carousel .product-card:last-child {
    margin-right: 6px;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
}

.category-btn {
    background-color: white;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-btn.active {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.modal .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: white;
}

#languageModal .modal-content {
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #fb639c;
    padding: 2rem 1.5rem 2.5rem;
}

#languageModal h5 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 20px;
    margin-bottom: 1.5rem;
}

#languageModal .btn {
    border-radius: 999px;
    padding: 16px 20px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #fb639c;
    color: #fb639c;
    transition: all 0.3s ease;
}

#languageModal .btn:hover {
    background-color: #fb639c;
    color: white;
    border-color: #fb639c;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(251, 99, 156, 0.2);
}

#languageModal .d-grid {
    gap: 1rem;
    margin-bottom: 1rem;
}

.description-scroll {
    /* max-height: 120px;
    overflow-y: auto;
    padding-right: 4px; */
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.description-scroll::-webkit-scrollbar {
    width: 5px;
}

.description-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

footer {
    font-size: 13px;
    color: #fff;
    background: transparent;
}
footer a {
    color: inherit;
}
footer a:hover {
    color: #fff;
    text-decoration: underline;
}
