:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

.hero-section {
    background-image : url('../images/gums.jpg');
    background-size: cover;
    background-position: right center;
    min-height: 500px;
}

/* Enhanced responsive styles */
@media (max-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }

    .hero-section {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 640px;
    }

    .hero-section {
        background-position: center;
        min-height: 400px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        min-height: 350px;
    }
}

/* Product grid responsiveness */
@media (max-width: 1536px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Category grid responsiveness */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-cols: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-cols: 1fr;
    }
}

/* Footer responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating action buttons responsiveness */
@media (max-width: 640px) {
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-buttons a,
    .floating-buttons button {
        width: 3rem;
        height: 3rem;
    }
}

/* Newsletter section responsiveness */
@media (max-width: 640px) {
    .newsletter-section {
        padding: 2rem 1rem;
    }

    .newsletter-input {
        width: 100%;
    }
}

/* Customer reviews responsiveness */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Special offers section responsiveness */
@media (max-width: 768px) {
    .special-offers {
        flex-direction: column;
    }

    .special-offers-image {
        height: 300px;
    }
}

/* Header responsiveness */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Search bar responsiveness */
@media (max-width: 640px) {
    .search-container {
        padding: 0 1rem;
    }

    .search-input {
        font-size: 0.875rem;
    }
}

/* Product card responsiveness */
@media (max-width: 640px) {
    .product-card {
        margin: 0.5rem;
    }

    .product-image {
        height: 200px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.125rem;
    }
}

/* Pagination responsiveness */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .pagination-button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Price filter responsiveness */
@media (max-width: 640px) {
    .price-filter {
        padding: 1rem;
    }

    .price-slider {
        width: 100%;
    }
}

/* Category filter responsiveness */
@media (max-width: 640px) {
    .category-filter {
        padding: 1rem;
    }

    .category-checkbox {
        margin-bottom: 0.5rem;
    }
}

/* Sort dropdown responsiveness */
@media (max-width: 640px) {
    .sort-dropdown {
        width: 100%;
    }

    .sort-button {
        width: 100%;
        justify-content: space-between;
    }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff6b6b;
}

input:checked + .slider:before {
    transform: translateX(22px);
}
