﻿    :root {
      --primary: #075eb5;
      --primary-dark: #123675;
      --primary-soft: #eaf3ff;

      --accent: #ff7b29;
      --accent-dark: #e75c12;

      --background: #f3f5f9;
      --surface: #ffffff;
      --surface-soft: #f7f8fb;
      --surface-dark: #0b1528;

      --text: #172033;
      --muted: #697386;

      --success: #16a34a;
      --danger: #dc2626;
      --warning: #f59e0b;

      --border: #dde2ea;
      --border-soft: #edf0f5;

      --shadow-small:
        0 4px 14px rgba(15, 23, 42, 0.08);

      --shadow-medium:
        0 14px 32px rgba(15, 23, 42, 0.12);

      --shadow-large:
        0 24px 55px rgba(15, 23, 42, 0.18);

      --radius-small: 10px;
      --radius-medium: 16px;
      --radius-large: 23px;

      --header-height: 88px;
      --categories-height: 52px;
      --cart-width: 390px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 155px;
    }

    body {
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      background: var(--background);
      color: var(--text);
      font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    body.cart-open {
      overflow: hidden;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    [hidden] {
      display: none !important;
    }

    :focus-visible {
      outline: 3px solid rgba(7, 94, 181, 0.3);
      outline-offset: 2px;
    }

    .container {
      width: min(1460px, calc(100% - 36px));
      margin-inline: auto;
    }

    .desktop-only {
      display: inline-flex;
    }

    /* =========================================================
       BOTONES
       ========================================================= */

    .button {
      min-height: 47px;
      padding: 11px 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 900;
      text-align: center;
      transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
    }

    .button:hover:not(:disabled) {
      transform: translateY(-2px);
      filter: brightness(1.06);
    }

    .button-primary {
      background:
        linear-gradient(
          135deg,
          var(--accent),
          var(--accent-dark)
        );
      color: #ffffff;
      box-shadow:
        0 10px 25px rgba(255, 123, 41, 0.23);
    }

    /* =========================================================
       BARRA SUPERIOR
       ========================================================= */

    .topbar {
      min-height: 34px;
      padding: 7px 18px;
      position: relative;
      z-index: 220;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        linear-gradient(
          90deg,
          var(--primary-dark),
          var(--primary),
          #1377d6
        );
      color: #ffffff;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0.2px;
      text-align: center;
    }

    /* =========================================================
       HEADER
       ========================================================= */

    .site-header {
      position: sticky;
      top: 0;
      z-index: 200;
      border-bottom: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.97);
      box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.07);
      backdrop-filter: blur(12px);
    }

    .header-main {
      min-height: var(--header-height);
      padding-block: 12px;
      display: grid;
      grid-template-columns:
        250px
        minmax(280px, 720px)
        auto;
      align-items: center;
      gap: 20px;
    }

    .brand {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 13px;
    }

    .brand-logo {
      width: 74px;
      height: 64px;
      flex: 0 0 74px;
      padding: 3px;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #ffffff;
    }

    .brand-logo img {
      width: 100%;
      height: 100%;
      border-radius: 8px;
      object-fit: contain;
    }

    .brand-copy {
      min-width: 0;
    }

    .brand-copy strong {
      display: block;
      overflow: hidden;
      color: var(--primary-dark);
      font-size: 17px;
      font-weight: 950;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .brand-copy span {
      display: block;
      margin-top: 4px;
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.3;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .header-search {
      width: 100%;
    }

    .search-box {
      display: grid;
      grid-template-columns:
        minmax(0, 1fr)
        54px;
      overflow: hidden;
      border: 1px solid #cfd6e2;
      border-radius: 12px;
      background: #ffffff;
      transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    .search-box:focus-within {
      border-color: var(--primary);
      box-shadow:
        0 0 0 4px rgba(7, 94, 181, 0.12);
    }

    .search-box input {
      width: 100%;
      min-width: 0;
      height: 48px;
      padding: 0 16px;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--text);
      font-size: 14px;
    }

    .search-box button {
      border: 0;
      display: grid;
      place-items: center;
      background:
        linear-gradient(
          135deg,
          var(--primary),
          var(--primary-dark)
        );
      color: #ffffff;
      font-size: 19px;
    }

    .header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
    }

    .header-action {
      min-height: 46px;
      padding: 9px 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #ffffff;
      color: var(--primary-dark);
      font-size: 13px;
      font-weight: 850;
      white-space: nowrap;
      transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
    }

    .header-action:hover {
      transform: translateY(-1px);
      border-color: rgba(7, 94, 181, 0.35);
      background: var(--primary-soft);
    }

    .header-action.login-button {
      border-color: transparent;
      background:
        linear-gradient(
          135deg,
          var(--primary),
          var(--primary-dark)
        );
      color: #ffffff;
    }

    .header-action.cart-button {
      border-color: transparent;
      background:
        linear-gradient(
          135deg,
          var(--accent),
          var(--accent-dark)
        );
      color: #ffffff;
      box-shadow:
        0 8px 20px rgba(255, 123, 41, 0.24);
    }

    .cart-counter {
      min-width: 22px;
      height: 22px;
      padding-inline: 6px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      background: #ffffff;
      color: var(--primary-dark);
      font-size: 11px;
      font-weight: 950;
    }

    .mobile-menu-button {
      display: none;
    }

    /* =========================================================
       CATEGORÃAS SUPERIORES
       ========================================================= */

    .category-navigation {
      position: relative;
      z-index: 195;
      background:
        linear-gradient(
          90deg,
          #07162e,
          var(--primary-dark),
          #102d60
        );
      color: #ffffff;
    }

    .category-navigation-inner {
      min-height: var(--categories-height);
      display: flex;
      align-items: stretch;
    }

    .category-all-button {
      min-width: 126px;
      padding: 0 18px;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
      font-weight: 900;
    }

    .category-all-button:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    .mobile-login-link {
      display: none;
    }

    .category-list {
      min-width: 0;
      flex: 1;
      display: flex;
      align-items: stretch;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
      display: none;
    }

    .category-nav-button {
      min-height: var(--categories-height);
      padding: 0 18px;
      flex: 0 0 auto;
      border: 0;
      border-bottom: 3px solid transparent;
      background: transparent;
      color: #ffffff;
      font-size: 13px;
      font-weight: 850;
      white-space: nowrap;
    }

    .category-nav-button:hover,
    .category-nav-button.active {
      border-bottom-color: var(--accent);
      background: rgba(255, 255, 255, 0.09);
    }

    /* =========================================================
       ÃšNICO BANNER INICIAL
       ========================================================= */

    .featured-banner-section {
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background: #081831;
    }

    .featured-banner {
      width: 100%;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(
          135deg,
          var(--primary-dark),
          var(--primary)
        );
    }

    /*
     * La imagen usa ancho completo y altura automÃ¡tica.
     * No hay redondeo ni contenedor lateral.
     */
    .featured-banner > img {
      width: 100%;
      height: auto;
      min-height: 300px;
      display: block;
      object-fit: contain;
      object-position: center;
    }

    .featured-banner-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      padding:
        clamp(32px, 6vw, 82px)
        max(18px, calc((100vw - 1424px) / 2));
      background:
        linear-gradient(
          90deg,
          rgba(4, 17, 42, 0.95),
          rgba(4, 17, 42, 0.68) 48%,
          rgba(4, 17, 42, 0.08)
        );
      color: #ffffff;
    }

    .featured-banner-copy {
      width: min(760px, 100%);
    }

    .featured-banner-label {
      display: inline-flex;
      margin-bottom: 12px;
      padding: 7px 11px;
      border-radius: 999px;
      background: var(--accent);
      color: #ffffff;
      font-size: 11px;
      font-weight: 950;
    }

    .featured-banner-copy h1 {
      max-width: 760px;
      margin: 0;
      color: #ffffff;
      font-size: clamp(32px, 5vw, 56px);
      font-weight: 950;
      letter-spacing: -1.4px;
      line-height: 1.03;
    }

    .featured-banner-copy p {
      max-width: 680px;
      margin: 14px 0 0;
      color: rgba(255, 255, 255, 0.89);
      font-size: clamp(14px, 2vw, 17px);
      line-height: 1.65;
    }

    .featured-banner-action {
      margin-top: 21px;
    }

    /* =========================================================
       MENSAJES DEL CLIENTE
       =========================================================
     *
     * Los mensajes tÃ©cnicos de inventario deben permanecer
     * solamente en console dentro de comercio_delivery.js.
     */

    .message {
      display: none;
      margin-top: 18px;
      padding: 13px 15px;
      border: 1px solid transparent;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.5;
    }

    .message.info {
      display: block;
      border-color: #bfdbfe;
      background: #eff6ff;
      color: #1e40af;
    }

    .message.success {
      display: block;
      border-color: #bbf7d0;
      background: #f0fdf4;
      color: #166534;
    }

    .message.error {
      display: block;
      border-color: #fecaca;
      background: #fef2f2;
      color: #991b1b;
    }

    /* =========================================================
       ENCABEZADOS Y CONTROLES
       ========================================================= */

    .section-heading {
      margin-bottom: 20px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
    }

    .section-heading-copy > span {
      display: block;
      margin-bottom: 6px;
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 950;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .section-heading h2 {
      margin: 0;
      color: var(--primary-dark);
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 950;
      line-height: 1.1;
    }

    .section-heading p {
      max-width: 700px;
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .control {
      width: 100%;
      min-height: 46px;
      padding: 11px 13px;
      border: 1px solid var(--border);
      border-radius: 11px;
      outline: 0;
      background: var(--surface-soft);
      color: var(--text);
      transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    .control:focus {
      border-color: var(--primary);
      background: #ffffff;
      box-shadow:
        0 0 0 4px rgba(7, 94, 181, 0.1);
    }

    /* =========================================================
       CATÃLOGO
       ========================================================= */

    .catalog-section {
      padding: 48px 0 30px;
    }

    .catalog-toolbar {
      margin-bottom: 16px;
      padding: 12px;
      display: grid;
      grid-template-columns:
        minmax(260px, 1fr)
        minmax(180px, auto)
        auto;
      gap: 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-medium);
      background: var(--surface);
      box-shadow: var(--shadow-small);
    }

    .toolbar-button {
      min-height: 46px;
      padding: 10px 16px;
      border: 1px solid rgba(7, 94, 181, 0.18);
      border-radius: 11px;
      background: var(--primary-soft);
      color: var(--primary-dark);
      font-size: 13px;
      font-weight: 900;
    }

    .categories {
      margin-bottom: 18px;
      padding: 2px 0 7px;
      display: flex;
      gap: 9px;
      overflow-x: auto;
      scrollbar-color: var(--primary) transparent;
    }

    .category-chip {
      min-height: 40px;
      padding: 9px 14px;
      flex: 0 0 auto;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: #ffffff;
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .category-chip:hover,
    .category-chip.active {
      border-color: transparent;
      background:
        linear-gradient(
          135deg,
          var(--primary),
          var(--primary-dark)
        );
      color: #ffffff;
    }

    .catalog-layout {
      display: grid;
      grid-template-columns:
        minmax(0, 1fr)
        var(--cart-width);
      gap: 20px;
      align-items: start;
    }

    .products-grid {
      display: grid;
      grid-template-columns:
        repeat(3, minmax(0, 1fr));
      gap: 17px;
    }

    .product-card {
      min-width: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-medium);
      background: var(--surface);
      box-shadow: var(--shadow-small);
      transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    }

    .product-card:hover {
      transform: translateY(-4px);
      border-color: rgba(7, 94, 181, 0.26);
      box-shadow: var(--shadow-medium);
    }

    .product-image {
      aspect-ratio: 1 / 0.82;
      padding: 10px;
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      background:
        linear-gradient(
          145deg,
          #f5f7fa,
          #e7ebf1
        );
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.28s ease;
    }

    .product-card:hover .product-image img {
      transform: scale(1.04);
    }

    .product-category-label {
      max-width: calc(100% - 24px);
      padding: 6px 10px;
      position: absolute;
      left: 12px;
      bottom: 12px;
      overflow: hidden;
      border-radius: 999px;
      background: var(--primary);
      color: #ffffff;
      font-size: 10px;
      font-weight: 900;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /*
     * No se muestra cantidad de stock.
     * El JavaScript sigue bloqueando productos agotados.
     */
    .product-stock-label,
    [class*="stock-label"],
    [class*="stock-count"] {
      display: none !important;
    }

    .product-body {
      padding: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .product-brand {
      margin: 0 0 6px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
    }

    .product-title {
      min-height: 46px;
      margin: 0;
      display: -webkit-box;
      overflow: hidden;
      color: var(--text);
      font-size: 16px;
      font-weight: 850;
      line-height: 1.4;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .product-code {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.4;
    }

    .product-price {
      margin-top: 14px;
      color: var(--primary-dark);
      font-size: 23px;
      font-weight: 950;
      line-height: 1;
    }

    .product-note {
      min-height: 70px;
      margin-top: 14px;
      resize: vertical;
      font-size: 12px;
    }

    .add-product-button {
      width: 100%;
      min-height: 45px;
      margin-top: 11px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
      border-radius: 11px;
      background:
        linear-gradient(
          135deg,
          var(--accent),
          var(--accent-dark)
        );
      color: #ffffff;
      font-size: 13px;
      font-weight: 950;
    }

    .add-product-button:disabled {
      background: #94a3b8;
      color: #ffffff;
    }

    .empty {
      grid-column: 1 / -1;
      padding: 52px 20px;
      border: 1px dashed var(--border);
      border-radius: var(--radius-medium);
      background: #ffffff;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }

    /* =========================================================
       CARRITO
       ========================================================= */

    .cart-sidebar {
      position: sticky;
      top:
        calc(
          var(--header-height) +
          var(--categories-height) +
          18px
        );
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius-medium);
      background: var(--surface);
      box-shadow: var(--shadow-medium);
    }

    .cart-header {
      min-height: 65px;
      padding: 15px 17px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background:
        linear-gradient(
          135deg,
          var(--primary-dark),
          var(--primary)
        );
      color: #ffffff;
    }

    .cart-header h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 950;
    }

    .cart-header p {
      margin: 3px 0 0;
      color: rgba(255, 255, 255, 0.74);
      font-size: 11px;
    }

    .cart-close-button {
      width: 36px;
      height: 36px;
      display: none;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.12);
      color: #ffffff;
      font-size: 18px;
    }

    .cart-content {
      max-height: calc(100vh - 315px);
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .cart-empty {
      padding: 38px 20px;
      color: var(--muted);
      text-align: center;
    }

    .cart-empty-icon {
      width: 58px;
      height: 58px;
      margin: 0 auto 13px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--primary-soft);
      color: var(--primary);
      font-size: 26px;
    }

    .cart-empty strong {
      display: block;
      color: var(--text);
      font-size: 14px;
    }

    .cart-empty span {
      display: block;
      margin-top: 5px;
      font-size: 12px;
    }

    .cart-list {
      margin: 0;
      padding: 0;
      display: grid;
      list-style: none;
    }

    .cart-item {
      padding: 13px;
      display: grid;
      grid-template-columns:
        70px
        minmax(0, 1fr);
      gap: 11px;
      border-bottom: 1px solid var(--border-soft);
    }

    .cart-item-image {
      width: 70px;
      height: 70px;
      padding: 5px;
      overflow: hidden;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: #f2f4f7;
    }

    .cart-item-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .cart-item-name {
      margin: 0;
      display: -webkit-box;
      overflow: hidden;
      color: var(--text);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.35;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .cart-item-price {
      display: block;
      margin-top: 5px;
      color: var(--primary-dark);
      font-size: 14px;
      font-weight: 950;
    }

    .cart-item-note {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.35;
    }

    .cart-item-controls {
      margin-top: 9px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .quantity-control {
      flex: 1;
      overflow: hidden;
      display: grid;
      grid-template-columns:
        34px
        minmax(32px, 1fr)
        34px;
      border: 1px solid var(--border);
      border-radius: 9px;
    }

    .quantity-control button {
      height: 33px;
      border: 0;
      background: var(--surface-dark);
      color: #ffffff;
      font-size: 18px;
      font-weight: 950;
    }

    .quantity-control strong {
      display: grid;
      place-items: center;
      background: #ffffff;
      font-size: 12px;
    }

    .remove-cart-item {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 9px;
      background: var(--danger);
      color: #ffffff;
    }

    .cart-summary {
      padding: 15px 16px 17px;
      border-top: 1px solid var(--border);
      background: var(--surface-soft);
    }

    .summary-row {
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      gap: 15px;
      color: var(--muted);
      font-size: 12px;
    }

    .summary-row strong {
      color: var(--text);
    }

    .summary-total {
      margin-top: 11px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      color: var(--text);
      font-size: 17px;
      font-weight: 950;
    }

    .summary-total strong {
      color: var(--accent-dark);
      font-size: 21px;
    }

    .cart-summary-actions {
      margin-top: 14px;
      display: grid;
      gap: 9px;
    }

    .cart-checkout-link,
    .clear-cart-button {
      width: 100%;
      min-height: 43px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 950;
    }

    .cart-checkout-link {
      background:
        linear-gradient(
          135deg,
          var(--accent),
          var(--accent-dark)
        );
      color: #ffffff;
    }

    .clear-cart-button {
      border: 1px solid #fecaca;
      background: #ffffff;
      color: var(--danger);
    }

    .cart-overlay {
      position: fixed;
      inset: 0;
      z-index: 299;
      display: none;
      background: rgba(4, 12, 28, 0.66);
      backdrop-filter: blur(3px);
    }

    /* =========================================================
       CHECKOUT SIN CALCULADOR DE ENVÃOS
       ========================================================= */

    .checkout-section {
      padding: 44px 0 54px;
    }

    .checkout-layout {
      display: block;
      gap: 20px;
      align-items: start;
    }

    /* Ensure panels stacked and full-width for cleaner layout */
    .checkout-layout .checkout-panel { width: 100%; margin-bottom: 16px; }

    .checkout-panel {
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius-large);
      background: var(--surface);
      box-shadow: var(--shadow-small);
    }

    .checkout-panel-header {
      padding: 20px 21px;
      background:
        linear-gradient(
          135deg,
          var(--primary-dark),
          var(--primary)
        );
      color: #ffffff;
    }

    .checkout-panel-header h3 {
      margin: 0;
      font-size: 21px;
      font-weight: 950;
    }

    .checkout-panel-header p {
      margin: 6px 0 0;
      color: rgba(255, 255, 255, 0.76);
      font-size: 12px;
      line-height: 1.5;
    }

    .checkout-panel-body {
      padding: 20px;
    }

    .checkout-order-list {
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
      list-style: none;
    }

    .checkout-order-item {
      padding: 12px;
      display: grid;
      grid-template-columns:
        minmax(0, 1fr)
        auto;
      gap: 12px;
      border: 1px solid var(--border-soft);
      border-radius: 12px;
      background: var(--surface-soft);
    }

    .checkout-order-item strong {
      display: block;
      color: var(--text);
      font-size: 13px;
    }

    .checkout-order-item span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }

    .checkout-order-price {
      color: var(--primary-dark);
      font-weight: 950;
      white-space: nowrap;
    }

    .checkout-empty {
      padding: 28px 15px;
      border: 1px dashed var(--border);
      border-radius: 12px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 13px;
      text-align: center;
    }

    .checkout-totals {
      margin-top: 16px;
      padding-top: 16px;
      display: grid;
      gap: 9px;
      border-top: 1px solid var(--border);
    }

    .checkout-total-row {
      display: flex;
      justify-content: space-between;
      gap: 15px;
      color: var(--muted);
      font-size: 13px;
    }

    .checkout-total-row strong {
      color: var(--text);
    }

    .checkout-total-row.total {
      margin-top: 4px;
      font-size: 19px;
      font-weight: 950;
    }

    .checkout-total-row.total strong {
      color: var(--accent-dark);
      font-size: 23px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 13px;
    }

    .field {
      min-width: 0;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    .field label {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
    }

    .field small {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.4;
    }

    textarea.control {
      min-height: 91px;
      resize: vertical;
    }

    #map {
      width: 100%;
      height: 245px;
      margin-top: 6px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #e8edf4;
    }

    .map-help {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.45;
    }

    .checkout-actions {
      margin-top: 18px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 11px;
    }

    .quote-button,
    .confirm-order-button {
      min-height: 55px;
      padding: 12px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      border-radius: 13px;
      color: #ffffff;
      font-size: 14px;
      font-weight: 950;
      text-align: center;
    }

    .quote-button {
      background:
        linear-gradient(
          135deg,
          var(--primary),
          var(--primary-dark)
        );
      box-shadow:
        0 10px 24px rgba(7, 94, 181, 0.2);
    }

    .confirm-order-button {
      background:
        linear-gradient(
          135deg,
          var(--accent),
          var(--accent-dark)
        );
      box-shadow:
        0 10px 24px rgba(255, 123, 41, 0.22);
    }

    .quotation-notice {
      margin: 12px 0 0;
      padding: 11px 12px;
      border: 1px solid #bfdbfe;
      border-radius: 10px;
      background: #eff6ff;
      color: #1e40af;
      font-size: 10px;
      line-height: 1.5;
    }

    /* =========================================================
       CONTACTO Y FOOTER
       ========================================================= */

    .contact-strip {
      padding: 29px 0;
      background:
        linear-gradient(
          135deg,
          var(--accent-dark),
          var(--accent)
        );
      color: #ffffff;
    }

    .contact-strip-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
    }

    .contact-strip h2 {
      margin: 0;
      font-size: 25px;
      font-weight: 950;
    }

    .contact-strip p {
      margin: 6px 0 0;
      color: rgba(255, 255, 255, 0.87);
      font-size: 13px;
      line-height: 1.55;
    }

    .contact-button {
      min-height: 47px;
      padding: 11px 18px;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border-radius: 12px;
      background: var(--primary-dark);
      color: #ffffff;
      font-size: 13px;
      font-weight: 950;
    }

    .site-footer {
      background: #071225;
      color: rgba(255, 255, 255, 0.78);
    }

    .footer-main {
      padding: 42px 0 34px;
      display: grid;
      grid-template-columns:
        1.2fr
        0.8fr
        0.8fr;
      gap: 38px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 13px;
    }

    .footer-brand img {
      width: 72px;
      height: 62px;
      padding: 3px;
      border-radius: 11px;
      background: #ffffff;
      object-fit: contain;
    }

    .footer-brand strong {
      display: block;
      color: #ffffff;
      font-size: 18px;
      font-weight: 950;
    }

    .footer-brand span {
      display: block;
      margin-top: 4px;
      font-size: 11px;
    }

    .footer-description {
      max-width: 520px;
      margin: 16px 0 0;
      font-size: 12px;
      line-height: 1.7;
    }

    .footer-column h3 {
      margin: 0 0 13px;
      color: #ffffff;
      font-size: 14px;
      font-weight: 950;
    }

    .footer-links {
      display: grid;
      gap: 9px;
    }

    .footer-links a,
    .footer-links span {
      color: rgba(255, 255, 255, 0.7);
      font-size: 12px;
      line-height: 1.5;
    }

    .footer-links a:hover {
      color: var(--accent);
    }

    .footer-bottom {
      padding: 17px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.09);
      font-size: 11px;
      text-align: center;
    }

    .floating-contact {
      position: fixed;
      right: 20px;
      bottom: 22px;
      z-index: 180;
      display: grid;
      gap: 9px;
    }

    .floating-button {
      width: 52px;
      height: 52px;
      display: none;
      place-items: center;
      border-radius: 50%;
      color: #ffffff;
      box-shadow: var(--shadow-medium);
      font-size: 22px;
      font-weight: 950;
    }

    .floating-whatsapp {
      background: #25d366;
    }

    .floating-phone {
      background: var(--primary);
    }

    /* =========================================================
       RESPONSIVE
       ========================================================= */

    @media (max-width: 1280px) {
      .header-main {
        grid-template-columns:
          205px
          minmax(260px, 1fr)
          auto;
        gap: 13px;
      }

      .header-action .action-label {
        display: none;
      }

      .products-grid {
        grid-template-columns:
          repeat(2, minmax(0, 1fr));
      }

      .catalog-layout {
        grid-template-columns:
          minmax(0, 1fr)
          350px;
      }
    }

    @media (max-width: 1020px) {
      .container {
        width: min(100% - 24px, 1460px);
      }

      .header-main {
        grid-template-columns:
          auto
          minmax(0, 1fr)
          auto;
      }

      .brand-copy {
        display: none;
      }

      .brand-logo {
        width: 62px;
        height: 54px;
        flex-basis: 62px;
      }

      .catalog-layout {
        display: block;
      }

      .cart-sidebar {
        width: min(410px, 94vw);
        height: 100dvh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 300;
        display: grid;
        grid-template-rows:
          auto
          minmax(0, 1fr)
          auto;
        border-radius: 0;
        transform: translateX(105%);
        transition: transform 0.28s ease;
      }

      .cart-sidebar.open {
        transform: translateX(0);
      }

      .cart-close-button {
        display: grid;
      }

      .cart-content {
        min-height: 0;
        max-height: none;
        overflow-y: auto;
      }

      .cart-overlay.open {
        display: block;
      }
    }

    @media (max-width: 780px) {
      html {
        scroll-padding-top: 125px;
      }

      .desktop-only {
        display: none;
      }

      .topbar {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 10px;
      }

      .header-main {
        grid-template-columns:
          auto
          1fr
          auto;
        gap: 9px;
        padding-block: 9px;
      }

      .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
      }

      .search-box input {
        height: 43px;
      }

      .mobile-menu-button {
        display: inline-flex;
      }

      .category-navigation {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition:
          max-height 0.28s ease,
          opacity 0.2s ease,
          visibility 0.2s ease;
      }

      .category-navigation.mobile-open {
        max-height: 280px;
        opacity: 1;
        visibility: visible;
      }

      .category-navigation-inner {
        min-height: auto;
        padding: 8px;
        align-items: stretch;
        flex-direction: column;
      }

      .category-all-button {
        width: 100%;
        min-height: 43px;
        justify-content: flex-start;
        border-radius: 8px;
      }

      .mobile-login-link {
        min-height: 43px;
        margin-top: 7px;
        padding: 10px 13px;
        display: flex;
        align-items: center;
        gap: 9px;
        border-radius: 8px;
        background:
          linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
          );
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
      }

      .category-list {
        width: 100%;
        min-height: 48px;
        overflow-x: auto;
      }

      .category-nav-button {
        min-height: 48px;
        padding-inline: 13px;
        font-size: 11px;
      }

      /*
       * En mÃ³vil la imagen cubre el espacio para evitar franjas,
       * pero el banner mantiene ancho completo y sin redondeo.
       */
      .featured-banner > img {
        min-height: 430px;
        object-fit: cover;
      }

      .featured-banner-overlay {
        align-items: flex-end;
        padding: 32px 18px;
        background:
          linear-gradient(
            to top,
            rgba(4, 17, 42, 0.98),
            rgba(4, 17, 42, 0.6),
            rgba(4, 17, 42, 0.12)
          );
      }

      .section-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .catalog-toolbar {
        grid-template-columns: 1fr 1fr;
      }

      .catalog-toolbar .toolbar-search {
        grid-column: 1 / -1;
      }

      .products-grid {
        grid-template-columns:
          repeat(2, minmax(0, 1fr));
        gap: 11px;
      }

      .checkout-layout {
        grid-template-columns: 1fr;
      }

      .footer-main {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      .container {
        width: min(100% - 16px, 1460px);
      }

      .brand-logo {
        width: 54px;
        height: 49px;
        flex-basis: 54px;
      }

      .featured-banner-copy h1 {
        font-size: 35px;
      }

      .featured-banner-copy p {
        font-size: 14px;
      }

      .catalog-toolbar {
        grid-template-columns: 1fr;
      }

      .catalog-toolbar .toolbar-search {
        grid-column: auto;
      }

      .products-grid {
        grid-template-columns: 1fr;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .field.full {
        grid-column: auto;
      }

      .checkout-actions {
        grid-template-columns: 1fr;
      }

      .contact-strip-inner {
        align-items: stretch;
        flex-direction: column;
      }

      .contact-button {
        width: 100%;
      }

      .floating-contact {
        right: 13px;
        bottom: 14px;
      }

      .floating-button {
        width: 48px;
        height: 48px;
      }
    }

/* =========================================================
   PÁGINA DE PRODUCTO (product_sku.html)
   ========================================================= */
.product-stock-label { display: none !important; }

.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding: 18px 0 10px;
  align-items: start;
}

.detail-gallery { position: sticky; top: 150px; }
.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 66px; height: 66px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; background: var(--surface-soft);
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 24px;
  box-shadow: var(--shadow-small);
}
.detail-cat {
  color: var(--primary); font-weight: 900; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
}
.detail-title { margin: 6px 0 4px; font-size: 27px; color: var(--primary-dark); line-height: 1.15; }
.detail-sku { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.detail-price { font-size: 30px; font-weight: 950; color: var(--primary-dark); margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.detail-desc { color: var(--text); margin-bottom: 18px; line-height: 1.6; }

.options {
  display: flex; flex-direction: column; gap: 18px;
  border-top: 1px dashed var(--border); padding-top: 18px;
}
.opt-group { display: flex; flex-direction: column; gap: 9px; }
.opt-legend { font-weight: 850; font-size: 14px; color: var(--text); }
.opt-row { display: flex; flex-wrap: wrap; gap: 9px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--surface-soft); border: 1px solid var(--border);
  font-weight: 800; cursor: pointer; user-select: none;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }

.color-option {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 800; cursor: pointer;
}
.color-option input { position: absolute; opacity: 0; pointer-events: none; }
.color-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.swatch { width: 22px; height: 22px; border-radius: 7px; display: inline-block; box-shadow: 0 1px 4px rgba(2,6,23,.15); }

.file-drop {
  border: 1px dashed var(--border); border-radius: var(--radius-small);
  padding: 16px; text-align: center; background: var(--surface-soft); cursor: pointer;
}
.file-drop strong { color: var(--primary-dark); }
.file-preview { margin-top: 10px; display: none; align-items: center; gap: 10px; }
.file-preview.show { display: flex; }
.file-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-small); overflow: hidden; }
.qty-control button { width: 42px; height: 44px; border: 0; background: var(--surface-soft); font-size: 18px; cursor: pointer; }
.qty-control input { width: 64px; height: 44px; border: 0; text-align: center; font-weight: 800; outline: none; }

.detail-meta { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 7px; }
.detail-meta span { display: inline-flex; gap: 8px; align-items: center; }

.add-cart-button {
  margin-top: 20px; width: 100%; background: var(--primary); color: #fff;
  border: 0; border-radius: var(--radius-small); min-height: 54px; font-size: 16px; font-weight: 950; cursor: pointer;
  transition: background .15s ease;
}
.add-cart-button:hover { background: var(--primary-dark); }

/* ---------- Calculadora de dimensiones (product_sku_graficas) ---------- */
.price-per-m2-label {
  font-size: 13px; color: var(--muted); font-weight: 700;
}
.price-per-m2-value {
  font-size: 24px; font-weight: 950; color: var(--primary-dark);
}
.calc-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--primary-soft); border-radius: var(--radius-small);
}
.calc-price-label { font-size: 13px; color: var(--primary-dark); font-weight: 800; }
.calc-price-value { font-size: 20px; font-weight: 950; color: var(--primary-dark); }
.dimension-calculator { display: flex; flex-direction: column; gap: 14px; }
.calc-unit-row .opt-row { display: flex; gap: 9px; }
.dimension-inputs { display: flex; gap: 14px; flex-wrap: wrap; }
.dim-field {
  display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 110px;
}
.dim-field label { font-size: 13px; font-weight: 800; color: var(--text); }
.dim-field input {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-small);
  font-size: 15px; font-weight: 700; outline: none;
}
.dim-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.dim-field input::placeholder { color: var(--muted); font-weight: 400; }
.area-result {
  margin-top: 6px; padding: 14px; background: var(--surface-soft);
  border-radius: var(--radius-small); border: 1px solid var(--border);
}
.area-line { font-size: 14px; color: var(--text); display: flex; justify-content: space-between; }
.area-line strong { font-weight: 900; }
.total-line { color: var(--primary-dark); font-size: 16px; margin-top: 4px; }

/* ---------- Promos por mt² (index) ---------- */
.metered-promos { padding: 26px 0 50px; }
.product-card--promo .product-price {
  flex-direction: column; align-items: flex-start; gap: 4px;
}
.price-per-m2-badge {
  font-size: 11px; font-weight: 900; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em;
}
.price-per-m2-value {
  font-size: 20px; font-weight: 950; color: var(--primary-dark);
}

/* ---------- Pestañas rápidas (page tabs) ---------- */
.page-tabs { padding: 26px 0 50px; }
.tabs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px; margin-top: 20px;
}
.tab-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-small); text-align: center;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-small); transition: all .15s ease;
  cursor: pointer;
}
.tab-card:hover {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary-dark); transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.tab-card:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.tab-card-icon { font-size: 28px; }
.tab-card-label { font-size: 13px; font-weight: 800; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark); color: #fff; padding: 13px 20px; border-radius: 999px;
  box-shadow: var(--shadow-large); font-weight: 700; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 600; display: flex; gap: 14px; align-items: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--accent); font-weight: 950; }

@media (max-width: 920px) {
  .product-detail { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
}

.product-card--link { cursor: pointer; }

/* =========================================================
   CARRITO: drawer en todos los tamaños (abre/al clique) +
   scroll activo (sin bloquear la página)
   ========================================================= */
body.cart-open {
  overflow: auto !important;
}

.catalog-layout {
  grid-template-columns: 1fr !important;
}

.cart-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 400 !important;
  width: min(410px, 94vw) !important;
  max-height: 100dvh !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--border);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  transform: translateX(105%) !important;
  transition: transform 0.28s ease !important;
  background: var(--surface) !important;
  overflow: hidden !important;
}

.cart-sidebar.open {
  transform: translateX(0) !important;
}

.cart-close-button {
  display: grid !important;
}

.cart-overlay {
  display: none !important;
  z-index: 390 !important;
}

.cart-overlay.open {
  display: block !important;
}

/* Contador del botón de carrito */
#cartCounter {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1b1b;
}
