@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* Global Styles */
:root {
    --primary-color: #00b14f;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader img {
    width: 300px; /* Adjust size as needed */
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Top announcement bar */
.announcement-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 40px; /* Adjust based on content */
}

.container.test {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    position: relative;
}

.promo-slider {
    flex: 1;
    text-align: center;
    position: relative;
    height: 20px; /* Match promo height */
    overflow: hidden;
}

.promo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.announcement-bar .promo {
    font-size: 14px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    color: #fff;
}

.announcement-bar .promo.active {
    transform: translateY(0);
    opacity: 1;
    color: #fff;
}

.announcement-bar .shop-now {
    font-weight: bold;
    margin-left: 5px;
}

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Space between promo & language */
}

/* Header Styles */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.h-logo {
    width: 170px;
    padding: 0 10px;
}
.logo img {
    max-height: 50px; /* Ensures the logo isn't too tall */
    width: auto; /* Keeps the original aspect ratio */
    display: block; /* Removes extra spacing */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/**/
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

/* Search Styles */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    background: white;
    border-radius: 4px;
}

.search-input {
    border: 1px solid #ddd;
    padding: 8px 15px;
    outline: none;
    width: 200px;
    box-sizing: border-box;
}

.search-container.active .search-input-wrapper {
    width: 200px;
    padding: 0 10px;
}

/* Dropdown Containers */
.dropdown-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    position: relative;
    display: block;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Cart Specific Styles */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-menu {
    right: 0;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 15px;
}

.cart-items p {
    margin: 10px 0;
    color: #777;
    text-align: center;
}

.view-cart {
    display: block;
    text-align: center;
    background: #f5f5f5;
    padding: 8px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

/**/
.img-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.sidebar {
    width: 250px;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
}
.sidebar p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}
.sidebar h3 {
    margin-bottom: 15px;
    color: #2ecc71;
}
.product-categories {
    list-style: none;
    padding-left: 20px;
}
.product-categories li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.has-subcategories {
    flex: block;
}
.sub-categories {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}
.product-categories .category-title {
    font-size: 8px;
    color: #333;
    text-transform: uppercase;
}
.product-categories a {
    text-decoration: none;
    color: #333;
    font-size: 12px;
}
.span-img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background: #f7f7f7;
    margin-bottom: 10px;
}

/* Base styles */
.product-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    background-color: #f5f5f5;
    border-radius: 16px;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: auto;
}

.product-card img {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
}
.product-info {
    padding: 7px 15px;
    display: flex;
    justify-content: space-between;
}
.main-info {
    display: block;
}

.product-card h4 {
    margin: 1px 0 4px 0;
    font-size: 16px;
    font-weight: bold;
}
.prod-price {
    display: block;
}
.product-card .brand {
    font-size: 12px;
    color: #777;
}

.product-card .price {
    color: darkgreen;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    align-items: center;
}

.product-card .old-price {
    color: #999;
    font-size: 10px;
    margin-left: 1px;
    position: relative;
    bottom: 9px;
    display: inline-block; /* necessary for pseudo-element positioning */
    /* Remove built-in text-decoration */
    text-decoration: none;
}

.product-card .old-price::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid red;
    transform: rotate(-15deg);
    transform-origin: center;
}

.product-card .heart-icon {
    position: absolute;
    top: 20px;
    right: 220px;
    background: none;
    border: none;
    color: #ff3b30;
    /* background-color: #ffffff33; */
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.product-card .rating {
    position: absolute;
    top: 25px;
    left: 210px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #ffffffdb;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    z-index: 2;
}

.rating::before {
    content: "★";
    color: #ffc107;
    margin-right: 3px;
    font-size: 14px;
}

.contact-form {
    margin-top: 20px;
}
.contact-form p {
    margin-bottom: 10px;
    font-size: 14px;
    color: black;
}
.contact-form label {
    margin-bottom: 5px;
    font-size: 11px;
    color: #777;
}
.contact-form input {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    padding: 8px;
    border: none;
    border-radius: var(--border-radius);
    background-color: #f7f6f6;
    outline: none;
}
.contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: none;
    border-radius: var(--border-radius);
    background-color: #f7f6f6;
    outline: none;
}
.contact-form .send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 30px;
    cursor: pointer;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}
.pagination button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 3px 25px;
    cursor: pointer;
}
.pagination .active {
    background-color: #2ecc71;
    color: white;
}
/* Footer */
.new1 {
    position: relative;
    right: 20px;
}
footer {
    background-color: #000;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 30px;
    margin-right: 20px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 100;
}

.footer-address {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-contact {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-subscribe p {
    margin-bottom: 10px;
    font-size: 14px;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 0 15px;
}

.subscribe-input {
    flex: 1;
    padding: 10px;
    border: none;
    background: #000000;
    outline: none;
    color: white;
}

.subscribe-btn {
    background: none;
    border: none;
    color: white;
    padding: -10px;
    cursor: pointer;
}

.qr-code {
    width: 100px;
    height: 130px;
    margin: 10px 0;
    background-color: #fff;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icons a {
    color: white;
}
.imageBtn {
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    position: relative;
    top: 8px;
    right: 17px;
}
.footer-bottom {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

@media screen and (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        background-color: white;
    }
}

@media (max-width: 768px) {
     .imageBtn {
        width: 20px;
        height: 20px;
        border: none;
        cursor: pointer;
        position: relative;
        top: 8px;
        left: 10px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        background-color: white;
        height: auto;
        width: 180px;
    }

    .product-card img {
        width: 100%;
        min-height: 180px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .content {
        display: block;
    }
    .hamburger-menu {
        display: block;
        background-color: #fff;
    }

    .sidebar {
        display: none;
        width: 100%;
        border-right: none;
        padding-right: 0;
        background-color: #fff;
    }

    .sidebar.active {
        display: block;
    }
    #preloader img {
        width: min(100px, 20vw);
    }
    .about-divider {
        width: 100%;
    }
    .logo img {
        max-height: 50px; /* Ensures the logo isn't too tall */
        width: 150px; /* Keeps the original aspect ratio */
        display: block; /* Removes extra spacing */
    }
    .announcement-bar .promo {
        font-size: 12px;
    }
    .language-selector {
        display: none;
    }
    .new1 {
        position: relative;
        left: 6px;
    }
    .header-container {
        padding: 10px 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-menu.active {
        display: flex;
    }

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

    .about-content {
        flex-direction: column;
    }

    .stat-item {
        flex-basis: 100%;
    }
    .subscribe-form {
        width: 60%;
    }
    .subscribe-input {
        width: 40%;
    }
}

/* .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.product-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 320px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-metas {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 2;
}

.product-info {
    padding: 15px;
    background-color: white;
    display: flex;
    height: 190px;
    justify-content: space-between;
}

.product-brand {
    font-size: 13px;
    color: #666;
}

.product-name {
    font-size: 15px;
    margin: 5px 0;
}

.product-price {
    font-weight: bold;
    color: red;
}

.product-rating {
    color: black;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.wishlist-btn {
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #ff4d4d;
}

.product-meta {
    display: block;
    margin-top: 10px;
    position: relative;
    bottom: 10px;
}
.original-price {
    position: relative;
    bottom: 9px;
    display: inline-block;
    font-size: 12px;
    color: rgb(34, 34, 34);
}

.price-amount {
    position: relative;
    z-index: 1;
    font-size: 10px;
} */

.diagonal-strike {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: red;
    transform: rotate(-15deg);
    transform-origin: center center;
    z-index: 2;
}

/* Mobile Specific */
@media screen and (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* First product in mobile view has green bg */
    .product-grid .product-card:nth-child(1) {
        background-color: #e5f7f0;
    }

    /* Second product has gray bg */
    .product-grid .product-card:nth-child(2) {
        background-color: #eeeeee;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        gap: 5px;
        width: inherit;
    }
    .pagination button {
        background: #f0f0f0;
        border: 1px solid #ddd;
        padding: 3px 20px;
        cursor: pointer;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 5px;
    }

    .product-card {
        background-color: white;
        height: auto;
        width: 180px;
    }

    .product-card img {
        width: 100%;
        min-height: 100px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .product-card h4 {
        font-size: 14px;
    }
}
/* For very small screens */
@media screen and (max-width: 375px) {
    .pagination {
        display: flex;
        justify-content: center;
        margin: 10px;
    }
    .pagination button {
        background: #f0f0f0;
        border: 1px solid #ddd;
        padding: 3px 15px;
        cursor: pointer;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 5px;
    }

    .product-card {
        background-color: white;
        height: auto;
        width: 160px;
    }

    .product-card img {
        width: 100%;
        min-height: 60px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .product-card h4 {
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        padding: 5px;
    }

    .product-card {
        background-color: white;
        height: auto;
        width: auto;
    }

    .product-card img {
        width: 100%;
        min-height: 60px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .product-card h4 {
        font-size: 12px;
    }
}
