@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap");





@media (max-width: 1100px){
  
  body.ley18k-menu-open{
    overflow:hidden;
  }

  
  .site-header{
    isolation:isolate;
  }

  
  .promo-strip,
  .promo-strip.promo-strip--hidden{
    display:block !important;
    max-height:none !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    margin:0 !important;
    border-top-width:1px !important;
    overflow:visible !important;
  }

  .promo-strip .promo-inner,
  .promo-strip.promo-strip--hidden .promo-inner{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  
  .header-inner{
    position:relative;
    height:auto;
    min-height:74px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding-top:10px;
    padding-bottom:10px;
  }

  .brand{
    order:1;
    flex:0 0 100%;
    width:100%;
    margin-right:0;
    justify-content:center;
  }

  .brand-logo{
    width:58px;
    height:58px;
  }

  
  .header-actions{
    order:2;
    margin-left:0;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    position:relative;
    z-index:61;
    flex:0 0 100%;
    flex-wrap:wrap;
  }

  .icon-btn,
  .menu-toggle{
    width:40px;
    height:40px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
  }

  .icon-btn svg{
    width:20px;
    height:20px;
  }

  .badge{
    top:0;
    right:0;
  }

  .menu-toggle{
    display:flex;
    order:1;
    position:relative;
    z-index:65;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }

  .header-actions > .icon-btn:not(.cart){
    order:2;
  }

  .icon-btn.cart{
    order:3;
  }

  
  .header-search{
    order:4;
    flex:0 0 100%;
    width:100%;
    min-width:0;
    margin-top:2px;
  }

  .search-input-wrap{
    width:100%;
  }

  .search-input{
    height:44px;
    padding-left:16px;
    padding-right:42px;
    font-size:15px;
  }

  .search-input::placeholder{
    font-size:14px;
  }

  .search-submit{
    width:32px;
    height:32px;
    right:6px;
  }

  .search-results{
    left:0;
    right:0;
    width:100%;
    max-height:min(50vh, 320px);
  }

  
  .nav{
    order:5;
    flex:0 0 100%;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:6px;
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:40;
    margin:0;
    padding:14px;
    background:#173026;
    border:1px solid rgba(198,167,94,.28);
    border-radius:20px;
    box-shadow:0 18px 40px rgba(0,0,0,.18);
    max-height:calc(100vh - 170px);
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-link,
  .nav-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    border-radius:14px;
    font-size:15px;
    line-height:1.35;
    background:rgba(255,255,255,.04);
  }

  .nav-link::after,
  .nav-btn::after{
    display:none;
  }

  .nav-dropdown{
    width:100%;
    padding-bottom:0;
    margin-bottom:0;
  }

  .dropdown-panel{
    position:static;
    display:none;
    width:100%;
    min-width:0;
    margin-top:8px;
    border-radius:16px;
    box-shadow:none;
  }

  .nav-dropdown.is-open .dropdown-panel{
    display:grid;
  }
}

@media (max-width: 768px){
  
  .search-results{
    max-height:min(52vh, 252px);
    padding:6px;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
  }

  .search-result{
    align-items:flex-start;
    gap:8px;
    padding:8px;
  }

  .search-result img,
  .search-result-thumb{
    width:52px;
    height:52px;
    min-width:52px;
    min-height:52px;
    flex:0 0 52px;
  }

  .search-result-info{
    min-width:0;
    width:100%;
    overflow:hidden;
  }

  .search-result-title,
  .search-result-meta,
  .search-result-extra,
  .search-result-price{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow:ellipsis;
    word-break:break-word;
    overflow-wrap:anywhere;
  }

  .search-result-title{
    -webkit-line-clamp:2;
    line-height:1.28;
  }

  .search-result-meta,
  .search-result-extra{
    -webkit-line-clamp:2;
    font-size:11px;
    line-height:1.3;
  }

  .search-result-price{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .promo-inner{
    padding:8px 0;
  }

  .promo-inner p{
    font-size:13px;
    line-height:1.35;
  }

  .header-inner{
    gap:10px;
    padding-top:8px;
    padding-bottom:8px;
  }

  .brand-logo{
    width:52px;
    height:52px;
  }

  
  .header-actions{
    display:grid;
    grid-template-columns:auto auto auto minmax(0,1fr);
    align-items:center;
    gap:6px;
  }

  .menu-toggle{ order:1; }
  .header-actions > .icon-btn:not(.cart){ order:2; }
  .icon-btn.cart{ order:3; }

  .header-search{
    order:4;
    width:auto;
    margin-top:0;
    flex:initial;
    min-width:0;
  }

  .icon-btn,
  .menu-toggle{
    width:38px;
    height:38px;
    border-radius:10px;
  }

  .icon-btn.cart .badge{
    min-width:18px;
    min-height:18px;
  }

  .search-input{
    height:42px;
    font-size:14px;
    padding-left:14px;
    padding-right:40px;
  }

  .search-input::placeholder{
    font-size:13px;
  }

  .nav{
    top:calc(100% + 6px);
    padding:12px;
    border-radius:18px;
    max-height:calc(100vh - 156px);
  }

  .nav-link,
  .nav-btn{
    padding:11px 12px;
    font-size:14px;
  }
}

@media (max-width: 480px){
  .search-results{
    max-height:min(56vh, 228px);
    padding:5px;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  .search-result{
    gap:7px;
    padding:7px;
  }

  .search-result img,
  .search-result-thumb{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
    flex:0 0 46px;
  }

  .search-result-title{
    font-size:12px;
    line-height:1.25;
  }

  .search-result-meta,
  .search-result-extra,
  .search-result-price{
    font-size:10.5px;
    line-height:1.25;
  }

  .promo-inner{
    padding:7px 0;
  }

  .promo-inner p{
    font-size:12px;
    line-height:1.3;
  }

  .header-inner{
    min-height:68px;
    gap:8px;
  }

  
  .brand-logo{
    width:86px;
    height:86px;
  }

  .header-actions{
    grid-template-columns:36px 36px 36px minmax(0,1fr);
    gap:5px;
  }

  .icon-btn,
  .menu-toggle{
    width:36px;
    height:36px;
  }

  .icon-btn svg{
    width:18px;
    height:18px;
  }

  .search-input{
    height:40px;
    font-size:13px;
    padding-left:12px;
    padding-right:36px;
  }

  .search-input::placeholder{
    font-size:12px;
  }

  .search-submit{
    width:30px;
    height:30px;
    right:5px;
  }

  .nav{
    top:calc(100% + 5px);
    padding:10px;
    max-height:calc(100vh - 142px);
  }
}



@media (max-width: 768px){
  .footer-top{
    padding:18px 0;
  }

  .footer-subscribe-row{
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:16px;
    min-height:auto;
  }

  .footer-label{
    text-align:center;
    white-space:normal;
  }

  .newsletter-form{
    width:100%;
    max-width:100%;
    margin-left:0;
  }

  .footer-divider{
    display:none;
  }

  .follow-inline{
    flex-direction:column;
    justify-content:center;
    gap:12px;
  }

  .social{
    justify-content:center;
    flex-wrap:wrap;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:16px;
  }

  .legal{
    justify-content:center;
    gap:10px 16px;
  }

  .payments img{
    height:auto;
  }
}



@media (max-width: 992px){
  
  .bottom-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .top-subtotal{
    transform:none;
  }

  .section-title-wrap h2{
    white-space:normal;
  }

  .upload-cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .customer-form-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  
  .page{
    padding-top:20px;
    padding-bottom:8px;
  }

  .page h1{
    margin-bottom:16px;
    font-size:32px;
    line-height:1.05;
  }

  
  .cart-table{
    border-radius:16px;
    overflow:visible;
    border-color:#e4ddd2;
    background:#fff;
  }

  .table-head{
    display:none;
  }

  .cart-items-container{
    max-height:none;
    overflow:visible;
  }

  
  .cart-item{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    align-items:start;
    gap:10px 12px;
    padding:14px;
    min-height:auto;
    border-top:1px solid #e7e2da;
  }

  .cart-item:first-child{
    border-top:0;
  }

  
  .product-cell{
    grid-column:1 / -1;
    align-items:flex-start;
    gap:10px;
    padding:0;
  }

  .product-cell img{
    width:78px;
    min-width:78px;
  }

  .product-cell h3{
    padding-right:0;
    margin-bottom:4px;
    font-size:17px;
    line-height:1.18;
    -webkit-line-clamp:3;
  }

  .product-cell p{
    font-size:13px;
    line-height:1.25;
    margin-top:2px;
  }

  
  .price{
    display:none;
  }

  
  .subtotal,
  .qty-wrap,
  .action-cell{
    position:relative;
    min-height:42px;
    width:100%;
    justify-self:stretch;
    align-items:flex-start;
    padding-top:16px;
  }

  
  .subtotal::before,
  .qty-wrap::before,
  .action-cell::before{
    position:absolute;
    top:0;
    left:0;
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#8f867f;
  }

  .qty-wrap::before{ content:'Cantidad'; }
  .subtotal::before{ content:'Total'; }
  .action-cell::before{ content:none; display:none; }

  
  .qty-wrap,
  .subtotal{
    justify-self:center;
    text-align:center;
    width:auto;
    max-width:100%;
    margin-left:0;
  }

  .qty-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    overflow:hidden;
  }

  .qty-wrap::before,
  .subtotal::before{
    left:50%;
    transform:translateX(-50%);
    width:max-content;
    text-align:center;
  }

  .subtotal{
    font-size:19px;
    line-height:1.05;
    white-space:normal;
    overflow-wrap:anywhere;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    margin-top:6px;
  }

  
  .qty-control{
    grid-template-columns:32px 40px 32px;
    width:104px;
    min-width:104px;
    max-width:104px;
    height:32px;
    margin:0 auto;
    box-sizing:border-box;
    overflow:hidden;
  }

  .qty-control span,
  .qty-btn{
    font-size:14px;
  }

  .qty-btn,
  .qty-value,
  .qty-control span{
    box-sizing:border-box;
  }

  
  .action-cell{
    grid-column:1 / -1;
  }

  .delete-btn{
    width:100%;
    justify-content:center;
    padding:9px 12px;
    font-size:14px;
  }

  
  .cart-summary-line{
    flex-direction:column-reverse;
    align-items:stretch;
    gap:10px;
    margin:18px 0 22px;
  }

  .continue-btn,
  .top-subtotal{
    width:100%;
  }

  .continue-btn{
    min-width:0;
    padding:12px 16px;
  }

  .top-subtotal{
    text-align:right;
    font-size:20px;
  }

  
  .section-title-wrap{
    gap:10px;
    margin-bottom:16px;
  }

  .section-title-wrap h2{
    font-size:18px;
    line-height:1.2;
  }

  .upload-cards{
    grid-template-columns:1fr;
    gap:14px;
  }

  .upload-card{
    min-height:210px;
    padding:18px 16px;
  }

  .upload-card.upload-box::before{
    top:12px;
    right:12px;
    font-size:13px;
    padding:5px 9px;
  }

  .qr-img{
    width:min(148px, 55vw);
  }

  .upload-card p{
    font-size:15px;
  }

  .upload-btn,
  .upload-status{
    width:100%;
  }

  .upload-btn{
    min-height:44px;
    padding:12px 14px;
    text-align:center;
  }

  .upload-status{
    font-size:14px !important;
    line-height:1.35;
  }

  
  .order-card{
    border-radius:16px;
  }

  .order-body{
    padding:14px;
  }

  .customer-form{
    margin:0 0 16px;
    padding:14px;
  }

  .customer-form-title{
    font-size:18px;
  }

  .customer-form-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .field-full{
    grid-column:auto;
  }

  .form-field label,
  .customer-input,
  .customer-input::placeholder,
  .checkout-status{
    font-size:15px;
  }

  .customer-input{
    min-height:42px;
    padding:10px 12px;
  }

  .checkout-btn{
    min-height:46px;
    font-size:16px;
  }
}

@media (max-width: 480px){
  
  .page h1{
    font-size:28px;
  }

  .cart-item{
    gap:9px;
    padding:12px;
  }

  .product-cell{
    gap:9px;
  }

  .product-cell img{
    width:72px;
    min-width:72px;
  }

  .product-cell h3{
    font-size:16px;
  }

  .product-cell p{
    font-size:12.5px;
  }

  .subtotal,
  .qty-wrap,
  .action-cell{
    padding-top:15px;
  }

  .subtotal{
    font-size:18px;
  }

  
  .qty-wrap,
  .subtotal{
    max-width:150px;
    margin-left:6px;
  }

  .qty-control{
    width:100%;
    max-width:138px;
    margin-inline:auto;
  }

  .delete-btn{
    min-height:40px;
  }

  .top-subtotal{
    font-size:18px;
  }

  .section-title-wrap h2{
    font-size:17px;
  }

  .upload-card{
    min-height:198px;
    padding:16px 14px;
  }

  .upload-card p{
    font-size:14px;
  }

  .customer-form,
  .order-body{
    padding:12px;
  }

  .customer-form-title{
    font-size:17px;
  }

  .order-confirmation-dialog{
    border-radius:20px;
    padding:22px 16px;
  }
}



@media (max-width: 768px){
  @supports selector(.cart-items-container:has(.cart-item:nth-child(3))){
    .cart-items-container:has(.cart-item:nth-child(3)){
      max-height:520px;
      overflow-y:auto;
      overflow-x:hidden;
      overscroll-behavior:contain;
      -webkit-overflow-scrolling:touch;
      padding-right:4px;
      scrollbar-gutter:stable;
    }
  }
}

@media (max-width: 480px){
  @supports selector(.cart-items-container:has(.cart-item:nth-child(3))){
    .cart-items-container:has(.cart-item:nth-child(3)){
      max-height:460px;
    }
  }
}

/* Ajustes iPhone/Safari para alinear iconos y buscador en móvil */
@media (max-width: 768px){
  .header-actions{
    grid-template-columns:40px 40px 40px minmax(0,1fr) !important;
    align-items:center !important;
  }

  .header-search,
  .search-input-wrap{
    width:100% !important;
    min-width:0 !important;
  }

  .icon-btn,
  .menu-toggle,
  .search-submit{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
    flex:0 0 auto;
    -webkit-appearance:none;
    appearance:none;
  }

  .icon-btn svg,
  .search-submit svg{
    display:block;
    flex:0 0 auto;
  }

  .search-input{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    -webkit-appearance:none;
    appearance:none;
    border-radius:999px;
  }
}

@media (max-width: 480px){
  .header-actions{
    grid-template-columns:36px 36px 36px minmax(0,1fr) !important;
    gap:6px !important;
  }

  .icon-btn,
  .menu-toggle{
    width:36px !important;
    height:36px !important;
  }

  .icon-btn svg{
    width:17px !important;
    height:17px !important;
  }

  .header-search{
    align-self:center;
  }

  .search-input{
    height:40px !important;
    padding-left:12px !important;
    padding-right:38px !important;
    font-size:13px !important;
  }

  .search-submit{
    width:30px !important;
    height:30px !important;
    right:5px !important;
  }

  .search-submit svg{
    width:15px !important;
    height:15px !important;
  }
}
