/* ============================================================
   PRODUCTS PAGE
   ============================================================ */

/* EDGE-TO-EDGE PRODUCTS LAYOUT */
.products-layout-edge {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    min-height: 100vh;
}

.products-main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    background-color: var(--color-white);
    padding: 120px var(--hero-padding-x);
}

.products-content-inner {
    width: 100%;
    max-width: 1000px;
}

.products-sidebar-edge {
    flex: 0 0 30%;
    background: linear-gradient(135deg, var(--color-meteor), #d27012);
    padding: 120px 80px;
    color: var(--color-white);
    min-width: 400px;
}

.sidebar-sticky-wrap {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
}

.product-block {
    scroll-margin-top: 150px;
}

@media (max-width: 1200px) {
    .products-layout-edge {
        flex-direction: column;
    }

    .products-sidebar-edge {
        display: none;
    }

    .products-main-content {
        padding: 80px var(--hero-padding-x);
    }

    .sidebar-sticky-wrap {
        position: relative;
        top: 0;
    }
}

/* Utility */
.w-full {
    width: 100%;
}

/* CUSTOM COLORS */
.v1-text-cadet {
    color: #4b5563;
}

.v1-bg-alabaster {
    background-color: #f9fafb;
}

/* TYPOGRAPHY MARGINS */
.v1-heading-margin {
    margin: 0 0 32px 0;
}

.v1-lead-margin {
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.v1-heading-h3 {
    font-family: inherit;
    font-size: clamp(30px, 3vw, 50px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin: 48px 0 24px 0;
    line-height: 1;
}

.v1-heading-h4 {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    border-bottom: 1px solid rgba(210, 112, 18, 0.2);
    padding-bottom: 16px;
}

.v1-paragraph {
    margin-bottom: 32px;
}

.v1-divider {
    width: 100%;
    border-bottom: 1px dashed #d1d5db;
    margin: 64px 0;
    position: relative;
    display: block;
}

.v1-divider::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-meteor);
}

/* IMAGES */
.v1-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.v1-image-wide {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 0;
}

@media (min-width: 768px) {
    .v1-image-wide {
        aspect-ratio: 21 / 9;
    }
}

/* STATS BOX */
.v1-stats-box {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.v1-stats-flare {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 128px;
    height: 128px;
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
}

.v1-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
}

.v1-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v1-checkmark {
    font-weight: 900;
}

/* CALLOUT WIDGET & JUMP LINKS */
.v1-widget-dark {
    padding: 32px;
    border-radius: 16px;

    box-sizing: border-box;

}

.v1-widget-dark .v1-widget-title {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    font-size: 25px;
}

.v1-widget-title {
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    line-height: 0.9;

}

.v1-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-weight: 500;
}

.jump-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.jump-links li:last-child {
    border-bottom: none;
}

.jump-link {
    color: var(--color-heavy-metal);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.jump-link:hover {
    color: white;
}

.jump-arrow {
    font-weight: bold;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jump-link:hover .jump-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.v1-btn-full {
    width: 100%;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

/* SERVICE PAGE: SPLIT LAYOUT */
.v1-section {
    border-bottom: 1px solid #e5e7eb;
}

.v1-split {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.v1-split__content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

/* ──────────────────────────────────────────────────
   WYSIWYG CONTENT TYPOGRAPHY — scoped to .v1-split__content
   Maps standard HTML tags to original Astro design
   ────────────────────────────────────────────────── */

/* H4 = section-subheading (small orange label) */
.v1-split__content h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-meteor);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* H2 = section-heading--sm (main heading) */
.v1-split__content h2 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--color-heavy-metal);
    margin: 0 0 32px 0;
}

/* H3 = v1-heading-h3 (sub-heading) */
.v1-split__content h3 {
    font-size: clamp(30px, 3vw, 50px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1;
    color: var(--color-heavy-metal);
    margin: 48px 0 24px 0;
}

/* Lead paragraph: first <p> after an <h2> */
.v1-split__content h2+p {
    font-size: clamp(25px, 5vw, 30px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -1px;
    color: #4b5563;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

/* Regular paragraphs */
.v1-split__content p {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 300;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 32px;
    max-width: 800px;
}

/* Images */
.v1-split__content img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 0 32px 0;
}

/* WordPress figure wrapping images */
.v1-split__content figure {
    margin: 0 0 32px 0;
}

.v1-split__content figure img {
    margin-bottom: 0;
}

.v1-split__content figcaption {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
}

/* Wide image: full-width figure with .alignfull or .alignwide */
.v1-split__content .alignwide img,
.v1-split__content .alignfull img {
    aspect-ratio: 21 / 9;
}

/* Blockquote = stats box */
.v1-split__content blockquote {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    /* Reset default blockquote styling */
    font-style: normal;
    quotes: none;
}

/* Orange flare effect on stats box */
.v1-split__content blockquote::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 128px;
    height: 128px;
    background: var(--color-meteor);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
}

/* H4 inside stats box */
.v1-split__content blockquote h4 {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: var(--color-meteor);
    margin: 0 0 24px 0;
    border-bottom: 1px solid rgba(210, 112, 18, 0.2);
    padding-bottom: 16px;
    letter-spacing: 1px;
}

/* Paragraphs inside stats box */
.v1-split__content blockquote p {
    font-size: 18px;
    margin-bottom: 16px;
}

/* List inside stats box = checklist */
.v1-split__content blockquote ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
    color: #4b5563;
}

.v1-split__content blockquote ul li {
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.v1-split__content blockquote ul li::before {
    content: '✓';
    color: var(--color-meteor);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/* Bold text inside blockquote list items */
.v1-split__content blockquote ul li strong {
    color: var(--color-heavy-metal);
}

/* Standalone lists (outside blockquote) */
.v1-split__content>ul,
.v1-split__content>ol {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: clamp(18px, 2.5vw, 22px);
    color: #4b5563;
}

.v1-split__content>ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v1-split__content>ul li::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23262b20'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Horizontal rule = divider */
.v1-split__content hr {
    width: 100%;
    border: none;
    border-bottom: 1px dashed #d1d5db;
    margin: 64px 0;
    position: relative;
}

.v1-split__content hr::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-meteor);
}

/* Links */
.v1-split__content a {
    color: var(--color-meteor);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.v1-split__content a:hover {
    color: var(--color-heavy-metal);
}

.v1-split__sidebar {
    flex: 0 0 400px;
    width: 400px;
    max-width: 400px;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (max-width: 1200px) {
    .v1-split {
        flex-direction: column;
        gap: 60px;
    }

    .v1-split__sidebar {
        flex: auto;
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }
}

/* SIDEBAR WIDGETS */
.v1-widget-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
}

.v1-widget-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* WYSIWYG checklist styling — matches v1-widget-list look */
.v1-widget-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-weight: 500;
}

.v1-widget-checklist ul li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    line-height: 1.4;
}

.v1-widget-checklist ul li::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d27012'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.v1-widget-checklist p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.85;
}

.v1-widget-checklist p:last-child {
    margin-bottom: 0;
}

.v1-widget-light {
    border: 1px solid #e5e7eb;
    padding: 32px;
    border-radius: 16px;
    box-sizing: border-box;
}

.v1-widget-title-dark {
    font-weight: 900;
    font-size: 20px;
    margin: 0 0 24px 0;
}

.v1-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v1-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease;
}

.v1-related-link:hover {
    border-color: var(--color-meteor);
}

.v1-related-text {
    font-weight: 700;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v1-related-link:hover .v1-related-text {
    color: var(--color-meteor);
}

.v1-related-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
    .v1-related-icon {
        transform: translateX(-8px);
    }

    .v1-related-link:hover .v1-related-icon {
        color: var(--color-meteor);
        transform: translateX(0);
    }
}

/* MOBILE PILL BAR */
.products-pill-bar {
    display: none;
}

@media (max-width: 1200px) {
    .products-pill-bar {
        display: block;
        position: relative;
        z-index: 50;
        background: linear-gradient(135deg, #e36d16 0%, #bc3217 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0;
        overflow: hidden;
    }

    .products-pill-bar::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 40px;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(to right, var(--color-meteor), transparent);
    }

    .products-pill-bar__track {
        display: flex;
        gap: 8px;
        padding: 12px 20px 12px 48px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .products-pill-bar__track::-webkit-scrollbar {
        display: none;
    }

    .pill-link {
        flex-shrink: 0;
        padding: 8px 20px;
        border-radius: 8px;
        font-family: "Kanit", sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        color: var(--color-heavy-metal);
        background: transparent;
        border: 2px solid rgba(0, 0, 0, 1);
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .pill-link:hover,
    .pill-link.is-active {
        color: var(--color-white);
        background: var(--color-heavy-metal);
    }
}



/* BACK TO TOP */
.back-to-top-link {
    display: none;
}

@media (max-width: 1200px) {
    .back-to-top-link {
        display: block;
        text-align: right;
        font-family: "Kanit", sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--color-meteor);
        text-decoration: none;
        margin-top: 40px;
        padding-bottom: 24px;
        transition: opacity 0.3s ease;
    }

    .back-to-top-link:hover {
        opacity: 0.7;
    }
}