/*--------------------------------------------------------------------
    Home Page Modern & Clean Aesthetic Enhancements
    AskDealia - 2026
--------------------------------------------------------------------*/

/* =============================================
   1. HERO SECTION - NO CHANGES (keeping original)
   ============================================= */

/* =============================================
   2. PRODUCT CARD ENHANCEMENTS
   ============================================= */

/* Modern card styling */
.product-item {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:hover {
    border-color: #00a2ad;
    box-shadow: 0 12px 32px rgba(0, 162, 173, 0.15);
    transform: translateY(-6px);
}

/* Gradient accent line on hover */
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a2ad 0%, #fed701 100%);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.product-item:hover::before {
    transform: scaleX(1);
}

/* Image hover zoom */
.product-thumb {
    overflow: hidden;
}

.product-thumb img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

/* Enhanced product caption */
.product-caption {
    padding: 16px 18px 20px;
    background: #ffffff;
}

/* Brand styling */
.manufacture-product a {
    color: #00a2ad;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.manufacture-product a:hover {
    color: #008b95;
}

/* Product name */
.product-name h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name h4 a {
    color: #222222;
    transition: color 0.3s ease;
}

.product-name h4:hover a {
    color: #00a2ad;
}

/* Enhanced price display */
.regular-price {
    color: #0b233f;
    font-size: 20px;
    font-weight: 700;
}

/* Price and compare container */
.product-price-compare-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 4px;
    flex-wrap: wrap;
    gap: 8px;
}

/* Improved Compare button */
.btn-compare {
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 14px;
    border: 2px solid #00a2ad;
    color: #00a2ad !important;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-compare i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-compare:hover {
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    border-color: #00a2ad;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 162, 173, 0.25);
}

.btn-compare:hover i {
    transform: rotate(180deg);
}

/* Add to Grocery List button */
.btn-list {
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 14px 16px;
    margin-top: 12px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0b233f 0%, #1a3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    border: none;
}

.btn-list:hover {
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    box-shadow: 0 4px 12px rgba(0, 162, 173, 0.3);
    transform: translateY(-1px);
}

.btn-list i {
    font-size: 16px;
}

/* =============================================
   3. VENDOR DROPDOWN ENHANCEMENTS
   ============================================= */

.container-dropdownbutton {
    gap: 30px;
}

.dropdown-button {
    padding: 18px 24px;
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    border-radius: 10px;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0, 162, 173, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.dropdown-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.dropdown-button:hover {
    box-shadow: 0 6px 20px rgba(0, 162, 173, 0.35);
    transform: translateY(-2px);
}

.dropdown-button .vendor-name {
    font-size: 20px;
    font-weight: 600;
}

.dropdown-button .icon {
    transition: transform 0.3s ease;
}

.dropdown-button:hover .icon {
    transform: translateY(2px);
}

/* Dropdown menu animation */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 162, 173, 0.1);
    padding: 24px;
}

.dropdown-content[style*="display: grid"] {
    animation: dropdownFadeIn 0.25s ease forwards;
}

.dropdown-content a {
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #ffffff;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    color: #ffffff;
    border-color: #00a2ad;
    box-shadow: 0 4px 12px rgba(0, 162, 173, 0.2);
    transform: translateY(-2px);
}

/* Text content styling */
.text-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0b233f;
    line-height: 1.3;
    margin-bottom: 12px;
}

.text-content h2 .vendor_name {
    color: #00a2ad;
}

.text-content p {
    color: #666666;
    line-height: 1.7;
    font-size: 15px;
}

/* =============================================
   4. LAYOUT & SPACING IMPROVEMENTS
   ============================================= */

/* Featured Products Section */
.product-wrapper.fix.pb-70 {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
}

.product-wrapper.fix.pb-70::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

/* Section titles */
.section-title h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-title h3 span {
    color: #00a2ad;
    font-weight: 700;
}

.section-title.hm-11 {
    margin-bottom: 40px;
}

/* Compare section */
.home-module-three.hm-1.fix.pb-40 {
    background: #ffffff;
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Product grid spacing */
.module-four-wrapper.custom-seven-column {
    margin-left: -12px;
    margin-right: -12px;
}

.module-four-wrapper.custom-seven-column > .col {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

/* See More button */
.see-more-area {
    padding-top: 30px;
}

.see-more.btn-cart {
    background: linear-gradient(135deg, #0b233f 0%, #1a3a5c 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 40px;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(11, 35, 63, 0.2);
}

.see-more.btn-cart:hover {
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    box-shadow: 0 6px 20px rgba(0, 162, 173, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   5. MICRO-INTERACTIONS & POLISH
   ============================================= */

/* Smooth transitions for all interactive elements */
a, button, .product-item, .dropdown-button, .btn-compare, .btn-list {
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading spinner */
@keyframes spinner {
    to { transform: rotate(360deg); }
}

#fetchproducts.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fetchproducts.loading::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 3px solid #e8e8e8;
    border-top-color: #00a2ad;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Product fade-in animation */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-four-wrapper .product-item {
    animation: productFadeIn 0.4s ease forwards;
}

/* Staggered animation for grid items */
.module-four-wrapper .col:nth-child(1) .product-item { animation-delay: 0.05s; }
.module-four-wrapper .col:nth-child(2) .product-item { animation-delay: 0.1s; }
.module-four-wrapper .col:nth-child(3) .product-item { animation-delay: 0.15s; }
.module-four-wrapper .col:nth-child(4) .product-item { animation-delay: 0.2s; }
.module-four-wrapper .col:nth-child(5) .product-item { animation-delay: 0.25s; }
.module-four-wrapper .col:nth-child(6) .product-item { animation-delay: 0.3s; }
.module-four-wrapper .col:nth-child(7) .product-item { animation-delay: 0.35s; }

/* Button press effect */
.btn-list:active, .btn-compare:active, .btn-1.home-btn:active, .dropdown-button:active {
    transform: scale(0.98);
}

/* Focus states for accessibility */
.btn-list:focus, .btn-compare:focus, .btn-1.home-btn:focus, .dropdown-button:focus {
    outline: 2px solid #fed701;
    outline-offset: 2px;
}

/* Owl Carousel navigation */
.owl-arrow-style .owl-nav {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.owl-arrow-style .owl-nav div {
    color: #666666;
    transition: color 0.25s ease;
}

.owl-arrow-style .owl-nav div:hover {
    color: #00a2ad;
}

/* Scroll to top button */
.scroll-top {
    background: linear-gradient(135deg, #00a2ad 0%, #008b95 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 162, 173, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 162, 173, 0.4);
}

/* =============================================
   6. RESPONSIVE ADJUSTMENTS
   ============================================= */

/* Mobile adjustments */
@media (max-width: 767px) {
    .product-item:hover {
        transform: translateY(-3px);
    }

    .product-price-compare-btn {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-compare {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .dropdown-button {
        min-width: 100%;
    }

    .container-dropdownbutton {
        flex-direction: column;
        gap: 20px;
    }

    .text-content h2 {
        font-size: 22px;
    }

    .section-title h3 {
        font-size: 18px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .dropdown-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .text-content h2 {
        font-size: 24px;
    }
}
