/* 
 * EDCareStore Homepage CSS (MedPaid Inspired)
 * Theme: Green & White
 * Add via WPCode > Add Snippet > CSS Snippet
 */

:root {
    --mp-primary: #10b981; /* Green */
    --mp-primary-dark: #059669;
    --mp-dark: #1a1a2e; /* Navy dark */
    --mp-gray: #f3f4f6;
    --mp-text: #1f2937;
    --mp-text-light: #6b7280;
    --mp-radius: 12px;
    --mp-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --mp-transition: all 0.3s ease;
}

.medpaid-homepage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--mp-text);
    background-color: #ffffff;
    overflow-x: clip;
}

.mp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   1. HORIZONTAL CATEGORY SCROLL
   ======================================== */
.mp-category-scroll {
    padding: 2rem 0;
    border-bottom: 1px solid var(--mp-gray);
}

.mp-cat-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
}

.mp-cat-wrapper::-webkit-scrollbar {
    display: none; /* Chrome */
}

.mp-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--mp-text);
    min-width: 100px;
    transition: var(--mp-transition);
}

.mp-cat-item:hover {
    color: var(--mp-primary);
    transform: translateY(-3px);
}

.mp-cat-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--mp-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.mp-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-cat-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   2. PROMO BANNERS ROW
   ======================================== */
.mp-promo-banners {
    padding: 3rem 0;
}

.mp-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mp-banner {
    padding: 2.5rem 2rem;
    border-radius: var(--mp-radius);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mp-banner-green { background: linear-gradient(135deg, #10b981, #059669); }
.mp-banner-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.mp-banner-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.mp-banner-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mp-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: white;
}

.mp-banner p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.mp-banner-btn {
    background: white;
    color: var(--mp-text);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--mp-transition);
    margin-top: auto;
}

.mp-banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ========================================
   3. SHOP BY HEALTH NEED (Tabs)
   ======================================== */
.mp-health-needs {
    padding: 4rem 0;
    background: #fafafa;
}

.mp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mp-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.mp-view-more {
    color: var(--mp-primary);
    font-weight: 600;
    text-decoration: none;
}

.mp-tabs-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.mp-tab {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--mp-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--mp-transition);
}

.mp-tab:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
}

.mp-tab.active {
    background: var(--mp-primary);
    color: white;
    border-color: var(--mp-primary);
}

.mp-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.mp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PRODUCT CARDS (MedPaid Style)
   ======================================== */
.mp-product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--mp-radius);
    padding: 1.5rem;
    position: relative;
    transition: var(--mp-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mp-product-card:hover {
    border-color: var(--mp-primary);
    box-shadow: var(--mp-shadow);
}

.mp-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #fef3c7;
    color: #d97706;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.mp-product-img {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.mp-product-img img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.mp-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mp-brand {
    font-size: 0.75rem;
    color: var(--mp-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.mp-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    color: var(--mp-text);
}

.mp-product-info a {
    text-decoration: none;
}

.mp-price-row {
    margin-top: auto;
    margin-bottom: 1rem;
}

.mp-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--mp-text);
}

.mp-add-cart {
    display: block;
    width: 100%;
    text-align: center;
    background: white;
    border: 2px solid var(--mp-primary);
    color: var(--mp-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--mp-transition);
}

.mp-add-cart:hover {
    background: var(--mp-primary);
    color: white;
}

/* ========================================
   4. BRAND FEATURE
   ======================================== */
.mp-brand-feature {
    padding: 4rem 0;
}

.mp-feature-banner {
    background: var(--mp-dark);
    border-radius: var(--mp-radius);
    padding: 3rem;
    color: white;
    margin-bottom: 2rem;
    background-image: url('https://via.placeholder.com/1200x400/1a1a2e/ffffff?text=Brand+Banner');
    background-size: cover;
    background-position: center;
    position: relative;
}

.mp-feature-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    border-radius: var(--mp-radius);
}

.mp-feature-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.mp-feature-content h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: white;
}

.mp-feature-content p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.mp-btn-outline {
    display: inline-block;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--mp-transition);
}

.mp-btn-outline:hover {
    background: white;
    color: var(--mp-dark);
}

/* ========================================
   5. TESTIMONIALS
   ======================================== */
.mp-testimonials {
    padding: 4rem 0;
    background: #fafafa;
}

.mp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mp-testi-card {
    background: white;
    padding: 2rem;
    border-radius: var(--mp-radius);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.mp-testi-card .stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.mp-testi-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--mp-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mp-testi-card .author {
    font-weight: 700;
    color: var(--mp-text-light);
    margin: 0;
}

/* ========================================
   SWIPER OVERRIDES
   ======================================== */
.swiper-button-next, .swiper-button-prev {
    color: var(--mp-primary) !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: var(--mp-shadow);
    border: 1px solid #e5e7eb;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .mp-banner-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mp-banner-grid { grid-template-columns: 1fr; }
    .mp-testi-grid { grid-template-columns: 1fr; }
    .mp-feature-content h2 { font-size: 2rem; }
    .mp-section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}