/* Variables */
:root {
    --brand-dark: #0f0f0f;
    --brand-green: #295135;
    --brand-green-hover: #5e8768;
    --gray-text: #666666;
    --gray-light: #f5f5f5;
    --white: #ffffff;
    --font-main: 'Questrial', sans-serif;
    --border-color: #eaeaea;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--brand-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--brand-green);
    color: var(--white);
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header */
#main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.desktop-nav {
    display: none;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1.2rem;
    color: var(--brand-dark);
}

.header-icons a:hover {
    color: var(--brand-green);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-green);
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-dark);
}

.desktop-only {
    display: none;
}

/* Desktop Nav */
@media (min-width: 900px) {
    .mobile-menu-icon {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav ul {
        display: flex;
        gap: 30px;
    }

    .desktop-nav a {
        font-weight: 500;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 50%;
        background-color: var(--brand-green);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .desktop-nav a:hover::after {
        width: 100%;
    }

    .desktop-only {
        display: inline-block;
    }

    .header-container {
        padding: 20px;
    }
}

/* Mobile Nav Slideout */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 30px 20px;
    transition: transform 0.4s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    transform: translateX(300px);
}

.mobile-nav-close {
    font-size: 1.5rem;
    color: var(--gray-text);
    cursor: pointer;
    margin-bottom: 30px;
    text-align: right;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 80vh;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight zoom out animation start point */
    transition: transform 6s ease-out;
}

.slide.active img {
    transform: scale(1);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
}

.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide-content .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .slide-content h1 {
        font-size: 4rem;
    }

    .slide-content p {
        font-size: 1.4rem;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid {
    background: var(--brand-green);
    color: var(--white);
    border: 2px solid var(--brand-green);
}

.btn-solid:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.slider-controls div {
    pointer-events: auto;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

@media (min-width: 768px) {
    .slider-controls div {
        display: flex;
    }
}

.slider-controls div:hover {
    background: var(--brand-green);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--brand-green);
}

/* Marquee */
.marquee-container {
    background: var(--brand-green);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-right: 40px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections Global */
.section-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--brand-green);
}

.section-title p {
    color: var(--gray-text);
}

.category-section,
.product-section {
    padding: 80px 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-wide {
        grid-column: span 2;
    }
}

@media (min-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-wide {
        grid-column: span 1;
    }
}

.category-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: block;
}

@media (min-width: 768px) {
    .category-item {
        height: 400px;
    }
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-item:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-overlay h3 {
    color: var(--white);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.shop-link {
    color: var(--brand-green-hover);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.category-item:hover .category-overlay h3 {
    transform: translateY(0);
}

.category-item:hover .shop-link {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.inv-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.parallax-overlay h2 {
    color: var(--white);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.parallax-overlay h2 span {
    color: var(--brand-green-hover);
}

@media (min-width: 768px) {
    .parallax-overlay h2 {
        font-size: 3rem;
    }
}

/* Products Section */
.product-section {
    background-color: var(--gray-light);
    max-width: 100% !important;
}

.flex-title {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 15px;
}

.flex-title h2::after {
    left: 0;
    transform: none;
}

.view-all {
    color: var(--brand-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.view-all:hover {
    color: var(--brand-green-hover);
}

@media (min-width: 768px) {
    .flex-title {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .desktop-only-card {
        display: none;
    }
}

.product-card {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
    padding: 3px 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 3px;
    color: var(--white);
}

.badge-new {
    background: var(--brand-green);
}

.badge-hot {
    background: #000;
}

.badge-sale {
    background: #e74c3c;
}

.product-image-wrap {
    position: relative;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 3/4;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.1);
}

.quick-add {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .quick-add {
    opacity: 1;
}

.quick-add button {
    background: var(--white);
    color: var(--brand-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-add button {
    transform: translateY(0);
}

.quick-add button:hover {
    background: var(--brand-green);
    color: var(--white);
}

.product-info {
    text-align: center;
}

.brand {
    font-size: 0.65rem;
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.title {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title:hover {
    color: var(--brand-green);
}

.price {
    font-weight: 700;
    font-size: 1rem;
}

.old-price {
    color: var(--gray-text);
    text-decoration: line-through;
    margin-right: 5px;
    font-weight: normal;
    font-size: 0.9rem;
}

.price-sale {
    color: #e74c3c;
}

/* Footer */
.footer {
    background: var(--white);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-logo {
    height: 60px;
    margin: 0 auto 25px;
}

.footer-about {
    max-width: 800px;
}

.footer-about p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--brand-green);
}

.footer-contact {
    width: 100%;
    max-width: 900px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.centered-li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 1rem;
    padding: 10px;
}

@media (min-width: 768px) {
    .centered-li {
        flex-direction: row;
        justify-content: center;
    }
}

.footer-contact i {
    color: var(--brand-green);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.header-placeholder {
    width: 40px;
}

@media (min-width: 900px) {
    .header-placeholder {
        width: 150px;
    }
}