/* Camemake PDP — RS-style industrial layout, Camemake colors.
   Only applies when .cm-pdp is on the wrap (Camemake website inherit). */

.cm-pdp {
    --cm-accent-3: #122d31;
    --cm-accent-2: #215161;
    --cm-accent-1: #307592;
    --cm-pink: #307592;
    --cm-blue: #215161;
    --cm-ink: #030900;
    --cm-muted: #4a585c;
    --cm-line: #d8d2c6;
    --cm-wash: #edeae3;
    --cm-card: #ffffff;
    --cm-radius: 16px;
    --cm-gap: 1.25rem;
    --cm-cols: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--cm-wash);
    color: var(--cm-ink);
}

.cm-pdp #product_detail,
.cm-pdp #product_detail.cm-pdp-detail {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.85rem;
    padding-bottom: 1.5rem;
}

.cm-pdp .o_wsale_breadcrumb {
    font-size: 0.82rem;
    background: transparent;
}

.cm-pdp .o_wsale_breadcrumb .breadcrumb-item a {
    color: var(--cm-muted);
}

.cm-pdp .o_wsale_breadcrumb .breadcrumb-item.active span {
    color: var(--cm-ink);
    font-weight: 600;
}

.cm-pdp .o_wsale_products_searchbar_form {
    display: none;
}

.cm-pdp .o_pricelist_dropdown > a {
    border: 1px solid var(--cm-line);
    border-radius: 999px;
    background: var(--cm-card);
    color: var(--cm-ink);
}

/* Four-block grid: gallery | buy box / specs | description */
.cm-pdp #product_detail_main.row {
    display: grid !important;
    grid-template-columns: var(--cm-cols);
    gap: var(--cm-gap);
    align-items: start;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.75rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.cm-pdp #product_detail_main > .o_wsale_product_images,
.cm-pdp #product_detail_main > #product_details {
    width: 100%;
    max-width: none;
    flex: none;
    margin-top: 0 !important;
}

/* Gallery card */
.cm-pdp .o_wsale_product_images {
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(29, 42, 50, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: start;
}

.cm-pdp #o-carousel-product {
    margin-bottom: 0 !important;
    flex: 0 0 auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    overflow: hidden;
}

.cm-pdp .o_wsale_product_images,
.cm-pdp #o-carousel-product,
.cm-pdp .carousel-inner,
.cm-pdp .carousel-item,
.cm-pdp .o_carousel_product_outer,
.cm-pdp .o_product_detail_img_wrapper,
.cm-pdp .o_product_detail_img_wrapper .position-relative {
    background: #fff !important;
}

.cm-pdp .o_carousel_product_outer {
    flex: 0 0 auto;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
}

.cm-pdp .carousel-inner,
.cm-pdp .carousel-item {
    height: auto !important;
}

.cm-pdp .o_carousel_product_indicators {
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
}

.cm-pdp .o_carousel_product_indicators .carousel-indicators {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    align-items: stretch;
    gap: 0.5rem;
    width: 100% !important;
    height: auto !important;
    margin: 0.85rem 0 0 !important;
    padding: 0 !important;
    overflow-x: auto;
}

.cm-pdp .o_product_detail_img_wrapper {
    border-radius: 12px;
    min-height: 0 !important;
    height: auto !important;
    align-items: center !important;
}

.cm-pdp .o_product_detail_img_wrapper img,
.cm-pdp .product_detail_img {
    object-fit: contain !important;
    width: 100%;
    height: auto !important;
    max-height: 560px;
}

.cm-pdp .carousel-indicators li {
    display: block !important;
    flex: 1 1 0;
    min-width: 88px;
    max-width: 140px;
    width: auto !important;
    height: 80px !important;
    text-indent: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--cm-line);
    border-radius: 10px;
    overflow: hidden;
    opacity: 1;
    background: var(--cm-card);
    list-style: none;
    cursor: pointer;
}

.cm-pdp .carousel-indicators li > div,
.cm-pdp .carousel-indicators li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-pdp .carousel-indicators li.active {
    border-color: var(--cm-accent-1) !important;
    box-shadow: 0 0 0 2px rgba(48, 117, 146, 0.28) !important;
}

.cm-pdp .o_wsale_ribbon {
    background-color: var(--cm-pink) !important;
    color: #fff !important;
    border-radius: 0 0 10px 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cm-pdp .carousel-control-prev i,
.cm-pdp .carousel-control-next i {
    border-radius: 999px !important;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Buy box */
.cm-pdp #product_details {
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.9rem 1.85rem 1.75rem !important;
    box-shadow: 0 10px 30px rgba(29, 42, 50, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: start;
}

.cm-pdp #product_details > * {
    order: 20;
}

.cm-pdp #product_details > h1,
.cm-pdp #product_details > .cm-pdp-title {
    order: 1;
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--cm-accent-3);
    margin: 0 0 1rem;
}

.cm-pdp #product_details > .cm-pdp-meta {
    order: 2;
}

.cm-pdp #product_details > .o_product_page_reviews_link {
    order: 3;
    margin: 0 0 1.25rem;
    opacity: 0.65;
    font-size: 0.85rem;
}

.cm-pdp #product_details > form {
    order: 4;
    margin: 0;
}

.cm-pdp #product_details > .o_price_breaks {
    order: 5;
}

.cm-pdp #product_details > .cm-pdp-keyspecs {
    order: 6;
}

.cm-pdp-docs {
    max-width: 1240px;
    margin: 0 auto 1.5rem;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.5rem 1.6rem;
}

/* Specs + description as matching cards under gallery | buy box */
.cm-pdp-duo {
    max-width: none;
    margin: var(--cm-gap) 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: var(--cm-cols);
    gap: var(--cm-gap);
    align-items: stretch;
    overflow: visible;
}

.cm-pdp-duo #product_full_spec,
.cm-pdp-duo .cm-pdp-docs {
    max-width: none;
    margin: 0;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    box-shadow: 0 10px 30px rgba(29, 42, 50, 0.05);
    padding: 1.45rem 1.55rem 1.25rem;
}

.cm-pdp-duo .cm-pdp-docs > .oe_structure > p {
    max-width: none;
}

.cm-pdp-duo #product_specifications .row {
    margin: 0;
}

.cm-pdp-duo #product_specifications [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

.cm-pdp-docs > .oe_structure > h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.cm-pdp-docs > .oe_structure > p {
    color: var(--cm-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 72ch;
}

.cm-pdp #product_details > .oe_structure {
    order: 8;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--cm-line);
}

.cm-pdp #product_details > #product_attributes_simple,
.cm-pdp #product_details > #product_documents,
.cm-pdp #product_details > #o_product_terms_and_share {
    order: 9;
}

.cm-pdp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.2rem;
}

.cm-pdp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--cm-line);
    background: var(--cm-wash);
    color: var(--cm-ink);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.cm-pdp-chip strong {
    font-weight: 700;
}

/* Price + CTA */
.cm-pdp .product_price {
    display: block !important;
    width: 100%;
    margin-bottom: 0.15rem;
}

.cm-pdp [name="product_price_container"] {
    justify-content: flex-start !important;
    align-items: baseline;
}

.cm-pdp .oe_price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cm-ink);
    letter-spacing: -0.02em;
}

.cm-pdp .oe_price .oe_currency_value {
    font-size: inherit;
}

.cm-pdp .js_main_product > div:first-child::after {
    content: "Price per unit";
    display: block;
    color: var(--cm-muted);
    font-size: 0.78rem;
    margin: 0.3rem 0 1.15rem;
}

.cm-pdp .js_main_product {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.cm-pdp .js_main_product .mb-3,
.cm-pdp .js_main_product .mb-4 {
    margin-bottom: 0 !important;
}

.cm-pdp .js_main_product .variant_attribute,
.cm-pdp .js_add_cart_variants,
.cm-pdp .o_variant_title,
.cm-pdp .css_attribute {
    margin-top: 0.15rem;
}

.cm-pdp .js_main_product li,
.cm-pdp .js_main_product .list-inline-item {
    margin-bottom: 0.35rem;
}

.cm-pdp #o_wsale_cta_wrapper,
.cm-pdp #add_to_cart_wrap {
    width: 100%;
}

.cm-pdp #add_to_cart_wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.cm-pdp #add_to_cart_wrap .css_quantity {
    order: 0;
    border: 1px solid var(--cm-line) !important;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    min-width: 7.5rem;
}

.cm-pdp #add_to_cart {
    order: 1;
    border-radius: 999px !important;
    background: var(--cm-pink) !important;
    border-color: var(--cm-pink) !important;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
}

.cm-pdp #add_to_cart:hover {
    background: var(--cm-accent-2) !important;
    border-color: var(--cm-accent-2) !important;
}

.cm-pdp .o_we_buy_now {
    grid-column: 1 / -1;
    order: 2;
    margin-top: 0.2rem;
    border-radius: 999px !important;
    border-width: 2px;
    border-color: var(--cm-blue) !important;
    color: var(--cm-blue) !important;
    font-weight: 600;
    background: transparent !important;
    padding: 0.7rem 1.1rem;
}

.cm-pdp .o_we_buy_now:hover {
    background: var(--cm-blue) !important;
    color: #fff !important;
}

.cm-pdp .css_not_available_msg {
    display: none;
}

.cm-pdp .css_not_available .css_not_available_msg {
    display: block;
}

/* Price breaks */
.cm-pdp .o_price_breaks {
    border: 1px solid var(--cm-line) !important;
    border-radius: 12px !important;
    background: var(--cm-wash) !important;
    padding: 1.15rem 1.2rem !important;
    margin-top: 1.35rem !important;
}

.cm-pdp .o_price_breaks h6 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cm-muted);
    margin-bottom: 0.5rem;
}

.cm-pdp .o_price_breaks table {
    margin: 0;
}

.cm-pdp .o_price_breaks td {
    border: 0;
    padding: 0.4rem 0;
    font-size: 0.88rem;
}

/* Key specs cloned into the buy box */
.cm-pdp .cm-pdp-keyspecs {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.55rem 1.1rem;
    margin: 1.35rem 0 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--cm-line);
}

.cm-pdp .cm-pdp-keyspecs dt {
    margin: 0;
    color: var(--cm-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.cm-pdp .cm-pdp-keyspecs dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: right;
}

.cm-pdp .cm-pdp-keyspecs__more {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--cm-blue);
    margin-top: 0.55rem;
}

/* Description + spec table stay as website blocks, restyled */
.cm-pdp #product_details .oe_structure > h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.cm-pdp #product_details .oe_structure > p {
    color: var(--cm-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cm-pdp-docs > .oe_structure table,
.cm-pdp-docs > .oe_structure .o_table,
.cm-pdp #product_details .oe_structure table,
.cm-pdp #product_details .oe_structure .o_table {
    width: 100%;
    border: 1px solid var(--cm-line) !important;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.88rem;
}

.cm-pdp-docs > .oe_structure table th,
.cm-pdp-docs > .oe_structure .o_table_header,
.cm-pdp #product_details .oe_structure table th,
.cm-pdp #product_details .oe_structure .o_table_header {
    background: var(--cm-wash) !important;
    color: var(--cm-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.cm-pdp-docs > .oe_structure table td,
.cm-pdp-docs > .oe_structure table th,
.cm-pdp #product_details .oe_structure table td,
.cm-pdp #product_details .oe_structure table th {
    border-color: var(--cm-line) !important;
    padding: 0.45rem 0.7rem;
}

.cm-pdp-docs > .oe_structure table tr:nth-child(even) td,
.cm-pdp #product_details .oe_structure table tr:nth-child(even) td {
    background: #f6f4ef;
}

/* Odoo product attributes (not every SKU has these) — sit under the buy box, not under reviews */
.cm-pdp #product_full_spec {
    max-width: 1240px;
    margin: 0 auto 1.5rem;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.35rem 1.5rem 1.1rem;
}

.cm-pdp #product_full_spec.pt32,
.cm-pdp #product_full_spec.pb32 {
    padding-top: 1.35rem;
    padding-bottom: 1.1rem;
}

.cm-pdp #product_full_spec > .container {
    max-width: none;
    padding: 0;
}

.cm-pdp #product_full_spec h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cm-accent-2);
    margin: 0;
}

.cm-pdp #product_specifications .table {
    margin-bottom: 0.75rem;
}

.cm-pdp #product_specifications td {
    border-color: var(--cm-line);
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.cm-pdp #product_specifications td:first-child span {
    color: var(--cm-muted);
}

.cm-pdp #product_specifications td:last-child {
    font-weight: 600;
    color: var(--cm-ink);
}

.cm-pdp .cm-pdp-duo #product_full_spec,
.cm-pdp .cm-pdp-duo #product_full_spec.pt32,
.cm-pdp .cm-pdp-duo #product_full_spec.pb32,
.cm-pdp .cm-pdp-duo .cm-pdp-docs {
    max-width: none;
    margin: 0;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    box-shadow: 0 10px 30px rgba(29, 42, 50, 0.05);
    padding: 1.45rem 1.55rem 1.25rem;
}

.cm-pdp .cm-pdp-duo #product_full_spec .mb-4 {
    margin-bottom: 0.75rem !important;
}

.cm-pdp .cm-pdp-duo .cm-pdp-docs > .oe_structure > h2,
.cm-pdp .cm-pdp-duo .cm-pdp-docs > .oe_structure > h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cm-accent-3);
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.cm-pdp .cm-pdp-duo .cm-pdp-docs > .oe_structure > p {
    color: var(--cm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.cm-pdp #product_accordion.cm-pdp-more {
    max-width: 1240px;
    margin: 0 auto 1.5rem;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 0.35rem 1.25rem;
}

.cm-pdp #product_full_description.oe_empty {
    display: none;
}

.cm-pdp .o_shop_discussion_rating {
    display: none;
}

body:has(#wrap.cm-pdp),
body:has(#wrap.cm-pdp) #wrapwrap {
    background: #edeae3 !important;
}

/* Contact / extra blocks: full-bleed, no extra white card */
.cm-pdp #product_full_description:not(.oe_empty) {
    max-width: 1240px;
    margin: 0 auto 1.5rem;
    background: var(--cm-card);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.25rem 1.5rem;
}

.cm-pdp #oe_structure_website_sale_product_2 {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cm-pdp #oe_structure_website_sale_product_2 .s_embed_code {
    display: none;
}

.cm-pdp .s_website_form_overlay {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.cm-pdp .s_website_form_overlay .o_cc {
    border: 1px solid var(--cm-line) !important;
    border-radius: var(--cm-radius) !important;
    padding: 1.75rem 1.6rem 1.35rem !important;
    box-shadow: 0 18px 40px rgba(18, 45, 49, 0.2);
}

.cm-pdp .s_website_form_overlay h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--cm-accent-3);
    margin: 0 0 0.7rem;
}

.cm-pdp .s_website_form_overlay h2 + p {
    color: var(--cm-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.cm-pdp .s_website_form_overlay .s_website_form {
    padding: 0 !important;
}

.cm-pdp .s_website_form_overlay .s_website_form_field {
    margin-bottom: 0.75rem !important;
}

.cm-pdp .s_website_form_overlay .s_website_form_label {
    width: 7.75rem !important;
    max-width: 7.75rem;
    padding-top: 0.55rem !important;
    color: var(--cm-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.cm-pdp .s_website_form_overlay .form-control,
.cm-pdp .s_website_form_overlay .s_website_form_input {
    border: 1px solid var(--cm-line) !important;
    border-radius: 10px !important;
    min-height: 2.55rem;
    padding: 0.55rem 0.85rem !important;
    box-shadow: none !important;
}

.cm-pdp .s_website_form_overlay textarea.form-control {
    min-height: 5.25rem;
}

.cm-pdp .s_website_form_overlay .s_website_form_submit {
    padding-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

.cm-pdp .s_website_form_overlay .s_website_form_submit .s_website_form_label {
    display: none;
}

.cm-pdp .s_website_form_overlay .s_website_form_send,
.cm-pdp .s_website_form_overlay .btn-primary {
    background: var(--cm-accent-1) !important;
    border-color: var(--cm-accent-1) !important;
    border-radius: 999px !important;
    font-weight: 600;
    padding: 0.65rem 1.45rem !important;
}

.cm-pdp .s_website_form_overlay .s_website_form_send:hover,
.cm-pdp .s_website_form_overlay .btn-primary:hover {
    background: var(--cm-accent-2) !important;
    border-color: var(--cm-accent-2) !important;
}

.cm-pdp #oe_structure_website_sale_product_2 .s_dynamic_snippet_products {
    padding-top: 2rem !important;
    padding-bottom: 2.25rem !important;
}

.cm-pdp #oe_structure_website_sale_product_1 {
    display: none;
}

@media (max-width: 991.98px) {
    .cm-pdp #product_detail_main.row,
    .cm-pdp-duo {
        grid-template-columns: 1fr;
    }

    .cm-pdp #product_details,
    .cm-pdp .o_wsale_product_images {
        margin-top: 0.75rem !important;
        height: auto;
    }

    .cm-pdp #add_to_cart_wrap {
        grid-template-columns: 1fr;
    }

    .cm-pdp #add_to_cart_wrap .css_quantity {
        width: 100%;
        justify-content: center;
    }
}
