.media-scene-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sand, #eee9dd);
}

.product-gallery__frame {
    margin: 0;
}

.product-gallery__frame--static {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sand, #eee9dd);
}

.product-gallery__frame--static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    background: var(--sand, #eee9dd);
}

.product-gallery__view-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.product-gallery__view-controls[hidden] {
    display: none;
}

.product-gallery__view-controls button[hidden] {
    display: none;
}

.product-gallery__note {
    padding: 12px 0;
    font-size: 12px;
    color: var(--muted, #677369);
}

.product-gallery__note summary {
    cursor: pointer;
}

.product-gallery__description {
    line-height: 1.5;
    margin: 8px 0 0;
}

.product-gallery__status {
    color: var(--muted, #677369);
    font-size: 12px;
}

.product-gallery__status:empty {
    display: none;
}

.detail-image:has(.product-gallery) {
    background: transparent;
    border-radius: 0;
}

.detail-image .product-gallery__frame {
    border-radius: 12px;
}

.detail-image .product-gallery__fallback {
    height: 100%;
    max-height: none;
}

.detail-image .product-gallery__frame--static img {
    height: 100%;
    max-height: none;
}

.product-size-tag {
    display: inline-block;
    font: 12px/1.4 Arial, sans-serif;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
}

.plant-choice__form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 12px;
}

.plant-choice__form select {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--line);
}

.product-pair-action {
    margin: 24px 0;
}

@media (max-width: 600px) {
    .plant-choice__form {
        flex-direction: column;
        align-items: stretch;
    }
}

.media-scene-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform-origin: 50% 90%;
    transition: transform 3000ms cubic-bezier(.22, .61, .36, 1);
}

.media-scene-canvas[hidden] {
    display: none;
}

.media-standalone-pot .media-scene-canvas {
    object-fit: contain;
    background: #f1eee6;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .media-scene-canvas {
        transition: none;
    }
}

.product-choice-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.product-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    min-height: 48px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 13px;
}

.product-choice[aria-current="page"] {
    border-color: var(--ink,#24372c);
    background: #e7e9df;
}

.product-choice:hover {
    border-color: var(--ink,#24372c);
}

.product-choice:focus-visible {
    border-color: var(--ink,#24372c);
}

.product-choice .product-size-tag {
    font-size: 10px;
    flex-shrink: 0;
}

.product-detail[aria-busy="true"] .detail-copy {
    opacity: .75;
}

@media(max-width:440px) {
    .product-choice-grid {
        grid-template-columns: 1fr;
    }
}
