

:root {
    --color-primary: #212e60;
    --color-secondary: #fed742;
    --color-tertiary: #192245;
    --color-background: #FFFFF0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Tajawal", sans-serif;
    background-color: var(--color-background);
}

header {
    background-color: var(--color-primary);
    color: white;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.logo-container img {
    max-height: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 2px;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.store-info {
    margin-right: 10px;
    text-align: right;
    width: 100%;
}

.store-info h1 {
    font-size: 1.5rem;
    margin: 0;
    font-family: "Tajawal", sans-serif !important;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.header-btn.header-btn-phone {
    font-size: 1.3rem;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar input {
    font-family: "Tajawal", sans-serif !important;
    flex-grow: 1;
    padding: 6px 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
}

.search-bar button {
    background-color: var(--color-secondary);
    border: none;
    padding: 11px 12px;
    cursor: pointer;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-filter {
    background-color: var(--color-tertiary);
    padding: 0px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) var(--color-tertiary);
}

.category-filter::-webkit-scrollbar {
    height: 6px;
}

.category-filter::-webkit-scrollbar-track {
    background: var(--color-tertiary);
}

.category-filter::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 3px;
}

.category-filter .btn {
    font-family: "Tajawal", sans-serif !important;
    padding: 4px 8px;
    border-radius: 0px;
    color: white;
    font-size: 1.3rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-filter .btn:hover {
    background-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    color: var(--color-primary);
}

.btn.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-outline-primary {
    color: white;
    border-color: transparent;
}

.container {
    max-width: 98%;
    margin-top: 160px;
}

/* Scroll Container Styles */
.scroll-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(to bottom, var(--color-secondary) 5%,  transparent);
    border-radius: 8px;
    margin-top: 15px;
    overflow: hidden;
    z-index: 0;
    height: 450px;
    width: 100%;
}

.scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../gif/stars.gif') repeat;
    background-size: 180px 180px;
    opacity: 0.7;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 1;
    pointer-events: none;
}

.category-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 10px;
    gap: 15px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 2;
    width: 100%;
    position: relative;
}

/* Cards Grid Styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin-top: -225px;
    z-index: 5;
    position: relative;
    background-color: transparent;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-img-top-container {
    height: 225px;
    overflow: hidden;
    position: relative;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    padding: 0px;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 19px;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 14px;
    color: #555;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

.price-badge {
    font-size: 25px;
    font-weight: bold;
    color: #B12704;
    margin: 5px 0;
    text-align: center;
}

.percentage_discount {
    font-size: 15px;
}

.oldprice {
    font-size: 18px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.btn-whatsapp, .btn-phone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 3px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.btn-whatsapp {
    background: var(--color-primary);
    color: #f7f7f7;
}

.btn-whatsapp:hover {
    background: #f7f7f7;
    color: var(--color-primary);
}

.btn-phone {
    font-size: 18px;
    background: var(--color-primary);
    color: #f7f7f7;
}

.btn-phone:hover {
    background: #f7f7f7;
    color: var(--color-primary);
}

.card-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    color: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: scale(1.05);
}

.slideshow {
    max-width: 100%;
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin: 5px auto;
    border-radius: 8px;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
}

#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 22px;
    border: none;
    outline: none;
    background-color: rgba(128, 128, 128, 0.7);
    color: white;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s;
    text-decoration: none;
}

#scroll-to-top:hover {
    background-color: var(--color-secondary);
}

#scroll-to-top.show {
    display: block;
}

.bodyback {
    background-color: var(--color-background);
    padding-top: 10px;
}

.footer-about-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0px;
    box-sizing: border-box;
}

.footer-about-container {
    background: var(--color-primary);
    padding: 25px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    margin: 0 auto 20px;
    color: white;
    border-top: 3px solid var(--color-secondary);
}

.footer-about-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    cursor: pointer;
    border: 2px solid var(--color-secondary);
}

.footer-about-container h1 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: var(--color-secondary);
    font-family: "Tajawal", sans-serif;
}

.footer-about-container p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 8px 0;
    color: #f7f7f7;
}

.social-links-horizontal {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-links-horizontal a {
    font-size: 1.1rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
    padding: 8px;
    background-color: var(--color-tertiary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links-horizontal a:hover {
    transform: scale(1.1);
    color: var(--color-secondary);
    background-color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.phone-horizontal {
    color: white;
    background-color: var(--color-primary);
}

.phone-horizontal:hover {
    color: var(--color-secondary);
    background-color: var(--color-tertiary);
}

.oldprice {
    color: black;
    text-decoration: line-through;
}

.percentage_discount {
    color: white;
    margin-right: 3px;
    background: #28a745;
    border-radius: 3px;
    padding: 0px;
}

/* Category Cards Styles */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    width: 150px;
    flex-shrink: 0;
}

.category-card-image {
    position: relative;
    height: 150px;
    width: 150px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card:hover .category-card-image {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-title {
    color: var(--color-primary);
    font-family: "Tajawal", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 15px 0 0 0;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-card-title {
    color: var(--color-secondary);
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.scroll-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--color-secondary);
}

.btn-info {
    flex: 1;
    min-width: 120px;
    padding: 4px;
    color: white;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .scroll-container {
        height: 300px;
    }
    
    .cards-grid {
        margin-top: -130px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .category-card {
        width: 130px;
    }
    
    .category-card-image {
        height: 120px;
        width: 120px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .store-info h1 {
        font-size: 1.2rem;
    }

    .social-links a {
        font-size: 1rem;
    }

    .header-btn.header-btn-phone {
        font-size: 0.8rem;
    }

    .search-bar {
        order: 2;
        width: 100%;
        margin: 4px 0 0 0;
        max-width: 100%;
        font-size: 0.9rem;
    }

    .category-filter {
        order: 3;
        width: 100%;
        padding: 0px;
    }

    .category-filter .btn {
        padding: 2px 4px;
        font-size: 1rem;
    }
    
    .scroll-container {
        height: 280px;
    }
    
    .cards-grid {
        margin-top: -120px;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        width: 120px;
    }
    
    .category-card-image {
        height: 110px;
        width: 110px;
    }
    
    .card-img-top-container {
        height: 180px;
    }

    .card-title {
        font-size: 17px;
        min-height: 38px;
    }

    .card-description {
        font-size: 12px;
        min-height: 54px;
    }

    .price-badge {
        font-size: 22px;
    }
    
    .percentage_discount {
        font-size: 11px;
    }

    .oldprice {
        font-size: 14px;
    }

    .btn-whatsapp, .btn-phone {
        font-size: 12px;
        padding: 6px;
    }
    
    @media (min-width: 768px) {
        .slideshow {
            height: 250px;
            margin: 5px auto;
            margin-top: 125px;
        }
    }
}

@media (max-width: 576px) {
    .scroll-container {
        height: 250px;
    }
    
    .cards-grid {
        margin-top: -110px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .category-card {
        width: 100px;
    }
    
    .category-card-image {
        height: 90px;
        width: 90px;
    }
    
    .scroll-btn {
display: none;
    }
    
    .card-img-top-container {
        height: 150px;
    }

    .card-title {
        font-size: 17px;
        min-height: 34px;
    }

    .card-description {
        font-size: 11px;
        min-height: 48px;
    }

    .price-badge {
        font-size: 22px;
    }
    
    .percentage_discount {
        font-size: 12px;
    }

    .oldprice {
        font-size: 15px;
    }
    
    .btn-whatsapp, .btn-phone {
        font-size: 11px;
        padding: 5px;
    }
    
    .footer-about-container {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .footer-about-container h1 {
        font-size: 1.1rem;
    }
    
    .footer-about-container p {
        font-size: 0.7rem;
    }
    
    .social-links-horizontal {
        gap: 10px;
        margin: 15px 0;
    }
    
    .social-links-horizontal a {
        font-size: 0.9rem;
        padding: 6px;
        width: 35px;
        height: 35px;
    }
    
    .slideshow {
height: 150px;
        margin: 5px auto;
        margin-top: 185px;
    }
}

@media (max-width: 400px) {
    .scroll-container {
        height: 230px;
    }
    
    .cards-grid {
        margin-top: -115px;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .category-card {
        width: 80px;
    }
    
    .category-card-image {
        height: 70px;
        width: 70px;
    }
    
    .category-card-title {
        font-size: 0.8rem;
    }

.scroll-btn {
    display: none;
}
}