.catalog-intro{ max-width: 680px; margin: -16px auto 36px; text-align: center; color: #666; }
.catalog-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.catalog-card{ display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; border: 1px solid #eee; border-radius: 18px; background: white; color: #222; box-shadow: 0 6px 24px #00000008; transition: box-shadow .2s, border-color .2s; }
.catalog-card:hover{ border-color: #CA468D; box-shadow: 0 8px 28px #ca468d20; }
.catalog-card:focus-visible{ outline: 3px solid #CA468D; outline-offset: 4px; }
.catalog-card-image{ display: flex; align-items: center; justify-content: center; height: 290px; padding: 24px; background: #f8f6f3; }
.catalog-card-image img{ display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.catalog-card-content{ display: flex; flex-direction: column; padding: 24px; }
.catalog-category{ color: #777; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.catalog-name{ margin-top: 8px; font-family: "Playfair Display", serif; font-size: 30px; color: #CA468D; }
.catalog-description{ margin-top: 4px; font-size: 15px; }
.catalog-size{ margin-top: 12px; font-size: 13px; color: #777; }
.catalog-price{ margin-top: 12px; font-size: 23px; font-weight: 600; color: #222; }
.catalog-price small{ font-size: 13px; font-weight: 400; }
.catalog-card-link{ display: flex; justify-content: space-between; border-top: 1px solid #eee; margin-top: 20px; padding-top: 16px; color: #CA468D; font-size: 14px; font-weight: 600; }
.catalog-remaining{ margin-top: 48px; }
.catalog-remaining > summary{ color: #CA468D; padding: 18px 0; border-top: 1px solid #eee; cursor: pointer; font-weight: 600; }
.catalog-remaining .imagenC{ max-width: 900px; margin: 24px auto; }
.catalog-remaining img{ margin-bottom: 24px; }
.catalog-modal-open{ overflow: hidden; }
.product-dialog{ position: fixed; inset: 0; width: min(1000px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 20px; color: #222; background: white; overflow: hidden; }
.product-dialog::backdrop{ background: #000b; }
.product-layout{ display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.product-image-panel{ display: flex; justify-content: center; align-items: flex-start; background: #f8f6f3; padding: 40px; }
.product-image-panel img{ position: sticky; top: 40px; display: block; width: auto; height: auto; max-width: 100%; max-height: min(580px, calc(100dvh - 120px)); object-fit: contain; }
.product-info{ padding: 48px 36px 32px; }
.product-info h2{ margin: 8px 0; color: #CA468D; font-family: "Playfair Display", serif; font-size: 44px; }
.product-subtitle{ font-size: 18px; margin-bottom: 16px; }
.product-summary{ font-size: 14px; line-height: 1.7; color: #666; }
.product-specs{ margin: 24px 0; }
.product-specs > div{ padding: 14px 0; border-bottom: 1px solid #eee; }
.product-specs dt{ font-size: 13px; color: #777; font-weight: 400; }
.product-specs dd{ margin: 6px 0 0; }
.product-colors h3{ font-size: 14px; font-weight: 600; }
.catalog-swatches{ display: grid; grid-template-columns: repeat(5, 28px); gap: 10px; margin: 16px 0 24px; }
.catalog-swatch{ width: 28px; height: 28px; border-radius: 50%; border: 1px solid #0001; background: var(--swatch); }
.product-info .whatsapp-cta{ width: 100%; font-size: 15px; margin-top: 0; padding: 14px 12px; }
.product-source{ margin-top: 24px; font-size: 13px; color: #666; }
.product-source summary{ cursor: pointer; }
.product-source img{ width: 100%; height: auto; margin-top: 16px; }
.product-close{ position: absolute; display: block; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: white; color: #333; font-size: 30px; line-height: 1; }
.product-close:hover{ background: #CA468D; color: white; }
.product-close:focus-visible{ outline: 3px solid #CA468D; outline-offset: 3px; }
@media (max-width: 767px){
    .product-dialog{ width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
    .product-layout{ grid-template-columns: 1fr; max-height: calc(100dvh - 24px); }
    .product-image-panel{ padding: 28px; }
    .product-image-panel img{ position: static; max-height: 280px; }
    .product-info{ padding: 28px 24px; }
    .product-info h2{ font-size: 36px; }
}
.home-catalog-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-suggestions .catalog-card{ text-decoration: none; }
.home-suggestions .catalog-card-image{ height: 260px; }
.home-suggestions .catalog-card-content{ padding: 20px; }
.home-suggestions .catalog-name{ font-size: 24px; }
@media (max-width: 991px){ .home-catalog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px){ .home-catalog-grid{ grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce){ .catalog-card{ transition: none; } }

.catalog-tools{ display: flex; gap: 20px; align-items: flex-end; margin-bottom: 28px; }
.catalog-tools label{ display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #666; }
.catalog-tools label:first-child{ flex: 1; }
.catalog-tools input, .catalog-tools select{ border: 1px solid #ddd; border-radius: 8px; background: white; padding: 12px; min-height: 46px; color: #222; }
.catalog-tools input:focus-visible, .catalog-tools select:focus-visible{ outline: 2px solid #CA468D; outline-offset: 2px; }
#catalog-count{ margin: 0 0 12px; font-size: 13px; color: #666; white-space: nowrap; }
.catalog-card{ display: flex; flex-direction: column; }
.catalog-card-content{ flex: 1; width: 100%; }
.catalog-name{ font-size: 27px; line-height: 1.25; }
.catalog-card-link{ margin-top: auto; padding-top: 16px; }
.catalog-price{ margin-bottom: 20px; }
.catalog-card[hidden], .catalog-tools[hidden], .catalog-empty[hidden]{ display: none; }
.catalog-empty{ text-align: center; padding: 40px 0; color: #666; }
.catalog-crop{ position: relative; display: block; overflow: hidden; width: 100%; max-width: 340px; }
.catalog-crop img{ position: absolute !important; height: auto !important; max-width: none !important; max-height: none !important; object-fit: initial !important; }
.catalog-card-image .catalog-crop{ max-height: 100%; width: auto; height: 100%; }
.product-image-panel{ display: block; align-self: start; position: sticky; top: 0; }
.product-layout{ background: linear-gradient(to right, #f8f6f3 50%, white 50%); }
.product-main-photo{ display: flex; justify-content: center; align-items: center; min-height: 300px; }
.product-main-photo > img{ position: static; max-height: min(490px, calc(100dvh - 200px)); }
.product-views{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.product-view{ width: 64px; height: 72px; padding: 5px; border: 1px solid #ddd; border-radius: 8px; background: white; }
.product-view[aria-pressed="true"]{ border: 2px solid #CA468D; }
.product-view:focus-visible{ outline: 2px solid #CA468D; outline-offset: 3px; }
.product-view img{ position: static; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.product-variants{ width: 100%; margin: 24px 0; font-size: 14px; }
.product-variants caption{ caption-side: top; color: #333; font-weight: 600; padding: 0 0 12px; }
.product-variants th{ color: #777; font-size: 12px; font-weight: 400; }
.product-variants td, .product-variants th{ padding: 12px 8px 12px 0; border-bottom: 1px solid #eee; vertical-align: top; }
.product-variants td:last-child, .product-variants th:last-child{ text-align: right; }
.product-variants td:last-child{ font-weight: 600; }
.product-notes{ padding-left: 18px; font-size: 12px; line-height: 1.6; color: #666; margin-bottom: 24px; }
.product-notes li{ margin-bottom: 8px; }
@media (max-width: 767px){
    .catalog-tools{ flex-wrap: wrap; gap: 12px; }
    .catalog-tools label:first-child{ flex-basis: 100%; }
    .catalog-tools label:nth-child(2){ flex: 1; }
    .product-image-panel{ position: static; }
    .product-layout{ background: white; }
    .product-main-photo{ min-height: 0; }
    .product-main-photo > img{ max-height: 280px; }
    .product-main-photo .catalog-crop{ max-width: 220px; }
}
