/* Sidebar Cotización */
.sidebar_cotizacion {
    font-family: "Raleway", sans-serif;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

.sidebar_cotizacion .sidebar_body,
.sidebar_cotizacion .sidebar_body button,
.sidebar_cotizacion .sidebar_body input,
.sidebar_cotizacion .sidebar_body label,
.sidebar_cotizacion .sidebar_body a {
    font-family: inherit;
}

.sidebar_cotizacion.active {
    right: 0;
}

.sidebar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar_cotizacion.active .sidebar_overlay {
    display: block;
}

.sidebar_content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar_header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    border-bottom: none;
}

.sidebar_header h2 {
    display: none;
}

.sidebar_close {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--black);
    font-weight: 300;
    line-height: 1;
}

.sidebar_body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.sidebar_product_title {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar_product_title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    text-transform: uppercase;
}

.product_image_container_new {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product_image_sidebar_new {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.sidebar_sku_stock {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 27px;
}

.sidebar_sku {
    font-size: 14px;
    color: var(--black);
    margin: 0;
}

.btn_ver_stock {
    background-color: #F0F0F0;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn_ver_stock:hover {
    background-color: #E0E0E0;
}

.sidebar_description {
    margin-bottom: 20px;
}

.sidebar_description p {
    font-size: 14px;
    color: var(--black);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.sidebar_section {
    margin-bottom: 20px;
    text-align: left;
}

.sidebar_product_detail {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar_product_detail__scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 4px;
}

.sidebar_product_detail__scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar_product_detail__scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar_product_detail__scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.sidebar_product_detail__footer {
    flex-shrink: 0;
    padding-top: 16px;
}

.sidebar_qty_block {
    margin-bottom: 8px;
}

.sidebar_qty_row {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
}

.sidebar_stock_alert {
    display: none;
    margin: 0;
    padding: 6px 8px;
    background: #51fe2b;
    color: #020202;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    max-width: 180px;
    line-height: 1.25;
    text-align: left;
    flex-shrink: 1;
}

.sidebar_stock_alert.is-visible {
    display: block;
}

.sidebar_subtotal_row {
    display: flex;
    align-items: baseline;
    justify-content: left;
    gap: 10px;
    margin-top: 30px;
}

.sidebar_subtotal_label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.sidebar_subtotal_value {
    font-size: 16px;
    font-weight: 700;
}

.sidebar_label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 10px;
}

.sidebar_colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.sidebar_color_circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar_color_circle:hover {
    transform: scale(1.1);
    border-color: #999;
}

.sidebar_color_circle.selected {
    border-color: var(--black);
    border-width: 3px;
}

.sidebar_logo_options {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn_logo_option {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background-color: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_logo_option.active {
    background-color: #F0F0F0;
    border-color: #999;
}

.btn_logo_option:hover {
    background-color: #F5F5F5;
}

.sidebar_quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    border: none;
    padding: 0;
}

.btn_qty_minus,
.btn_qty_plus {
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background-color: var(--white);
    font-size: 20px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.btn_qty_minus:hover,
.btn_qty_plus:hover {
    background-color: #F5F5F5;
    border-color: #999;
}

.sidebar_quantity input[type="number"] {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    padding: 0 10px;
    background-color: transparent;
    color: var(--black);
    -moz-appearance: textfield;
}

.sidebar_quantity input[type="number"]::-webkit-outer-spin-button,
.sidebar_quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn_add_cotizacion_new {
    width: 72%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    padding: 14px 24px;
    background-color: #51fe2b;
    color: #000000;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn_add_cotizacion_new:hover {
    background-color: #32E612;
    transform: translateY(-1px);
}

.btn_add_cotizacion_new:active {
    transform: translateY(0);
}

.cotizacion_title_badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cotizacion_icon_badge {
    position: relative;
    width: 40px;
    height: 40px;
}

.cotizacion_icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.cotizacion_badge_number {
    position: absolute;
    top: 0px;
    right: -1px;
    background-color: #51fe2b;
    color: #0A5D00;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cotizacion_title_badge h2 {
    font-size: 15px;
    font-weight: 100;
    color: var(--black);
    margin: 0;
}

.cotizacion_banner {
    background-color: var(--black);
    color: var(--white);
    padding: 25px 20px;
    margin: 20px -20px 0 -20px;
    text-align: center;
}

.cotizacion_banner p {
    margin: 0;
    font-size: 16px;
}

.highlight_green {
    background-color: #51fe2b;
    color: #0A5D00;
    padding: 2px 8px;
    border-radius: 0px;
}

.cotizacion_delivery_bar {
    background-color: #51fe2b;
    color: #0A5D00;
    padding: 12px 20px;
    margin: 0 -20px 20px -20px;
    text-align: center;
}

.cotizacion_delivery_bar p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.cotizacion_process {
    margin-top: 1.5rem;
    margin-bottom: 25px;
}

.cotizacion_process h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 20px 0;
    padding-top: 0.35rem;
    text-align: center;
}

.process_steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
}

.process_steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 70px;
    right: 0;
    height: 14px;
    background: linear-gradient(to right, #51fe2b 0%, #51fe2b 75%, #E0E0E0 50%, #E0E0E0 100%);
    z-index: 0;
    width: 271px;
}

.process_step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step_icon {
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step_circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.step_circle.completed {
    background-color: #51fe2b;
}

.step_icon_img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.process_step p {
    font-size: 11px;
    margin: 8px 0 0 0;
    color: #666;
}

.process_step.completed p {
    color: var(--black);
}

.process_step.active p {
    color: var(--black);
    font-weight: 700;
}

.cotizacion_view_header,
.cotizacion_banner,
.cotizacion_delivery_bar,
.cotizacion_process {
    flex-shrink: 0;
}

.cotizacion_products_list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 20px;
    min-height: 0;
    padding-right: 5px;
}

.cotizacion_products_list::-webkit-scrollbar {
    width: 6px;
}

.cotizacion_products_list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cotizacion_products_list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.cotizacion_products_list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cotizacion_summary,
.cotizacion_actions {
    flex-shrink: 0;
}

.cotizacion_product_item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
    position: relative;
}

.cotizacion_product_item:last-child {
    border-bottom: none;
}

.product_item_image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.product_item_info {
    flex: 1;
}

.product_item_name {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.product_item_price_inline {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px 0;
}

.product_item_color {
    margin-bottom: 10px;
    position: relative;
}

.product_item_color label {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    display: block;
    margin-bottom: 6px;
}

.product_color_select_wrapper {
    position: relative;
}

.product_color_select_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #F0F0F0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    transition: background-color 0.2s ease;
}

.product_color_select_btn:hover {
    background-color: #E0E0E0;
}

.product_color_select_btn .color_name {
    font-size: 12px;
    color: var(--black);
    flex: 1;
    text-align: left;
}

.product_color_select_btn .check_icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product_color_select_btn .dropdown_arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.product_color_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.product_color_dropdown.show {
    display: block;
}

.product_color_option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border: none;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.product_color_option:last-child {
    border-bottom: none;
}

.product_color_option:hover {
    background-color: #F5F5F5;
}

.product_color_option.selected {
    background-color: #F0F0F0;
}

.product_color_option .color_name {
    font-size: 12px;
    color: var(--black);
    flex: 1;
}

.product_color_option .check_icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product_item_logo {
    margin-bottom: 10px;
}

.btn_logo_selected {
    background-color: #F0F0F0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    cursor: default;
}

.product_item_qty_wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    width: 50%;
}

.product_item_qty {
    flex: 1;
}

.product_item_price {
    display: none;
}

.btn_delete_product {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_delete_product:hover {
    opacity: 1;
}

.cotizacion_summary {
    padding: 15px;
    margin-bottom: 20px;
}

.summary_item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary_item.total {
    margin-bottom: 0;
    padding-top: 10px;
}

.summary_item p {
    margin: 0;
    font-size: 14px;
}

.summary_item.total p {
    font-size: 16px;
    font-weight: 700;
}

.cotizacion_actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn_seguir_cotizando,
.btn_descargar_cotizacion {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_seguir_cotizando {
    background-color: #E0E0E0;
    color: var(--black);
}

.btn_seguir_cotizando:hover {
    background-color: #D0D0D0;
}

.btn_descargar_cotizacion {
    background-color: #51fe2b;
    color: #000000;
}

.btn_descargar_cotizacion:hover {
    background-color: #32E612;
}

.process_steps.process_steps--complete::before {
    background: #51fe2b;
    left: 70px;
    right: 70px;
    width: auto;
}

.process_step.final p {
    color: var(--black);
    font-weight: 700;
}

.cotizacion_success {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0 1.5rem;
    min-height: 0;
    overflow-y: auto;
}

.cotizacion_success__title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--black);
}

.cotizacion_success__title strong {
    font-weight: 700;
}

.cotizacion_success__banner {
    width: 100%;
    margin: 0 0 2rem;
    padding: 0.85rem 1rem;
    background: #51fe2b;
    color: #020202;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.cotizacion_success__contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.cotizacion_success__contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.cotizacion_success__contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.55;
}

.cotizacion_success__contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.65rem 1.5rem;
    background: #51fe2b;
    color: #020202;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.cotizacion_success__contact-pill:hover {
    color: #020202;
    opacity: 0.92;
}

.btn_ver_mis_cotizaciones {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 999px;
    background: #e0e0e0;
    color: #020202;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn_ver_mis_cotizaciones:hover {
    background: #d0d0d0;
    color: #020202;
}

.cotizacion_bottom_nav--success {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1.25rem;
    align-items: stretch;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__shipping {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__shipping img {
    width: 28px;
    height: auto;
    object-fit: contain;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__payments {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__payments-label {
    margin: 0;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__payments-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__payments-logos img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.cotizacion_bottom_nav--success .cotizacion_bottom_nav__payments-logos span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.cotizacion_bottom_nav {
    position: relative;
    background-color: var(--black);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin: 0 -20px -20px -20px;
    flex-shrink: 0;
}

.nav_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--white);
}

.nav_item .nav_icon {
    width: 150px;
    object-fit: contain;
}

.nav_item p {
    font-size: 11px;
    margin: 0;
    color: var(--white);
}

.product_info_container {
    width: 100%;
}

.product_image_container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product_image_sidebar {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.product_details {
    width: 100%;
}

.product_name_sidebar {
    font-size: 20px;
    color: var(--black);
    margin-bottom: 10px;
}

.product_sku_sidebar {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.product_price_sidebar {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 20px;
}

.cotizacion_form {
    width: 100%;
    margin-top: 20px;
}

.form_group {
    margin-bottom: 20px;
}

.form_group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form_group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form_group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--white);
}

.price_summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.price_summary_item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price_summary_item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.btn_add_cotizacion {
    width: 100%;
    padding: 15px;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn_add_cotizacion:hover {
    background-color: #0056b3;
}

.btn_add_cotizacion:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.loading_cotizacion {
    display: none;
    text-align: center;
    padding: 10px;
}

.loading_cotizacion.active {
    display: block;
}

/* Loader dentro del sidebar de cotización */
.cotizacion_loader_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 0;
}

.cotizacion_loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader_spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #51fe2b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cotizacion_loader p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Botón Agregar a Cotización */
.cotizacion_btn_container {
    width: 70%;
    margin: 10px auto 0 auto;
    text-align: center;
}

.btn_cotizacion {
    width: 100%;
    padding: 8px 0px;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn_cotizacion:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn_cotizacion:active {
    transform: translateY(0);
}

@media only screen and (max-width: 600px) {
