/*
 * Mom's Toy Box — Homepage Styles
 * File: /wp-content/themes/flower-shop-florist-child/mtb-homepage.css
 *
 * COLOR VARIABLES — update these two values to match your exact brand colors:
 *   --mtb-pink  : your main hot pink (currently set to #e8177d)
 *   --mtb-teal  : your nav/accent green (currently set to #2d8f6f)
 */

:root {
    --mtb-pink:        #fa3c7a;
    --mtb-pink-dark:   #d4205d;
    --mtb-pink-light:  #fde8f0;
    --mtb-teal:        #2d8f6f;
    --mtb-dark:        #1a0a2e;
    --mtb-dark-mid:    #3d0b5e;
    --mtb-text:        #333333;
    --mtb-text-muted:  #666666;
    --mtb-border:      #e8e8e8;
    --mtb-white:       #ffffff;
    --mtb-radius:      6px;
    --mtb-font:        Alegreya, sans-serif;
    --mtb-max-width:   1200px;
}

/* ── RESETS & WRAPPER ─────────────────────────────────────── */
.mtb-homepage-wrap {
    width: 100%;
    font-family: var(--mtb-font);
    color: var(--mtb-text);
}

.mtb-homepage-wrap *,
.mtb-homepage-wrap *::before,
.mtb-homepage-wrap *::after {
    box-sizing: border-box;
}

.mtb-section {
    max-width: var(--mtb-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.mtb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.mtb-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--mtb-text);
    margin: 0;
}

.mtb-see-all {
    font-size: 13px;
    color: var(--mtb-pink);
    text-decoration: none;
    font-weight: 500;
}

.mtb-see-all:hover {
    text-decoration: underline;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.mtb-btn-primary {
    display: inline-block;
    background: var(--mtb-pink);
    color: var(--mtb-white) !important;
    padding: 12px 28px;
    border-radius: var(--mtb-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--mtb-pink);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--mtb-font);
}

.mtb-btn-primary:hover {
    background: var(--mtb-pink-dark);
    border-color: var(--mtb-pink-dark);
    color: var(--mtb-white) !important;
}

.mtb-btn-ghost {
    display: inline-block;
    background: transparent;
    color: rgba(255,255,255,0.9) !important;
    padding: 11px 24px;
    border-radius: var(--mtb-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    margin-left: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--mtb-font);
}

.mtb-btn-ghost:hover {
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

/* ── HERO SLIDER ──────────────────────────────────────────── */
.mtb-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mtb-hero-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.mtb-hero-slide {
    flex: 0 0 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

/* Slide background themes */
.slide-bg-1 {
    background: linear-gradient(135deg, #1a0a2e 0%, #3d0b5e 60%, #1a0a2e 100%);
}
.slide-bg-2 {
    background: linear-gradient(135deg, #0a1e2e 0%, #0b3d5e 60%, #0a1e2e 100%);
}
.slide-bg-3 {
    background: linear-gradient(135deg, #2e0a1a 0%, #5e0b3d 60%, #2e0a1a 100%);
}

.mtb-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.mtb-hero-badge {
    display: inline-block;
    background: var(--mtb-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.mtb-hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 14px;
}

.mtb-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Hero controls */
.mtb-hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.mtb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.mtb-dot.active {
    background: var(--mtb-pink);
    width: 22px;
    border-radius: 4px;
}

.mtb-hero-prev,
.mtb-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mtb-hero-prev { left: 16px; }
.mtb-hero-next { right: 16px; }

.mtb-hero-prev:hover,
.mtb-hero-next:hover {
    background: rgba(255,255,255,0.3);
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.mtb-trust-bar {
    background: var(--mtb-pink-light);
    border-top: 1px solid #f4aadc;
    border-bottom: 1px solid #f4aadc;
    padding: 16px 20px;
}

.mtb-trust-inner {
    max-width: var(--mtb-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
}

.mtb-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.mtb-trust-item svg {
    color: var(--mtb-pink);
    flex-shrink: 0;
}

/* ── CATEGORY PILLS ───────────────────────────────────────── */
.mtb-categories-section {
    border-bottom: 1px solid var(--mtb-border);
}

.mtb-cat-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mtb-cat-strip::-webkit-scrollbar { display: none; }

.mtb-cat-pill {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--mtb-text-muted);
    transition: color 0.2s;
}

.mtb-cat-pill:hover {
    color: var(--mtb-pink);
}

.mtb-cat-pill:hover .mtb-cat-circle {
    border-color: var(--mtb-pink);
    background: #fce4f3;
}

.mtb-cat-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef0f8;
    border: 2px solid #f4aadc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background 0.2s, border-color 0.2s;
}

.mtb-cat-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
}

/* ── PRODUCT GRID ─────────────────────────────────────────── */
.mtb-products-section {
    border-bottom: 1px solid var(--mtb-border);
}

.mtb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mtb-product-card {
    border: 1px solid var(--mtb-border);
    border-radius: var(--mtb-radius);
    overflow: hidden;
    background: var(--mtb-white);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mtb-product-card:hover {
    box-shadow: 0 4px 16px rgba(232,23,125,0.12);
    transform: translateY(-2px);
}

.mtb-product-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}

.mtb-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mtb-product-card:hover .mtb-product-img-wrap img {
    transform: scale(1.04);
}

.mtb-product-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.mtb-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.mtb-product-badge.sale {
    background: var(--mtb-pink);
    color: #fff;
}

.mtb-product-badge.new {
    background: var(--mtb-teal);
    color: #fff;
}

.mtb-product-info {
    padding: 12px;
}

.mtb-product-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--mtb-text);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mtb-product-name:hover {
    color: var(--mtb-pink);
}

.mtb-product-price {
    font-size: 14px;
    color: var(--mtb-pink);
    font-weight: 600;
    margin-bottom: 10px;
}

/* WooCommerce price HTML overrides inside our grid */
.mtb-product-price .woocommerce-Price-amount { color: var(--mtb-pink); }
.mtb-product-price del { color: #aaa; font-size: 12px; }
.mtb-product-price ins { text-decoration: none; }

.mtb-product-cta {
    display: block;
    width: 100%;
    padding: 7px 0;
    border: 1.5px solid var(--mtb-pink);
    border-radius: var(--mtb-radius);
    color: var(--mtb-pink) !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mtb-product-cta:hover {
    background: var(--mtb-pink);
    color: #fff !important;
}

/* ── SPLIT PROMO BANNERS ──────────────────────────────────── */
.mtb-promo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--mtb-dark);
}

.mtb-promo-half {
    padding: 40px 48px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.mtb-promo-half:last-child {
    border-right: none;
}

.mtb-promo-tag {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mtb-pink);
    margin-bottom: 10px;
    font-weight: 600;
}

.mtb-promo-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.mtb-promo-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
    line-height: 1.6;
}

.mtb-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mtb-pink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s;
}

.mtb-promo-link:hover {
    gap: 10px;
    color: var(--mtb-pink);
}

/* ── CUSTOMER REVIEWS ─────────────────────────────────────── */
.mtb-reviews-section {
    background: #fafafa;
    border-top: 1px solid var(--mtb-border);
    border-bottom: 1px solid var(--mtb-border);
    max-width: 100%;
    padding: 40px 20px;
}

.mtb-reviews-section .mtb-section-header {
    max-width: var(--mtb-max-width);
    margin: 0 auto 24px;
}

.mtb-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--mtb-max-width);
    margin: 0 auto;
}

.mtb-review-card {
    background: var(--mtb-white);
    border: 1px solid var(--mtb-border);
    border-radius: var(--mtb-radius);
    padding: 20px;
}

.mtb-review-stars {
    color: var(--mtb-pink);
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.mtb-review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: italic;
}

.mtb-reviewer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mtb-reviewer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mtb-text);
}

.mtb-reviewer-location {
    font-size: 11px;
    color: #aaa;
}

.mtb-verified {
    display: inline-block;
    font-size: 10px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 3px 7px;
    border-radius: 3px;
    margin-top: 6px;
    font-weight: 600;
}

/* ── EMAIL SIGNUP ─────────────────────────────────────────── */
.mtb-email-section {
    background: var(--mtb-pink-light);
    border-top: 1px solid #f4aadc;
    border-bottom: 1px solid #f4aadc;
    padding: 40px 20px;
}

.mtb-email-inner {
    max-width: var(--mtb-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.mtb-email-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mtb-dark-mid);
    margin: 0 0 6px;
}

.mtb-email-sub {
    font-size: 13px;
    color: #665;
    margin: 0;
}

.mtb-email-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mtb-email-input {
    border: 1.5px solid #f4aadc;
    padding: 10px 16px;
    border-radius: var(--mtb-radius);
    font-size: 14px;
    background: #fff;
    width: 240px;
    font-family: var(--mtb-font);
    outline: none;
    transition: border-color 0.2s;
}

.mtb-email-input:focus {
    border-color: var(--mtb-pink);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mtb-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mtb-hero-slide {
        min-height: 280px;
        padding: 40px 20px;
    }

    .mtb-hero-title {
        font-size: 24px;
    }

    .mtb-hero-prev,
    .mtb-hero-next {
        display: none;
    }

    .mtb-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mtb-promo-split {
        grid-template-columns: 1fr;
    }

    .mtb-promo-half {
        padding: 28px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mtb-reviews-grid {
        grid-template-columns: 1fr;
    }

    .mtb-email-inner {
        flex-direction: column;
        text-align: center;
    }

    .mtb-email-form {
        justify-content: center;
    }

    .mtb-email-input {
        width: 100%;
        max-width: 300px;
    }

    .mtb-trust-inner {
        justify-content: flex-start;
        gap: 16px;
    }

    .mtb-section {
        padding: 28px 16px;
    }
}

@media (max-width: 480px) {
    .mtb-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mtb-btn-ghost {
        display: none;
    }
}
