/* Ashop v1.5: galería de hasta cuatro fotografías por producto. */
.product-editor-panel { max-width: 980px; }
.product-editor-alert { width: 100%; margin: 0 0 15px; }
.product-stock-field { max-width: calc(50% - 7px); }

.product-photo-section { padding: 24px; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff 0%, #fdf5f8 58%, #f4f8fc 100%); }
.product-photo-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.product-photo-heading h2 { margin: 6px 0 4px; font-family: Georgia, serif; font-size: 27px; }
.product-photo-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.product-photo-heading > strong { padding: 7px 11px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.product-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.product-photo-slot { min-width: 0; padding: 10px; border: 1px dashed #d9cbd1; border-radius: 12px; background: rgba(255,255,255,.75); }
.product-photo-slot.has-photo { border-style: solid; border-color: rgba(199,102,143,.35); }
.product-photo-preview { position: relative; aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; border-radius: 8px; background: linear-gradient(145deg, var(--blue-soft), var(--pink-soft)); }
.product-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-photo-preview > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #fff; color: var(--pink-deep); font-family: Georgia, serif; }
.product-photo-preview em { position: absolute; top: 7px; left: 7px; padding: 5px 7px; border-radius: 99px; background: rgba(23,19,22,.84); color: #fff; font-size: 7px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.product-photo-slot > label:not(.product-photo-remove) { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; }
.product-photo-input { display: block; width: 100%; color: var(--muted); font-size: 9px; }
.product-photo-input::file-selector-button { border: 0; border-radius: 6px; background: var(--pink-soft); color: var(--pink-deep); cursor: pointer; margin-right: 6px; padding: 7px 8px; font-size: 8px; font-weight: 800; }
.product-photo-slot > small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.product-photo-remove { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #a33c51; font-size: 8px; cursor: pointer; }
.product-photo-count { display: block; margin-top: 4px; color: var(--pink-deep); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.product-gallery-shell { min-width: 0; }
.product-gallery-shell .product-gallery { width: 100%; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 11px; }
.product-gallery-thumb { aspect-ratio: 3/4; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: var(--pink-soft); cursor: pointer; padding: 0; opacity: .72; transition: border-color .2s, opacity .2s, transform .2s; }
.product-gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.product-gallery-thumb.active { border-color: var(--pink-deep); opacity: 1; }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 850px) { .product-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .product-stock-field { max-width: none; } .product-photo-section { padding: 16px; } .product-photo-heading { flex-direction: column; gap: 10px; } .product-photo-grid { gap: 8px; } }

/* Ashop v1.5.1: carga independiente por fotografía. */
.product-photo-section-independent { margin-top: 0; }
.product-photo-upload-form { margin-top: 9px; }
.product-photo-upload-button { width: 100%; min-height: 36px; border: 0; border-radius: 8px; background: var(--pink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.product-photo-upload-button:hover { background: var(--pink-deep); }
.product-photo-upload-button:disabled { opacity: .65; cursor: wait; }
.product-photo-delete-form { margin-top: 7px; }
.product-photo-delete-button { width: 100%; border: 0; border-bottom: 1px solid #d9adb7; background: transparent; color: #a33c51; cursor: pointer; padding: 6px; font-size: 8px; }
.photo-upload-status { min-height: 38px; display: flex; align-items: center; margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; background: var(--blue-soft); color: var(--muted); font-size: 10px; }
.photo-upload-status.is-working { background: #fff5df; color: #825d18; }
.photo-upload-status.is-success { background: #e8f7ed; color: #2c7445; }
.photo-upload-status.is-error { background: #fff0f1; color: #9a2632; }
.product-photo-first-save { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #e8d7de; border-radius: 12px; background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft)); }
.product-photo-first-save strong { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 18px; }
.product-photo-first-save p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
