:root {
    --primary-color: #507235;
    --secondary-color: #587f39;
    --accent-color: #62913c;
    --light-bg: #859677;
    --dark-bg: #40473a;
    --dark-text: #343a40;
    --body-bg: #fafafa;
    --bdoy-bg-white: #f8f9fa;
}

body {
    padding-top: 205px;
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: padding-top 0.3s ease;
}

body.scrolled {
    padding-top: 70px;
}

/* First Navbar Row */
.navbar-top {
    background: #ffffff;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform 0.3s ease;
}

.navbar-top.hidden {
    transform: translateY(-100%);
}

.logo {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
}

.search-container {
    max-width: 600px;
    width: 100%;
}

.search-box {
    border-radius: 50px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    position: relative;
}

/* Custom category dropdown */
.category-dropdown {
    position: relative;
    max-width: 180px;
    width: 100%;
}

.category-toggle {
    border: none;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 500;
    color: var(--dark-text);
    border-radius: 50px 0 0 50px;
    height: 100%;
}

.category-toggle:hover {
    background-color: #e9ecef;
}

.category-toggle i {
    margin-left: 8px;
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.category-toggle.active i {
    transform: rotate(180deg);
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.category-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-option {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    color: var(--dark-text);
}

.category-option:last-child {
    border-bottom: none;
}

.category-option:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 30px;
}

.category-option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Specific category colors */
.category-option[data-value="1"]:hover {
    background-color: #3498db;
}

.category-option[data-value="2"]:hover {
    background-color: #9b59b6;
}

.category-option[data-value="3"]:hover {
    background-color: #2ecc71;
}

.category-option[data-value="4"]:hover {
    background-color: #f1c40f;
    color: #333;
}

.category-option[data-value="5"]:hover {
    background-color: #e67e22;
}

.search-input {
    border: none;
    padding: 12px 20px;
    flex: 1;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    transition: all 0.3s;
    border-radius: 0 50px 50px 0;
}

.search-btn:hover {
    background-color: #5a32a3;
}

/* Second Navbar Row */
.navbar-bottom {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    z-index: 1029;
    transition: top 0.3s ease;
}

.navbar-bottom.scrolled {
    top: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: 8px;
    transition: all 0.3s;
    margin: 0 2px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-item {
    position: relative;
}

.nav-link:focus, .nav-link:hover {
    color: var(--bs-body-color);
}
.nav-item .active {
    background-color: rgba(111, 66, 193, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Top right actions */
.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-action-link {
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 10px;
}

.top-action-link:hover {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
}

.top-action-link i {
    margin-right: 5px;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #5a32a3;
    transform: translateY(-3px);
}

/* Main content */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8c68cd 100%);
    border-radius: 15px;
    color: white;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.feature-card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05)
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.price-tag {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: #5a32a3;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.customization-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.customization-panel h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #333;
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    body {
        padding-top: 180px;
    }

    body.scrolled {
        padding-top: 70px;
    }

    .search-container {
        margin: 10px 0;
    }

    .nav-link {
        margin: 5px 0;
    }

    .category-dropdown {
        max-width: 100%;
    }

    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }

    .category-toggle {
        border-radius: 10px 10px 0 0;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .search-input {
        border-radius: 0;
    }

    .search-btn {
        border-radius: 0 0 10px 10px;
    }

    .top-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .top-action-link {
        margin-left: 0;
        margin-right: 10px;
    }

    .navbar-bottom {
        top: 120px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin-bottom: 5px;
    }
}

/* Content sections for scrolling demo */
.content-section {
    min-height: 500px;
    padding: 60px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.main-content {
    min-height: 1000px;
    padding-right: var(--bs-gutter-x, 0rem);
    padding-left: var(--bs-gutter-x, 0rem);
}
.text-white, .text-white-50 {
    color: rgba(0, 0, 0, .7) !important;
}
.bg-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, .1);
}
.content-slider {
    /*border: 1px solid gray;*/
    overflow: hidden;
    padding-right: var(--bs-gutter-x, 0rem);
    padding-left: var(--bs-gutter-x, 0rem);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.content-banner, .content-products {
    padding-right: var(--bs-gutter-x, 0rem);
    padding-left: var(--bs-gutter-x, 0rem);
}
/* 3 Banners*/
/* Banner Section */
.banner-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.banner-title {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 28px;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 300px;
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-5px);
}

.banner-image {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.banner-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-content a {
    color: white;
    text-decoration: none;
}
.banner-content a:hover {
    color: white;
    text-decoration: underline;
}
.shop-now-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.shop-now-btn:hover {
    background: #c0392b;
}
/* End Banner Section */

/* Products Section */
/*.products-section {
    margin-top: 40px;
}*/

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 12px;
    border-radius: 4px 0 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-new {
    background: var(--primary-color);
    color: white;
}

.badge-sale {
    background: #e74c3c;
    color: white;
}

.product-image {
    height: 200px;
    width: 100%;
    /*object-fit: cover;*/
}

.product-info {
    padding: 15px;
}
.product-info a {
    text-decoration: none;
}
.product-info a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    text-align: center;
}

.product-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 33px;
    line-height: 1.4;
    text-align: center;
}

.product-footer {
    /*display: flex;
    justify-content: space-between;*/
    align-items: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.original-price {
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 8px;
}

/*.add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px 0px 0px 0px;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 14px;
}*/
.first {
    position: absolute;
    width: 100%;
    padding: 9px;
}
.align-items-center {
    -ms-flex-align: center !important;
    align-items: center !important;
}

.justify-content-between {
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}
.discount {
    background-color: red;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 14px;
    border-radius: 6px;
    color: #fff;
}
.wishlist {
    height: 25px;
    width: 25px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.rating-number {
    font-size: 14px;
    color: grey;
}
.buy {
    font-size: 12px;
    color: purple;
    font-weight: 500;
    margin-right: 25px;
    cursor: pointer;
}

/*.add-btn:hover {
    background: #62913c;
    transform: translateY(-2px);
}*/

@media (max-width: 992px) {
    .banners-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
       /* grid-template-columns: 1fr;*/
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-summary {
        flex-direction: column;
        gap: 15px;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* .add-btn {
        width: 100%;
    }*/
}

/*Slider*/
.content-slider .slider {
    position: relative;
    max-width: 100%;
    height: 400px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
}

.content-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.content-slider .slide {
    min-width: 100%;
    height: 100%;
    width: 100%;
    /*object-fit: cover;*/
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
}

.content-slider .slide.active {
    pointer-events: auto;
}

.bottom-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    /*background: #fff;*/
    padding: 15px 20px;
    padding-bottom: 0;
    text-align: center;
    /*box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);*/
    z-index: 2;
    overflow: visible;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease-in-out;
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

@media(max-width:768px) {
    .content-slider .slider {
        /*width: 95%;
        height: 400px;*/
        width: 100%;
        height: 180px;
        margin-top: 100px;
    }

    .content-slider .slider {
        border-radius: 10px;
    }

    .bottom-center {
        width: 80%;
        border-radius: 10px;
    }

    .bottom-center::before {
        left: -20px;
        bottom: -20px;
        mask: radial-gradient(20px at top left, #0000 98%, #000);
    }

    .bottom-center::after {
        right: -20px;
        bottom: -20px;
        mask: radial-gradient(20px at top right, #0000 98%, #000);
    }
}

@media(max-width:414px) {
    .bottom-center {
        border-radius: 10px 10px 0 0;
    }

    .bottom-center::before, .bottom-center::after {
        display: none;
    }
}
/*End Slider*/
        /* About */
        .about_content {
    border-radius: 15px;
    border: 1px solid #dedede;
    padding: 20px;
    background: #f0f0f0;
}
/* End About */

/* Contact Page */
.contact-section {
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .contact-info h2 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }

    .contact-info p {
        margin-bottom: 2rem;
        color: #555;
    }

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.contact-text p {
    margin: 0;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

    .social-icon:hover {
        background-color: #3498db;
        transform: translateY(-3px);
    }

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .contact-form h2 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #555;
    }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

    .form-control:focus {
        border-color: #3498db;
        outline: none;
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn:hover {
        background-color: #2980b9;
    }

.map-container {
    margin-bottom: 4rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .map-container iframe {
        display: block;
        width: 100%;
        height: 450px;
        border: none;
    }

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

        nav ul li {
            margin: 0 0.5rem;
        }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
/* End Contact Page */