﻿/* ==========================================================
   AUTO PRODUCT PAGE
   Product detail page în stil DezROM / proiect auto
   Fără Bootstrap, fără Porto
   ========================================================== */

:root {
    --auto_product_color_primary: #03208e;
    --auto_product_color_dark: #081735;
    --auto_product_color_text_dark: #03081f;
    --auto_product_color_accent: #3656c8;
    --auto_product_color_green: #1d9a2d;
    --auto_product_color_text: #484848;
    --auto_product_color_muted: #8a8f9c;
    --auto_product_color_border: #e8e2e2;
    --auto_product_color_surface: #ffffff;
    --auto_product_color_soft: #f4f6fb;
    --auto_product_color_footer: #eff0f2;
    --auto_product_color_price: #5b2824;
    --auto_product_color_warning: #fc8a06;
    --auto_product_color_danger: #c41010;

    --auto_product_font_main: "Montserrat", Arial, sans-serif;
    --auto_product_font_second: "Poppins", Arial, sans-serif;

    --auto_product_container_width: 1266px;
    --auto_product_container_padding: 16px;

    --auto_product_radius_small: 8px;
    --auto_product_radius_medium: 12px;
    --auto_product_radius_large: 18px;
    --auto_product_radius_round: 999px;

    --auto_product_shadow_card: 0 8px 24px rgba(3, 8, 31, 0.06);
    --auto_product_shadow_hover: 0 18px 40px rgba(3, 8, 31, 0.12);

    --auto_product_transition: 180ms ease;
}

/* ==========================================================
   Base
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--auto_product_color_surface);
    color: var(--auto_product_color_text);
    font-family: var(--auto_product_font_main);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.auto_product_container {
    width: min(var(--auto_product_container_width), calc(100% - var(--auto_product_container_padding) * 2));
    margin-inline: auto;
}

/* ==========================================================
   Header
   ========================================================== */

.auto_product_header {
    position: relative;
    z-index: 60;
    background-color: var(--auto_product_color_dark);
    color: #ffffff;
}

.auto_product_header_inner {
    min-block-size: 78px;
    display: grid;
    grid-template-columns: auto minmax(300px, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.auto_product_logo {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.auto_product_search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 120px;
    min-block-size: 46px;
    border-radius: var(--auto_product_radius_round);
    background-color: #ffffff;
    overflow: hidden;
}

.auto_product_search input,
.auto_product_search select {
    min-width: 0;
    border: 0;
    outline: 0;
    background-color: #ffffff;
    color: var(--auto_product_color_text);
}

.auto_product_search input {
    padding-inline: 20px;
}

.auto_product_search select {
    padding-inline: 12px;
    border-left: 1px solid #e7e9ef;
}

.auto_product_search button {
    border: 0;
    background-color: var(--auto_product_color_green);
    color: #ffffff;
    font-weight: 800;
}

.auto_product_header_actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
}

.auto_product_cart_link {
    position: relative;
}

.auto_product_cart_link span {
    position: absolute;
    top: -12px;
    right: -14px;
    inline-size: 22px;
    block-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auto_product_radius_round);
    background-color: var(--auto_product_color_green);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.auto_product_mobile_button {
    display: none;
}

.auto_product_mobile_menu {
    display: none;
}

.auto_product_nav_bar {
    background-color: #ffffff;
    color: var(--auto_product_color_text_dark);
}

.auto_product_main_nav {
    min-block-size: 54px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 800;
}

.auto_product_main_nav a:hover {
    color: var(--auto_product_color_accent);
}

/* ==========================================================
   Main
   ========================================================== */

.auto_product_main {
    padding-block: 0 64px;
}

.auto_product_breadcrumb {
    padding-block: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--auto_product_color_muted);
    font-size: 14px;
    font-weight: 600;
}

.auto_product_breadcrumb strong {
    color: var(--auto_product_color_text_dark);
}

/* ==========================================================
   Product Single
   ========================================================== */

.auto_product_single {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
    margin-bottom: 54px;
}

/* Gallery */

.auto_product_gallery {
    position: relative;
}

.auto_product_main_image_box {
    position: relative;
    margin: 0;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_large);
    background-color: var(--auto_product_color_soft);
    overflow: hidden;
    box-shadow: var(--auto_product_shadow_card);
}

.auto_product_main_image_box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.auto_product_badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auto_product_badges span {
    min-block-size: 30px;
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--auto_product_radius_round);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auto_product_badges .is-hot {
    background-color: var(--auto_product_color_green);
}

.auto_product_badges .is-sale {
    background-color: var(--auto_product_color_danger);
}

.auto_product_gallery_nav,
.auto_product_zoom_button {
    position: absolute;
    z-index: 6;
    border: 0;
    border-radius: var(--auto_product_radius_round);
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--auto_product_color_text_dark);
    box-shadow: 0 8px 20px rgba(3, 8, 31, 0.12);
}

.auto_product_gallery_nav {
    top: 42%;
    inline-size: 42px;
    block-size: 42px;
    font-size: 34px;
    line-height: 1;
}

.auto_product_gallery_prev {
    left: 12px;
}

.auto_product_gallery_next {
    right: 12px;
}

.auto_product_zoom_button {
    right: 16px;
    bottom: 118px;
    inline-size: 42px;
    block-size: 42px;
    font-size: 20px;
}

.auto_product_thumbnails {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.auto_product_thumbnails button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--auto_product_radius_medium);
    background-color: var(--auto_product_color_soft);
    overflow: hidden;
}

.auto_product_thumbnails button.is-active {
    border-color: var(--auto_product_color_accent);
}

.auto_product_thumbnails img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Details */

.auto_product_details {
    min-width: 0;
}

.auto_product_status_row {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auto_product_status {
    min-block-size: 32px;
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--auto_product_radius_round);
    background-color: rgba(29, 154, 45, 0.12);
    color: var(--auto_product_color_green);
    font-size: 13px;
    font-weight: 800;
}

.auto_product_code {
    color: var(--auto_product_color_muted);
    font-size: 13px;
    font-weight: 700;
}

.auto_product_details h1 {
    margin: 0 0 14px;
    color: var(--auto_product_color_text_dark);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.06;
}

.auto_product_rating_row {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto_product_stars {
    color: var(--auto_product_color_warning);
    font-size: 20px;
    letter-spacing: 1px;
}

.auto_product_rating_row a {
    color: var(--auto_product_color_accent);
    font-size: 14px;
    font-weight: 700;
}

.auto_product_price_box {
    margin-bottom: 22px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.auto_product_price_box del {
    color: var(--auto_product_color_muted);
    font-size: 22px;
    font-weight: 700;
}

.auto_product_price_box strong {
    color: var(--auto_product_color_price);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
}

.auto_product_description {
    margin: 0 0 22px;
    max-width: 720px;
    color: #666666;
    font-family: var(--auto_product_font_second);
    font-size: 16px;
    line-height: 1.75;
}

.auto_product_info_list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.auto_product_info_list li {
    min-block-size: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_small);
    background-color: #ffffff;
}

.auto_product_info_list span {
    color: var(--auto_product_color_muted);
    font-size: 13px;
    font-weight: 700;
}

.auto_product_info_list strong {
    color: var(--auto_product_color_text_dark);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

/* Product actions */

.auto_product_action_box {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 132px minmax(180px, 240px) auto;
    gap: 12px;
    align-items: center;
}

.auto_product_quantity {
    min-block-size: 48px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    border: 1px solid #d8dbe3;
    border-radius: var(--auto_product_radius_round);
    overflow: hidden;
}

.auto_product_quantity button {
    border: 0;
    background-color: var(--auto_product_color_soft);
    color: var(--auto_product_color_text_dark);
    font-size: 18px;
    font-weight: 800;
}

.auto_product_quantity input {
    min-width: 0;
    border: 0;
    outline: 0;
    text-align: center;
    color: var(--auto_product_color_text_dark);
    font-weight: 800;
}

.auto_product_add_cart_button,
.auto_product_view_cart_button {
    min-block-size: 48px;
    padding-inline: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auto_product_radius_round);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.auto_product_add_cart_button {
    border: 0;
    background-color: var(--auto_product_color_green);
    color: #ffffff;
}

.auto_product_view_cart_button {
    border: 1px solid #d8dbe3;
    background-color: #ffffff;
    color: var(--auto_product_color_text_dark);
}

.auto_product_secondary_actions {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auto_product_wishlist_button,
.auto_product_secondary_actions a {
    min-block-size: 42px;
    padding-inline: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auto_product_radius_round);
    font-size: 14px;
    font-weight: 800;
}

.auto_product_wishlist_button {
    border: 1px solid #d8dbe3;
    background-color: #ffffff;
    color: var(--auto_product_color_text_dark);
}

.auto_product_wishlist_button.is-active {
    background-color: #fff0f0;
    color: var(--auto_product_color_danger);
}

.auto_product_secondary_actions a {
    background-color: var(--auto_product_color_accent);
    color: #ffffff;
}

.auto_product_share {
    padding-top: 18px;
    border-top: 1px solid var(--auto_product_color_border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--auto_product_color_muted);
    font-size: 14px;
    font-weight: 700;
}

.auto_product_share a {
    color: var(--auto_product_color_accent);
}

/* ==========================================================
   Tabs
   ========================================================== */

.auto_product_tabs {
    margin-bottom: 54px;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_large);
    background-color: #ffffff;
    box-shadow: var(--auto_product_shadow_card);
    overflow: hidden;
}

.auto_product_tab_buttons {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    border-bottom: 1px solid var(--auto_product_color_border);
    background-color: var(--auto_product_color_soft);
}

.auto_product_tab_buttons button {
    min-block-size: 58px;
    padding-inline: 24px;
    border: 0;
    border-right: 1px solid var(--auto_product_color_border);
    background-color: transparent;
    color: var(--auto_product_color_text);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.auto_product_tab_buttons button.is-active {
    background-color: var(--auto_product_color_dark);
    color: #ffffff;
}

.auto_product_tab_content {
    padding: clamp(22px, 4vw, 34px);
}

.auto_product_tab_panel {
    display: none;
}

.auto_product_tab_panel.is-active {
    display: block;
}

.auto_product_tab_panel h2 {
    margin: 0 0 16px;
    color: var(--auto_product_color_text_dark);
    font-size: 26px;
    font-weight: 800;
}

.auto_product_tab_panel p,
.auto_product_tab_panel li {
    color: #666666;
    font-family: var(--auto_product_font_second);
    font-size: 15px;
    line-height: 1.75;
}

.auto_product_tab_panel ul {
    padding-left: 20px;
}

.auto_product_table_wrap {
    overflow-x: auto;
}

.auto_product_table_wrap table {
    width: 100%;
    border-collapse: collapse;
}

.auto_product_table_wrap th,
.auto_product_table_wrap td {
    padding: 14px;
    border: 1px solid var(--auto_product_color_border);
    text-align: left;
}

.auto_product_table_wrap th {
    background-color: var(--auto_product_color_soft);
    color: var(--auto_product_color_text_dark);
    font-weight: 800;
}

.auto_product_specs {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auto_product_specs div {
    padding: 16px;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_small);
}

.auto_product_specs dt {
    margin-bottom: 6px;
    color: var(--auto_product_color_muted);
    font-size: 13px;
    font-weight: 800;
}

.auto_product_specs dd {
    margin: 0;
    color: var(--auto_product_color_text_dark);
    font-size: 15px;
    font-weight: 800;
}

.auto_product_review {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_medium);
    background-color: var(--auto_product_color_soft);
}

.auto_product_review strong {
    color: var(--auto_product_color_text_dark);
}

.auto_product_review span {
    display: block;
    margin-block: 6px;
    color: var(--auto_product_color_warning);
}

.auto_product_review p {
    margin: 0;
}

.auto_product_review_form {
    max-width: 620px;
    display: grid;
    gap: 14px;
}

.auto_product_review_form h3 {
    margin: 0;
    color: var(--auto_product_color_text_dark);
    font-size: 22px;
}

.auto_product_review_form label {
    display: grid;
    gap: 7px;
    color: var(--auto_product_color_text_dark);
    font-size: 14px;
    font-weight: 800;
}

.auto_product_review_form input,
.auto_product_review_form textarea {
    width: 100%;
    border: 1px solid #d8dbe3;
    border-radius: var(--auto_product_radius_small);
    padding: 12px;
    outline: none;
}

.auto_product_review_form button {
    min-block-size: 46px;
    border: 0;
    border-radius: var(--auto_product_radius_round);
    background-color: var(--auto_product_color_accent);
    color: #ffffff;
    font-weight: 800;
}

/* ==========================================================
   Related Products
   ========================================================== */

.auto_product_related {
    margin-bottom: 54px;
}

.auto_product_section_header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auto_product_section_header h2 {
    margin: 0;
    color: var(--auto_product_color_text_dark);
    font-size: 32px;
    font-weight: 800;
}

.auto_product_section_header a {
    color: var(--auto_product_color_accent);
    font-weight: 800;
}

.auto_product_related_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.auto_product_card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--auto_product_color_border);
    border-radius: var(--auto_product_radius_medium);
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: var(--auto_product_shadow_card);
    transition:
            transform var(--auto_product_transition),
            box-shadow var(--auto_product_transition);
}

.auto_product_card:hover {
    transform: translateY(-3px);
    box-shadow: var(--auto_product_shadow_hover);
}

.auto_product_card_image {
    position: relative;
    background-color: var(--auto_product_color_soft);
}

.auto_product_card_image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.auto_product_card_image button {
    position: absolute;
    top: 10px;
    right: 10px;
    inline-size: 34px;
    block-size: 34px;
    border: 0;
    border-radius: var(--auto_product_radius_round);
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--auto_product_color_text);
    font-size: 24px;
}

.auto_product_card_body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.auto_product_card_body span {
    margin-bottom: 6px;
    color: var(--auto_product_color_muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auto_product_card_body h3 {
    margin: 0 0 10px;
    color: var(--auto_product_color_text_dark);
    font-family: var(--auto_product_font_second);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.auto_product_card_body strong {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--auto_product_color_price);
    font-size: 18px;
    font-weight: 800;
}

.auto_product_card_body a {
    min-block-size: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auto_product_radius_round);
    background-color: var(--auto_product_color_accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

/* ==========================================================
   Product Widgets
   ========================================================== */

.auto_product_widgets {
    margin-bottom: 54px;
    padding-top: 38px;
    border-top: 1px solid var(--auto_product_color_border);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.auto_product_widget_column {
    display: grid;
    gap: 14px;
}

.auto_product_widget_column h2 {
    margin: 0 0 4px;
    color: var(--auto_product_color_text_dark);
    font-size: 20px;
    font-weight: 800;
}

.auto_product_widget_column article {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.auto_product_widget_column img {
    inline-size: 74px;
    block-size: 74px;
    border-radius: var(--auto_product_radius_small);
    object-fit: cover;
}

.auto_product_widget_column h3 {
    margin: 0 0 6px;
    color: var(--auto_product_color_text_dark);
    font-family: var(--auto_product_font_second);
    font-size: 14px;
    font-weight: 800;
}

.auto_product_widget_column strong {
    color: var(--auto_product_color_price);
    font-size: 14px;
    font-weight: 800;
}

/* ==========================================================
   Footer
   ========================================================== */

.auto_product_footer {
    background-color: var(--auto_product_color_footer);
    padding-block: 54px 26px;
}

.auto_product_footer_grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 42px;
}

.auto_product_footer h2 {
    margin: 0 0 18px;
    color: var(--auto_product_color_text);
    font-size: 44px;
    font-weight: 800;
}

.auto_product_footer h3 {
    margin: 0 0 16px;
    color: var(--auto_product_color_text_dark);
    font-size: 18px;
    font-weight: 800;
}

.auto_product_footer p {
    max-width: 360px;
    margin: 0;
    color: var(--auto_product_color_muted);
    font-size: 15px;
    line-height: 1.6;
}

.auto_product_footer section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auto_product_footer section a {
    margin-bottom: 10px;
    color: var(--auto_product_color_text);
    font-size: 15px;
    font-weight: 600;
}

.auto_product_footer section a:hover {
    color: var(--auto_product_color_accent);
}

.auto_product_footer_bottom {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid #d7d9de;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--auto_product_color_text);
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1180px) {
    .auto_product_header_inner {
        grid-template-columns: auto 1fr auto;
    }

    .auto_product_header_actions {
        display: none;
    }

    .auto_product_mobile_button {
        inline-size: 46px;
        block-size: 46px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--auto_product_radius_small);
        background-color: transparent;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .auto_product_mobile_button span {
        inline-size: 22px;
        block-size: 2px;
        display: block;
        border-radius: var(--auto_product_radius_round);
        background-color: #ffffff;
        transition:
                transform var(--auto_product_transition),
                opacity var(--auto_product_transition);
    }

    .auto_product_mobile_button.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .auto_product_mobile_button.is-active span:nth-child(2) {
        opacity: 0;
    }

    .auto_product_mobile_button.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .auto_product_mobile_menu {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        z-index: 70;
        display: none;
        padding: 16px;
        background-color: rgba(8, 23, 53, 0.98);
        box-shadow: 0 20px 40px rgba(3, 8, 31, 0.28);
    }

    .auto_product_mobile_menu.is-open {
        display: grid;
        gap: 8px;
    }

    .auto_product_mobile_menu a {
        min-block-size: 46px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        border-radius: var(--auto_product_radius_medium);
        color: #ffffff;
        font-size: 16px;
        font-weight: 800;
    }

    .auto_product_mobile_menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .auto_product_single {
        grid-template-columns: 1fr;
    }

    .auto_product_related_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auto_product_widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auto_product_footer_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .auto_product_header_inner {
        grid-template-columns: 1fr auto;
        padding-block: 14px;
    }

    .auto_product_logo {
        font-size: 28px;
    }

    .auto_product_search {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 1fr;
        border-radius: var(--auto_product_radius_medium);
    }

    .auto_product_search input,
    .auto_product_search select,
    .auto_product_search button {
        min-block-size: 46px;
    }

    .auto_product_search select {
        border-left: 0;
        border-top: 1px solid #e7e9ef;
    }

    .auto_product_nav_bar {
        display: none;
    }

    .auto_product_action_box {
        grid-template-columns: 1fr;
    }

    .auto_product_quantity {
        width: 100%;
    }

    .auto_product_info_list {
        grid-template-columns: 1fr;
    }

    .auto_product_specs {
        grid-template-columns: 1fr;
    }

    .auto_product_tab_buttons button {
        padding-inline: 18px;
    }

    .auto_product_footer_grid {
        grid-template-columns: 1fr;
    }

    .auto_product_footer_bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .auto_product_thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auto_product_related_grid {
        grid-template-columns: 1fr;
    }

    .auto_product_widgets {
        grid-template-columns: 1fr;
    }

    .auto_product_section_header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auto_product_secondary_actions,
    .auto_product_share {
        align-items: stretch;
        flex-direction: column;
    }

    .auto_product_wishlist_button,
    .auto_product_secondary_actions a {
        width: 100%;
    }
}

/* Shared DezROM About section + stable mobile burger placement */
.dezrom_about_shared,
.aboutas_about {
    position: relative;
    z-index: 2;
    padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 42px);
    background: #f7f8fb;
}

.dezrom_about_shared_inner {
    width: min(1180px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.dezrom_about_shared_text span,
.aboutas_about h2 small {
    display: block;
    margin-bottom: 10px;
    color: #1f3f95;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dezrom_about_shared_text h2,
.aboutas_about h2 {
    margin: 0 0 18px;
    color: #071229;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 4.8vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.dezrom_about_shared_text p,
.aboutas_about p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #4a5568;
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 400;
    line-height: 1.85;
}

.dezrom_about_shared_text a,
.aboutas_about a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: #1f3f95;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.dezrom_about_shared_panel {
    border-radius: 18px;
    padding: clamp(24px, 4vw, 38px);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 18, 41, 0.12);
}

.dezrom_about_shared_panel strong {
    display: block;
    margin-bottom: 12px;
    color: #071229;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
}

.dezrom_about_shared_panel small {
    display: block;
    color: #5d6677;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 860px) {
    .auto_about_premium_mobile_button,
    .auto_cart_mobile_button,
    .auto_contact_mobile_button,
    .auto_product_mobile_button,
    .auto_wishlist_mobile_button,
    .auto_mobile_menu_button,
    .aboutas_mobile_menu_button {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 2147483000 !important;
        margin: 0 !important;
    }

    .auto_about_premium_mobile_menu,
    .auto_cart_mobile_menu,
    .auto_contact_mobile_menu,
    .auto_product_mobile_menu,
    .auto_wishlist_mobile_menu,
    .aboutas_mobile_menu {
        position: absolute !important;
        top: 74px !important;
        right: 14px !important;
        left: 14px !important;
        z-index: 2147482999 !important;
    }

    .dezrom_about_shared_inner {
        grid-template-columns: 1fr;
    }
}

/* Mobile menu layer fix - keep burger menu above all blocks */
@media (max-width: 860px) {
    .auto_header_inner {
        min-block-size: 78px !important;
        display: grid !important;
        grid-template-columns: auto minmax(300px, 1fr) auto !important;
        gap: 50px !important;
        align-items: center !important;
    }

    .aboutas_mobile_menu,
    .auto_mobile_menu,
    .auto_about_premium_mobile_menu,
    .auto_cart_mobile_menu,
    .auto_contact_mobile_menu,
    .auto_product_mobile_menu,
    .auto_wishlist_mobile_menu {
        position: absolute !important;
        top: 74px !important;
        right: 14px !important;
        left: 14px !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        z-index: 2147483646 !important;
        isolation: isolate !important;
    }

    .aboutas_mobile_menu.is-open,
    .auto_about_premium_mobile_menu.is-open,
    .auto_cart_mobile_menu.is-open,
    .auto_contact_mobile_menu.is-open,
    .auto_product_mobile_menu.is-open,
    .auto_wishlist_mobile_menu.is-open,
    .auto_mobile_menu_is_open .auto_mobile_menu {
        z-index: 2147483646 !important;
    }

    .aboutas_mobile_menu_button,
    .auto_mobile_menu_button,
    .auto_about_premium_mobile_button,
    .auto_cart_mobile_button,
    .auto_contact_mobile_button,
    .auto_product_mobile_button,
    .auto_wishlist_mobile_button {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 2147483647 !important;
    }
}

/* Mobile header width fix - prevent horizontal overflow */
@media (max-width: 860px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .auto_header,
    .auto_header_top,
    .auto_header_inner,
    .auto_page,
    .auto_main {
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    .auto_header_inner {
        min-block-size: 78px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
        align-items: center !important;
        inline-size: 100% !important;
    }

    .auto_logo {
        min-width: 0 !important;
        max-width: calc(100vw - 88px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .auto_header_search,
    .auto_header_inner form {
        grid-column: 1 / -1 !important;
        inline-size: 100% !important;
        min-width: 0 !important;
    }

    .auto_mobile_menu,
    .aboutas_mobile_menu,
    .auto_about_premium_mobile_menu,
    .auto_cart_mobile_menu,
    .auto_contact_mobile_menu,
    .auto_product_mobile_menu,
    .auto_wishlist_mobile_menu {
        right: 12px !important;
        left: 12px !important;
        inline-size: auto !important;
        max-width: calc(100vw - 24px) !important;
    }
}

/* Mobile overflow fix - keep catalog page inside viewport */
@media (max-width: 860px) {
    *,
    *::before,
    *::after {
        max-width: 100%;
    }

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .auto_page,
    .auto_header,
    .auto_header_top,
    .auto_header_nav,
    .auto_main,
    .auto_footer,
    .auto_category_banner,
    .auto_catalog_layout,
    .auto_toolbar,
    .auto_breadcrumb {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
        transform: none !important;
    }

    .auto_container,
    .auto_header_inner,
    .auto_category_banner_inner,
    .auto_catalog_layout,
    .auto_toolbar,
    .auto_breadcrumb {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 16px !important;
        box-sizing: border-box !important;
    }

    .auto_header_inner {
        grid-template-columns: minmax(0, 1fr) 48px !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .auto_logo {
        justify-self: start !important;
        max-width: calc(100vw - 96px) !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .auto_header_search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .auto_header_search input,
    .auto_header_search select,
    .auto_header_search button {
        min-width: 0 !important;
    }

    .auto_category_banner_inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-block-size: unset !important;
        gap: 18px !important;
        padding-block: 38px !important;
    }

    .auto_category_banner_content,
    .auto_category_banner_media {
        min-width: 0 !important;
        width: 100% !important;
    }

    .auto_category_banner h1 {
        font-size: clamp(34px, 11vw, 52px) !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere !important;
    }

    .auto_category_banner p {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .auto_mobile_menu_button {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        flex: 0 0 44px !important;
    }
}



/* Unified category navigation across pages */
.dezrom_nav_item {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.dezrom_nav_item summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font: inherit;
    font-weight: 700;
}

.dezrom_nav_item summary::-webkit-details-marker {
    display: none;
}

.dezrom_nav_dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(3, 8, 31, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 160ms ease;
    z-index: 2147483000;
}

.dezrom_nav_item[open] .dezrom_nav_dropdown,
.dezrom_nav_item:hover .dezrom_nav_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dezrom_nav_dropdown a {
    color: #071229 !important;
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 10px;
    border-radius: 8px;
}

.dezrom_nav_dropdown a:hover {
    background: #eef3ff;
    color: #1f3f95 !important;
}

@media (max-width: 860px) {
    .aboutas_mobile_menu .dezrom_nav_item,
    .auto_mobile_menu .dezrom_nav_item,
    .auto_about_premium_mobile_menu .dezrom_nav_item,
    .auto_cart_mobile_menu .dezrom_nav_item,
    .auto_contact_mobile_menu .dezrom_nav_item,
    .auto_product_mobile_menu .dezrom_nav_item,
    .auto_wishlist_mobile_menu .dezrom_nav_item {
        display: grid;
        width: 100%;
    }

    .aboutas_mobile_menu .dezrom_nav_item summary,
    .auto_mobile_menu .dezrom_nav_item summary,
    .auto_about_premium_mobile_menu .dezrom_nav_item summary,
    .auto_cart_mobile_menu .dezrom_nav_item summary,
    .auto_contact_mobile_menu .dezrom_nav_item summary,
    .auto_product_mobile_menu .dezrom_nav_item summary,
    .auto_wishlist_mobile_menu .dezrom_nav_item summary {
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 12px;
        color: #ffffff;
    }

    .aboutas_mobile_menu .dezrom_nav_item > a,
    .auto_mobile_menu .dezrom_nav_item > a,
    .auto_about_premium_mobile_menu .dezrom_nav_item > a,
    .auto_cart_mobile_menu .dezrom_nav_item > a,
    .auto_contact_mobile_menu .dezrom_nav_item > a,
    .auto_product_mobile_menu .dezrom_nav_item > a,
    .auto_wishlist_mobile_menu .dezrom_nav_item > a {
        margin-left: 18px;
        min-height: 38px;
        padding: 9px 14px;
        color: rgba(255,255,255,0.86) !important;
        font-size: 14px;
    }

    .aboutas_mobile_menu .dezrom_nav_dropdown,
    .auto_mobile_menu .dezrom_nav_dropdown,
    .auto_about_premium_mobile_menu .dezrom_nav_dropdown,
    .auto_cart_mobile_menu .dezrom_nav_dropdown,
    .auto_contact_mobile_menu .dezrom_nav_dropdown,
    .auto_product_mobile_menu .dezrom_nav_dropdown,
    .auto_wishlist_mobile_menu .dezrom_nav_dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 4px 18px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: grid;
    }
}
