/* Aptualízate Tienda COD - Frontend */

:root{
  --aptz-bg:#fff;
  --aptz-surface:#fff;
  --aptz-text:#0b0b0b;
  --aptz-muted:#616161;
  --aptz-accent:#b89a5e;
  --aptz-ivory:#ede9dd;
  --aptz-beige:#d9d1be;
  --aptz-button:#000;
  --aptz-button-text:#fff;
  --aptz-topbar:#000;
  --aptz-topbar-text:#fff;
  --aptz-border:#e7e3da;
  --aptz-radius:22px;
  --aptz-shadow:0 18px 50px rgba(17,17,17,.07);
  --aptz-shadow-soft:0 8px 28px rgba(17,17,17,.055);
  --aptz-container:1180px;
}

html{scroll-behavior:smooth;}
body.aptz-store-canvas{
  margin:0!important;
  padding:0!important;
  background:var(--aptz-bg)!important;
  color:var(--aptz-text)!important;
  min-height:100vh;
}
body.aptz-store-canvas #wpadminbar{display:none!important;}
html:has(body.aptz-store-canvas){margin-top:0!important;}

.aptz-store-shell,
.aptz-store-shell *{
  box-sizing:border-box;
}

.aptz-store-shell{
  width:100%;
  min-height:100vh;
  margin:0;
  padding:0;
  background:var(--aptz-bg);
  color:var(--aptz-text);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.aptz-store-shell img{display:block;max-width:100%;height:auto;}
.aptz-store-shell a{color:inherit;}
.aptz-store-shell button,
.aptz-store-shell input,
.aptz-store-shell select,
.aptz-store-shell textarea{font:inherit;}
.aptz-store-shell button{touch-action:manipulation;}

.aptz-container{
  width:min(var(--aptz-container),calc(100% - 28px));
  margin-inline:auto;
}

.aptz-main{width:100%;overflow:hidden;}

/* Top bar + header */
.aptz-topbar{
  width:100%;
  background:var(--aptz-topbar);
  color:var(--aptz-topbar-text);
  text-align:center;
  padding:9px 14px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}

.aptz-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:color-mix(in srgb,var(--aptz-bg) 95%,transparent);
  border-bottom:1px solid var(--aptz-border);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.aptz-header-inner{
  width:min(var(--aptz-container),calc(100% - 28px));
  margin-inline:auto;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  position:relative;
}

.aptz-logo{
  min-width:0;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:var(--aptz-text);
}
.aptz-logo img{max-height:42px;width:auto;max-width:170px;object-fit:contain;}
.aptz-logo strong{font-size:20px;white-space:nowrap;}

.aptz-nav-toggle{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--aptz-border);
  background:var(--aptz-surface);
  color:var(--aptz-text);
  border-radius:14px;
  padding:0;
  cursor:pointer;
}
.aptz-nav-toggle span{display:block;width:20px;height:2px;background:currentColor;border-radius:99px;transition:.2s;}

.aptz-nav{
  display:none;
  position:absolute;
  top:60px;
  left:0;
  right:0;
  background:var(--aptz-surface);
  border:1px solid var(--aptz-border);
  border-radius:18px;
  padding:10px;
  box-shadow:var(--aptz-shadow);
}
.aptz-nav.is-open{display:flex;flex-direction:column;gap:4px;}
.aptz-nav a{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  font-weight:700;
  color:var(--aptz-text);
  transition:.2s ease;
}
.aptz-nav a:hover,.aptz-nav a.is-active{background:var(--aptz-ivory);}
.aptz-nav .aptz-cart-link{
  background:var(--aptz-button);
  color:var(--aptz-button-text);
}
.aptz-nav .aptz-cart-link:hover{background:var(--aptz-button);filter:brightness(1.1);}
.aptz-cart-count{
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--aptz-accent);
  color:#111;
  font-size:11px;
  line-height:1;
}

/* Buttons */
.aptz-btn{
  min-height:46px;
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:11px 17px;
  border-radius:14px;
  border:1px solid transparent;
  text-decoration:none!important;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.aptz-btn:hover{transform:translateY(-1px);}
.aptz-btn-primary{
  background:var(--aptz-button)!important;
  color:var(--aptz-button-text)!important;
  border-color:var(--aptz-button)!important;
  box-shadow:0 7px 20px color-mix(in srgb,var(--aptz-button) 18%,transparent);
}
.aptz-btn-secondary{
  background:var(--aptz-surface)!important;
  color:var(--aptz-text)!important;
  border-color:var(--aptz-border)!important;
}
.aptz-btn-full{width:100%;}

/* Slider */
.aptz-hero{padding:16px 0 8px;}
.aptz-slider{
  width:min(var(--aptz-container),calc(100% - 28px));
  margin-inline:auto;
  border-radius:calc(var(--aptz-radius) + 4px);
  overflow:hidden;
  position:relative;
  background:linear-gradient(145deg,var(--aptz-ivory),color-mix(in srgb,var(--aptz-ivory) 45%,white));
  border:1px solid var(--aptz-border);
  box-shadow:var(--aptz-shadow-soft);
  min-height:510px;
}
.aptz-slide{display:none;min-height:510px;grid-template-rows:auto 1fr;}
.aptz-slide.is-active{display:grid;animation:aptzFade .35s ease;}
@keyframes aptzFade{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.aptz-slide-copy{padding:28px 22px 18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
.aptz-eyebrow,.aptz-section-tag,.aptz-mini-label{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:7px 11px;
  border-radius:999px;
  background:color-mix(in srgb,var(--aptz-accent) 18%,var(--aptz-surface));
  color:var(--aptz-text);
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.aptz-slide h1{
  margin:14px 0 12px;
  max-width:680px;
  font-size:clamp(34px,9vw,58px);
  line-height:.98;
  letter-spacing:-.045em;
  color:var(--aptz-text);
  overflow-wrap:anywhere;
}
.aptz-hero-text{margin:0 0 20px;color:var(--aptz-muted);font-size:16px;max-width:620px;}
.aptz-hero-list{list-style:none;padding:0;margin:2px 0 22px;display:grid;gap:8px;}
.aptz-hero-list li{position:relative;padding-left:22px;font-size:16px;font-weight:750;color:var(--aptz-text);}
.aptz-hero-list li:before{content:"✓";position:absolute;left:0;color:var(--aptz-accent);font-weight:900;}
.aptz-hero-actions{width:100%;display:grid;grid-template-columns:1fr;gap:9px;}
.aptz-slide-media{min-height:230px;background:var(--aptz-beige);overflow:hidden;}
.aptz-slide-media img{width:100%;height:100%;min-height:230px;max-height:330px;object-fit:cover;object-position:center;}
.aptz-slider-dots{position:absolute;bottom:12px;left:14px;display:flex;gap:8px;z-index:5;}
.aptz-slider-dots button{width:9px;height:9px;border-radius:99px;border:0;padding:0;background:rgba(0,0,0,.2);cursor:pointer;transition:.2s;}
.aptz-slider-dots button.is-active{width:25px;background:var(--aptz-text);}
.aptz-slider-arrows{position:absolute;right:12px;bottom:10px;display:flex;gap:7px;z-index:5;}
.aptz-slider-arrows button{width:38px;height:38px;border:1px solid var(--aptz-border);border-radius:50%;background:rgba(255,255,255,.92);color:#111;font-size:25px;line-height:1;padding:0;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.08);}

/* Section heading */
.aptz-section-head{margin-bottom:20px;}
.aptz-section-head h1,.aptz-section-head h2{margin:10px 0 8px;color:var(--aptz-text);font-size:clamp(28px,7vw,42px);line-height:1.04;letter-spacing:-.035em;overflow-wrap:anywhere;}
.aptz-section-head p{margin:0;color:var(--aptz-muted);font-size:15px;max-width:720px;}

/* Home collections */
.aptz-collection-section{padding:32px 0 20px;}
.aptz-collection-grid{display:grid;grid-template-columns:1fr;gap:16px;}
.aptz-collection-card{
  min-width:0;
  border:1px solid var(--aptz-border);
  border-radius:var(--aptz-radius);
  background:var(--aptz-surface);
  overflow:hidden;
  box-shadow:var(--aptz-shadow-soft);
}
.aptz-collection-card-head{padding:20px;display:flex;flex-direction:column;gap:14px;}
.aptz-collection-card-head h3{margin:7px 0 7px;font-size:23px;line-height:1.08;letter-spacing:-.025em;overflow-wrap:anywhere;}
.aptz-collection-card-head p{margin:0;color:var(--aptz-muted);font-size:14px;}
.aptz-link-arrow{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;text-decoration:none;font-size:14px;font-weight:850;color:var(--aptz-text);}
.aptz-link-arrow span{display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:var(--aptz-ivory);}
.aptz-collection-cover{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--aptz-ivory);}
.aptz-collection-cover img{width:100%;height:100%;object-fit:cover;}
.aptz-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--aptz-border);border-top:1px solid var(--aptz-border);}
.aptz-preview-tile{aspect-ratio:1/1;display:block;overflow:hidden;background:var(--aptz-ivory);}
.aptz-preview-tile img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.aptz-preview-tile:hover img{transform:scale(1.035);}
.aptz-empty-mini{grid-column:1/-1;padding:24px;background:var(--aptz-ivory);color:var(--aptz-muted);font-size:14px;}
.aptz-collection-card-all{background:linear-gradient(145deg,var(--aptz-surface),var(--aptz-ivory));}

/* Location */
.aptz-location{padding:22px 0 42px;}
.aptz-location-grid{display:grid;grid-template-columns:1fr;gap:16px;}
.aptz-location-copy,.aptz-map-wrap{border:1px solid var(--aptz-border);border-radius:var(--aptz-radius);background:var(--aptz-surface);overflow:hidden;box-shadow:var(--aptz-shadow-soft);}
.aptz-location-copy{padding:22px;}
.aptz-location-copy h2{font-size:30px;line-height:1.05;margin:11px 0 18px;letter-spacing:-.035em;}
.aptz-contact-list{display:grid;gap:10px;}
.aptz-contact-list>div{display:flex;flex-direction:column;gap:2px;padding-bottom:10px;border-bottom:1px dashed var(--aptz-border);}
.aptz-contact-list span{font-size:12px;color:var(--aptz-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.aptz-contact-list strong{font-size:15px;overflow-wrap:anywhere;}
.aptz-info-note{margin-top:16px;padding:14px;border-radius:15px;background:var(--aptz-ivory);font-size:13px;color:var(--aptz-muted);}
.aptz-map-wrap{min-height:340px;}
.aptz-map-wrap iframe{width:100%;height:100%;min-height:340px;border:0;display:block;}

/* Catalog */
.aptz-catalog-section{padding:28px 0 44px;}
.aptz-catalog-top{display:grid;grid-template-columns:1fr;gap:16px;align-items:end;margin-bottom:16px;}
.aptz-catalog-top h1{margin:10px 0 7px;font-size:clamp(30px,8vw,48px);line-height:1;letter-spacing:-.04em;}
.aptz-catalog-top p{margin:0;color:var(--aptz-muted);font-size:14px;}
.aptz-search{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--aptz-border);background:var(--aptz-surface);border-radius:15px;padding:4px;min-width:0;}
.aptz-search input{min-width:0;height:44px;border:0!important;outline:0!important;background:transparent!important;padding:0 12px!important;color:var(--aptz-text)!important;box-shadow:none!important;}
.aptz-search button{border:0;border-radius:11px;padding:0 15px;background:var(--aptz-button);color:var(--aptz-button-text);font-size:13px;font-weight:800;cursor:pointer;}
.aptz-filter-scroll{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.aptz-filter-scroll::-webkit-scrollbar{display:none;}
.aptz-chip{flex:0 0 auto;min-height:38px;display:inline-flex;align-items:center;text-decoration:none;padding:8px 12px;border:1px solid var(--aptz-border);border-radius:999px;background:var(--aptz-surface);color:var(--aptz-text);font-size:12px;font-weight:800;white-space:nowrap;}
.aptz-chip.is-active{background:var(--aptz-button);color:var(--aptz-button-text);border-color:var(--aptz-button);}
.aptz-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.aptz-product-card{min-width:0;border:1px solid var(--aptz-border);border-radius:18px;background:var(--aptz-surface);overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.035);display:flex;flex-direction:column;}
.aptz-product-image{aspect-ratio:1/1;display:block;overflow:hidden;background:var(--aptz-ivory);}
.aptz-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.aptz-product-card:hover .aptz-product-image img{transform:scale(1.03);}
.aptz-product-card-body{padding:12px;display:flex;flex-direction:column;gap:9px;min-width:0;flex:1;}
.aptz-card-labels{display:flex;gap:5px;flex-wrap:wrap;min-height:24px;align-items:flex-start;}
.aptz-badge,.aptz-soft-badge{display:inline-flex;align-items:center;max-width:100%;min-height:24px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.aptz-badge{background:var(--aptz-accent);color:#111;}
.aptz-soft-badge{background:var(--aptz-ivory);color:var(--aptz-text);}
.aptz-product-card h3{margin:0;font-size:14px;line-height:1.18;letter-spacing:-.01em;min-height:34px;overflow-wrap:anywhere;}
.aptz-product-card h3 a{text-decoration:none;color:var(--aptz-text);}
.aptz-price{font-size:18px;font-weight:900;letter-spacing:-.02em;color:var(--aptz-text);}
.aptz-size-preview{display:flex;gap:4px;flex-wrap:wrap;}
.aptz-size-preview span{min-width:26px;height:26px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--aptz-ivory);font-size:10px;font-weight:800;}
.aptz-add-form{margin-top:auto;display:flex;flex-direction:column;gap:9px;min-width:0;}
.aptz-add-form label{display:flex;flex-direction:column;gap:5px;min-width:0;}
.aptz-add-form label>span{font-size:10px;font-weight:800;color:var(--aptz-muted);text-transform:uppercase;letter-spacing:.04em;}
.aptz-add-form select,.aptz-add-form input{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0 10px!important;
  border:1px solid var(--aptz-border)!important;
  border-radius:11px!important;
  background:var(--aptz-surface)!important;
  color:var(--aptz-text)!important;
  font-size:12px!important;
  outline:none!important;
  box-shadow:none!important;
}
.aptz-card-actions{display:grid;grid-template-columns:1fr;gap:6px;}
.aptz-product-card .aptz-btn{min-height:40px;width:100%;padding:9px 8px;font-size:11px;border-radius:11px;}
.aptz-pagination{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin-top:26px;}
.aptz-pagination a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--aptz-border);border-radius:11px;text-decoration:none;background:var(--aptz-surface);font-size:13px;font-weight:800;}
.aptz-pagination a.is-active{background:var(--aptz-button);color:var(--aptz-button-text);border-color:var(--aptz-button);}

/* Empty */
.aptz-empty-state{grid-column:1/-1;border:1px solid var(--aptz-border);background:var(--aptz-surface);border-radius:var(--aptz-radius);padding:28px 20px;text-align:center;}
.aptz-empty-state h1,.aptz-empty-state h2{margin:0 0 8px;font-size:26px;}
.aptz-empty-state p{margin:0 0 18px;color:var(--aptz-muted);}

/* Product detail */
.aptz-product-detail{padding:20px 0 44px;}
.aptz-back-link{display:inline-flex;align-items:center;min-height:38px;margin-bottom:12px;text-decoration:none;color:var(--aptz-text);font-size:13px;font-weight:800;}
.aptz-detail-grid{display:grid;grid-template-columns:1fr;gap:20px;}
.aptz-gallery-main{aspect-ratio:1/1;border:1px solid var(--aptz-border);border-radius:var(--aptz-radius);overflow:hidden;background:var(--aptz-ivory);}
.aptz-gallery-main img{width:100%;height:100%;object-fit:cover;}
.aptz-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:9px 1px 3px;scrollbar-width:none;}
.aptz-gallery-thumbs::-webkit-scrollbar{display:none;}
.aptz-gallery-thumbs button{flex:0 0 64px;width:64px;height:64px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:var(--aptz-surface);cursor:pointer;}
.aptz-gallery-thumbs button.is-active{border-color:var(--aptz-accent);}
.aptz-gallery-thumbs img{width:100%;height:100%;object-fit:cover;}
.aptz-detail-info{min-width:0;}
.aptz-detail-info h1{margin:10px 0 7px;font-size:clamp(31px,8vw,50px);line-height:1;letter-spacing:-.045em;overflow-wrap:anywhere;}
.aptz-detail-price{font-size:30px;font-weight:950;letter-spacing:-.04em;margin-bottom:10px;}
.aptz-detail-lead{margin:0 0 16px;color:var(--aptz-muted);font-size:14px;}
.aptz-promo-panel{display:grid;gap:10px;padding:16px;border-radius:17px;background:var(--aptz-ivory);border:1px solid color-mix(in srgb,var(--aptz-accent) 20%,var(--aptz-border));margin:0 0 16px;}
.aptz-promo-panel>strong{font-size:14px;}
.aptz-promo-panel>div{display:flex;flex-direction:column;gap:2px;padding-top:8px;border-top:1px dashed color-mix(in srgb,var(--aptz-text) 10%,transparent);}
.aptz-promo-panel span{font-size:11px;color:var(--aptz-muted);font-weight:700;}
.aptz-promo-panel b{font-size:12px;line-height:1.35;}
.aptz-detail-form{gap:9px;}
.aptz-detail-form-grid{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;}
.aptz-detail-form .aptz-btn{width:100%;}
.aptz-spec-section{margin-top:36px;padding-top:28px;border-top:1px solid var(--aptz-border);}
.aptz-spec-grid{display:grid;grid-template-columns:1fr;gap:10px;}
.aptz-spec-grid article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:flex-start;border:1px solid var(--aptz-border);border-radius:17px;padding:15px;background:var(--aptz-surface);}
.aptz-spec-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--aptz-ivory);font-size:20px;font-weight:900;}
.aptz-spec-grid h3{margin:1px 0 4px;font-size:15px;}
.aptz-spec-grid p{margin:0;color:var(--aptz-muted);font-size:12px;line-height:1.45;}

/* Checkout */
.aptz-checkout-section{padding:28px 0 48px;}
.aptz-checkout-head{margin-bottom:18px;}
.aptz-checkout-grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:start;}
.aptz-cart-items{display:flex;flex-direction:column;gap:10px;min-width:0;}
.aptz-loading{border:1px solid var(--aptz-border);border-radius:var(--aptz-radius);background:var(--aptz-surface);padding:24px;color:var(--aptz-muted);text-align:center;}
.aptz-cart-item{display:grid;grid-template-columns:78px minmax(0,1fr);gap:11px;border:1px solid var(--aptz-border);border-radius:17px;background:var(--aptz-surface);padding:11px;box-shadow:0 5px 18px rgba(0,0,0,.03);}
.aptz-cart-image{width:78px;height:78px;border-radius:12px;overflow:hidden;background:var(--aptz-ivory);}
.aptz-cart-image img{width:100%;height:100%;object-fit:cover;}
.aptz-cart-info{min-width:0;}
.aptz-cart-info h3{margin:0 0 4px;font-size:14px;line-height:1.25;overflow-wrap:anywhere;}
.aptz-cart-info p,.aptz-cart-info span{margin:0;color:var(--aptz-muted);font-size:11px;}
.aptz-cart-qty{grid-column:1/2;display:grid;grid-template-columns:34px 34px 34px;align-items:center;justify-content:start;gap:4px;}
.aptz-cart-qty button{width:34px;height:34px;border:1px solid var(--aptz-border);border-radius:10px;background:var(--aptz-surface);color:var(--aptz-text);font-size:18px;cursor:pointer;}
.aptz-cart-qty strong{text-align:center;font-size:13px;}
.aptz-cart-line{grid-column:2/3;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;}
.aptz-cart-line strong{font-size:14px;white-space:nowrap;}
.aptz-cart-line button{border:0;background:transparent;color:#a11;font-size:11px;font-weight:800;padding:6px 0;cursor:pointer;}
.aptz-cart-summary{min-width:0;}
.aptz-summary-card{border:1px solid var(--aptz-border);border-radius:var(--aptz-radius);background:var(--aptz-surface);padding:18px;box-shadow:var(--aptz-shadow-soft);}
.aptz-summary-card h2{margin:0 0 14px;font-size:22px;letter-spacing:-.025em;}
.aptz-summary-row,.aptz-summary-total{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.aptz-summary-row{padding:9px 0;border-bottom:1px dashed var(--aptz-border);font-size:13px;}
.aptz-summary-saving strong{color:#0a7a38;}
.aptz-promo-applied{margin:12px 0 0;padding:9px 11px;border-radius:12px;background:var(--aptz-ivory);font-size:11px;font-weight:850;}
.aptz-summary-total{padding:16px 0 3px;font-size:19px;}
.aptz-summary-total strong{font-size:24px;letter-spacing:-.03em;}
.aptz-safe-box{display:grid;gap:6px;margin:14px 0 18px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--aptz-ivory) 78%,white);font-size:11px;font-weight:700;color:var(--aptz-muted);}
.aptz-checkout-form{display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid var(--aptz-border);}
.aptz-checkout-form h3{margin:0 0 2px;font-size:18px;}
.aptz-checkout-form label{display:flex;flex-direction:column;gap:5px;min-width:0;}
.aptz-checkout-form label>span{font-size:11px;font-weight:800;color:var(--aptz-muted);}
.aptz-checkout-form input,.aptz-checkout-form textarea{
  width:100%!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid var(--aptz-border)!important;
  border-radius:12px!important;
  background:var(--aptz-bg)!important;
  color:var(--aptz-text)!important;
  box-shadow:none!important;
  outline:none!important;
  font-size:14px!important;
}
.aptz-checkout-form input{height:44px!important;min-height:44px!important;}
.aptz-checkout-form textarea{min-height:86px!important;resize:vertical;}
.aptz-checkout-form input:focus,.aptz-checkout-form textarea:focus,.aptz-add-form input:focus,.aptz-add-form select:focus{border-color:var(--aptz-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--aptz-accent) 17%,transparent)!important;}
.aptz-form-two{display:grid;grid-template-columns:1fr;gap:10px;}
.aptz-checkout-helper{margin:0;color:var(--aptz-muted);font-size:10px;text-align:center;line-height:1.4;}
.aptz-form-status{min-height:18px;font-size:12px;font-weight:700;color:#0a7a38;text-align:center;}
.aptz-form-status.is-error{color:#a11;}

/* Footer */
.aptz-footer{border-top:1px solid var(--aptz-border);padding:20px 0 30px;background:var(--aptz-bg);}
.aptz-footer p{margin:0;text-align:center;color:var(--aptz-muted);font-size:11px;}

/* Toast */
.aptz-toast{position:fixed;left:14px;right:14px;bottom:16px;z-index:9999;transform:translateY(140%);opacity:0;pointer-events:none;transition:.25s ease;background:var(--aptz-button);color:var(--aptz-button-text);border-radius:15px;padding:13px 15px;box-shadow:0 20px 50px rgba(0,0,0,.24);font-size:13px;font-weight:800;text-align:center;}
.aptz-toast.is-visible{transform:translateY(0);opacity:1;}

@media (min-width:480px){
  .aptz-container,.aptz-header-inner,.aptz-slider{width:min(var(--aptz-container),calc(100% - 36px));}
  .aptz-hero-actions{grid-template-columns:repeat(2,minmax(0,max-content));}
  .aptz-card-actions{grid-template-columns:1fr 1fr;}
  .aptz-product-card .aptz-btn{font-size:12px;}
  .aptz-form-two{grid-template-columns:1fr 1fr;}
  .aptz-toast{left:50%;right:auto;width:min(420px,calc(100% - 28px));transform:translate(-50%,140%);}
  .aptz-toast.is-visible{transform:translate(-50%,0);}
}

@media (min-width:700px){
  .aptz-slider{min-height:430px;}
  .aptz-slide{min-height:430px;grid-template-columns:1.06fr .94fr;grid-template-rows:1fr;}
  .aptz-slide-copy{padding:42px 36px 72px;}
  .aptz-slide-media{min-height:430px;}
  .aptz-slide-media img{min-height:430px;max-height:none;}
  .aptz-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .aptz-location-grid{grid-template-columns:.9fr 1.1fr;}
  .aptz-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
  .aptz-product-card-body{padding:14px;gap:10px;}
  .aptz-product-card h3{font-size:16px;min-height:38px;}
  .aptz-price{font-size:20px;}
  .aptz-product-card .aptz-btn{min-height:42px;font-size:12px;}
  .aptz-detail-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:30px;align-items:start;}
  .aptz-detail-info{position:sticky;top:94px;}
  .aptz-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .aptz-checkout-grid{grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:22px;}
  .aptz-cart-summary{position:sticky;top:94px;}
  .aptz-cart-item{grid-template-columns:88px minmax(0,1fr) 116px 110px;align-items:center;gap:13px;}
  .aptz-cart-image{width:88px;height:88px;}
  .aptz-cart-qty{grid-column:auto;justify-content:center;}
  .aptz-cart-line{grid-column:auto;flex-direction:column;align-items:flex-end;gap:5px;}
}

@media (min-width:980px){
  .aptz-header-inner{min-height:78px;}
  .aptz-nav-toggle{display:none;}
  .aptz-nav{position:static;display:flex!important;flex-direction:row;align-items:center;justify-content:flex-end;gap:3px;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;}
  .aptz-nav a{min-height:40px;padding:8px 11px;font-size:13px;}
  .aptz-logo img{max-height:48px;max-width:210px;}
  .aptz-hero{padding:22px 0 10px;}
  .aptz-slider{min-height:500px;}
  .aptz-slide{min-height:500px;grid-template-columns:1.02fr .98fr;}
  .aptz-slide-copy{padding:54px 54px 82px;}
  .aptz-slide h1{font-size:56px;}
  .aptz-slide-media,.aptz-slide-media img{min-height:500px;}
  .aptz-collection-section{padding:44px 0 28px;}
  .aptz-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
  .aptz-location{padding:32px 0 56px;}
  .aptz-location-copy{padding:30px;}
  .aptz-catalog-section{padding:38px 0 58px;}
  .aptz-catalog-top{grid-template-columns:minmax(0,1fr) 360px;gap:30px;}
  .aptz-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
  .aptz-product-card{border-radius:20px;}
  .aptz-product-card-body{padding:16px;}
  .aptz-card-actions{grid-template-columns:1fr 1fr;}
  .aptz-product-detail{padding:30px 0 58px;}
  .aptz-detail-grid{gap:46px;}
  .aptz-spec-section{margin-top:52px;padding-top:36px;}
  .aptz-spec-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
  .aptz-spec-grid article{grid-template-columns:46px minmax(0,1fr);padding:18px;}
}

@media (min-width:1200px){
  .aptz-nav a{padding-inline:13px;}
  .aptz-slide-copy{padding-left:60px;}
}

@media (max-width:360px){
  .aptz-product-grid{grid-template-columns:1fr;}
  .aptz-product-card h3{font-size:15px;min-height:auto;}
  .aptz-product-card .aptz-btn{font-size:12px;}
  .aptz-detail-form-grid{grid-template-columns:1fr;}
}

@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation:none!important;transition:none!important;}
}

/* =========================================================
   CARRITO FLOTANTE - VERSIÓN DEFINITIVA
   ========================================================= */
.aptz-floating-cart{
    position:fixed !important;
    right:max(16px, env(safe-area-inset-right)) !important;
    bottom:calc(18px + env(safe-area-inset-bottom)) !important;
    z-index:99998 !important;
    width:62px !important;
    height:62px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    margin:0 !important;
    background:var(--aptz-button, #000) !important;
    color:var(--aptz-button-text, #fff) !important;
    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:999px !important;
    text-decoration:none !important;
    box-shadow:0 12px 34px rgba(0,0,0,.24),0 3px 10px rgba(0,0,0,.14) !important;
    -webkit-tap-highlight-color:transparent;
    transition:transform .2s ease,box-shadow .2s ease !important;
}

.aptz-floating-cart .aptz-floating-cart-icon{
    display:block !important;
    width:29px !important;
    height:29px !important;
    min-width:29px !important;
    min-height:29px !important;
    overflow:visible !important;
    color:var(--aptz-button-text, #fff) !important;
}

.aptz-floating-cart .aptz-floating-cart-icon path{
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:2.25 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.aptz-floating-cart .aptz-floating-cart-icon circle{
    fill:currentColor !important;
    stroke:currentColor !important;
}

.aptz-floating-cart-count{
    position:absolute !important;
    top:-4px !important;
    right:-3px !important;
    min-width:23px !important;
    height:23px !important;
    padding:0 6px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:var(--aptz-accent, #B89A5E) !important;
    color:#111 !important;
    border:2px solid var(--aptz-bg, #fff) !important;
    border-radius:999px !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:900 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.18) !important;
}

.aptz-floating-cart:hover{
    color:var(--aptz-button-text, #fff) !important;
    transform:translateY(-3px) !important;
    box-shadow:0 16px 38px rgba(0,0,0,.27),0 4px 12px rgba(0,0,0,.15) !important;
}

.aptz-floating-cart:active{
    transform:scale(.96) !important;
}

.aptz-toast{
    right:86px;
}

@media (max-width:767px){
    .aptz-floating-cart{
        width:58px !important;
        height:58px !important;
        right:max(14px, env(safe-area-inset-right)) !important;
        bottom:calc(15px + env(safe-area-inset-bottom)) !important;
    }

    .aptz-floating-cart .aptz-floating-cart-icon{
        width:27px !important;
        height:27px !important;
        min-width:27px !important;
        min-height:27px !important;
    }

    .aptz-toast{
        right:82px;
    }
}

/* ================== V2.1 — reusable storefront upgrades ================== */
.aptz-social-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:17px 0 15px;}
.aptz-social-links a{min-width:0;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 15px;border:1px solid var(--aptz-border);border-radius:13px;background:var(--aptz-bg);color:var(--aptz-text);text-decoration:none;font-size:13px;font-weight:750;transition:.2s ease;}
.aptz-social-links a svg{width:19px;height:19px;flex:none;}
.aptz-social-links a:hover,.aptz-social-links a:focus-visible{border-color:var(--aptz-accent);background:var(--aptz-ivory);transform:translateY(-1px);}
.aptz-social-links--footer{justify-content:center;margin:15px 0 0;}
.aptz-social-links--footer a{min-height:38px;padding:8px 10px;font-size:12px;}
.aptz-social-links--footer a span{display:none;}
.aptz-social-links--footer a svg{width:18px;height:18px;}
.aptz-guide-trigger{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;max-width:100%;padding:8px 12px;border:1px solid var(--aptz-border);border-radius:12px;background:var(--aptz-surface);color:var(--aptz-text);font-size:12px;font-weight:800;line-height:1.25;cursor:pointer;text-align:center;}
.aptz-guide-trigger:hover,.aptz-guide-trigger:focus-visible{background:var(--aptz-ivory);border-color:var(--aptz-accent);}
.aptz-product-card .aptz-guide-trigger{width:100%;min-height:36px;font-size:11px;}
.aptz-product-guide-row{margin:12px 0;}
.aptz-product-guide-row .aptz-guide-trigger{min-height:44px;}
.aptz-guide-dialog{position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:22px;background:var(--aptz-surface);color:var(--aptz-text);width:min(790px,calc(100vw - 28px));max-width:790px;max-height:min(88dvh,800px);box-shadow:0 20px 80px rgba(0,0,0,.28);z-index:999999;overscroll-behavior:contain;}
.aptz-guide-dialog::backdrop{background:rgba(0,0,0,.65);backdrop-filter:blur(3px);}
.aptz-guide-dialog-inner{position:relative;min-height:160px;max-height:88dvh;overflow:auto;padding:clamp(18px,4vw,30px);}
.aptz-guide-close{position:sticky;float:right;top:0;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:-5px -5px 2px 8px;padding:0;border:1px solid var(--aptz-border);border-radius:50%;background:var(--aptz-bg);color:var(--aptz-text);font-size:28px;cursor:pointer;}
.aptz-guide-body{min-width:0;}
.aptz-guide-body h2{margin:9px 0 4px;font-size:clamp(24px,5vw,34px);line-height:1.1;overflow-wrap:anywhere;}
.aptz-guide-subtitle{margin:0 0 20px;color:var(--aptz-muted);font-size:13px;}
.aptz-guide-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:22px;align-items:start;margin-top:18px;}
.aptz-guide-grid--table{grid-template-columns:1fr;}
.aptz-guide-illustration{min-width:0;border:1px solid var(--aptz-border);border-radius:14px;padding:8px;background:var(--aptz-ivory);}
.aptz-guide-illustration img{width:100%;height:auto;max-height:420px;object-fit:contain;}
.aptz-guide-table-scroll{min-width:0;max-width:100%;overflow-x:auto;border:1px solid var(--aptz-border);border-radius:14px;}
.aptz-guide-table-scroll table{width:100%;border-collapse:collapse;table-layout:auto;white-space:nowrap;font-size:13px;}
.aptz-guide-table-scroll thead{background:var(--aptz-ivory);}
.aptz-guide-table-scroll th,.aptz-guide-table-scroll td{padding:10px 12px;text-align:center;border-bottom:1px solid var(--aptz-border);}
.aptz-guide-table-scroll th:first-child,.aptz-guide-table-scroll td:first-child{font-weight:850;color:var(--aptz-text);}
.aptz-guide-table-scroll tbody tr:nth-child(2n){background:color-mix(in srgb,var(--aptz-ivory) 38%,var(--aptz-surface));}
.aptz-guide-instructions{margin-top:17px;padding:15px;border-radius:14px;background:var(--aptz-ivory);color:var(--aptz-text);font-size:13px;line-height:1.55;}
.aptz-guide-instructions p:last-child{margin-bottom:0;}
.aptz-guide-loading{padding:35px 12px;text-align:center;color:var(--aptz-muted);}
@media(max-width:580px){.aptz-guide-dialog{width:calc(100vw - 18px);max-height:90dvh;border-radius:17px}.aptz-guide-dialog-inner{max-height:90dvh;padding:16px}.aptz-guide-grid{grid-template-columns:1fr;gap:14px}.aptz-guide-illustration img{max-height:200px}.aptz-guide-table-scroll table{font-size:12px}.aptz-guide-table-scroll th,.aptz-guide-table-scroll td{padding:9px 10px}}

/* Interactive promotions — selection changes actual form quantity. */
.aptz-promo-choice{border:1px solid var(--aptz-border);background:var(--aptz-ivory);border-radius:17px;padding:15px;margin:12px 0;min-width:0;}
.aptz-promo-choice-heading{display:grid;gap:3px;margin-bottom:12px;}
.aptz-promo-choice-heading strong{font-size:14px;}
.aptz-promo-choice-heading span{color:var(--aptz-muted);font-size:11px;}
.aptz-tier-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.aptz-tier-option{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:88px;padding:9px 5px;background:var(--aptz-surface);border:1.5px solid var(--aptz-border);border-radius:12px;color:var(--aptz-text);text-align:center;cursor:pointer;transition:.16s ease;}
.aptz-tier-option span{font-size:11px;font-weight:700;}
.aptz-tier-option strong{font-size:clamp(12px,3.5vw,17px);line-height:1.15;white-space:normal;overflow-wrap:anywhere;}
.aptz-tier-option small{font-size:10px;font-weight:750;color:#146b36;line-height:1.25;}
.aptz-tier-option.is-selected{border-color:var(--aptz-button);background:var(--aptz-button);color:var(--aptz-button-text);box-shadow:0 0 0 2px var(--aptz-accent);}
.aptz-tier-option.is-selected small{color:var(--aptz-button-text);}
.aptz-promo-choice>p{font-size:11px;line-height:1.45;color:var(--aptz-muted);margin:12px 0 0;}
.aptz-promo-choice>p a{font-weight:800;text-decoration:underline;}
.aptz-mix-promo-note{margin:10px 0;padding:12px 14px;border-radius:12px;border:1px dashed var(--aptz-accent);background:var(--aptz-surface);color:var(--aptz-text);font-size:12px;line-height:1.5;}
@media(max-width:359px){.aptz-tier-options{gap:5px}.aptz-tier-option{padding:8px 3px;min-height:80px}.aptz-tier-option span{font-size:10px}.aptz-tier-option small{font-size:9px}}

/* In-checkout product recommendations. Scroll, touch, arrows, autopause. */
.aptz-checkout-recommendations{margin-top:35px;min-width:0;}
.aptz-recommendations-intro{margin-bottom:19px;}
.aptz-recommendations-intro h2{margin:7px 0;font-size:clamp(24px,5vw,34px);line-height:1.1;letter-spacing:-.025em;}
.aptz-recommendations-intro p{margin:0;color:var(--aptz-muted);font-size:13px;max-width:720px;}
.aptz-recommendation-group{min-width:0;margin:15px 0 24px;padding:14px;border:1px solid var(--aptz-border);border-radius:var(--aptz-radius);background:var(--aptz-surface);}
.aptz-recommendation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.aptz-recommendation-heading h3{font-size:clamp(17px,4vw,22px);margin:5px 0 0;line-height:1.2;overflow-wrap:anywhere;}
.aptz-recommendation-controls{display:flex;gap:7px;flex:none;}
.aptz-recommendation-controls button{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--aptz-border);background:var(--aptz-bg);color:var(--aptz-text);border-radius:50%;font-size:19px;cursor:pointer;}
.aptz-recommendation-controls button:hover{background:var(--aptz-ivory);}
.aptz-recommendation-rail{display:flex;gap:12px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 1px 12px;scrollbar-width:thin;scrollbar-color:var(--aptz-beige) transparent;}
.aptz-recommendation-card{flex:0 0 clamp(158px,43vw,215px);min-width:0;overflow:hidden;display:flex;flex-direction:column;scroll-snap-align:start;border:1px solid var(--aptz-border);border-radius:14px;background:var(--aptz-bg);}
.aptz-recommendation-image{display:block;aspect-ratio:1.05;overflow:hidden;background:var(--aptz-ivory);}
.aptz-recommendation-image img{display:block;width:100%;height:100%;object-fit:cover;}
.aptz-recommendation-body{min-width:0;padding:11px;display:flex;flex:1;flex-direction:column;gap:8px;}
.aptz-recommendation-body h4{margin:0;font-size:13px;line-height:1.25;overflow-wrap:anywhere;}
.aptz-recommendation-body>strong{font-size:17px;}
.aptz-recommendation-form{margin-top:auto;}
.aptz-recommendation-form select{width:100%;min-width:0;}
.aptz-recommendation-form .aptz-btn{min-height:42px;width:100%;font-size:12px;padding:8px 6px;white-space:normal;line-height:1.2;}
.aptz-rec-more{display:inline-flex;align-items:center;min-height:40px;margin-top:5px;color:var(--aptz-text);text-decoration:none;font-size:12px;font-weight:800;}
.aptz-rec-more:hover{text-decoration:underline;}
@media(min-width:700px){.aptz-recommendation-group{padding:18px}.aptz-recommendation-card{flex-basis:205px}.aptz-recommendation-body{padding:13px}}
@media(prefers-reduced-motion:reduce){.aptz-recommendation-rail{scroll-behavior:auto}}

/* Total y ahorro junto a las recomendaciones, sin salir del checkout. */
.aptz-rec-live{margin:0 0 12px;padding:10px 12px;border:1px solid var(--aptz-border);border-radius:12px;background:var(--aptz-ivory);color:var(--aptz-text);font-size:12px;line-height:1.4;font-weight:750;overflow-wrap:anywhere;}
