/*
 * Design Studio product page: title, review row, panel nav (SPEC-designstudio-build.md §2.10 O-4).
 * Replaces the lada-editor.css rules gated on body:has(#lada-panel-controls-root). Values measured on
 * antique-garden-wallpaper.html on 2026-11-04 at 1440 and 390 px wide. Scoped to the layout's body class.
 */
.lvd-studio-page .main-title-container {
    padding: 0;
}

.lvd-studio-page .main-title-container .page-title {
    width: 100%;
    margin-bottom: 5px;
    padding: 0;
    font-family: CanelaThin, serif;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    color: #263138;
}

.lvd-studio-page .main-title-container .page-title .base,
.lvd-studio-page .main-title-container .page-title .product-subtitle {
    display: inline;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.lvd-studio-page .bi-lada-desktop-review-row {
    padding-bottom: 18px;
}

.lvd-studio-page .yunk-processing-info {
    margin-bottom: 12px;
}

/* Panel nav: is-first-panel = colour step, is-options-panel = options step (design-studio-page.js). */
.lvd-studio-page .s7-panel-nav-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0 20px;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Prev's li is `hidden md:block` (desktop only); Add to Cart's li toggles `hidden` per step. */
.lvd-studio-page .s7-panel-nav-controls .nav-control-list > li:not(.hidden) {
    display: flex;
    flex: 0 0 auto;
}

.lvd-studio-page .s7-panel-nav-controls.is-first-panel .nav-control-list > li.nav-control-back,
.lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list > li.nav-control-next,
.lvd-studio-page .s7-panel-nav-controls.s7-panel-nav-controls-container .nav-control-list > li.nav-control-wizart {
    display: none;
}

@media (min-width: 769px) {
    .lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list > li.nav-control-back {
        display: flex;
    }
}

/* 2c W-7: mobile See it in your space, a full-width row under the buttons as on today's page
   (antique-garden-wallpaper.html, 390 px: 37 px, #937c66 outline and text, Lato 12 px uppercase). */
@media (max-width: 768px) {
    .lvd-studio-page .s7-panel-nav-controls .nav-control-list {
        flex-wrap: wrap;
    }

    body.lvd-studio-page.lvd-wizart-ready .s7-panel-nav-controls.s7-panel-nav-controls-container .nav-control-list > li.nav-control-wizart {
        display: flex;
        flex: 1 0 100%;
        grid-column: 1 / -1;
    }

    .lvd-studio-page .s7-panel-nav-controls .nav-control-wizart .wizart-button {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        height: 37px;
        padding: 10px;
        border: 1px solid #937c66;
        background: transparent;
        font-family: Lato, Arial, sans-serif;
        font-size: 12px;
        font-weight: 400;
        text-decoration: none;
        text-transform: uppercase;
        color: #937c66;
    }
}

.lvd-studio-page .wizart-button[aria-busy="true"] {
    cursor: progress;
    opacity: 0.6;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    column-gap: 0.25em;
    min-width: 142px;
    height: 48px;
    padding: 15px;
    border: 1px solid #333;
    background: #fff;
    font-family: Lato, Arial, sans-serif;
    font-size: 13.6px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #4f5658;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list .s7-next-button,
.lvd-studio-page .s7-panel-nav-controls .nav-control-list .s7-addtocart-button {
    border-color: #a4655c;
    background: #a4655c;
    font-weight: 700;
    color: #fff;
}

/* Hover as today (lada-editor.css:3717-3724, 5263-5265); Add to Cart fades like Next. */
.lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn:not(.s7-next-button):not(.s7-addtocart-button):not([aria-disabled="true"]):hover {
    border-color: #efefef;
    background: #efefef;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list .s7-next-button:hover,
.lvd-studio-page .s7-panel-nav-controls .nav-control-list .s7-addtocart-button:not([aria-disabled="true"]):hover {
    opacity: 0.7;
}

.lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn[aria-disabled="true"] {
    cursor: not-allowed;
}

/*
 * Right-column order, as lada-editor.css set it on today's page; design-studio-sections.css gives every child
 * 100, the processing info 70 and the details 80.
 */
@media (min-width: 769px) {
    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > .s7-panel-container {
        order: 0;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > .main-title-container {
        order: 10;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > .bi-lada-desktop-review-row {
        order: 20;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > .lvd-ds-colors {
        order: 30;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > #panel_controls_options {
        order: 40;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view .md\:col-start-2.flex.flex-col > .s7-panel-nav-controls {
        order: 60;
    }
}

/* Desktop/mobile label pairs inside the flex buttons (theme helpers lose to .btn display rules). */
@media (min-width: 769px) {
    .lvd-studio-page .s7-panel-nav-controls .btn .hide-above-768 {
        display: none;
    }
}

@media (max-width: 768px) {
    /* lada-editor.css mobile flow: both columns flatten into one ordered list, title first. */
    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:first-child,
    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) {
        display: contents;
    }

    /* The theme's mobile script moves the design into the gallery slider (product-detail-page.phtml). */
    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:first-child > * {
        order: 20;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > * {
        order: 30;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > .main-title-container {
        order: 1;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > .bi-lada-desktop-review-row {
        display: block;
        order: 2;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > .lvd-ds-colors {
        order: 20;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > .yunk-processing-info {
        order: 40;
    }

    body.lvd-studio-page.bi-lvd-pdp-scope.catalog-product-view.mobile-view .wrapper-product-detail > .flex > .grid > div:nth-child(2) > .product-additional-info {
        order: 50;
    }

    .lvd-studio-page .s7-panel-nav-controls.is-first-panel .nav-control-list {
        display: grid;
        grid-template-columns: 0.68fr 1.35fr 1fr;
    }

    .lvd-studio-page .s7-panel-nav-controls .btn .hide-below-768 {
        display: none;
    }

    .lvd-studio-page .main-title-container {
        display: block;
        margin-top: 8px;
        padding: 0 24px;
    }

    .lvd-studio-page .main-title-container .page-title {
        margin-bottom: 0;
        font-family: CanelaThin, Filosofia, Didot, "Bodoni MT", Palatino, serif;
        font-size: 22px;
        line-height: 25.3px;
        color: #10243e;
    }

    .lvd-studio-page .bi-lada-desktop-review-row {
        margin-top: 6px;
        padding: 0 24px;
    }

    .lvd-studio-page .s7-panel-nav-controls {
        padding: 0 24px;
    }

    .lvd-studio-page .s7-panel-nav-controls .nav-control-list {
        width: 100%;
    }

    .lvd-studio-page .s7-panel-nav-controls .nav-control-list > li:not(.hidden) {
        flex: 1 1 auto;
    }

    .lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn {
        min-width: 0;
        height: 37px;
        padding: 10px 8px;
        border-color: #937c66;
        font-size: 12px;
        font-weight: 500;
        line-height: 12px;
        color: #263138;
    }

    .lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list > li.nav-control-save {
        display: none;
    }

    .lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list .btn {
        border-color: #333;
    }

    .lvd-studio-page .s7-panel-nav-controls.is-options-panel .nav-control-list .s7-addtocart-button {
        padding: 10px;
    }

    .lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn.s7-next-button,
    .lvd-studio-page .s7-panel-nav-controls .nav-control-list .btn.s7-addtocart-button {
        border-color: #a4655c;
        font-weight: 700;
        color: #fff;
    }
}

/* The 24 px page gutter around the mobile gallery. On the CC page it comes from the gallery template's rule keyed on
   LADA's body.mobile-view and #lada-panel-controls-root, which this page has neither of. */
@media (max-width: 767px) {
    body.lvd-studio-page .etsy-foursixty-grid {
        box-sizing: border-box;
        padding: 0 24px;
        width: 100%;
    }
}

/* The options step (wall width and height, material) in the same 24 px gutter as the title, dots and buttons. */
@media (max-width: 767px) {
    body.lvd-studio-page #panel_controls_options {
        box-sizing: border-box;
        padding-right: 24px;
        padding-left: 24px;
    }
}
