/* Animal Food · tienda, carrito y checkout */
.af-commerce #main {padding:0!important;background:#f6f9ff;}
.af-store-hero{background:linear-gradient(115deg,#0c3c8c,#1769e0 58%,#38b6ff);color:white;overflow:hidden;padding:54px 0 58px;}
.af-store-hero__grid{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:70px;}
.af-store-hero h1{font:400 clamp(2.8rem,5.5vw,4.8rem)/1.02 var(--af-f-titulo);color:white;margin:0 0 20px;}
.af-store-hero h1 em{color:#ffb528;font-style:normal;}
.af-store-hero p{max-width:540px;color:#edf5ff;font-size:1.13rem;line-height:1.7;}
.af-store-hero__photo{position:relative;max-width:340px;width:100%;justify-self:center;}
.af-store-hero__photo>img{display:block;aspect-ratio:1;object-fit:cover;width:100%;border-radius:48% 48% 38% 48%;border:8px solid #ffb528;transform:rotate(3deg);box-shadow:0 18px 40px #0c3c8c66;}
.af-store-sticker{position:absolute;bottom:6px;left:-28px;background:white;color:var(--af-oscuro);padding:15px 23px;border-radius:18px;transform:rotate(-6deg);font-family:var(--af-f-sub);box-shadow:var(--af-sombra);line-height:1.4;}
.af-store-sticker b{color:#1769e0;}
.af-store-benefits{display:flex;gap:10px;flex-wrap:wrap;font-size:.8rem;font-family:var(--af-f-sub);}
.af-store-benefits span{border:1px solid #ffffff55;background:#ffffff12;border-radius:30px;padding:7px 12px;}
.af-compra-pasos{padding:28px 0;}
.af-compra-pasos ol{display:flex;justify-content:center;list-style:none;gap:clamp(15px,5vw,64px);padding:0;margin:0;}
.af-compra-pasos a{display:flex;align-items:center;gap:10px;color:#64728b;font:600 .9rem var(--af-f-sub);text-decoration:none;}
.af-compra-pasos span{display:grid;place-items:center;background:#e4ecf9;border-radius:50%;width:32px;height:32px;}
.af-compra-pasos [aria-current] a{color:var(--af-azul-p);}
.af-compra-pasos [aria-current] span{background:var(--af-azul-p);color:white;box-shadow:0 4px 12px #1769e033;}
.af-demo-note{padding:13px 20px;border:1px solid #f2d19f;border-radius:14px;background:#fff6e9;color:#634415;font-size:.86rem;line-height:1.55;margin:0 0 32px;}
.af-demo-note strong{margin-right:8px;}
.af-store-catalog{padding-bottom:64px;}
.af-store-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:42px 0 24px;}
.af-store-heading h2,.af-store-help h2{font:400 clamp(2rem,3vw,2.7rem)/1.15 var(--af-f-titulo);color:var(--af-oscuro);margin:0;}
.af-store-heading .af-kicker{margin-bottom:10px;}
.af-store-heading p{font-size:.9rem;color:var(--af-gris);max-width:260px;}
.af-store-search{margin-bottom:28px;max-width:560px;}
.af-store-search label{display:block;font-weight:600;font-size:.88rem;margin-bottom:8px;}
.af-store-search>div{display:flex;gap:8px;}
.af-store-search input[type=search]{background:white;border:1px solid #cad8ed;border-radius:14px;min-width:0;min-height:48px;}
.af-store-search button{border-radius:14px;background:var(--af-azul-p);color:white;padding:10px 22px;}
.af-store .woocommerce-products-header{display:none;}
.af-store ul.products,.af-store [data-products]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
.af-store ul.products::before,.af-store ul.products::after{display:none!important;}
.af-store ul.products li.product{float:none!important;width:auto!important;margin:0!important;border:1px solid #e3eaf5;border-radius:24px;text-align:left;padding-bottom:22px!important;}
.af-store ul.products li.product img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.af-store ul.products li.product .woocommerce-loop-product__title{font-size:1.6rem!important;padding:0 20px!important;margin:5px 0 12px;}
.af-store ul.products li.product .price{display:block;padding:0 20px;margin-bottom:18px;color:var(--af-azul-p);}
.af-store ul.products li.product .button{margin:0 20px;display:inline-flex;}
.af-store ul.products li.product .added_to_cart{display:block;padding:12px 20px 0;font-weight:600;}
.af-store .woocommerce-result-count{font-size:.9rem;}
.af-store-help{margin-top:60px;background:#fff0d9;border-radius:28px;padding:32px 38px;display:flex;align-items:center;justify-content:space-between;gap:25px;}
.af-store-help p{margin:12px 0 0;}
.af-store-help .af-btn{flex-shrink:0;}
.af-cart-link{gap:7px!important;white-space:nowrap;}
.af-cart-link b{display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:50%;background:var(--af-naranja);color:#10234f;font-size:.75rem;}
.af-menu-shop>a{color:var(--af-azul-p)!important;}
.af-store-product{padding:0 0 65px;}
.af-store-product .product{margin-top:30px;}
.af-store-product .summary{padding:20px;}
.af-store-product .woocommerce-product-gallery img{object-fit:cover;}
.af-store-product .af-porciones-prod{clear:both;}
.af-store-product .woocommerce-breadcrumb{padding-top:12px;}
.af-checkout-hero{background:#e8f3ff;padding:42px 0;text-align:center;border-bottom:1px solid #dbe7f8;}
.af-checkout-hero h1{font:400 clamp(2.4rem,4.3vw,3.6rem)/1.1 var(--af-f-titulo);color:var(--af-oscuro);margin:0 0 12px;}
.af-checkout-hero p{margin:0;color:var(--af-gris);font-size:1.05rem;}
.af-checkout-hero .af-kicker{margin-bottom:12px;}
.af-purchase{padding-bottom:65px;}
.af-purchase .woocommerce{margin-top:20px;}
.af-purchase table.shop_table{background:white;border:1px solid #e0e8f3;border-radius:20px;border-collapse:separate;overflow:hidden;}
.af-purchase table.shop_table th{background:#eef5ff;color:var(--af-oscuro);font:600 .85rem var(--af-f-sub);}
.af-purchase table.shop_table td{padding:18px 14px;vertical-align:middle;}
.af-purchase .product-thumbnail img{width:80px;height:80px;object-fit:cover;border-radius:14px;}
.af-purchase .product-name a{font-weight:600;color:var(--af-oscuro);}
.af-purchase .quantity input{min-height:44px;background:#f6f9ff;border:1px solid #b8cce7;border-radius:10px;}
.af-purchase .cart_totals{border:1px solid #e0e8f3;}
.af-purchase h2,.af-purchase h3{font-family:var(--af-f-titulo);font-weight:400;color:var(--af-oscuro);}
.af-purchase .cart_totals h2{font-size:1.7rem;}
.af-purchase .checkout-button{width:100%;text-align:center;}
.af-purchase .woocommerce-billing-fields,.af-purchase .woocommerce-shipping-fields,.af-purchase .woocommerce-additional-fields{margin-bottom:24px;}
.af-purchase .woocommerce-additional-fields{background:white;padding:26px;border:1px solid #e0e8f3;border-radius:24px;}
.af-purchase label{font-weight:500;color:var(--af-oscuro);}
.af-purchase input.input-text,.af-purchase select,.af-purchase textarea{background:#fbfdff;min-height:48px;border:1px solid #bdcfe5!important;}
.af-purchase :is(input,select,textarea,button,a):focus-visible,.af-store :is(input,select,button,a):focus-visible{outline:3px solid #ff9c00;outline-offset:3px;}
.af-purchase #order_review{border:1px solid #dce7f6;}
.af-purchase #payment{background:#eef5ff;border-radius:18px;}
.af-purchase #place_order{width:100%;white-space:normal;}
.af-payment-note{padding:18px 20px;background:#fff3e2;border-radius:14px;margin:16px 0;color:#634415;}
.af-payment-note p{font-size:.9rem;margin:6px 0 0;}
.af-purchase-footer{clear:both;border-top:1px solid #dce7f6;margin-top:36px;padding-top:25px;display:flex;justify-content:space-between;gap:20px;font-size:.9rem;}
.af-purchase-footer a{font-weight:600;color:var(--af-azul-p);}
.af-vacio{background:white;border:1px solid #e0e8f3;border-radius:28px;margin:20px auto;max-width:700px;}
.af-vacio .af-btn span{font-size:1rem;}
.af-purchase .return-to-shop{display:none;}
/* Fotografías de referencia respetan los espacios visuales del diseño original. */
.af-slides>img{object-fit:cover;border-radius:46% 46% 40% 44%;border:6px solid #ffb528;}
.af-circulo>img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.af-prod__img img{object-fit:cover;}
@media(min-width:1000px){.af-purchase form.checkout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:0 36px;align-items:start;}.af-purchase form.checkout #customer_details{grid-column:1;grid-row:1/4;width:100%;}.af-purchase #customer_details .col-1,.af-purchase #customer_details .col-2{float:none;width:100%;}.af-purchase #order_review_heading,.af-purchase #order_review{grid-column:2;width:100%;}.af-purchase form.checkout:before,.af-purchase form.checkout:after{display:none;}}
@media(max-width:1000px){.af-store ul.products,.af-store [data-products]{grid-template-columns:repeat(2,minmax(0,1fr));}.af-store-hero__grid{gap:30px;}.af-store-hero__photo{max-width:290px;}}
@media(max-width:650px){.af-store-hero{padding:36px 0;}.af-store-hero__grid{grid-template-columns:1fr;gap:30px;}.af-store-hero h1{font-size:3.15rem;}.af-store-hero__photo{max-width:240px;}.af-store-benefits{gap:6px;font-size:.71rem;}.af-store ul.products,.af-store [data-products]{grid-template-columns:1fr;}.af-store-heading{display:block;margin-top:30px;}.af-store-heading p{max-width:none;margin-top:14px;}.af-store-help{display:block;padding:26px;}.af-store-help .af-btn{margin-top:22px;}.af-compra-pasos ol{gap:18px;}.af-compra-pasos a{font-size:.76rem;gap:6px;}.af-compra-pasos span{width:27px;height:27px;}.af-demo-note{font-size:.8rem;padding:12px 14px;}.af-purchase-footer{flex-direction:column;}.af-purchase .woocommerce-billing-fields,.af-purchase #order_review,.af-purchase .cart_totals{padding:18px;}.af-purchase .coupon{display:flex;flex-wrap:wrap;gap:8px;}.af-purchase .coupon input{width:100%!important;}.af-purchase .woocommerce-checkout .form-row{float:none;width:100%;}.af-store-product .summary{padding:10px 0;}}
@media(prefers-reduced-motion:reduce){.af-store *, .af-purchase *, .af-slides>img{animation:none!important;transition:none!important;}}

.af-store ul.products li.product img{aspect-ratio:4/3!important;height:auto!important;object-fit:cover;}
.af-store ul.products li.product .entry-meta{padding:0 20px;margin:0 0 16px;font-size:.8rem;}
.af-store .ct-woo-card-actions{padding:0 20px;gap:10px;display:flex;flex-wrap:wrap;}
.af-store .ct-woo-card-actions .button{margin:0!important;}
.af-store .ct-woo-card-actions .added_to_cart{padding:12px 16px;border-radius:999px;background:#e8f3ff;color:#0c3c8c;}
.af-menu-shop>a,.af-menu-cart>a{font:600 12px var(--af-f-sub)!important;text-transform:uppercase;display:flex;align-items:center;padding:0 8px!important;}
.af-store-hero__photo>img{object-position:50% 73%;}

.af-demo-success{grid-column:1/-1;background:#e6f6ee;border:1px solid #abd7bc;border-radius:16px;padding:20px;color:#205236;margin-bottom:24px;font-weight:600;}.af-demo-success:focus{outline:3px solid #1769e0;outline-offset:3px;}

/* Galería principal 1:1; el recorte no depende de las dimensiones originales. */
.single-product .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery__image--placeholder {display:block;aspect-ratio:1 / 1;overflow:hidden;}
.single-product .woocommerce-product-gallery__image > a > img,
.single-product .woocommerce-product-gallery__image--placeholder > img {display:block;width:100%!important;height:100%!important;max-height:none;aspect-ratio:1 / 1!important;object-fit:cover;object-position:center;}
