/* --------------------------------------------------- */
/* File: assets/css/storev2_styles.css */
/* --------------------------------------------------- */
/* VARIABLES & BASE */
:root {
  --bg: #fafafa;
  --muted: #777;
  --accent: #c42026;
  --dark: #222;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.4;
}

.storev2_container {
  max-width: 1100px;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------- */
/* TOP BANNER */
/* ----------------------------------------------- */
.storev2_topBanner {
  background: #f3f3f3;
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 2px;
}

.storev2_topBanner_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.storev2_topBanner_left {
  font-size: 15px;
  font-weight: 600
}

.storev2_topBanner_close {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.storev2_topBanner_sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.storev2_topBanner_sub a {
  color: var(--accent);
  text-decoration: none
}

.mensaje-container {
  background: #fff7e6;
  border: 1px solid #fcdbb0;
  width: 100%;
  /*border: 1px solid #c9ddec;*/
  /*border-radius: 10px;*/
  /*background-color: #e5ecf3;*/
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px !important;
  /*box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);*/
}

.mensaje-container:hover {
  /*background-color: #e5ecf3;*/
  background-color: #fff7e6;
}

.mensaje-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*color: #27455c;*/
  color: #5c3d15;
  font-size: 12px;
}

.flecha {
  transition: transform 0.4s ease;
  font-size: 10px;
}

.abierto .flecha {
  transform: rotate(90deg);
}

.mensaje-opciones {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

/*.mensaje-opciones ul { padding-left: 20px; margin: 0; list-style-type: disc; } .mensaje-opciones li { margin: 6px 0; color: #27455c; transition: color 0.2s; font-size: 12px; } .mensaje-opciones li:hover { font-weight: bold !important; }*/
.mensaje-opciones ul {
  list-style: none;
  padding-left: 0;
  /*color: #27455c;*/
  color: #5c3d15;
}

.mensaje-opciones ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 12px;
  /*color: #27455c;*/
  color: #5c3d15;
}

.mensaje-opciones ul li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  /*color: #27455c; !important*/
  color: #5c3d15;
}

.abierto .mensaje-opciones {
  max-height: 300px;
}

/* ----------------------------------------------- */
/* INFO BOX */
/* ----------------------------------------------- */
.storev2_infoBox.info {
  background: #c8def3;
  border: 1px solid #97bcdf;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  border-radius: 4px;
  flex-wrap: wrap;
}

.storev2_infoSmall.info, .storev2_infoSmall.info a:link, .storev2_infoSmall.info a:visited, .storev2_infoSmall.info a:hover {
  margin-top: 6px;
  color: #203c57;
}

.storev2_infoText.info {
  font-size: 12px;
  color: #203c57;
}

.storev2_infoBox.warning {
  background: #fff7e6;
  border: 1px solid #fcdbb0;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  border-radius: 4px;
  flex-wrap: wrap;
}

.storev2_infoBox.danger {
  background: #fad8d8;
  border: 1px solid #f3c2c2;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  border-radius: 4px;
  flex-wrap: wrap;
  color: #ac4444 !important;
}

.storev2_infoSmall.danger, .storev2_infoSmall.danger a:link, .storev2_infoSmall.danger a:visited, .storev2_infoSmall.danger a:hover {
  margin-top: 6px;
  color: #ac4444;
}

.storev2_infoText.danger {
  font-size: 12px;
  color: #ac4444;
}

.storev2_infoIcon {
  font-size: 22px
}

.storev2_infoSmall {
  margin-top: 6px;
  color: var(--muted)
}

/* ----------------------------------------------- */
/* LAYOUT */
/* ----------------------------------------------- */
.storev2_mainGrid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  /* align-items: start;*/
}

/* ----------------------------------------------- */
/* PRODUCT CARD */
/* ----------------------------------------------- */
.storev2_productCard {
  /*background: #fff; border: 1px solid #e3e3e3;*/
  border-bottom: 1px solid #e3e3e3;
  padding: 25px 25px 40px 25px;
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 18px;
  align-items: start;
  border-radius: 5px;
  margin-bottom: 16px;
}

.storev2_product_imagePlaceholder {
    background: #f0f0f0;
    border: 1px solid #ddd;
    height: 100%;
    width: 100%;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden; /* evita que la imagen se salga */
}

.storev2_product_imagePlaceholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* mantiene proporción */
    display: block;
}


.storev2_product_details {
  font-size: 14px
}

.storev2_badge {
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.storev2_badge_blue {
  background: #0052cc
}

.storev2_product_title {
  font-size: 18px;
  margin: 10px 0 0 0 !important;
  font-weight: 600;
}

.storev2_product_subTitle {
  color: var(--muted);
  font-size: 14px;
  margin: 5px 0 0 0 !important;
}

.storev2_product_options {
  margin-top: 5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.storev2_configWrap {
  display: flex;
  gap: 6px;
  align-items: last baseline;
}

.storev2_removeBtn {
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.storev2_product_price {
  font-size: 22px !important;
  text-align: right;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  /* coloca span arriba y small debajo */
  align-items: flex-end;
  /* alinear todo a la derecha */
  line-height: 1.1;
  /* mejor separación */
}

.storev2_product_price span {
  font-size: 1em;
  /* mantiene el tamaño principal */
}

.storev2_product_price small {
  font-size: 14px;
  /* más pequeño */
  font-weight: normal;
}

.storev2_product_price small.desc {
  color: #da7676;
}

.storev2_product_price small.normal {
  color: #555;
}

/* ----------------------------------------------- */
/* SIDEBAR / SUMMARY */
/* ----------------------------------------------- */
.storev2_summary {
  position: sticky;
  top: 20px;
  align-self: start;
  /* ayuda cuando está dentro de grid */
}

.storev2_summary_box {
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 35px;
  border-radius: 5px;
}

.storev2_summary_title {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 700
}

.storev2_summary_row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.storev2_nonMember_label {
  font-weight: 400;
  font-size: 18px !important;
}

.storev2_nonMember_price {
  font-weight: 800;
  font-size: 25px !important;
}

.storev2_nonMember_price {
  font-size: 25px !important;
}

.storev2_memberRow {
  color: var(--muted)
}

.storev2_invoiceNote {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}

.storev2_termsCheck {
  font-size: 13px;
  display: block
}

.storev2_paymethod {
    display: flex;
    gap: 5px;
}

.storev2_checkoutBtn {
  margin-top: 15px !important;
  font-size: 14px !important;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: center;
  /* importante */
  text-decoration: none;
  /* elimina el subrayado del <a> */
  display: block;
  /* hace que el <a> se comporte como botón */
}

/*.storev2_checkoutBtn:hover {
  background: #000;
}*/

/* Botón negro */
.storev2_checkoutBtn:first-child {
    background-color: #000;
}

.storev2_checkoutBtn:first-child:hover {
    background-color: #202020;
}

/* Botón gris */
.storev2_checkoutBtn:last-child {
    background-color: #474747;
}

.storev2_checkoutBtn:last-child:hover {
    background-color: #202020;
}

.storev2_cuponBtn {
  margin-top: 10px !important;
  font-size: 14px !important;
  width: 100%;
  padding: 8px 5px;
  border-radius: 5px;
  background: #c42026;
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: center;
  /* importante */
  text-decoration: none;
  /* elimina el subrayado del <a> */
  display: block;
  /* hace que el <a> se comporte como botón */
}

.storev2_cuponBtn:hover {
  background: #911818;
}

.storev2_cotizacionBtn {
  margin-top: 10px !important;
  font-size: 14px !important;
  width: 100%;
  padding: 8px 5px;
  border-radius: 5px;
  background: #dbdbda;
  color: #000000;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: center;
  /* importante */
  text-decoration: none;
  /* elimina el subrayado del <a> */
  display: block;
  /* hace que el <a> se comporte como botón */
}

.storev2_cotizacionBtn:hover {
  background: #bdbdbd;
}

.storev2_tiendaBtn {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  font-size: 14px !important;
  width: 100%;
  padding: 8px 5px;
  border-radius: 5px;
  background: #c42026;
  color: #FFFFFF;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: center;
  /* importante */
  text-decoration: none;
  /* elimina el subrayado del <a> */
  display: block;
  /* hace que el <a> se comporte como botón */
}

.storev2_tiendaBtn:hover {
  background: #911818;
}

.storev2_checkoutSmall {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/*-------------------------*/
/* FORM BILLING */
/*-------------------------*/
#billing_cart_form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* controla separación entre inputs */
  margin-bottom: 20px;
}

#billing_cart_form .custom-select-carrito, #billing_cart_form input.custom-select-carrito {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#billing_cart_form .custom-select-carrito:focus, #billing_cart_form input.custom-select-carrito:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px rgba(182, 0, 0, 0.3);
}

#billing_cart_form input::placeholder {
  color: #999;
  font-size: 13px;
}

/* selects */
#billing_cart_form select.custom-select-carrito {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23777" height="16" width="16" viewBox="0 0 20 20"><path d="M5.516 7.548c.173-.192.458-.2.63 0L10 11.013l3.855-3.465c.173-.192.458-.2.63 0 .173.2.173.516 0 .708l-4.17 3.75c-.173.192-.458.2-.63 0l-4.17-3.75c-.173-.192-.173-.508 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 14px;
}

.doc-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Select grande */
#vTypeDocument {
    flex: 1; /* ocupa todo el espacio disponible */
}

/* Input pequeño para complemento */
#vComplemento {
    width: 70px; /* puedes ajustar si quieres */
    max-width: 80px;
    text-transform: uppercase;
}

/* ----------------------------------------------- */
/* RESPONSIVE */
/* ----------------------------------------------- */
/* TABLET < 900px */
@media (max-width: 900px) {
  .storev2_summary {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 20px;
  }

  .storev2_products {
    order: 1
  }

  .storev2_mainGrid {
    display: flex;
    flex-direction: column;
  }

  .storev2_product_imagePlaceholder {
    display: none
  }

  .storev2_productCard {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 16px;
  }

  .storev2_product_price {
    text-align: left;
    margin-top: 10px
  }
}

/* PHABLET < 700px */
@media (max-width: 700px) {
  .storev2_product_options {
    justify-content: left;
  }
}

/* MOBILE < 480px */
@media (max-width: 480px) {
  .storev2_container {
    padding: 0 10px
  }

  .storev2_topBanner {
    padding: 14px
  }

  .storev2_productCard {
    border-radius: 5px;
    padding: 12px;
  }

  .storev2_checkoutBtn {
    padding: 10px;
    font-size: 15px;
  }
}

@media (max-width:600px) {
  #billing_cart_form {
    gap: 8px;
  }

  #billing_cart_form .custom-select-carrito {
    padding: 10px;
    font-size: 13px;
  }
}