@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #000;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.hero {
    background: url('navadamaphoto.adama.webp') no-repeat center center/cover;
    color: #000;
    padding: 8rem 2rem;
    text-align: left;
    height: 580px;
    display: flex;
    align-items: center;
}

.hero h1 {
    margin-left: 1rem;
    font-size: 5.5rem;
    margin-bottom: 1rem;
    color: #000;
    line-height: 1.3;
}

.hero h1 span {
    color: #151335;
    font-size: 6rem;
}

.hero .btn {
    position: absolute;
    bottom: 7.5rem;
    margin-left: 5rem;
    padding: 0.7rem 1.5rem;
    background-color: #151335;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.hero .btn:active {
    background-color: #f1c40f;
    color: #151335;
}

.categories-section {
    padding: 20px;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.categories-grid {
    display: grid;
}

.categories-wrapper {
    display: none;
}

.categories-wrapper.tablet {
    display: none;
}

.cate {
    margin-left: 2rem;
    margin-right: 2rem;
}

.categories-section h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 10px 0;
    justify-items: center;
}

.categorie {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.categorie:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.categorie img {
    width: 190px;
    height: 190px;
    border-radius: 8px;
    margin-bottom: 7px;
}

.categorie h2 {
    margin-top: 0;
    font-size: 0.9rem;
    color: #000;
}

.produits-section {
    margin-bottom: 1.5rem;
    background-color: #fff;
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 10px;
}

.margin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.voir-tout {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: #000;
    text-decoration: none;
    margin-bottom: 5px;
}

.voir-tout i {
    margin-top: 2px;
    margin-left: 5px;
    vertical-align: middle;
    font-size: 0.8rem;
}

.produits-section h2 {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: black;
}

.produits {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 0 20px;
}

.produit {
    max-width: 200px;
}

.produit:hover {
    transform: translateY(-1px);
}

.image-container {
    position: relative;
    display: inline-block;
}

.discount-badge {
    position: absolute;
    background: #151335;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.8em;
    margin-left: 5px;
    top: 2px;
    right: 2px;
    z-index: 10;
}

.produit img {
    max-width: 100%;
    width: 190px;
    height: 190px;
    position: relative;
}

.produit p {
    font-size: 0.8rem;
    color: #000;
    padding-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-display {
    font-size: 0.8rem;
    color: #f1c40f;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.note-text {
    font-size: 0.75rem;
    color: #000;
    padding-left: 5px;
    display: flex;
    align-items: center;
}

.price-display {
    margin-top: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.75rem;
    display: inline-block;
    margin-left: 5px;
}

.current-price,
.normal-price {
    color: #000;
    font-size: 0.95rem;
    font-weight: bold;
}

.flash-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.time-remaining {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 10;
}

.time-progress {
    height: 100%;
    background-color: #ff4757;
    width: 100%;
    transition: width 1s linear;
}

.flash-alert {
    background-color: #ff4757;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-align: center;
    animation: pulse 1s infinite;
    margin-top: 5px;
    width: 100%;
    max-width: 190px;
}

.flash-alert i {
    margin-right: 3px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-bottom {
    width: 100%;
    min-width: 1200px;
    max-height: 220px;
    background: #fff;
}

.cookie-modal-content {
    background: #fff;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-modal-overlay.show .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    color: white;
    text-align: center;
    background: #fff;
    padding-top: 15px;
    padding-left: 25px;
    padding-bottom: 15px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-align: left;
}

.cookie-modal-body {
    padding: 10px;
    padding-left: 50px;
    padding-right: 50px;
    color: #000;
    background: #fff;
}

.cookie-modal-body p {
    line-height: 1.6;
    font-size: 0.9rem;
}

.cookie-modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.cookie-modal-body li {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 15px;
}

.cookie-modal-footer {
    margin-bottom: 20px;
    padding-top: 5px;
    text-align: right;
    justify-content: right;
    padding-right: 30px;
}

.cookie-accept-btn {
    background: #151335;
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.no-items i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #bdc3c7;
}

@media (max-width: 480px) {
    * {
        overflow-x: hidden;
    }

    body {
        background-color: #f5f5f5;
    }

    .hero {
        display: none;
    }

    .categories-section {
        padding: 5px;
        margin-bottom: 1rem;
    }

    .cate {
        margin-left: 0;
        margin-right: 0;
    }

    .categories-section h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .categories-grid {
        display: none !important;
    }

    .categories-wrapper.tablet {
        display: none !important;
    }

    .categories-wrapper.mobile {
        display: block !important;
        position: relative;
    }

    .categorie {
        padding: 0;
        background-color: #ffffff;
        border: none;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
    }

    .categorie:hover {
        transform: none;
        box-shadow: none;
    }

    .categorie img {
        width: 170px;
        height: 150px;
        margin-bottom: 5px;
    }

    .categorie h2 {
        margin-top: 0;
        font-size: 0.8rem;
        color: #000;
    }

    .categories-scroller {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .categories-scroller::-webkit-scrollbar {
        display: none;
    }

    .page {
        scroll-snap-align: start;
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
        box-sizing: border-box;
    }

    .page.active {
        display: grid;
    }

    .pagination-buttons {
        display: flex;
        justify-content: center;
        margin-top: 5px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
        background-color: #bbb;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .dot.active {
        background-color: #151335;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .produits-section {
        padding: 5px;
        margin-bottom: 1rem;
        margin-right: 0;
        margin-left: 0;
    }

    .margin {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .margin h2 {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        color: black;
        margin: 0;
    }

    .margin h2 i {
        margin-right: 5px;
        vertical-align: middle;
        font-size: 1.1rem;
    }

    .voir-tout {
        font-size: 0.75rem;
        margin-bottom: 9px;
    }

    .voir-tout i {
        font-size: 0.75rem;
    }

    .produits-section h2 {
        font-size: 1.1rem;
    }

    .produits {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 5px;
        padding: 0;
    }

    .produit {
        width: 100%;
        max-width: 170px;
    }

    .produit:hover {
        transform: translateY(0px);
    }

    .discount-badge {
        font-size: 0.7rem;
        top: 0;
        right: 0;
    }

    .produit img {
        width: 170px;
        height: 170px;
    }

    .produit p {
        font-size: 0.75rem;
        padding-top: 0;
    }

    .rating-display {
        font-size: 0.75rem;
    }

    .note-text {
        font-size: 0.7rem;
    }

    .price-display {
        display: flex;
    }

    .current-price,
    .normal-price {
        font-size: 0.85rem;
    }

    .old-price {
        font-size: 0.7rem;
        margin-left: 8px;
        margin-top: 1px;
    }

    .flash-badge {
        font-size: 0.7rem;
    }

    .time-remaining {
        background-color: #ff4757;
    }

    .flash-alert {
        padding: 7px;
        font-size: 0.7rem;
        max-width: 160px;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .flash-alert i {
        margin-right: 3px;
        padding: 1px;
    }

    .no-items {
        font-size: 1rem;
    }

    .cookie-modal-overlay,
    .cookie-modal-bottom,
    .cookie-modal-content,
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer,
    #cookie-modal-overlay {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 960px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        display: none;
    }

    .categories-section {
        padding: 10px;
        margin-bottom: 1rem;
    }

    .cate {
        margin-left: 0;
        margin-right: 0;
    }

    .categories-section h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .categories-grid {
        display: none !important;
    }

    .categories-wrapper.mobile {
        display: none !important;
    }

    .categories-wrapper.tablet {
        display: block !important;
    }

    .categories-wrapper {
        overflow: hidden;
        position: relative;
    }

    .categories-scroller {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .categories-scroller::-webkit-scrollbar {
        display: none;
    }

    .categorie {
        padding: 0;
        margin: 0;
        background-color: #ffffff;
        border: none;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        box-shadow: none;
    }

    .categorie:hover {
        transform: none;
        box-shadow: none;
    }

    .categorie img {
        max-width: 160px;
        width: 100%;
        max-height: 160px;
        height: 100%;
    }

    .categorie h2 {
        margin-top: 0;
        font-size: 0.8rem;
        color: #000;
    }

    .page {
        scroll-snap-align: start;
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 0;
        box-sizing: border-box;
        background-color: #ffffff;
    }

    .page.active {
        display: grid;
    }

    .pagination-buttons {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
        background-color: #bbb;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .dot.active {
        background-color: #151335;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .produits-section {
        padding: 10px;
        margin-bottom: 1rem;
        margin-right: 0;
        margin-left: 0;
    }

    .margin {
        padding: 0;
    }

    .margin h2 {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        color: black;
        margin: 0;
    }

    .margin h2 i {
        margin-right: 5px;
        vertical-align: middle;
        font-size: 1.1rem;
    }

    .voir-tout {
        font-size: 0.75rem;
        margin-bottom: 9px;
    }

    .voir-tout i {
        font-size: 0.75rem;
    }

    .produits-section h2 {
        font-size: 1.1rem;
    }

    .produits {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 5px;
        padding: 0;
    }

    .produit {
        width: 100%;
        max-width: 170px;
    }

    .produit:hover {
        transform: translateY(0px);
    }

    .discount-badge {
        font-size: 0.7rem;
        top: 0;
        right: 0;
    }

    .produit img {
        width: 170px;
        height: 170px;
    }

    .produit p {
        font-size: 0.75rem;
        padding-top: 0;
    }

    .rating-display {
        font-size: 0.75rem;
    }

    .note-text {
        font-size: 0.7rem;
    }

    .price-display {
        margin-top: 8px;
    }

    .old-price {
        font-size: 0.7rem;
        margin-left: 8px;
        margin-top: 2px;
    }

    .current-price,
    .normal-price {
        font-size: 0.85rem;
    }

    .flash-badge {
        font-size: 0.7rem;
    }

    .time-remaining {
        background-color: #ff4757;
    }

    .flash-alert {
        padding: 7px;
        font-size: 0.7rem;
        max-width: 160px;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .flash-alert i {
        margin-right: 3px;
        padding: 1px;
    }

    .no-items {
        font-size: 1rem;
    }

    .cookie-modal-overlay,
    .cookie-modal-bottom,
    .cookie-modal-content,
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer,
    #cookie-modal-overlay {
        display: none;
    }
}