/* ==========================================================================
   Product Cards Section Component Styles - SS Healing Rays
   Dedicated to: home/product.php
   Layout:
     - 2 Products Card View (side-by-side on desktop, stacked on mobile)
     - Top Image Container (3:2 ratio with zoom on hover)
     - Overlapping Center Logo Badge (circular badge floating on boundary)
     - Below Content Section: Product Name, Short Description, CTA Button
   ========================================================================== */

/* 1. Section Wrapper */
.product-section {
    position: relative;
    padding: 0 0 clamp(4.5rem, 6.5vw, 6.5rem);
    background-color: #ffffff;
    overflow: hidden;
}

/* 2. Section Header */
.product-header {
    margin-bottom: 40px;
    padding: 0 1rem;
}

/* Unified Eyebrow Badge (Our Products) */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(186, 67, 108, 0.08);
    border: 1px solid rgba(186, 67, 108, 0.16);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.product-badge .badge-icon {
    color: var(--secondary-color, #ba436c);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-badge .badge-text {
    font-family: var(--brand-font-sans, 'Lato', sans-serif);
    font-size: clamp(0.76rem, 0.84vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-color, #ba436c);
    line-height: 1;
}

.product-pretitle {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--heading-color, #111133);
    margin-bottom: 10px;
}

.product-heading {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(2.2rem, 3.8vw, 3.1rem);
    font-weight: 400;
    line-height: 1.22;
    color: var(--heading-color, #111133);
    margin: 0 auto;
    letter-spacing: -0.015em;
}

.product-heading .product-heading-line-1 {
    display: block;
}

.product-heading .product-heading-line-2 {
    display: block;
    margin-top: 0.25rem;
}

.product-heading .title-highlight {
    font-family: var(--brand-font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 500;
    color: var(--secondary-color, #ba436c);
}

/* 3. Cards Grid Container */
.product-cards-container {
    max-width: 980px;
    margin: 0 auto;
}

.product-card-col {
    display: flex;
}

/* 4. Product Card Frame */
.product-card {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(130, 56, 122, 0.14);
    box-shadow: 0 14px 38px -10px rgba(17, 17, 51, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px -12px rgba(130, 56, 122, 0.22);
    border-color: rgba(130, 56, 122, 0.32);
}

/* 5. Top Image Container with Overlapping Logo */
.product-media-wrapper {
    position: relative;
    width: 100%;
}

.product-image-frame {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f8fafc;
}

.product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 6. Overlapping Center Logo Badge */
.product-logo-badge {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(17, 17, 51, 0.14), 0 0 0 5px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.product-card:hover .product-logo-badge {
    transform: translate(-50%, 50%) scale(1.08);
    box-shadow: 0 12px 30px -4px rgba(130, 56, 122, 0.25), 0 0 0 5px #ffffff;
}

.product-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 7. Bottom Content Section */
.product-content {
    position: relative;
    padding: 52px 32px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.product-details {
    margin-bottom: 1.75rem;
    width: 100%;
}

.product-subheading {
    display: inline-block;
    font-family: var(--brand-font-sans, 'Lato', sans-serif);
    font-size: clamp(0.74rem, 0.82vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-color, #ba436c);
    margin-bottom: 0.35rem;
}

.product-title {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--heading-color, #111133);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.product-description {
    font-family: var(--brand-font-sans, 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.6;
    color: #555566;
    margin: 0 auto;
    max-width: 380px;
}

/* 8. Action Button */
.product-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Specific styling & smooth interactive hover animation for product CTA buttons */
.product-actions .Btn-Product-Primary,
.product-actions .Btn-Product-Demo,
.Btn-Product-Primary,
.Btn-Product-Demo {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(130, 56, 122, 0.35) !important;
    box-shadow: 0 4px 14px rgba(17, 17, 51, 0.05);
    padding: 3px 3px 3px 22px !important;
    gap: 16px;
    height: 50px;
    border-radius: 50px !important;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
}

.Btn-Product-Primary .text,
.Btn-Product-Demo .text {
    color: var(--heading-color, #111133) !important;
    font-family: var(--brand-font-btn, 'Outfit', 'Lato', sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.Btn-Product-Primary .icon-Container,
.Btn-Product-Demo .icon-Container {
    width: 42px;
    height: 42px;
    background-color: var(--primary-color, #82387a) !important;
    border-radius: 50% !important;
    border: none !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.Btn-Product-Primary .icon-Container .btn-arrow-svg,
.Btn-Product-Demo .icon-Container .btn-arrow-svg {
    width: 18px;
    height: 18px;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease, color 0.3s ease;
}

/* Hover state: Smooth background fill, text inversion, icon inversion & diagonal arrow glide */
.Btn-Product-Primary:hover,
.Btn-Product-Demo:hover {
    background-color: var(--primary-color, #82387a) !important;
    border-color: var(--primary-color, #82387a) !important;
    box-shadow: 0 8px 24px rgba(130, 56, 122, 0.28) !important;
    transform: translateY(-2px);
}

.Btn-Product-Primary:hover .text,
.Btn-Product-Demo:hover .text {
    color: #ffffff !important;
}

.Btn-Product-Primary:hover .icon-Container,
.Btn-Product-Demo:hover .icon-Container {
    background-color: #ffffff !important;
    transform: scale(1.04);
}

.Btn-Product-Primary:hover .icon-Container .btn-arrow-svg,
.Btn-Product-Demo:hover .icon-Container .btn-arrow-svg {
    color: var(--primary-color, #82387a) !important;
    stroke: var(--primary-color, #82387a) !important;
    transform: translate(2.5px, -2.5px);
}

.Btn-Product-Primary:active,
.Btn-Product-Demo:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Below (<= 991.98px) */
@media (max-width: 991.98px) {
    .product-section {
        padding: 4rem 0 4.5rem;
    }
    .product-cards-container {
        max-width: 760px;
    }
    .product-image-frame {
        height: 230px;
    }
    .product-logo-badge {
        width: 74px;
        height: 74px;
    }
    .product-content {
        padding: 46px 24px 30px;
    }
}

/* Mobile Screens (<= 767.98px) */
@media (max-width: 767.98px) {
    .product-section {
        padding: 3.5rem 0 4rem;
    }
    .product-cards-container {
        max-width: 440px;
    }
    .product-card {
        max-width: 440px;
        margin: 0 auto;
    }
    .product-image-frame {
        height: 220px;
    }
    .product-logo-badge {
        width: 68px;
        height: 68px;
    }
    .product-content {
        padding: 42px 20px 28px;
    }
    .product-title {
        font-size: 1.45rem;
    }
    .product-description {
        font-size: 0.96rem;
    }
}

