html, body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Masthead Styling */
.masthead {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding-top: 0 !important;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
    overflow: hidden;
}

.masthead .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.masthead .video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.masthead .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

.masthead-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.masthead-content {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.masthead-btn {
    padding: 1.25rem 2.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(105, 129, 95, 0.9);
    border-color: rgba(105, 129, 95, 0.9);
}

.masthead-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: rgba(105, 129, 95, 1);
    border-color: rgba(105, 129, 95, 1);
}

/* Section Styling */
.page-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 1.5rem auto;
}

.section-cta {
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Category Styling */
.category-section {
    margin-bottom: 5rem;
}

.category-header {
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.category-divider {
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    margin: 0.75rem 0;
}

.category-view-all {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-view-all:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.category-view-all i {
    transition: transform 0.2s ease;
}

.category-view-all:hover i {
    transform: translateX(5px);
}

/* Product Styling Enhancements */
.product-grid {
    margin-bottom: 2rem;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.product-placeholder i {
    font-size: 4rem;
    color: #ced4da;
}

.card-img-top-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-badges .badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
}

.badge.in-stock {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge.out-of-stock {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge.featured {
    background-color: rgba(255, 193, 7, 0.1);
    color: #996515;
}

.badge.seasonal {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.product-description {
    height: 60px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.product-description:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.vip-price {
    font-size: 0.85rem;
    color: var(--gray);
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.vip-label {
    font-weight: 600;
    margin-right: 0.3rem;
}

.vip-savings {
    color: #28a745;
    font-weight: 500;
    margin-left: 0.3rem;
}

.btn-view-product {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-view-product:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Floating Categories */
.floating-categories {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 90%;
    z-index: 2;
}

.floating-category {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

/* Empty State */
.empty-state {
    padding: 4rem 0;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
    /*background-color: #f8f9fa;*/
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid #69815f;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content:before {
    /*content: """;*/
    content: """";
    font-size: 3rem;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    color: rgba(61, 122, 103, 0.1);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-author-location {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.contact-info {
    height: 100%;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-divider {
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin: 1.5rem 0;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-form-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(61, 122, 103, 0.25);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.form-submit {
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .masthead-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .contact-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .masthead {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .masthead-title {
        font-size: 2.5rem;
    }

    .masthead-content {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .navbar .navbar-collapse {
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 1.5rem 1rem;
        border-radius: 0 0 16px 16px;
    }
    .navbar .navbar-nav .nav-link {
        color: var(--dark) !important;
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    .navbar .navbar-nav .nav-link.active {
        background: var(--primary);
        color: #fff !important;
    }
}

@media (max-width: 767.98px) {
    .masthead {
        min-height: 400px;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .masthead-title {
        font-size: 2.25rem;
    }

    .masthead-content {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .masthead {
        min-height: 350px;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .masthead-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }
}

/* Video Section Styles */
.video-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

/* Navbar: Animated fade in/out */
.navbar {
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.3s, box-shadow 0.3s, transform 0.3s, visibility 0.4s;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.navbar.navbar-solid {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Remove display:none for .navbar.navbar-transparent */
.navbar.navbar-transparent {
    /* No display:none here, just keep it hidden with opacity/visibility */
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link,
.navbar-transparent .navbar-toggler,
.navbar-transparent .navbar-collapse {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-solid {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(0);
    height: 76px !important; /* or your navbar height */
    min-height: 76px !important;
    pointer-events: auto;
    overflow: visible;
}

.navbar-solid .navbar-brand,
.navbar-solid .nav-link,
.navbar-solid .navbar-toggler,
.navbar-solid .navbar-collapse {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.navbar-solid .navbar-brand,
.navbar-solid .nav-link {
    color: var(--dark) !important;
}

.navbar-solid .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-solid .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.flash-messages:empty,
.flash-messages[style*="display: none"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}