/* ================================ PRODUCT STYLE ================================ */
#product { margin-top: 12vh; }

#product .product-image {
    order: 0;
    flex: 0 0 63.5%;
}

#product .product-text {
  width: 93%;
  max-width: none;
  margin: 0 auto; 
  background-color: rgba(26,26,26,0.6);
  border: 1px solid var(--color-text);
  border-radius: 8px;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

[data-theme="light"] #product .product-text { background-color: rgba(249,249,249,0.7); }
#product .product-image img.chart {
    width: 100%;
    height: auto;
}

.product-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.product-cta button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: linear-gradient(45deg, var(--color-accent-start), var(--color-accent-end));
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--transition-duration);
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.product-cta button:hover { opacity: 0.9; }

.image-overlay-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.image-overlay-container .chart {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.logo-overlay {
    position: absolute;
    top: 4%;
    left: 4%;
    width: 18%;
    max-width: 100%;
      height: auto;
    height: auto;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.16));
}

img, .logo-overlay {
    max-width: 100%;
    height: auto;
}

.product-text .section-label {
    position: absolute;
    top: 0;
    right: 1.3;
    left: auto;
    transform: translateY(-50%);
    background: var(--color-bg);
    padding: 0 1.1rem 0 0; /* padding-right only! */
    height: 2.2rem;
    line-height: 2.2rem;
    font-family: 'Lazare Grotesk Trial', Arial, sans-serif !important;
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 1.7px;
    color: var(--color-accent-start);
    border-radius: 8px 8px 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;      /* Align children (the text) to the right */
    text-align: right;              /* Make the text align right */
    box-sizing: border-box;
    min-width: 0;                   /* Prevent unexpected stretching */
    white-space: nowrap;            /* Prevent line breaks */
    width: auto;
    max-width: 100%;
}

@media (max-width: 1100px) {
    #product {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 2vw 0 !important;
    }

    #product .two-columns {
        display: flex !important;
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    #product .product-text{
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .product-text { position: relative !important; }

    .product-text::before {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        width: auto !important;
        max-width: 90% !important;
        min-width: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 900px) {
    .logo-overlay {
        width: 27vw;
        min-width: 64px;
        top: 4%;
        left: 4%;
    }
}

@media (max-width: 700px) {
    #product {
        opacity: 1 !important;
        transform: none !important;
    }

    .product-text {
        padding-top: 2.2rem !important;
        position: relative !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-top: 0 !important;
    }

    #product .product-text { padding:1.8rem 1.3rem !important; }

    .product-text .section-label {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -60%) !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 1.7rem !important;
        height: 1.7rem !important;
        line-height: 1.7rem !important;
        padding: 0 0.7rem !important;
        max-width: 90% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; 
    }
}