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

/* ============================================================
   Astra overrides
   ============================================================ */
/* Break content out of the default container */
.ast-container:has(.peri-au-single-product) {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

/* 100vw breakout: expand sections to full viewport width */
.peri-au-section-hero,
.peri-au-section-features,
.peri-au-section-video,
.peri-au-section-faq {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}


/* ------------------------------------------------------------
   3. Page wrapper & shared layout
   ------------------------------------------------------------ */
.peri-au-single-product {
    width: 100%;
    background-color: #ffffff;
}

/* Centered content column  used by all sections */
.peri-au-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section title (gradient div) */
.peri-au-section-label {
    display: block;
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0.25rem 0;
}


/* ------------------------------------------------------------
   4. Section 1: Hero
   ------------------------------------------------------------ */

/* Background image wrapper with white overlay */
.peri-au-bg-wrapper {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.peri-au-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.peri-au-section-hero {
    width: 100%;
    padding: 2rem 0;
    position: relative;
}

.peri-au-hero-inner {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Product image with zoom-on-hover */
.peri-au-hero-image {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.peri-au-hero-image img {
    width: 100%;
    max-width: 332px;
    height: auto;
    aspect-ratio: 332 / 383;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-out;
    transform-origin: top left;
}

/* Details card */
.peri-au-hero-details-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #374C6C;
    border-radius: 2px;
}

/* Title row wrapper for SKU and category side by side */
.peri-au-hero-title-row {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    flex-wrap: wrap;
}

/* SKU & Category share identical typography */
.peri-au-hero-sku,
.peri-au-hero-category {
    font-family: "Montserrat", sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: #32255e !important;
}

/* Description & Best-for share base text styles */
.peri-au-hero-description,
.peri-au-hero-best-for {
    font-size: 16px;
    margin: 0;
}

.peri-au-hero-description {
    line-height: 1.55;
}

/* .peri-au-hero-best-for{
    padding: 0.75rem;
    background-color: #fffce7;
    border-radius: 10px;
    box-shadow: -5px 5px 5px 0 #9d9d9d78;
} */

.peri-au-hero-best-for strong {
    font-weight: 700;
    margin-right: 0.25rem;
}

.peri-au-best-for-icon {
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    color: #32255e;
    flex-shrink: 0;
}

.peri-au-hero-best-for em {
    font-style: italic;
    color: var(--global-headtitle-color);
}

/* Monthly Leasing Badge */
.peri-au-lease-type-badge {
    display: inline-block;
    background-color: transparent;
    color: #f39c12;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0.3rem 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.peri-au-hero-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #32255e;
    padding-top: 0;
    margin: 0.2rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

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

/* Prevents WooCommerce from resetting the inherited values */
.peri-au-hero-price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.peri-au-hero-tagline{
margin: 0px !important;
}

/* Hide View Cart Link */
.peri-au-hero-add-to-lease a.added_to_cart {
    display: none !important;
}

/* Button container */
.peri-au-hero-add-to-lease {
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Button styling */
.peri-au-hero-add-to-lease .btn,
.peri-au-hero-add-to-lease button {
    box-shadow: -5px 5px 5px 0 #9d9d9d78;
    width: 30% !important;
}


/* ------------------------------------------------------------
   5. Section 2: Features
   ------------------------------------------------------------ */
.peri-au-section-features {
    width: 100%;
}

.peri-au-features-grid {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.peri-au-features-img-col {
    flex: 0 0 48%;
}

.peri-au-features-img-col img {
    width: 100%;
    height: auto;
    display: block;
}

.peri-au-features-accordion-col {
    flex: 1;
}


/* ------------------------------------------------------------
   6. Accordion (shared by Features & FAQ)
   ------------------------------------------------------------ */
.peri-au-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a52;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.peri-au-accordion-header::-webkit-details-marker {
    display: none;
}

/* Features: icon before text — align left together */
.peri-au-features-accordion-col .peri-au-accordion-header {
    justify-content: flex-start;
    gap: 0.5rem;
}

.peri-au-accordion-icon {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Chevron arrow using ::before */
.peri-au-accordion-icon::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #1a3a52;
    border-bottom: 2px solid #1a3a52;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s ease;
}

details[open] .peri-au-accordion-icon::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.peri-au-accordion-body {
    padding: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}


/* ------------------------------------------------------------
   7. Section 3: Video
   ------------------------------------------------------------ */
.peri-au-section-video {
    width: 100%;
}

.peri-au-section-video .peri-au-section-inner {
    padding-top: 4rem;
}

.peri-au-section-faq .peri-au-section-inner {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.peri-au-video-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 1.5rem;
}

.peri-au-video-player {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}


/* ------------------------------------------------------------
   8. Section 4: FAQ
   ------------------------------------------------------------ */
.peri-au-section-faq {
    width: 100%;
}


/* ------------------------------------------------------------
   9. Info box
   ------------------------------------------------------------ */
.peri-au-info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.peri-au-info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    color: #555;
    line-height: 1;
}


/* ------------------------------------------------------------
   10. Responsive: Tablet (≤900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {

    .peri-au-hero-inner,
    .peri-au-features-grid {
        flex-direction: column;
    }

    .peri-au-hero-image,
    .peri-au-features-img-col {
        flex: 0 0 auto;
        width: 100%;
    }

    .peri-au-hero-sku,
    .peri-au-hero-category {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .peri-au-hero-price {
        font-size: 1.3rem;
    }
}


/* ------------------------------------------------------------
   11. Responsive: Mobile (≤768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .peri-au-section-inner {
        padding: 0 1rem;
    }

    .peri-au-section-video .peri-au-section-inner,
    .peri-au-section-faq .peri-au-section-inner {
        padding-top: 1.5rem;
    }

    .peri-au-hero-inner {
        padding: 1.5rem 1rem;
    }

    .peri-au-video-title {
        font-size: 1.2rem;
    }

    .peri-au-section-label {
        font-size: 1.4rem;
    }
}