body {
    font-family: "Nunito Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #131214;
    background: #f8f8f8;
    min-height: 100vh;
}

html,
body {
    overflow-x: hidden;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    list-style: none !important;
    padding: 0;
}

.dropdown-menu li a {
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    color: black;
}

.dropdown-menu a:hover {
    color: rgb(243, 17, 17);
}

.dropdown-menu li a:hover {
    background-color: #f2f2f2;
}

nav li {
    list-style: none;
}

nav a:hover {
    color: #e01b2f;
}

nav a {
    font-weight: 700;
    text-decoration: none;
    color: black;
}

a {
    color: black;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* .features,.about-row,.category-previews,.newsletter {
    margin-left: 90px !important;
} */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-bar {
    background: #131214;
    color: #fff;
    text-align: center;
    font-size: 0.91rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    height: 60px;
}

.main-header {
    background: #fff;
    /* border-bottom: 1px solid #ececec; */
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.logo img {
    display: block;
}

.actions,
.socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-count {
    background: #e01b2f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 0.89em;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: rgba(30, 30, 32, 0.82);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 2.5rem 2rem 1.8rem 2rem;
    border-radius: 1.1rem;
    max-width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin: 60px auto 0 auto;
}

.close-popup {
    position: absolute;
    top: 13px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #e01b2f;
}

.popup-form input {
    width: 90%;
    margin: 8px 0;
    padding: 0.65rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    transition: box-shadow 0.2s;
}

.popup-form button {
    margin-top: 9px;
    background: #e01b2f;
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 7px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popup-form button:hover {
    opacity: 0.93;
}

.hero {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-slide-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    padding: 0 20px;
}

.hero-overlay h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.btn-main {
    background: #e01b2f;
    color: #fff;
    padding: 0.65em 1.6em;
    border-radius: 7px;
    font-weight: bold;
    border: none;
    font-size: 1.12em;
    cursor: pointer;
    text-decoration: none;
    margin: 0.7em 0 0 0;
    display: inline-block;
}

.btn-go-to-cart {
    background: #202020;
    color: #fff;
    padding: 0.65em 1.6em;
    border-radius: 7px;
    font-weight: bold;
    border: none;
    font-size: 1.12em;
    cursor: pointer;
    text-decoration: none;
    margin: 0.7em 0 0 0;
    display: inline-block;
}

.btn-main:hover {
    background: #b50018;
    color: white;
}

.btn-go-to-cart:hover {
    background: #000000;
    color: white;
}

.products-tabs {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 3px 24px rgba(120, 120, 120, 0.07);
    /* margin: 28px 0; */
    padding: 2.6rem 2rem 2.8rem 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: center;
}

.tab {
    background: none;
    border: none;
    font-size: 1.35em;
    font-weight: 900;
    cursor: pointer;
    color: #62605f;
    padding: 0.2em 0.65em;
    border-bottom: 2.5px solid transparent;
    transition: border-color 0.18s, color 0.18s;
}

.tab.active {
    color: #e01b2f;
    border-bottom: 2.5px solid #e01b2f;
}

.tab-content {
    display: none;
}

.tab-content.tab-active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.2rem;
}

.product-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: 0 1px 14px rgba(120, 120, 120, 0.04);
    text-align: center;
    transition: box-shadow 0.13s, transform 0.13s;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(130, 20, 80, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.product-card img {
    max-width: 98%;
    max-height: 180px;
    margin-bottom: 10px;
    border-radius: 9px;
    object-fit: cover;
}

.product-info h3 {
    margin: 5px 0 7px 0;
    font-size: 1.09em;
    font-weight: 700;
}

.product-prices {
    margin: 6px 0;
}

.price {
    color: #e01b2f;
    font-size: 1.09em;
    font-weight: 900;
    margin-right: 7px;
}

.old-price {
    text-decoration: line-through;
    color: #7f82a2;
}

.product-label.sale {
    color: #fff;
    background: #e01b2f;
    font-size: 0.84em;
    font-weight: bold;
    padding: 1px 0.8em;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.product-reviews {
    color: #847671;
    font-size: 0.99em;
    font-weight: 700;
}

.add-to-cart {
    margin-top: 7px;
    padding: 0.5em 1.23em;
    background: #91a4bb;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.17s;
}

.add-to-cart:hover {
    background: #4b4658;
}

.category-previews {
    margin: 40px 0;
}

.category-row {
    display: flex;
    gap: 2.4rem;
    margin-bottom: 1.8rem;
}

.category-card {
    flex: 1;
    background: #fff;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 2px 24px rgba(140, 141, 170, 0.07);
    padding: 1.2rem;
    position: relative;
}

.category-card img {
    max-width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 9px;
}

.btn-category {
    display: block;
    margin: 15px auto 0 auto;
    background: #e01b2f;
    color: #fff;
    padding: 0.6em 1.87em;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-category:hover {
    background: #b50018;
}

.about-row {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-image img {
    border-radius: 12px;
    max-width: 295px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.1em;
    font-weight: 800;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 33px 0 18px;
}

.feature {
    background: #fff;
    border-radius: 7px;
    padding: 1.18em;
    flex: 1;
    text-align: center;
    box-shadow: 0 1px 14px rgba(120, 120, 120, 0.07);
}

.feature img {
    margin-bottom: 8px;
}

.feature h5 {
    font-size: 1em;
    margin: 0.7em 0;
    font-weight: 800;
    color: #62605f;
}

.newsletter {
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 1px 18px rgba(220, 220, 220, 0.14);
    padding: 2.3rem 2rem;
    text-align: center;
    margin: 36px 0;
}

.newsletter-form input[type="email"],
.footer-newsletter input[type="email"] {
    padding: 0.58em 0.95em;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 1em;
    width: 60%;
    margin-top: 7px;
    margin-bottom: 7px;
}

.newsletter-form button,
.footer-newsletter button {
    background: #e01b2f;
    color: #fff;
    padding: 0.59em 1.27em;
    margin-left: 8px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.16s;
}

.newsletter-form button:hover,
.footer-newsletter button:hover {
    background: #b50018;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 2.3rem;
    flex-wrap: wrap;
}

.mission-text {
    flex: 1;
}

.mission-text h3 {
    font-size: 2em;
    text-align: start;
    font-weight: 900;
    margin-bottom: 0.3em;
    color: #62605f;
    text-transform: uppercase;
}

.mission-image img {
    max-width: 160px;
}

.testimonials {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 16px rgba(135, 136, 140, 0.08);
    margin: 40px 0 18px;
    padding: 2.7rem 1.7rem;
    text-align: center;
}

.testimonials-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    background: #fafafa;
    padding: 1rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 0.6px 12px rgba(120, 120, 140, 0.06);
    flex: 1 1 210px;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    border-radius: 7px;
    margin-bottom: 7px;
}

.testimonial-info h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.testimonial-reviews {
    color: #e01b2f;
    font-size: 1.1em;
    font-weight: 900;
}

footer {
    background: #131214;
    color: #f8f8f8;
    padding: 2.3rem 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links.container {
    display: flex;
    gap: 1.8rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h5 {
    color: #e01b2f;
    font-size: 1em;
    margin-bottom: 5px;
}

.footer-column a {
    color: #f8f8f8;
    display: block;
    margin-bottom: 0.7em;
    text-decoration: none;
    font-size: 0.92em;
    transition: color 0.12s;
}

.footer-column a:hover {
    color: #91a4bb;
}

.footer-newsletter input[type="email"] {
    margin-bottom: 7px;
    max-width: 134px;
}

.footer-bottom.container {
    border-top: 1px solid #222226;
    margin-top: 18px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.7rem;
    flex-wrap: wrap;
    font-size: 0.96em;
}

.footer-payments img {
    margin-left: 7px;
    filter: grayscale(0.2);
    opacity: 0.92;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .container {
        padding: 0 12px;
    }

    .category-row {
        flex-direction: column;
        gap: 1.2rem;
    }

    .features {
        flex-direction: column;
        gap: 1.2rem;
    }

    .mission-content {
        flex-direction: column;
        gap: 1.1rem;
    }

    .about-row {
        flex-direction: column;
        gap: 1.1rem;
    }

    .testimonials-row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links.container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom.container {
        flex-direction: column;
        gap: 0.7rem;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-bg {
        height: 150px;
    }

    .main-header,
    .products-tabs,
    .features,
    .newsletter,
    .mission,
    .testimonials {
        padding-left: 0;
        padding-right: 0;
    }

    .actions,
    .socials {
        gap: 0.6rem;
    }

    .products-tabs {
        padding: 1rem 0.4rem;
    }
}

/* Smooth transition on all major images across the site */
.product-card img,
.category-card img,
.testimonial-card img,
.about-image img,
.hero-bg {
    transition: transform 0.35s cubic-bezier(0.24, 0.74, 0.58, 1),
        box-shadow 0.2s;
}

.product-card:hover img,
.category-card:hover img,
.testimonial-card:hover img,
.about-image:hover img {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 2px 32px rgba(140, 75, 75, 0.1);
}

/* Optional: Hero background slight zoom on hover (if you want!) */
.hero:hover .hero-bg {
    transform: scale(1.04);
}
