
/* ============================================================
   BARSECH | AJUSTES VISUALES DE LA TIENDA
   Archivo: css/tienda-ajustes.css

   No reemplaza style.css.
   Se carga después de style.css en las páginas de la tienda.
   ============================================================ */


/* ============================================================
   1. VARIABLES VISUALES
   ============================================================ */

:root {
  --shop-navy: #022434;
  --shop-navy-deep: #011823;
  --shop-yellow: #FFC107;
  --shop-white: #FFFFFF;
  --shop-gray: #596979;
  --shop-border: #dfe5e9;
  --shop-background: #f7f9fb;
  --shop-green: #168448;
}


/* ============================================================
   2. PÁGINAS DE TIENDA
   ============================================================ */

body.shop-page {
  padding-top: 85px;
  background-color: var(--shop-white);
  color: var(--shop-navy);
  min-height: 100vh;
}

body.shop-page.fade-in {
  opacity: 1;
}

.shop-page .shop-main {
  width: min(1220px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}


/* ============================================================
   3. HEADER UNIFICADO CON INDEX
   ============================================================ */

.shop-page .shop-unified-header {
  position: fixed;
  width: 100%;
  min-height: 64px;
  top: 0;
  left: 0;
  z-index: 1000;

  display: flex;
  align-items: center;

  padding: 12px 36px;

  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--shop-yellow);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(8px);
}

.shop-page .shop-unified-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.shop-page .shop-unified-header .logo img {
  width: auto;
  height: 38px;
  object-fit: contain;
}

.shop-page .shop-unified-header .logo h1 {
  margin-top: 3px;
  color: var(--shop-navy);
  font-family: var(--fuente-titulos);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
}

.shop-page .shop-unified-header .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 25px;
}

.shop-page .shop-unified-header .nav-links a {
  position: relative;
  padding: 6px 8px;

  color: var(--shop-navy);
  text-decoration: none;

  font-family: var(--fuente-titulos);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;

  transition: color .25s ease;
}

.shop-page .shop-unified-header .nav-links a:hover,
.shop-page .shop-unified-header .nav-links a[aria-current="page"] {
  color: #FFC107;
}

.shop-page .shop-unified-header .nav-links a::before,
.shop-page .shop-unified-header .nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--shop-yellow);
  transition: width .25s ease;
}

.shop-page .shop-unified-header .nav-links a::before {
  top: 0;
  left: 0;
}

.shop-page .shop-unified-header .nav-links a::after {
  bottom: 0;
  right: 0;
}

.shop-page .shop-unified-header .nav-links a:hover::before,
.shop-page .shop-unified-header .nav-links a:hover::after,
.shop-page .shop-unified-header .nav-links a[aria-current="page"]::before,
.shop-page .shop-unified-header .nav-links a[aria-current="page"]::after {
  width: 100%;
}

.shop-page .shop-unified-header .nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-page .shop-unified-header .cart-link {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 42px;
  height: 42px;

  color: var(--shop-navy);
  background: transparent;
  text-decoration: none;
  font-size: 1.35rem;
}

.shop-page .shop-unified-header .cart-link:hover {
  color: #FFC107;
}

.shop-page .shop-unified-header .cart-count {
  position: absolute;
  top: -3px;
  right: -4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 19px;
  height: 19px;
  padding: 0 5px;

  color: var(--shop-navy);
  background: var(--shop-yellow);

  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
}

.shop-page .shop-unified-header .cart-count[hidden] {
  display: none;
}


/* ============================================================
   4. HERO DE LA TIENDA
   ============================================================ */

.shop-page .shop-hero {
  margin: 30px auto 45px;
  padding: clamp(30px, 5vw, 58px);

  min-height: 265px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  color: var(--shop-white);

  background: linear-gradient(
    110deg,
    #011823,
    #022434
  );

  border-radius: 2px;
  box-shadow: none;
}

.shop-page .shop-hero h1 {
  color: var(--shop-white);
  font-family: var(--fuente-titulos);
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1.06;
  font-weight: 700;
}

.shop-page .shop-hero p {
  color: #e0e8ed;
  line-height: 1.7;
}

.shop-page .shop-eyebrow {
  color: #FFC107;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.shop-page .shop-hero .shop-eyebrow {
  color: var(--shop-yellow);
}

.shop-page .shop-hero-side span {
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
}


/* ============================================================
   5. ENCABEZADOS Y MENSAJE TÉCNICO
   ============================================================ */

.shop-page .catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
}

.shop-page .catalog-heading h2,
.shop-page .cart-page-heading h1 {
  color: var(--shop-navy);
  font-family: var(--fuente-titulos);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.05;
}

.shop-page .catalog-source {
  margin: 0 0 4px;
  color: #526272;
  font-size: .75rem;
  text-align: right;
}

.shop-page #catalog-source[hidden] {
  display: none !important;
}


/* ============================================================
   6. BUSCADOR Y FILTROS
   ============================================================ */

.shop-page .catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 13px;

  padding: 16px;
  margin-bottom: 16px;

  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: 2px;

  box-shadow: none;
}

.shop-page .catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
  padding: 0 13px;

  background: #ffffff;
  border: 1px solid #d7e0e7;
  border-radius: 2px;
}

.shop-page .catalog-search input {
  width: 100%;
  min-width: 0;
  height: 44px;

  background: transparent;
  border: 0;
  outline: 0;

  color: var(--shop-navy);
  font-size: .86rem;
}

.shop-page .catalog-filter {
  display: grid;
  gap: 5px;

  color: #596979;
  font-size: .7rem;
  font-weight: 600;
}

.shop-page .catalog-filter select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;

  color: var(--shop-navy);
  background: #ffffff;

  border: 1px solid #d7e0e7;
  border-radius: 2px;

  font-size: .82rem;
  outline-color: var(--shop-yellow);
}

.shop-page .catalog-results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 17px;
}

.shop-page .catalog-results-line p {
  margin: 0;
  color: var(--shop-gray);
  font-size: .82rem;
}

.shop-page .clear-filters {
  border: 0;
  background: none;
  color: #FFC107;
  cursor: pointer;
  text-decoration: underline;
  font-size: .8rem;
}


/* ============================================================
   7. TARJETAS DEL CATÁLOGO
   ============================================================ */

.shop-page .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.shop-page .product-card {
  min-width: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #e0e6ea;
  border-radius: 2px;

  box-shadow: none;

  transition: border-color .2s ease;
}

.shop-page .product-card:hover {
  transform: none;
  border-color: #FFC107;
  box-shadow: none;
}

.shop-page .product-card-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  aspect-ratio: 1 / 1;
  padding: 14px;

  overflow: hidden;
  text-decoration: none;

  background: #ffffff;
  border-radius: 0;
  border-bottom: 1px solid #edf0f2;
}

.shop-page .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: transform .25s ease;
}

.shop-page .product-card:hover .product-card-image img {
  transform: scale(1.025);
}

.shop-page .product-category {
  position: absolute;
  top: 12px;
  left: 12px;

  max-width: calc(100% - 24px);

  padding: 5px 9px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #022434;
  background: #FFC107;

  border-radius: 2px;

  font-size: .65rem;
  font-weight: 700;
}

.shop-page .product-card-content {
  padding: 15px 15px 16px;
}

.shop-page .product-sku {
  color: #8795a0;
  font-size: .67rem;
  letter-spacing: .5px;
}

.shop-page .product-card h3 {
  min-height: 43px;
  margin: 7px 0 8px;

  font-family: var(--fuente-titulos);
  font-size: 1.08rem;
  line-height: 1.16;
  font-weight: 650;
}

.shop-page .product-card h3 a {
  color: var(--shop-navy);
  text-decoration: none;
}

.shop-page .product-card h3 a:hover {
  color: #FFC107;
}

.shop-page .product-card-price {
  margin: 0 0 14px;

  color: var(--shop-navy);
  font-size: 1.15rem;
  font-weight: 750;
}

.shop-page .product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-page .product-outline-button,
.shop-page .product-add-button {
  min-width: 0;
  min-height: 39px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  padding: 10px 8px;

  border-radius: 2px;

  cursor: pointer;
  text-align: center;
  text-decoration: none;

  font-size: .73rem;
  font-weight: 700;

  transition: background .2s ease, color .2s ease;
}

.shop-page .product-outline-button {
  color: var(--shop-navy);
  background: #ffffff;
  border: 1px solid var(--shop-navy);
}

.shop-page .product-outline-button:hover {
  background: #f1f5f7;
}

.shop-page .product-add-button {
  color: #ffffff;
  background: var(--shop-navy);
  border: 1px solid var(--shop-navy);
}

.shop-page .product-add-button:hover {
  color: var(--shop-navy);
  background: var(--shop-yellow);
  border-color: var(--shop-yellow);
}


/* ============================================================
   8. DETALLE DEL PRODUCTO
   ============================================================ */

.shop-page .product-detail-main {
  padding-top: 25px;
  padding-bottom: 65px;
}

.shop-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;

  color: #8795a0;
  font-size: .78rem;
}

.shop-page .breadcrumbs a {
  color: #657785;
  text-decoration: none;
}

.shop-page .breadcrumbs a:hover {
  color: #FFC107;
}

.shop-page .product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 65px);
  align-items: start;

  padding: clamp(20px, 3vw, 38px);

  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: 2px;

  box-shadow: none;
}

.shop-page .product-detail-image {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 420px;
  aspect-ratio: 1 / 1;

  padding: 24px;

  background: #ffffff;
  border: 1px solid #e5eaed;
  border-radius: 2px;
  overflow: hidden;
}

.shop-page .product-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 540px;

  object-fit: contain;
  mix-blend-mode: normal;
}

.shop-page .product-detail-category {
  display: inline-flex;
  padding: 6px 12px;

  color: #ffffff;
  background: var(--shop-navy);

  border-radius: 2px;

  font-size: .72rem;
  font-weight: 700;
}

.shop-page .product-detail-sku {
  margin: 18px 0 7px;
  color: #84929e;
  font-size: .76rem;
}

.shop-page .product-detail-info h1 {
  margin: 0 0 11px;

  color: var(--shop-navy);

  font-family: var(--fuente-titulos);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.4px;
}

.shop-page .product-detail-price {
  margin: 0 0 16px;

  color: var(--shop-navy);
  font-size: 2rem;
  font-weight: 750;
}


/* ============================================================
   9. BOTONES DE COMPRA DEBAJO DEL PRECIO
   ============================================================ */

.shop-page .product-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-bottom: 8px;
}

.shop-page .primary-shop-button,
.shop-page .whatsapp-product-button {
  min-width: 0;
  min-height: 47px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 12px 14px;

  border-radius: 2px;
  border: 1px solid transparent;

  text-align: center;
  text-decoration: none;

  font-size: .82rem;
  font-weight: 700;

  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.shop-page .primary-shop-button {
  color: #ffffff;
  background: var(--shop-navy);
  border-color: var(--shop-navy);
}

.shop-page .primary-shop-button:hover {
  color: var(--shop-navy);
  background: var(--shop-yellow);
  border-color: var(--shop-yellow);
  transform: none;
}

.shop-page .whatsapp-product-button {
  color: #ffffff;
  background: var(--shop-green);
  border-color: var(--shop-green);
}

.shop-page .whatsapp-product-button:hover {
  background: #116e3c;
  border-color: #116e3c;
  transform: none;
}

.shop-page .whatsapp-helper {
  margin: 7px 0 18px;
  color: #75828d;
  font-size: .73rem;
  line-height: 1.55;
}

.shop-page .product-detail-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;

  margin: 8px 0 16px;
  padding: 14px 0;

  border-top: 1px solid var(--shop-border);
  border-bottom: 1px solid var(--shop-border);
}

.shop-page .product-detail-benefits span {
  color: #506675;
  font-size: .78rem;
}

.shop-page .product-detail-benefits i {
  margin-right: 6px;
  color: #FFC107;
}

.shop-page .product-detail-description {
  padding: 20px 0;
  border-top: 0;
}

.shop-page .product-detail-description h2 {
  margin: 0 0 13px;

  color: var(--shop-navy);

  font-family: var(--fuente-titulos);
  font-size: 1.35rem;
  font-weight: 700;
}

.shop-page .product-detail-description p {
  color: #425563;

  font-size: .91rem;
  line-height: 1.9;
  white-space: pre-line;
}

.shop-page .product-detail-back {
  margin-top: 20px;
}

.shop-page .back-to-products {
  color: #667987;
  text-decoration: none;
  font-size: .8rem;
}

.shop-page .back-to-products:hover {
  color: #FFC107;
}


/* ============================================================
   10. CARRITO
   ============================================================ */

.shop-page .cart-main {
  padding-top: 25px;
  padding-bottom: 70px;
}

.shop-page .cart-page-heading {
  margin: 18px 0 24px;
}

.shop-page .cart-page-heading h1 {
  margin-bottom: 9px;
}

.shop-page .cart-page-heading > p:last-child {
  color: #657785;
  font-size: .9rem;
}

.shop-page .cart-products-panel,
.shop-page .summary-card,
.shop-page .checkout-form {
  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: 2px;
  box-shadow: none;
}

.shop-page .cart-products-panel,
.shop-page .summary-card,
.shop-page .checkout-form {
  padding: 22px;
}

.shop-page .cart-line > img {
  border-radius: 2px;
}

.shop-page .quantity-control {
  border-radius: 2px;
}

.shop-page .quantity-control button {
  border-radius: 2px;
}

.shop-page .checkout-form input:not([type="checkbox"]),
.shop-page .checkout-form select,
.shop-page .checkout-form textarea {
  border-radius: 2px;
}

.shop-page .checkout-submit {
  border-radius: 2px;
}

.shop-page .payment-method,
.shop-page .test-mode-notice {
  border-radius: 2px;
}


/* ============================================================
   11. NOTIFICACIONES
   ============================================================ */

.shop-page .shop-toast {
  border-radius: 2px;
}

.shop-page .no-results,
.shop-page .empty-cart,
.shop-page .product-not-found {
  border-radius: 2px;
  box-shadow: none;
}


/* ============================================================
   12. FOOTER ORIGINAL DE BARSECH
   ============================================================ */

/* Se conservan las reglas originales de style.css:
   footer-section
   footer-container
   footer-left
   footer-center
   footer-right
   footer-bottom
   footer-social
   footer-links

   Esto mantiene la misma distribución, colores y formulario
   del footer de index.html.
*/

.shop-page .footer-section {
  width: 100%;
  margin-top: 25px;
}


/* ============================================================
   13. RESPONSIVE TABLET
   ============================================================ */

@media (max-width: 1050px) {

  .shop-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-page .catalog-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-page .catalog-search {
    grid-column: 1 / -1;
  }

}


@media (max-width: 800px) {

  .shop-page {
    padding-top: 65px;
  }

  .shop-page .shop-unified-header {
    padding: 12px 18px;
  }

  .shop-page .shop-unified-header .nav-links {
    display: none;
  }

  .shop-page .shop-hero {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
  }

  .shop-page .shop-hero-side {
    display: flex;
    flex-wrap: wrap;
  }

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

  .shop-page .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .shop-page .product-detail-image {
    min-height: 300px;
    max-height: 480px;
  }

  .shop-page .cart-layout {
    grid-template-columns: 1fr;
  }

}


/* ============================================================
   14. RESPONSIVE CELULARES
   ============================================================ */

@media (max-width: 560px) {

  .shop-page .shop-main {
    width: calc(100% - 28px);
  }

  .shop-page .shop-hero {
    padding: 27px 22px;
    margin-bottom: 35px;
  }

  .shop-page .shop-hero h1 {
    font-size: 2.15rem;
  }

  .shop-page .shop-hero-side {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .shop-page .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shop-page .catalog-source {
    text-align: left;
  }

  .shop-page .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
    padding: 11px;
    gap: 10px;
  }

  .shop-page .catalog-search {
    grid-column: 1 / -1;
  }

  .shop-page .catalog-filter select {
    font-size: .7rem;
    padding: 0 7px;
  }

  .shop-page .product-grid {
    gap: 10px;
  }

  .shop-page .product-card-content {
    padding: 11px;
  }

  .shop-page .product-card h3 {
    min-height: 43px;
    font-size: .96rem;
  }

  .shop-page .product-card-price {
    font-size: 1rem;
  }

  .shop-page .product-card-actions {
    grid-template-columns: 1fr;
  }

  .shop-page .product-outline-button,
  .shop-page .product-add-button {
    padding: 9px 6px;
    font-size: .7rem;
  }

  .shop-page .product-category {
    top: 8px;
    left: 8px;
    font-size: .58rem;
  }

  .shop-page .product-detail-layout {
    padding: 15px;
  }

  .shop-page .product-detail-image {
    min-height: 260px;
  }

  .shop-page .product-detail-info h1 {
    font-size: 2rem;
  }

  .shop-page .product-detail-price {
    font-size: 1.8rem;
  }

  .shop-page .product-detail-actions {
    grid-template-columns: 1fr;
  }

  .shop-page .product-detail-actions button,
  .shop-page .product-detail-actions a {
    width: 100%;
  }

  .shop-page .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 11px;
  }

  .shop-page .cart-line > img {
    width: 70px;
    height: 70px;
  }

  .shop-page .cart-line-end {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .shop-page .checkout-fields.two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-page .cart-products-panel,
  .shop-page .summary-card,
  .shop-page .checkout-form {
    padding: 16px;
  }

  .shop-page .test-mode-notice {
    align-items: flex-start;
  }

  .shop-page .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shop-page .footer-left,
  .shop-page .footer-right {
    text-align: center;
  }

  .shop-page .form-row {
    flex-direction: column;
    gap: 18px;
  }

}


/* ============================================================
   BARSECH | NOTAS INDIVIDUALES EN EL CARRITO
   ============================================================ */

.shop-page .cart-line-note {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.shop-page .cart-line-note > span {
  display: block;
  margin-bottom: 7px;
  color: #022434;
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-page .cart-line-note textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d7dfe3;
  border-radius: 5px;
  background: #ffffff;
  color: #022434;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-page .cart-line-note textarea:focus {
  outline: none;
  border-color: #FFC107;
  box-shadow: 0 0 0 3px #FFC107;
}

.shop-page .cart-line-note textarea::placeholder {
  color: #929da5;
}

.shop-page .cart-line-note small {
  display: block;
  margin-top: 5px;
  color: #687780;
  font-size: 0.72rem;
  line-height: 1.4;
}


/* Enlace "Seguir comprando" */
.shop-page .cart-products-panel .panel-heading a {
  color: #022434;
  transition: color 0.2s ease;
}

.shop-page .cart-products-panel .panel-heading a:hover {
  color: #FFC107;
}

.shop-page .cart-products-panel .panel-heading a:focus-visible {
  color: #FFC107;
  outline: 2px solid #FFC107;
  outline-offset: 3px;
}

/* ============================================================
   FIN DE AJUSTES VISUALES
   ============================================================ */
