    :root {
      --primary: #ff6a00;
      --primary-dark: #cc5200;
      --text: #1a1a1a;
      --bg: #fbfbfb;
      --muted: #f8f8f8;
      --radius: 16px;
      --shadow: 0 6px 24px rgba(0,0,0,0.11), 0 1.5px 5px rgba(255,106,0,0.06);
      --transition: 0.28s cubic-bezier(.42,0,.2,1);
      --discount: #ff6600;
      --focus: 0 0 0 2px #ffb58a;
      --color-primary: #ff6a00;
      --color-primary-d: #cc5200;
      --color-bg: #fff;
      --color-accent: #ffb300;
      --color-text: #1a1a1a;
      --shadow-md: 0 4px 18px rgba(255,106,0,0.10), 0 2px 8px rgba(0,0,0,0.07);
    }

    /* --------- RESET --------- */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      scroll-behavior: smooth;
      padding-top: 100px; 
    }
    .no-scroll { overflow: hidden !important; }

    /* --------- HEADER MODERNO ANIMADO --------- */
    .super-header {
      background: #fff;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      min-height: 90px;
      z-index: 110;
      border-bottom: 4px solid var(--primary);
      box-shadow: 0 8px 32px 0 rgba(255,106,0,0.07), 0 2px 12px rgba(255,106,0,0.06);
      transition: top 0.27s, opacity 0.18s;
    }
    .super-header.hide-header {
      top: -120px;
      opacity: 0;
      pointer-events: none;
    }
    .super-header::before,
    .super-header::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      z-index: 1;
    }
    .super-header::before {
      width: 310px;
      height: 310px;
      left: -80px;
      top: -100px;
      background: radial-gradient(circle at 55% 55%, #fff8e7 0%, #ffe9c5 80%, transparent 100%);
      opacity: 0.14;
      filter: blur(2px);
      animation: header-bubble-move 8s ease-in-out infinite alternate;
    }
    .super-header::after {
      width: 180px;
      height: 180px;
      right: -50px;
      bottom: -55px;
      background: radial-gradient(circle at 40% 60%, #ffd6b1 0%, #fff 100%);
      opacity: 0.12;
      filter: blur(2px);
      animation: header-bubble-move 10s 1.2s ease-in-out infinite alternate;
    }

    .header-orange-stripes {
      position: absolute;
      width: 100vw;
      left: 0; top: 0; z-index: 2; pointer-events: none;
      height: 100%;
    }
    .header-orange-stripes svg {
      width: 100vw;
      height: 100px;
      display: block;
    }
    .header-orange-stripes .stripe-1 {
      stroke: var(--primary);
      stroke-width: 10px;
      opacity: 0.21;
      filter: blur(0.7px);
      stroke-linecap: round;
      stroke-dasharray: 160 540;
      animation: stripe-draw 10s linear infinite;
    }
    .header-orange-stripes .stripe-2 {
      stroke: var(--primary-dark);
      stroke-width: 6px;
      opacity: 0.15;
      filter: blur(0.5px);
      stroke-linecap: round;
      stroke-dasharray: 70 300;
      animation: stripe-draw 13s 2s linear infinite reverse;
    }
    .header-orange-stripes .stripe-3 {
      stroke: var(--primary);
      stroke-width: 7px;
      opacity: 0.09;
      filter: blur(1.3px);
      stroke-linecap: round;
      stroke-dasharray: 180 400;
      animation: stripe-draw 18s 3s linear infinite;
    }
    .header-orange-stripes .stripe-4 {
      stroke: var(--primary-dark);
      stroke-width: 4px;
      opacity: 0.11;
      filter: blur(0.8px);
      stroke-linecap: round;
      stroke-dasharray: 100 270;
      animation: stripe-draw 11s 5s linear infinite reverse;
    }
    .header-orange-stripes .stripe-5 {
      stroke: #ffae42;
      stroke-width: 8px;
      opacity: 0.07;
      filter: blur(2.1px);
      stroke-linecap: round;
      stroke-dasharray: 210 370;
      animation: stripe-draw 19s 7s linear infinite;
    }
    @keyframes stripe-draw {
      to { stroke-dashoffset: -700; }
    }
    @keyframes header-bubble-move {
      0% { transform: scale(1) translateY(0); }
      100% { transform: scale(1.08) translateY(18px); }
    }

    .header-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #fff7;
      border: none;
      border-radius: 50%;
      padding: 0.55em;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 7px #ffba8044;
      cursor: pointer;
      transition: box-shadow .17s, background .19s;
      z-index: 8;
    }
    .header-btn:active { background: #ffd6b288; }
    .header-menu { left: 0.8rem; }
    .header-search { right: 0.8rem; }
    @media (max-width:700px) {
      .header-btn { padding: 0.37em; }
      .header-menu { left: 0.23rem; }
      .header-search { right: 0.23rem; }
    }

    .header-content {
      max-width: 2000px;
      margin: 0 auto;
      padding: 1.1rem 2rem 0.7rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 3;
      gap: 0.7rem;
    }

    .header-logo {
      height: 70px;
      width: 70px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary);
      box-shadow: 0 6px 30px 0 rgba(255,106,0,0.10), 0 2px 10px rgba(255,106,0,0.08);
      background-color: #fff;
      margin-bottom: 0.4rem;
      animation: logo-pop 1s cubic-bezier(.53,-0.11,.51,1.46) 0.13s backwards,
                 logo-bounce 2.1s 2s infinite cubic-bezier(.6,.18,.38,1.34) alternate paused;
    }
    @keyframes logo-pop {
      0% { opacity: 0; transform: scale(0.8) translateY(-18px); }
      80% { opacity: 1; transform: scale(1.22) translateY(3px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    @keyframes logo-bounce {
      0% { transform: scale(1); }
      30% { transform: scale(1.5); }
      50% { transform: scale(0.96); }
      70% { transform: scale(1.22); }
      100% { transform: scale(1); }
    }

    .header-text {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      min-width: 0;
      animation: header-text-fade 0.7s 0.35s backwards;
    }
    @keyframes header-text-fade {
      0% { opacity: 0; transform: translateY(28px); }
      100% { opacity: 1; transform: none; }
    }
    .header-text h1 {
      font-size: 2.12rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.3rem;
      line-height: 1.15;
      word-break: break-word;
      letter-spacing: 0.02em;
      text-shadow: 0 2px 8px #fff7;
      animation: fade-in-up 0.7s 0.55s backwards;
    }
    @keyframes fade-in-up {
      0% { opacity: 0; transform: translateY(18px); }
      100% { opacity: 1; transform: none; }
    }

    .header-text nav {
      display: flex;
      gap: 1.3rem;
      flex-wrap: wrap;
      justify-content: center;
      animation: fade-in-up 0.7s 0.9s backwards;
    }
    .header-text nav a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      background: #fff5ed;
      padding: 0.24em 1.1em;
      border-radius: 14px;
      box-shadow: 0 2px 9px #ffd7b633;
      transition: color 0.27s, background 0.22s, box-shadow 0.2s;
      letter-spacing: 0.01em;
    }
    .header-text nav a:hover {
      color: var(--primary-dark);
      background: #ffe2c1;
      box-shadow: 0 6px 20px #ffbe8033;
      transform: scale(1.04);
    }

    /* --- MENU LATERAL --- */
    .menu-drawer {
      position: fixed;
      top: 0;
      left: -320px;
      width: 290px;
      height: 100vh;
      background: #fff;
      box-shadow: 8px 0 32px #ff6a0040, 0 4px 16px #0001;
      z-index: 301;
      padding: 0;
      display: flex;
      flex-direction: column;
      transition: left 0.33s cubic-bezier(.8,0,.2,1);
      border-top-right-radius: 22px;
      border-bottom-right-radius: 22px;
      max-height: 100vh;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #ffb774 #fff7e8;
    }
    .menu-drawer.open { left: 0; }
    .drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.3rem 1.4rem 0.6rem 1.2rem;
      border-bottom: 1.5px solid #ffe3cd;
      font-weight: 700;
      color: var(--primary-dark);
      background: #fff9f3;
      font-size: 1.11rem;
      border-top-right-radius: 22px;
    }
    .drawer-close {
      background: none;
      border: none;
      font-size: 2.3rem;
      color: #ff6a00;
      cursor: pointer;
      line-height: 1;
      margin-left: 0.7rem;
      padding: 0 0.2em;
    }
    #drawerCategories {
      list-style: none;
      margin: 0;
      padding: 1.2rem 0 0.8rem 0.5rem;
      flex: 1;
      max-height: 78vh;
      overflow-y: auto;
      padding-right: 8px;
      scrollbar-width: thin;
      scrollbar-color: #ffb774 #fff7e8;
    }
    #drawerCategories::-webkit-scrollbar {
      width: 8px;
      background: #fff7e8;
    }
    #drawerCategories::-webkit-scrollbar-thumb {
      background: #ffb774;
      border-radius: 8px;
    }
    #drawerCategories li {
      padding: 0.7em 1.3em 0.7em 1.2em;
      color: var(--text);
      font-size: 1.05rem;
      border-radius: 9px;
      cursor: pointer;
      margin-bottom: 0.2em;
      transition: background 0.17s, color 0.15s;
    }
    #drawerCategories li:hover {
      background: #fff4e5;
      color: var(--primary-dark);
    }
    .drawer-overlay {
      display: none;
      position: fixed;
      z-index: 200;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: #ff7a0026;
      backdrop-filter: blur(1.6px);
      opacity: 0.19;
      transition: opacity 0.2s;
    }
    .menu-drawer.open ~ .drawer-overlay {
      display: block;
    }
    @media (max-width: 500px) {
      .menu-drawer {
        width: 99vw;
        left: -99vw;
        border-radius: 0 0 18px 0;
      }
      .menu-drawer.open { left: 0; }
      #drawerCategories { max-height: 82vh; }
    }
    #drawerCategories img {
      width: 53px;
      height: 53px;
      border-radius: 7px;
      object-fit: contain;
      background: #fff;
      box-shadow: 0 2px 8px #ffd7b1bb;
      border: 1.5px solid #ffd7b1;
      flex-shrink: 0;
    }

    @media (max-width: 700px) {
      .header-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.7rem 0.7rem 0.7rem 0.7rem;
        justify-content: center;
      }
      .header-logo {
        height: 62px;
        width: 62px;
        margin-bottom: 0.2rem;
      }
      .header-text h1 {
        font-size: 1.32rem;
        margin-bottom: 0.1rem;
      }
      .header-text nav { gap: 0.7rem; }
    }

    /* --------- PANEL FILTRO --------- */
    #filter-panel {
      min-width: 265px;
      max-width: 340px;
      width: 340px;
      min-height: 520px;
      background: var(--bg);
      border: 1.5px solid #eee;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2.1rem 1.5rem 2.4rem 1.5rem;
      font-size: 1.06rem;
      position: relative;
      z-index: 30;
      transition: box-shadow .18s, border .17s;
    }
    #filter-panel h3 {
      margin-bottom: 0.5rem;
      font-size: 1.2rem;
      color: var(--primary-dark);
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    #filter-panel p { color: #555; margin-bottom: 1rem; }
    .close-filter-btn {
      display: none;
      position: absolute;
      top: 1.2rem; right: 1.2rem;
      background: transparent;
      border: none;
      font-size: 2rem;
      color: #b94e1a;
      cursor: pointer;
      z-index: 35;
    }
    .filter-toggle-btn {
      display: none;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 1.13rem;
      font-weight: 700;
      padding: 0.8rem 2.1rem;
      margin-bottom: 1.1rem;
      cursor: pointer;
      box-shadow: 0 2px 13px rgba(255,106,0,0.10);
      letter-spacing: 0.02em;
      z-index: 35;
      transition: background .16s, transform .15s;
    }
    .filter-toggle-btn:active { transform: scale(0.98); }

    @media (max-width: 1000px) {
      #filter-panel {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        width: 88vw;
        min-width: 0;
        max-width: 96vw;
        border-radius: 0 16px 16px 0;
        box-shadow: 8px 0 32px rgba(0,0,0,0.13), 0 2px 10px rgba(255,106,0,0.06);
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s cubic-bezier(.55,0,.34,1), opacity 0.2s;
        z-index: 200;
        margin: 0;
        padding: 2rem 1.1rem 2rem 1.1rem;
      }
      #filter-panel.show {
        transform: translateX(0%);
        opacity: 1;
        pointer-events: auto;
      }
      .close-filter-btn { display: block; }
      .filter-toggle-btn { display: block; }
      .content { flex-wrap: wrap; }
    }
    @media (max-width: 700px) {
      #filter-panel {
        width: 99vw;
        max-width: 99vw;
        border-radius: 0 0 18px 0;
      }
      .header-content {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1.1rem 0.7rem;
      }
    }
    @media (max-width: 430px) {
      #filter-panel { padding: 1.1rem 0.5rem; }
    }

    /* --------- BARRA DE FILTROS Y ORDEN --------- */
    .bar-filtros {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 1.6rem;
      margin-bottom: 0.7rem;
      padding: 0 0.3rem 0.7rem 0.3rem;
      position: relative;
      z-index: 2;
    }
    .boton-filtro-orden {
      display: flex;
      align-items: center;
      gap: 0.45em;
      background: none;
      border: none;
      color: var(--text);
      font-weight: 400;
      font-size: 1.07rem;
      cursor: pointer;
      padding: 0.25em 0.4em;
      border-radius: 7px;
      transition: background .16s, color .12s;
    }
    .boton-filtro-orden:focus,
    .boton-filtro-orden:hover {
      background: #fff4e3;
      color: var(--primary-dark);
    }
    .icon-filtro, .icon-ordenar {
      display: flex;
      align-items: center;
      font-size: 1.19em;
    }
    .barra-fina-naranja {
      position: absolute;
      left: 0; right: 0;
      bottom: 0;
      width: 100%;
      height: 2.5px;
      background: linear-gradient(90deg, #ff6a001a 10%, #de9a5ebe 100%);
      opacity: 0.66;
      border-radius: 1.2px;
      pointer-events: none;
    }
    @media (max-width: 600px) {
      .bar-filtros {
        gap: 0.8rem;
        flex-wrap: wrap;
        padding-bottom: 0.5rem;
      }
    }

    /* --------- PRODUCTOS (cuadrados, responsive) --------- */
    #product-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: .1rem;
      padding: 2.5rem 1rem 2rem 1rem;
      max-width: 1280px;
      margin: 0 auto;
      width: 100%;
    }
    .product-card {
      background: var(--muted);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      cursor: pointer;
      transition: transform var(--transition), box-shadow var(--transition);
      will-change: transform, box-shadow;
      border: 1.5px solid #f3f3f3;
      animation: productFadeIn 0.65s cubic-bezier(.42,0,.2,1) both;
    }
    @keyframes productFadeIn {
      0% { opacity: 0; transform: scale(0.96) translateY(20px); }
      100% { opacity: 1; transform: none; }
    }
    .product-card:hover, .product-card:focus-within {
      transform: translateY(-8px) scale(1.03);
      box-shadow: 0 10px 34px rgba(255,106,0,0.15), 0 2px 10px rgba(0,0,0,0.09);
      border-color: var(--primary);
    }
    .product-images {
      width: 100%;
      overflow: hidden;
      background: #ffffff;
      aspect-ratio: 1 / 1;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #eee;
    }
    .product-images img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      transition: transform 0.32s cubic-bezier(.68,-0.6,.32,1.6);
      border-top-left-radius: var(--radius);
      border-top-right-radius: var(--radius);
      box-shadow: 0 1px 4px rgba(255,106,0,0.08);
      background: #fff;
    }
    .product-card:hover .product-images img,
    .product-card:focus-within .product-images img {
      transform: scale(1.05) rotate(-1deg);
      filter: brightness(1.07) saturate(1.1);
    }
    .product-name {
      font-size: 1.07rem;
      font-weight: 600;
      color: var(--text);
      padding: 1rem 1.2rem 0.5rem 1.2rem;
      min-height: 52px;
      line-height: 1.4;
      word-break: break-word;
    }
    .product-name .ellipsis {
      color: var(--primary);
      font-weight: bold;
      margin-left: 2px;
      cursor: pointer;
      transition: text-decoration 0.2s;
    }
    .product-name:hover .ellipsis,
    .product-name .ellipsis:focus {
      text-decoration: underline;
    }
    .product-price {
      padding: 0 1.2rem 0.5rem 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    .price-main {
      font-size: 1.32rem;
      font-weight: 700;
      color: var(--discount);
      letter-spacing: 0.5px;
      margin-bottom: 0.1rem;
    }
    .price-installments {
      font-size: 0.88rem;
      color: #555;
      margin-top: 0;
      line-height: 1.35;
      opacity: 0.85;
    }
    .add-cart {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 0 0 var(--radius) var(--radius);
      width: 100%;
      padding: 0.9rem 1rem;
      font-weight: 700;
      font-size: 1.07rem;
      cursor: pointer;
      box-shadow: 0 2px 12px rgba(255,106,0,0.06);
      transition: background var(--transition), transform 0.12s, box-shadow var(--transition);
      margin-top: auto;
      letter-spacing: 0.02em;
    }
    .add-cart:hover, .add-cart:focus {
      background: var(--primary-dark);
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 6px 18px rgba(255,106,0,0.13);
      outline: var(--focus);
    }
    .product-card .discount-label {
      position: absolute;
      top: 18px;
      left: -20px;
      background: var(--discount);
      color: #fff;
      font-size: 0.88rem;
      font-weight: 600;
      padding: 0.25em 1.2em;
      border-radius: 40px;
      box-shadow: 0 3px 10px rgba(209,10,10,0.14);
      transform: rotate(-12deg);
      z-index: 3;
      letter-spacing: 0.03em;
    }
    @media (max-width: 900px) {
      #product-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
      #filter-panel { min-width: 180px; max-width: 350px; }
    }
    @media (max-width: 600px) {
      #product-list { padding: 1rem 0.2rem; }
      .product-name { font-size: 1.01rem; padding: 0.8rem 0.7rem 0.35rem 0.7rem; min-height: 44px; }
      .product-images img { height: 100%; }
      .add-cart { font-size: 0.93rem; padding: 0.8rem; }
      .price-main { font-size: 1.05rem; }
      .product-card { border-radius: 13px; }
    }

    /* --- Panel Carrito --- */
    #cartPanel {
      position: fixed;
      top: 0;
      right: -410px;
      width: 390px;
      max-width: 100vw;
      height: 100vh;
      background: #fff;
      box-shadow: -4px 0 28px #ff6a0011;
      z-index: 202;
      display: flex;
      flex-direction: column;
      transition: right 0.26s cubic-bezier(.8,0,.2,1);
      border-top-left-radius: 22px;
      border-bottom-left-radius: 22px;
      overflow-y: auto; /* El panel entero hace scroll */
    }
    #cartPanel.open {
      right: 0;
    }

    #cartOverlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: #ff7a0024;
      z-index: 201;
    }

    /* --------- Quitar scroll interno de #cartItems --------- */
    #cartItems {
      flex: 1;
      overflow: visible;      /* Ya no hace scroll interno */
      padding: 1.2rem 1rem 1rem 1rem;
      scrollbar-width: none;    /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
    }
    #cartItems::-webkit-scrollbar {
      display: none;            /* Chrome, Safari, Opera */
    }

    .cart-item {
      display: flex;
      gap: 0.7em;
      align-items: center;
      margin-bottom: 1.15em;
      background: #fffdfa;
      border-radius: 9px;
      padding: 0.6em 0.4em 0.6em 0.7em;
      box-shadow: 0 1px 8px #ffd7b133;
    }
    .cart-item img {
      width: 55px;
      height: 55px;
      object-fit: cover;
      border-radius: 11px;
      border: 1.5px solid #ffd7b1;
      background: #fff;
      box-shadow: 0 1px 5px #ffd7b155;
    }
    .cart-item-name {
      font-size: 1em;
font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px; /* Ajusta este valor según el espacio disponible */
      color: #2e1d04;
    }
    .cart-item-qty {
      font-size: 0.96em;
      color: #c67420;
      margin: 0.1em 0;
    }
    .cart-item-remove {
      background: none;
      border: none;
      color: #ff6a00;
      font-size: 1.35em;
      cursor: pointer;
      margin-left: auto;
      transition: color 0.16s;
    }
    .cart-item-remove:hover {
      color: #c65008;
    }

    .cart-footer {
      padding: 1.2rem 1.3rem;
      border-top: 1px solid #ffe6d1;
      background: #fff9f3;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .cart-footer label {
      font-weight: 600;
      color: #b35c13;
      margin-bottom: 0.17em;
    }
    .cart-footer input,
    .cart-footer select {
      width: 100%;
      font-size: 1em;
      padding: 0.55em 0.8em;
      border-radius: 9px;
      border: 1.5px solid #ffd7b1;
      margin-bottom: 0.5em;
      background: #fffdfa;
      transition: border 0.18s;
    }
    .cart-footer input:focus,
    .cart-footer select:focus {
      border-color: #ff6a00;
      outline: none;
      background: #fff6ec;
    }
    .cart-footer .resumen {
      background: #fff4e3;
      border-radius: 10px;
      padding: 0.7em 1em;
      margin-bottom: 0.5em;
      font-size: 0.98em;
      color: #874908;
      box-shadow: 0 2px 8px #ffd7b1aa;
    }
    .cart-footer .resumen span {
      font-weight: 700;
      color: #ff6a00;
    }

    #cartForm .checkout-btn {
      background: #ff6a00;
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 1.13em;
      font-weight: 700;
      padding: 0.9em 0;
      cursor: pointer;
      box-shadow: 0 2px 13px #ffd7b144;
      margin-top: 0.8em;
      transition: background 0.17s;
    }
    #cartForm .checkout-btn:hover {
      background: #e85c00;
    }

    /* Oculta el botón del carrito cuando el panel está abierto */
    #cartPanel.open ~ #cartBtn {
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
    }

    /* ── Tablet (<=1024px and >700px) ── */
    @media (max-width: 1024px) and (min-width: 701px) {
      #cartPanel {
        width: 80vw;
        right: -100vw; /* Oculta completamente en tablets */
        border-radius: 0 0 18px 0;
        padding-bottom: 80px;
      }
      #cartPanel.open { right: 0; }
      #cartItems { padding: 1.1rem 0.4rem; }
      .cart-footer { padding: 1rem 0.6rem; }
    }

    /* ── Móvil (<=700px) ── */
    @media (max-width: 700px) {
      #cartPanel {
        width: 99vw;
        right: -100vw; /* Oculta completamente en móviles */
        border-radius: 0 0 18px 0;
        padding-bottom: 80px;
      }
      #cartPanel.open { right: 0; }
      #cartItems { padding: 1.1rem 0.4rem; }
      .cart-footer { padding: 1rem 0.6rem; }
    }

    /* Contenedor del control de cantidad */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* Botones de resta y suma */
.cart-item-qty button {
  width: 28px;
  height: 28px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-item-qty button:hover:not(:disabled) {
  background: #e85c00;
}
.cart-item-qty button:disabled {
  background: #ddd;
  cursor: not-allowed;
}

/* Campo numérico */
.cart-item-qty input[type="number"] {
  width: 48px;
  height: 28px;
  text-align: center;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: textfield;
}

/* Eliminar flechas nativas en Chrome/Edge/Safari */
.cart-item-qty input[type="number"]::-webkit-outer-spin-button,
.cart-item-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



/* Contenedor de tallas */
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5em 0;
}

/* Botón de talla */
.size-btn {
  appearance: none;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4em 0.8em;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Estado al pasar el ratón */
.size-btn:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

/* Estado seleccionado */
.size-btn.selected,
.size-btn:focus {
  background-color: #ddd;
  border-color: #888;
  outline: none;
}


