/* ==============================
   MODERN FEATURED PRODUCT STYLES
   Inspired by clean DTC brand design
   ============================== */

:root {
    /* Color Palette */
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-accent: #ff4444;
    --color-gray-light: #f8f8f8;
    --color-gray-medium: #e0e0e0;
    --color-gray-dark: #666666;
    --color-text: #333333;

    /* Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
}

/* ==============================
   BASE LAYOUT
   ============================== */

.featured-product {
    background: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.featured-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 68, 68, 0.05) 0%,
            rgba(255, 68, 68, 0) 50%,
            rgba(255, 68, 68, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.featured-product .page-width {
    position: relative;
    z-index: 1;
}

/* ==============================
   PRODUCT GRID
   ============================== */

.featured-product .product {
    min-height: 80vh;
    display: grid;
    align-items: center;
}

@media (min-width: 1200px) {
    .featured-product .product {
        grid-template-columns: 1.2fr 1fr;
        gap: 100px;
    }
}

/* ==============================
   PRODUCT IMAGE
   ============================== */

.product__media-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.product__media {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.product__media:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* Floating elements for visual interest */
.product__media::before,
.product__media::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.1;
    z-index: -1;
}

.product__media::before {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.product__media::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

/* ==============================
   PRODUCT INFO
   ============================== */

.product__info-wrapper {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Product Title */
.product__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.product__title::after {
    content: '®';
    position: absolute;
    top: 0;
    margin-left: 8px;
    font-size: 0.3em;
    font-weight: 400;
}

/* Product Description */
.product__description-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border: 1px solid #2680be;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.product__description-card::before {
    content: '✨';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 20px;
    opacity: 0.5;
}

.product__description-card p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
}

/* ==============================
   PRICE CARD
   ============================== */

.product__price-card {
    background: var(--color-secondary);
    border: 3px solid #2680be;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product__price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product__price-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product__price {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-primary);
    position: relative;
}

.product__price::before {
    content: '$';
    font-size: 0.7em;
    position: absolute;
    left: -0.5em;
    top: 0.1em;
}

.product__compare-price {
    font-size: 24px;
    color: var(--color-gray-dark);
    text-decoration: line-through;
    opacity: 0.6;
}

.product__savings-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
}

/* ==============================
   BUNDLE SELECTOR
   ============================== */

.bundle-selector {
    margin: var(--spacing-lg) 0;
}

.bundle-selector__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-sm);
}

.bundle-selector__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-xs);
}

.bundle-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--color-secondary);
    border: 1px solid #2680be;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bundle-option label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 0;
}

.bundle-option label:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bundle-option input[type="radio"]:checked+label {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    animation: pulse 0.3s ease;
}

.bundle-option input[type="radio"]:checked+label::before {
    width: 100%;
    height: 100%;
}

.bundle-option label span {
    position: relative;
    z-index: 1;
}

/* Popular badge */
.bundle-option--popular label::after {
    content: 'POPULAR';
    position: absolute;
    top: -8px;
    right: 10px;
    padding: 2px 8px;
    background: var(--color-accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

/* ==============================
   PURCHASE SECTION
   ============================== */

.product__purchase-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.quantity-selector__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-dark);
}

.quantity-selector__input-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-secondary);
    border: 2px solid #2680be;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector__button {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector__button:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.quantity-selector__input {
    width: 80px;
    height: 44px;
    border: none;
    border-left: 2px solid var(--color-gray-medium);
    border-right: 2px solid var(--color-gray-medium);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    background: transparent;
}

/* Add to Cart Button */
.product__add-to-cart {
    width: 100%;
    padding: 20px 32px;
    background: yellow;
    color: #9c2480;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.product__add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.product__add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product__add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.product__add-to-cart:active {
    transform: translateY(-1px);
}

.product__add-to-cart .button-price {
    font-weight: 900;
    opacity: 0.9;
}

/* ==============================
   PRODUCT BADGES
   ============================== */

.product__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.product__badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #2680be;
    transition: all 0.2s ease;
}

.product__badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product__badge--highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    color: white;
    border-color: transparent;
}

.product__badge--eco {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
    border-color: transparent;
}

/* ==============================
   SHIPPING INFO
   ============================== */

.product__shipping-info {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-medium);
    text-align: center;
}

.product__shipping-info p {
    font-size: 13px;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 4px 0;
}

.product__shipping-info .icon {
    color: #37b24d;
    margin-right: 4px;
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media (max-width: 1200px) {
    .featured-product .product {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .product__media {
        margin: 0 auto;
        max-width: 500px;
    }

    .product__info-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product__title {
        font-size: 36px;
    }

    .product__price {
        font-size: 32px;
    }

    .bundle-selector__options {
        grid-template-columns: 1fr;
    }

    .product__badges {
        justify-content: center;
    }

    .product__media {
        padding: var(--spacing-md);
    }

    .product__purchase-section {
        padding: var(--spacing-md);
    }
}
/* === Enlarge product image (FeaturedProduct only) === */
@media (min-width: 960px) {

    /* make the media column larger and guarantee a healthy minimum */
    #FeaturedProduct- {
            {
            section.id
        }
    }

    .product {
        grid-template-columns: minmax(560px, 1.8fr) 1fr;
        /* was 1.4fr 1fr */
        column-gap: 56px;
        /* a touch more breathing room */
    }
}

/* nuke theme caps that keep the image tiny */
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media-wrapper,
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media,
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media-item,
#FeaturedProduct- {
        {
        section.id
    }
}

.media {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* make the “canvas” around the image roomy and wide */
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media {
    aspect-ratio: 4 / 3;
    /* less square = visually larger */
    padding: clamp(12px, 2vw, 28px);
    /* reduce padding so the image can grow */
    border-radius: 16px;
}

/* ensure the actual image scales to the container */
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media img,
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    max-width: none !important;
}

/* optional: if the media wrapper is centered, let it stretch */
#FeaturedProduct- {
        {
        section.id
    }
}

.product__media-wrapper {
    display: block;
    /* override any flex centering */
}
/* === Add-to-Cart Animated Upgrade === */

/* shimmer sweep + soft pulse */
.product__add-to-cart {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: cartPulse 3s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product__add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* shimmer sweep */
.product__add-to-cart::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 45%,
            rgba(255, 255, 255, 0) 90%);
    transform: translateX(-120%) rotate(8deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.3s ease;
    z-index: 1;
}

.product__add-to-cart:hover::after {
    opacity: 1;
    transform: translateX(120%) rotate(8deg);
}

/* idle “breathing” pulse */
@keyframes cartPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
        transform: scale(1.02);
    }
}

/* accessibility & reduced motion */
@media (prefers-reduced-motion: reduce) {
    .product__add-to-cart {
        animation: none;
    }

    .product__add-to-cart::after {
        transition: none;
    }
}

/* === Force all lines/strokes to blue === */
:root {
    --color-lines: #2680be;
    /* your blue */
    /* optional: swap theme's mid gray token to the same blue */
    --color-gray-medium: var(--color-lines);
}

/* Things that use real borders */
.product__description-card,
.product__price-card,
.product__badge,
.bundle-option label,
.quantity-selector__input-wrapper,
.product__shipping-info {
    border-color: var(--color-lines) !important;
}

.quantity-selector__input {
    border-left-color: var(--color-lines) !important;
    border-right-color: var(--color-lines) !important;
}

/* Things that LOOK like borders but are actually box-shadows (Dawn pattern) */
.card,
.product__info-wrapper .card,
.product__info-wrapper .product__block,
.product__info-wrapper .product__accordion,
.product__accordion,
.product__accordion .accordion__content,
.product__purchase-section,
.product__price-card,
.product__description-card {
    /* replace the 1px inset “border” shadow */
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
}

/* Generic safety net for any other 1px hairlines */
*[style*="box-shadow: 0 0 0 1px"],
.isolate,
.shadow-border,
.border-divider {
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
}

/* Divider lines rendered as top borders */
hr,
.product__shipping-info {
    border-top: 1px solid var(--color-lines) !important;
}

/* Hover/focus states that also flip their border */
.bundle-option label:hover,
.bundle-option input[type="radio"]:checked+label {
    border-color: var(--color-lines) !important;
}

/* If bullets/cards are inside .rte blocks with their own card container */
.rte .card {
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
}
/* ===== Make all product info “lines” blue (the bullet card & friends) ===== */
:root {
    --color-lines: #2680be;
}

/* The Dawn/Shopline bullet card is usually one of these containers */
.featured-product .product__info-wrapper .card,
.featured-product .product__info-wrapper .rte, .pdp-modern #price-1761772122558342befd, 
.featured-product .product__info-wrapper .product__text,
.featured-product .product__info-wrapper .product__block,
.featured-product .product__info-wrapper .product__accordion,
.featured-product .product__info-wrapper [class*="card"],
.featured-product .product__info-wrapper [class*="Card"] {
    /* replace the subtle grey inset “border” */
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
    border-color: var(--color-lines) !important;
    /* in case a real border exists */
    border-radius: 12px;
    /* keep the rounded look */
    background: #fff;
    /* match your current style */
}

/* Dividers that are true borders */
.featured-product .product__shipping-info {
    border-top: 1px solid var(--color-lines) !important;
}

/* Quantity input left/right hairlines */
.featured-product .quantity-selector__input {
    border-left-color: var(--color-lines) !important;
    border-right-color: var(--color-lines) !important;
}

/* Bundle pill outlines */
.featured-product .bundle-option label,
.featured-product .bundle-option label:hover,
.featured-product .bundle-option input[type="radio"]:checked+label {
    border-color: var(--color-lines) !important;
}

/* Safety net: ANY element in the right column that uses the 1px inset trick */
.featured-product .product__info-wrapper * {
    /* if the theme hardcodes the shadow, overwrite it */
    --shadow-border: 0 0 0 1px var(--color-lines) inset;
    /* some themes read this token */
}
/* === Make accordion lines blue too (Ingredients, Nutrition Facts, etc.) === */
:root {
    --color-lines: #2680be;
}

/* Override Shopline/Dawn accordion borders */
/* .product__accordion,
.accordion,
.accordion__content,
.accordion__item,
.accordion__title,
details {
    border-color: var(--color-lines) !important;
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
} */

/* Fix divider lines between accordion items */
.accordion:not(.accordion--flush)>*+* {
    border-top: 1px solid var(--color-lines) !important;
}

/* Accent icon (the little chevron or dot) if you want that blue too */
.accordion summary svg,
.product__accordion summary svg {
    stroke: var(--color-lines) !important;
    color: var(--color-lines) !important;
}

/* Optional: hover/focus blue outline */
.accordion summary:hover,
.accordion summary:focus {
    box-shadow: 0 0 0 1px var(--color-lines) inset !important;
}
/* Make the bundle chip border blue */
.pdp-bundles__group .pdp-bundle {
    border: 2px solid #2680be !important;
    border-radius: 10px;
    /* optional */
    color: #2680be;
    /* text blue to match */
    box-shadow: none !important;
    /* kill “fake border” shadows */
}

/* Keep it blue on hover/active/focus too */
.pdp-bundles__group .pdp-bundle:hover,
.pdp-bundles__group .pdp-bundle.is-active,
.pdp-bundles__group .pdp-bundle:focus {
    border-color: #2680be !important;
    outline: 2px solid #2680be !important;
    /* replace the thick black focus ring */
    outline-offset: 2px;
}
/* === Force bundle selector to use blue theme === */
.bundle-option label {
    border-color: #2680be !important;
    color: #2680be !important;
}

.bundle-option label:hover {
    border-color: #2680be !important;
    box-shadow: 0 0 0 2px rgba(18, 109, 145, 0.2);
    /* soft blue hover glow */
    transform: translateY(-2px);
}

/* Active (checked) state — solid blue background, white text */
.bundle-option input[type="radio"]:checked+label {
    background: #2680be !important;
    border-color: #2680be !important;
    color: #ffffff !important;
}

/* Remove the dark overlay circle effect */
.bundle-option label::before {
    background: #2680be !important;
}

/* === Force blue border + kill shadow === */
#FeaturedProduct-1761772122558342befd .pdp-bundle,
#FeaturedProduct-1761772122558342befd .pdp-bundle:hover,
#FeaturedProduct-1761772122558342befd .pdp-bundle.is-active {
    border-color: #2680be !important;
    /* blue border */
    box-shadow: none !important;
    /* kill black inset border */
    background: #ffffff !important;
    /* white background */
    color: #2680be !important;
    /* blue text */
}
/* === Add to Cart: yellow button, blue border, pink text === */
.product__add-to-cart {
    background: #ffe800;
    /* yellow */
    color: #ec395c;
    /* pink text */
    border: 3px solid #2680be;
    /* blue border */
}

/* keep the same colors on hover/active */
.product__add-to-cart:hover,
.product__add-to-cart:active {
    background: #ffe800;
    /* stay yellow */
    color: #ec395c;
    /* stay pink */
    border-color: #2680be;
    /* stay blue */
}
/* HARD OVERRIDE: Add to Cart = yellow + blue border + pink text */
.product__add-to-cart,
.product__add-to-cart span,
.product__add-to-cart .button-label,
.product__add-to-cart * {
    background: #ffe800 !important;
    /* yellow */
    color: #ec395c !important;
    /* pink text */
    border: 3px solid #2680be !important;
    /* blue border */
}

/* keep same colors on hover/active */
.product__add-to-cart:hover,
.product__add-to-cart:active,
.product__add-to-cart:hover span,
.product__add-to-cart:active span,
.product__add-to-cart:hover *,
.product__add-to-cart:active * {
    background: #ffe800 !important;
    color: #ec395c !important;
    border-color: #2680be !important;
    box-shadow: 0 0 0 var(--btn-border-thickness) red;
}