/*
** General Styles for HTML tags
*/

/* ==================================
   Custom Navigation Mega Menu Styles
   ================================== */

/* Crop Solutions Dropdown - With descriptions */
.crop-solutions-menu .mega-dropdown {
    width: 1000px;
    min-width: 1000px;
}

.crop-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crop-list li {
    position: relative;
    padding: 0;
    margin-bottom: 15px;
}

.crop-list li a {
    display: block;
    padding: 12px 20px;
    transition: all 0.2s ease;
    border-radius: 0;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.crop-list li a .crop-title {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.crop-list li a .crop-subtitle {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 4px;
}

.crop-list li:hover a {
    background-color: #e8f5eb !important;
    border-left-color: #49a760 !important;
}

.crop-list li:hover a .crop-title {
    color: #333 !important;
}

.crop-list li:hover a .crop-subtitle {
    color: #888 !important;
}

/* Products Mega Menu */
.mega-menu .mega-dropdown {
    width: 800px;
    min-width: 800px;
    padding: 30px;
    background: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 0;
}

.mega-menu-container {
    width: 100%;
}

.mega-menu-container .row {
    margin: 0 -15px;
}

.mega-title {
    color: #49a760;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.product-list li {
    margin-bottom: 8px;
}

.product-list li a {
    color: #555;
    font-size: 14px;
    padding: 12px 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.product-list li a:hover {
    color: #333;
    background-color: #e8f5eb;
    border-left-color: #49a760;
}

.view-all {
    color: var(--color-primary) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background-color: transparent;
    border-radius: 4px;
}

.view-all:hover {
    padding-left: 20px;
    transform: translateX(3px);
}

/* Products Full-Width Mega Menu */
.navbar.validnavs {
    position: relative;
}

.navbar .container {
    position: static;
}

.navbar-collapse {
    position: static;
}

.navbar-nav {
    position: static;
}

.products-mega-menu {
    position: static !important;
}

.products-mega-menu .products-dropdown {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 30px 50px;
    box-sizing: border-box;
    margin-top: 0;
}

.products-menu-container .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.products-menu-container .row > .col {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

/* Services Dropdown - Button Style */
.services-menu .services-dropdown {
    width: 600px;
    min-width: 600px;
    padding: 30px;
    background: #f8f9fa;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.services-menu-container {
    width: 100%;
}

.service-btn {
    display: block;
    background: transparent;
    color: #333;
    padding: 15px 25px;
    text-align: left;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0 10px;
    border-left: 3px solid transparent;
}

.service-btn i {
    margin-right: 8px;
    font-size: 16px;
    color: #49a760;
}

.service-btn:hover {
    background: #e8f5eb;
    color: #333;
    border-left-color: #49a760;
}

/* ==================================
   Download Section Styles
   ================================== */

.download-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: #fff;
    min-width: 280px;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #49a760;
    background: #f8f9fa;
}

.download-item .fas {
    transition: transform 0.3s ease;
}

.download-item:hover .fas {
    transform: scale(1.1);
}

.download-item .fw-semibold {
    color: #333;
    font-size: 14px;
}

.download-item .text-muted {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .mega-menu .mega-dropdown,
    .services-menu .services-dropdown {
        width: 100%;
        min-width: auto;
        padding: 15px;
    }

    .products-mega-menu .products-dropdown {
        width: 100%;
        min-width: auto;
        left: 0;
        transform: none;
        padding: 15px;
    }

    .products-menu-container .row {
        flex-wrap: wrap;
    }

    .products-menu-container .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .mega-menu-container .col-lg-3,
    .services-menu-container .col-md-4 {
        margin-bottom: 20px;
    }

    .service-btn {
        margin: 5px 0;
    }

    .download-item {
        min-width: auto;
        width: 100%;
    }
}

/* ==================================
   Shop Sidebar / Category Filter
   ================================== */

.shop-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 68px 0 rgba(174,175,175,.17);
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    min-height: 48px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 5px 5px 0;
}

.category-list li a:hover {
    background-color: #e8f5eb;
    border-left-color: #49a760;
    color: #333;
}

.category-list li.active a {
    background-color: #49a760;
    border-left-color: #3a8b4e;
    color: #fff;
    font-weight: 600;
}

.category-list li a .category-name {
    flex: 1;
}

.category-list li a .category-count {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
}

.category-list li.active a .category-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Responsive Shop Sidebar */
@media (max-width: 991px) {
    .shop-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* ==================================
   Product Grid Image Constraints
   ================================== */

.vt-products .product .product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.vt-products .product .product-image > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vt-products .product .product-image img {
    max-width: 100% !important;
    max-height: 250px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ==================================
   Product Search Component
   ================================== */

.product-search-wrapper {
    position: relative;
}

.product-search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Header variant */
.product-search-header {
    width: 280px;
}

.product-search-header .product-search-input {
    width: 100%;
    height: 48px;
    padding: 10px 55px 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.product-search-header .product-search-input:focus {
    border-color: #49a760;
    box-shadow: 0 0 0 3px rgba(73, 167, 96, 0.1);
}

.product-search-header .search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: #49a760;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-header .search-submit-btn:hover {
    background: #3a8b4e;
}

/* Inline variant (products page) */
.product-search-inline {
    width: 100%;
}

.product-search-inline .product-search-input {
    width: 100%;
    height: 48px;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.product-search-inline .product-search-input:focus {
    border-color: #49a760;
    box-shadow: 0 0 0 3px rgba(73, 167, 96, 0.1);
}

.product-search-inline .search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: #49a760;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-inline .search-submit-btn:hover {
    background: #3a8b4e;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    display: none;
    overflow: hidden;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #e8f5eb;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 12px;
    background: #f8f9fa;
    padding: 4px;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-name strong {
    color: #49a760;
    font-weight: 700;
}

.suggestion-category {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Search results info on products page */
.search-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.search-term-display {
    background: #e8f5eb;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-term-display .clear-search {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.search-term-display .clear-search:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 991px) {
    .product-search-header {
        display: none;
    }
}

@media (max-width: 767px) {
    .product-search-inline .product-search-input {
        height: 44px;
        font-size: 14px;
    }

    .suggestion-item {
        padding: 10px 12px;
    }

    .suggestion-image {
        width: 35px;
        height: 35px;
    }
}

/* ==================================
   Benefits Area CTA Buttons
   ================================== */

.benifit-items .btn.btn-theme {
    padding: 10px 20px !important;
}

.benifit-items .btn.btn-theme:hover,
.benifit-items .btn.btn-theme:focus,
.benifit-items .btn.btn-theme:active {
    background-color: #fff !important;
    background: #fff !important;
    color: #333 !important;
    border-color: #fff !important;
}

/* ==================================
   Product Portfolio Section (Home)
   ================================== */

.service-style-one-item .thumb img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-style-one-item .thumb:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .service-style-one-item .thumb img {
        width: 120px;
        height: 120px;
    }
}

/* ==================================
   Mobile Responsiveness Enhancements
   ================================== */

/* Base responsive typography */
html {
    font-size: 16px;
}

/* Mobile typography scaling */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    /* Scale headings for mobile readability */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    /* Increase body text line height for readability */
    body, p {
        line-height: 1.6;
    }

    /* Enhanced touch targets for category links */
    .category-list li a {
        padding: 18px 15px;
        min-height: 52px;
    }

    /* Enhanced touch targets for product menu links */
    .product-list li a {
        padding: 14px 15px;
        min-height: 48px;
    }

    /* Enhanced touch targets for suggestion items */
    .suggestion-item {
        padding: 16px 15px;
        min-height: 52px;
    }

    .suggestion-image {
        width: 44px;
        height: 44px;
    }

    /* Improved sidebar widget spacing */
    .sidebar-widget {
        padding: 15px;
    }

    .sidebar-widget .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    /* Crop list touch improvements */
    .crop-list li a {
        padding: 16px 20px;
        min-height: 48px;
    }

    /* Service button touch improvements */
    .service-btn {
        padding: 18px 25px;
        min-height: 52px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    /* Tighter spacing on very small screens */
    .category-list li a,
    .product-list li a,
    .suggestion-item {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==================================
   Single Product Contents Card
   ================================== */

.single-product-contents {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

@media (max-width: 767px) {
    .single-product-contents {
        padding: 20px;
        margin-top: 20px;
    }
}
