/* =============================
   Peri Main Store Styles
   
   Note: Header & footer styles are loaded from base-parts/
   (enqueued automatically for all page types)
   ============================= */

/* =============================
   Layout & Containers
   ============================= */

.peri-main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* =============================
   Hero Section
   ============================= */

.peri-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-top: 1rem;
}

.peri-hero-left {
    flex: 1;
}

.peri-hero-title {
    font-weight: 700 !important;
    color: #031530;
}

.peri-hero-description {
    font-weight: 500;
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--solera-mako-base);
    margin-bottom: 1.5rem;
    line-height: 1.25rem;
}

.peri-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.peri-hero-right img {
    max-height: 240px;
    max-width: 100%;
    width: auto;
}

/* =============================
   Pricing Section
   ============================= */

.peri-product-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 1rem;
    width: 100%;
    height: auto;
}

.peri-product-card {
    min-width: 17.5rem;
    max-width: 21.25rem;
    background: var(--solera-white);
    border: 1px solid #ddd;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
    display: flex;
    flex: 1 1 calc(33.333% - 2rem);
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.5rem;
    overflow: hidden;
}

.peri-product-card .peri-product-ribbon {
    position: static;
    margin: -1.5rem -1.5rem 0 -1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--solera-sun);
    color: var(--solera-shark);
    font-weight: 600;
    text-align: center;
}

.peri-product-card .peri-product-ribbon-spacer {
    margin: -1.5rem -1.5rem 0 -1.5rem;
    height: 2.5rem;
}

.peri-product-title {
    font-weight: 600 !important;
    min-height: 1.688rem;
    margin: 0 !important;
    color: #1a3a52;
}

.peri-product-short-description {
    color: #666;
    min-height: 2.5rem;
}

.peri-product-prices {
    display: flex;
    min-height: 2.5rem;
    margin-top: 0.5rem;
    align-items: flex-end;
}

.peri-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.peri-product-regular-price {
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 400;
    color: var(--solera-jacarta);
    text-decoration: line-through;
}

.peri-product-price-only,
.peri-product-sale-price {
    font-size: 1.8rem;
    line-height: 1.8rem;
    font-weight: bold;
    color: var(--solera-jacarta);
}

.peri-price-period {
    font-size: 1rem;
    font-weight: 400;
}

.peri-product-access {
    color: #444;
    min-height: 4rem;
}

.peri-additional-features {
    color: #333;
    line-height: 1.6;
    text-align: left;
    min-height: 4rem;
    flex-grow: 1;
}

.peri-additional-features ul,
.peri-additional-features ol {
    margin: 0;
    padding-left: 1.25rem;
}

.peri-additional-features li {
    margin-bottom: 0.4rem;
}

.peri-sale-price-alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    min-height: 3.6rem;
    background: #ebf5ff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--solera-cobalt-500);
}

.peri-more-details-link {
    text-align: center;
    color: var(--solera-cobalt-500);
    text-decoration: none;
    font-weight: 500;
}

.peri-more-details-link:hover {
    text-decoration: underline;
}

/* =============================
   Shop Now Button
   ============================= */

/* Wrapper handles full-width layout; button styles come from .btn.btn-secondary in assets/main.css */
.peri-button-wrapper {
    display: block;
    width: 100%;
}

/* =============================
   Info Section
   ============================= */

.peri-info-section {
    color: var(--solera-mako-base);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.75rem;
}

.peri-info-icon{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-right: 0;
    line-height: 0;
    top: -5px;
    margin-left: 1px;
    padding-top: 2px;
}

/* =============================
   Mobile Responsive
   ============================= */

@media (max-width: 900px) {
    .peri-footer-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .peri-footer-left,
    .peri-footer-middle,
    .peri-footer-right {
        flex: 1 1 200px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .peri-hero {
        flex-direction: column;
        gap: 1rem;
    }

    .peri-hero-right {
        display: none;
    }

    .peri-testimonial-videos {
        flex-direction: column;
    }

    .peri-footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 1.5rem 1rem;
    }

    .peri-footer-left,
    .peri-footer-middle,
    .peri-footer-right {
        flex: none;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .peri-footer-left {
        padding: 0.875rem 0;
    }

    .peri-footer-middle {
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.875rem 0;
        width: 100%;
    }

    .peri-footer-right {
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.875rem 0;
        width: 100%;
    }

    .peri-footer-right strong {
        text-align: center;
    }

    .peri-footer-right span {
        text-align: center;
    }

    .peri-footer-social {
        justify-content: center;
    }
}