
/*
==================================================
 AYNE MAYORISTA MOBILE V2
 SIGNATURE EDITION
 Diseño premium exclusivo para celulares
 Compatible con AYNE V15.7 recuperada
 No modifica el escritorio ni la lógica comercial
==================================================
*/

@media (max-width: 680px) {

  :root {
    --v2-bg: #0b0a09;
    --v2-surface: #171511;
    --v2-surface2: #211d17;
    --v2-gold: #d8b579;
    --v2-gold2: #f1d7a7;
    --v2-text: #f6ede0;
    --v2-muted: #b4a896;
    --v2-border: rgba(215,178,114,.22);
  }

  body.theme-ayne {
    background: var(--v2-bg);
    color: var(--v2-text);
    overflow-x: clip;
  }

  body.theme-ayne .shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 13px;
  }

  /* 1. BARRA SUPERIOR */

  body.theme-ayne .topline {
    padding: 7px 12px !important;
    background: #211b13;
    border-bottom: 1px solid #604c30;
    color: #e8d9bf;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .5px;
  }

  body.theme-ayne .topline a {
    color: #f2d59b;
  }

  /* 2. HEADER SIGNATURE */

  body.theme-ayne .main-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(12,11,9,.96);
    border-bottom: 1px solid var(--v2-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.theme-ayne .header-wrap {
    min-height: 65px;
    gap: 8px;
    padding-block: 8px;
  }

  body.theme-ayne .brand-block {
    flex: 1 1 auto;
    min-width: 0;
    gap: 9px;
  }

  body.theme-ayne .brand-emblem {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-color: #83643b;
    background: #211a11;
    color: #edcc92;
    font-size: 22px;
  }

  body.theme-ayne .brand-text strong {
    font-family: 'Cormorant Garamond',Georgia,serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f8ebd2;
  }

  body.theme-ayne .brand-text small {
    max-width: 145px;
    color: #c1a374;
    font-size: 7px;
    letter-spacing: .7px;
    line-height: 1.35;
  }

  body.theme-ayne .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.theme-ayne .header-actions .pdf-top,
  body.theme-ayne .header-actions .mode-pill {
    display: none !important;
  }

  body.theme-ayne .cart-button {
    min-height: 44px;
    padding: 9px 11px;
    background: linear-gradient(135deg,#f1dfbf,#d5ac6c);
    border: 1px solid #dcb77a;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(210,164,89,.12);
    color: #20180d;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  body.theme-ayne .cart-button span {
    margin-left: 5px;
    background: #20180f;
    color: #f6e5c3;
  }

  /* 3. PORTADA EDITORIAL */

  body.theme-ayne .hero-ayne {
    position: relative;
    padding: 27px 0 19px;
    background:
      radial-gradient(
        ellipse at 85% 0%,
        rgba(169,116,51,.14),
        transparent 65%
      ),
      #0e0c0a;
  }

  body.theme-ayne .hero-grid {
    display: block;
  }

  body.theme-ayne .hero-copy .eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #ddb677;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 1.5px;
  }

  body.theme-ayne .hero-copy h1 {
    max-width: 440px;
    margin: 7px 0 14px;
    font-family: 'Cormorant Garamond',Georgia,serif;
    font-size: clamp(43px,11.8vw,59px);
    line-height: .93;
    font-weight: 600;
    letter-spacing: -1.6px;
    color: #f8f0e4;
  }

  body.theme-ayne .hero-copy h1 em {
    color: #e1bb7e;
  }

  body.theme-ayne .hero-copy > p:not(.ayne-retail-prompt) {
    font-size: 13px;
    line-height: 1.65;
    color: #c6b8a3;
    margin: 12px 0;
  }

  body.theme-ayne .ayne-majorista-note {
    margin: 15px 0 9px;
    padding: 11px 13px;
    background: rgba(216,181,121,.075);
    border-left: 2px solid #d8b579;
    border-radius: 0 12px 12px 0;
  }

  body.theme-ayne .ayne-majorista-note strong {
    font-size: 12px;
    color: #f1d7a7;
  }

  body.theme-ayne .ayne-majorista-note span {
    font-size: 11px;
    line-height: 1.5;
  }

  body.theme-ayne .ayne-retail-prompt {
    font-size: 11px !important;
    line-height: 1.55;
    margin: 10px 0 !important;
  }

  body.theme-ayne .hero-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) 83px;
    gap: 8px;
    margin: 18px 0 12px;
  }

  body.theme-ayne .hero-search input {
    height: 49px;
    min-width: 0;
    padding: 12px 13px;
    background: #201c16;
    border: 1px solid #695335;
    border-radius: 12px;
    color: white;
    font-size: 16px;
  }

  body.theme-ayne .hero-search button {
    min-height: 49px;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg,#efd4a0,#d3a663);
    color: #20180d;
    font-size: 12px;
  }

  body.theme-ayne .hero-notes {
    display: flex;
    gap: 7px 14px;
    font-size: 10px;
    line-height: 1.5;
    color: #d6c09b;
  }

  body.theme-ayne .hero-panel {
    display: none !important;
  }

  /* 4. INFORMACION DE TANDAS */

  body.theme-ayne #ayne-countdown {
    padding: 17px !important;
    background: linear-gradient(
      145deg,#201b13,#100f0d
    ) !important;
    border-color: #755936 !important;
    border-radius: 17px !important;
  }

  body.theme-ayne #ayne-countdown > h2 {
    font-size: 23px;
    line-height: 1.2;
  }

  body.theme-ayne #ayne-clock {
    font-size: clamp(21px,6.2vw,31px) !important;
    letter-spacing: .3px !important;
  }

  body.theme-ayne .ayne-cycle-explain h3 {
    font-size: 23px;
  }

  body.theme-ayne .ayne-cycle-explain > p {
    font-size: 12px;
    line-height: 1.7;
  }

  body.theme-ayne .ayne-cycle-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.theme-ayne .ayne-cycle-fact {
    padding: 13px;
    background: #1d1913;
    border-color: #493a26;
  }

  /* 5. TITULOS DEL CATALOGO */

  body.theme-ayne #productos {
    scroll-margin-top: 82px;
  }

  body.theme-ayne .catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    padding: 24px 0 15px;
  }

  body.theme-ayne .catalog-head .eyebrow {
    color: #cca76b;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .8px;
  }

  body.theme-ayne .catalog-head h2 {
    margin: 6px 0 0;
    font-family: 'Cormorant Garamond',Georgia,serif;
    font-size: clamp(30px,8.6vw,41px);
    line-height: .95;
    letter-spacing: -.5px;
  }

  body.theme-ayne .catalog-count {
    flex-shrink: 0;
    text-align: right;
    margin: 0;
  }

  body.theme-ayne .catalog-count strong {
    font-size: 33px;
    color: #edcf99;
  }

  body.theme-ayne .catalog-count small {
    font-size: 8px;
    letter-spacing: 1px;
  }

  /* 6. PDF DISCRETO */

  body.theme-ayne .pdf-banner {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid #57452c;
    border-radius: 15px;
    background: #17140f;
    margin: 5px 0 17px;
  }

  body.theme-ayne .pdf-banner b {
    font-size: 14px;
    color: #f1e2c9;
  }

  body.theme-ayne .pdf-banner small {
    font-size: 11px;
    line-height: 1.5;
    color: #bfb09a;
  }

  body.theme-ayne .pdf-banner .btn {
    display: grid;
    place-items: center;
    min-height: 43px;
    border-radius: 11px;
    font-size: 12px;
  }

  /* 7. BUSCADOR Y FILTROS */

  body.theme-ayne .toolbar-ayne {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 9px;
    margin-bottom: 18px;
  }

  body.theme-ayne .searchbox {
    display: grid;
    grid-template-columns: minmax(0,1fr) 80px;
    gap: 7px;
  }

  body.theme-ayne .searchbox input {
    height: 48px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #665134;
    background: #211d17;
    border-radius: 11px;
    color: white;
    font-size: 16px;
  }

  body.theme-ayne .search-btn {
    height: 48px;
    padding: 8px;
    background: #d7b67a;
    color: #21180d;
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
  }

  body.theme-ayne .toolbar-ayne select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    background: #191713;
    color: #f5e9d5;
    border: 1px solid #51402b;
    border-radius: 11px;
    font-size: 16px;
  }

  /* 8. PRODUCTOS: DOS COLUMNAS ELEGANTES */

  body.theme-ayne #catalog.product-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 10px;
    padding-bottom: 23px;
  }

  body.theme-ayne #catalog .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #191713;
    border: 1px solid #4a3b28;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
  }

  body.theme-ayne #catalog .product-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    background: #fff;
    overflow: hidden;
  }

  body.theme-ayne #catalog .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
  }

  body.theme-ayne #catalog .tag {
    position: absolute;
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(27,22,15,.9);
    color: #f1d5a2;
    border: 1px solid #a68554;
    font-size: 8px;
    letter-spacing: .15px;
  }

  body.theme-ayne #catalog .product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 9px 10px;
  }

  body.theme-ayne #catalog .product-cat {
    color: #ceb17f;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .4px;
  }

  body.theme-ayne #catalog .product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 49px;
    margin: 7px 0 4px;
    font-family: 'DM Sans',Arial,sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.36;
    letter-spacing: 0;
    color: #f6ecdb;
  }

  body.theme-ayne #catalog .product-code {
    margin-bottom: 4px;
    color: #a99c87;
    font-size: 9px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.theme-ayne #catalog .product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
    margin: 9px 0 11px;
    color: #f5ddb0;
    font-size: clamp(18px,5.2vw,23px);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  body.theme-ayne #catalog .product-price .peso {
    color: #cfa767;
    font-size: .8em;
  }

  body.theme-ayne #catalog .detail-trigger {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0 0 9px;
    padding: 8px 5px;
    background: #272219;
    border: 1px solid #655137;
    border-radius: 9px;
    color: #e6c691;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
  }

  body.theme-ayne #catalog .product-footer {
    display: grid;
    grid-template-columns: minmax(0,1fr) 39px;
    gap: 5px;
    align-items: stretch;
    margin-top: auto;
  }

  body.theme-ayne #catalog .product-footer button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 3px;
    border-radius: 10px;
    background: linear-gradient(
      135deg,#efd29b,#cc9f5b
    );
    color: #1c150d;
    font-size: 11px;
    font-weight: 800;
  }

  body.theme-ayne #catalog .product-footer input {
    display: block;
    width: 39px;
    min-width: 0;
    height: 44px;
    padding: 5px 1px;
    background: #242019;
    border: 1px solid #635034;
    border-radius: 9px;
    color: white;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield;
  }

  body.theme-ayne #catalog
  .product-footer input::-webkit-inner-spin-button,
  body.theme-ayne #catalog
  .product-footer input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* 9. PAGINACION */

  body.theme-ayne .ayne-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 5px 0 36px;
  }

  body.theme-ayne .ayne-page-info {
    width: 100%;
    color: #c8b99e;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }

  body.theme-ayne .ayne-page-button {
    min-height: 45px;
    padding: 10px 15px;
    background: #d8b579;
    border-radius: 11px;
    color: #19130c;
    font-size: 12px;
  }

  /* 10. DETALLES */

  body.theme-ayne .detail-modal {
    width: calc(100% - 20px);
    max-height: 90dvh;
    padding: 15px;
    border: 1px solid #83663e;
    border-radius: 17px;
    background: #181510;
  }

  body.theme-ayne #detailContent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.theme-ayne .detail-photo {
    min-height: 0;
    max-height: 36dvh;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 11px;
  }

  body.theme-ayne .detail-photo img {
    max-height: 100%;
    object-fit: contain;
  }

  body.theme-ayne .detail-copy h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  /* 11. CARRITO MOVIL */

  body.theme-ayne .drawer {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    background: #14120f;
  }

  body.theme-ayne .drawer-head {
    padding: 20px 17px;
    border-bottom: 1px solid #4b3b28;
  }

  body.theme-ayne .drawer-head h2 {
    font-size: 36px;
    margin: 5px 0;
  }

  body.theme-ayne .drawer-list {
    padding: 14px 17px;
  }

  body.theme-ayne .cart-line {
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  body.theme-ayne .drawer-foot {
    padding: 17px 17px
      max(18px,env(safe-area-inset-bottom));
    background: #211c14;
    border-top: 1px solid #735834;
  }

  body.theme-ayne .total strong {
    font-size: 25px;
    color: #f1d19a;
  }

  body.theme-ayne .drawer-foot .btn {
    min-height: 50px;
    border-radius: 11px;
  }

  /* 12. FORMULARIO DE PEDIDO */

  body.theme-ayne .checkout-modal {
    width: calc(100% - 20px);
    max-height: 93dvh;
    padding: 18px;
    background: #17140f;
    border: 1px solid #765b39;
    border-radius: 18px;
  }

  body.theme-ayne .checkout-head h2 {
    font-size: 31px;
  }

  body.theme-ayne .checkout-modal input,
  body.theme-ayne .checkout-modal select {
    width: 100%;
    min-height: 46px;
    border-color: #665034;
    font-size: 16px;
  }

  body.theme-ayne .checkout-modal button[type="submit"] {
    min-height: 50px;
  }

  /* 13. SECCIONES INFORMATIVAS */

  body.theme-ayne .how-ayne {
    padding: 40px 0 46px;
  }

  body.theme-ayne .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.theme-ayne .steps > div {
    padding: 17px;
    border-color: #443624;
    background: #17140f;
  }

  body.theme-ayne .footer-inner {
    display: grid;
    gap: 15px;
  }

  /* 14. EXPERIENCIA TACTIL */

  body.theme-ayne button,
  body.theme-ayne a {
    touch-action: manipulation;
  }

  body.theme-ayne button:active {
    filter: brightness(1.08);
  }

  body.theme-ayne :is(
    button,a,input,select
  ):focus-visible {
    outline: 2px solid #e8c58b;
    outline-offset: 2px;
  }

  /* 15. BANNER REVENDEDORES
     Conserva la fotografia que corregimos
     en AYNE Mobile V1. */

  #ayne-rev-banner .ayne-rev-banner-content h2 {
    font-size: clamp(28px,8vw,39px) !important;
    line-height: 1.13 !important;
  }

  #ayne-rev-banner .ayne-rev-lead {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  #ayne-rev-banner .ayne-rev-hero-cta {
    min-height: 50px !important;
    border-radius: 11px !important;
  }

}

/* TELEFONOS MUY ESTRECHOS */

@media (max-width: 360px) {

  body.theme-ayne .brand-text strong {
    font-size: 25px;
  }

  body.theme-ayne .cart-button {
    font-size: 10px;
    padding-inline: 8px;
  }

  body.theme-ayne #catalog.product-grid {
    gap: 7px;
  }

  body.theme-ayne #catalog .product-content {
    padding: 9px 7px;
  }

  body.theme-ayne #catalog .product-name {
    font-size: 11px;
  }

  body.theme-ayne #catalog .product-price {
    font-size: 17px;
  }

  body.theme-ayne #catalog .product-footer {
    grid-template-columns: minmax(0,1fr) 36px;
    gap: 3px;
  }

  body.theme-ayne #catalog .product-footer input {
    width: 36px;
  }
}
