/* -------------------------------------------------------------
   Poovilaa - Premium Multi-Vendor UX Overhaul Styling
   ------------------------------------------------------------- */

/* Typography & Base overrides */
body {
    font-family: 'Outfit', sans-serif !important;
}

/* Global Container Width */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Category Slider Improvements */
.category-item {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.02) !important;
    border: 1px solid #f5f5f5 !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    padding: 10px !important;
}
.category-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 25px rgba(164, 0, 52, 0.06) !important;
    border-color: rgba(164, 0, 52, 0.12) !important;
}

/* Full-width Responsive Hero Slider */
.hero-section.hs-1 {
    margin-top: 20px !important;
}
.hero-single {
    min-height: 520px !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 20px !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    padding: 80px 60px !important;
}
/* Premium dark gradient overlay for high contrast text readability */
.hero-single::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.4) 100%) !important;
    z-index: -1 !important;
}
.hero-content {
    max-width: 580px !important;
    padding: 35px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25) !important;
}
.hero-content .hero-sub-title {
    color: #ffb3c1 !important;
    font-size: 15px !important;
    letter-spacing: 4px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}
.hero-content .hero-title {
    color: #ffffff !important;
    font-size: 46px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 15px 0 20px 0 !important;
}
.hero-content .hero-title span {
    color: #ff527b !important;
}
.hero-content p {
    color: #f0f0f0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}
.hero-btn .theme-btn {
    background: #a40034 !important;
    color: #ffffff !important;
    border: 2px solid #a40034 !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(164, 0, 52, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.hero-btn .theme-btn:hover {
    background: #ffffff !important;
    color: #a40034 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15) !important;
}

/* Side Banner Call Now Style (if used) */
.hero-banner {
    overflow: hidden !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
.hero-banner img {
    border-radius: 18px !important;
    transition: transform 0.5s !important;
}
.hero-banner:hover img {
    transform: scale(1.03) !important;
}
.hero-banner .banner-content {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 30px 20px 20px 20px !important;
    border-radius: 0 0 18px 18px !important;
}
.hero-banner .banner-content h3 {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

/* Responsive tweaks for Hero Slider */
@media (max-width: 991px) {
    .hero-single {
        min-height: 440px !important;
        padding: 50px 30px !important;
    }
    .hero-content {
        max-width: 100% !important;
        padding: 25px !important;
    }
    .hero-content .hero-title {
        font-size: 32px !important;
    }
}
@media (max-width: 575px) {
    .hero-single {
        min-height: 380px !important;
        padding: 30px 20px !important;
        border-radius: 12px !important;
    }
    .hero-content {
        padding: 20px 15px !important;
        background: rgba(0, 0, 0, 0.45) !important;
        border-radius: 12px !important;
    }
    .hero-content .hero-title {
        font-size: 24px !important;
    }
    .hero-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    .hero-btn .theme-btn {
        padding: 10px 22px !important;
        font-size: 14px !important;
    }
}

/* Product Card Redesign (Fixing sizes & Premium UI) */
.product-item {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 36px rgba(164, 0, 52, 0.08) !important;
}
.product-img {
    position: relative !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    aspect-ratio: 4/5 !important; /* Perfect uniform size */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}
.productimg {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Prevents cropped images */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.product-item:hover .productimg {
    transform: scale(1.06) !important;
}

/* Vendor Sold By Badges */
.product-vendor-badge {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #727272 !important;
    background: #f5efe2 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: fit-content !important;
}
.product-vendor-badge.admin {
    background: #e2f0d9 !important;
    color: #385723 !important;
}

/* Card Content Details */
.product-content {
    padding: 16px 18px 20px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.product-info {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    min-height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.product-title a {
    color: #2c2c2c !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}
.product-title a:hover {
    color: #a40034 !important;
}
.product-price {
    margin-top: auto !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    color: #a40034 !important;
    padding-top: 6px !important;
}

/* Section Header Improvements */
.site-heading-inline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 35px !important;
    border-bottom: 1px solid #f2f2f2 !important;
    padding-bottom: 15px !important;
}
.site-heading-inline .site-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2c2c2c !important;
    margin-bottom: 0 !important;
    position: relative !important;
}
.site-heading-inline .site-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 60px;
    height: 3px;
    background: #a40034 !important;
}
.site-heading-inline a {
    color: #a40034 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
}
.site-heading-inline a:hover {
    color: #2c2c2c !important;
    transform: translateX(4px) !important;
}

/* Become a Vendor Banner (Multi-Vendor Focus) */
.vendor-cta-section {
    background: linear-gradient(135deg, #a40034 0%, #750025 100%) !important;
    border-radius: 20px !important;
    padding: 50px 60px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(164, 0, 52, 0.2) !important;
    margin: 60px 0 !important;
    z-index: 1;
}
.vendor-cta-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 50% !important;
    top: -100px;
    right: -50px;
    z-index: -1;
}
.vendor-cta-content h2 {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}
.vendor-cta-content p {
    color: #ffcad6 !important;
    font-size: 16px !important;
    max-width: 650px !important;
    margin-bottom: 25px !important;
    line-height: 1.65 !important;
}
.vendor-cta-btn .theme-btn {
    background: #ffffff !important;
    color: #a40034 !important;
    font-weight: 800 !important;
    border: 2px solid #ffffff !important;
    padding: 12px 32px !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s !important;
    display: inline-block !important;
}
.vendor-cta-btn .theme-btn:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
}
@media (max-width: 767px) {
    .vendor-cta-section {
        padding: 35px 25px !important;
        text-align: center !important;
    }
    .vendor-cta-content h2 {
        font-size: 25px !important;
    }
}

/* Premium Responsive Image Banners */
.hero-slide-item {
    width: 100% !important;
    height: 320px !important; /* Cap height to exactly half of original */
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
.hero-slide-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 20px !important;
    object-fit: cover !important;
}
@media (max-width: 767px) {
    .hero-slide-item {
        height: 160px !important; /* Cap mobile height to exactly half of original */
        border-radius: 10px !important;
    }
    .hero-slide-img {
        border-radius: 10px !important;
    }
}

/* Shop Single Size Dropdown Styling */
.shop-single-size select.form-select {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    border: 1.5px solid #eaeaea !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
    background-color: #fcfcfc !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}
.shop-single-size select.form-select:focus {
    border-color: #a40034 !important;
    background-color: #fff !important;
}

/* Mobile responsive fixes for products & sliders */
@media (max-width: 575px) {
    /* Hero Slider Mobile Font Scaling & Sizing */
    .hero-single {
        min-height: 280px !important;
        padding: 25px 15px !important;
        border-radius: 10px !important;
    }
    .hero-content {
        padding: 15px !important;
        max-width: 100% !important;
        border-radius: 10px !important;
        background: rgba(0, 0, 0, 0.5) !important; /* High contrast background */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    .hero-content .hero-sub-title {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        margin-bottom: 5px !important;
    }
    .hero-content .hero-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin: 8px 0 12px 0 !important;
    }
    .hero-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    .hero-btn .theme-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }
    
    /* Product list items */
    .product-item {
        border-radius: 10px !important;
        margin-bottom: 15px !important;
    }
    .product-content {
        padding: 10px 12px 14px 12px !important;
    }
    .product-title {
        font-size: 13px !important;
        min-height: 36px !important;
        margin-bottom: 4px !important;
    }
    .product-vendor-badge {
        font-size: 8px !important;
        padding: 2px 5px !important;
        margin-bottom: 4px !important;
    }
    .product-price {
        font-size: 14px !important;
    }
}
