.modal { position: fixed; inset: 0; z-index: 1000; background: #ffffff !important; display: flex; flex-direction: column; visibility: hidden; width: 100vw; overflow-y: auto; opacity: 0; transition: opacity 0.3s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__dialog { position: relative; width: 100%; min-height: calc(100vh + 100px); display: flex; flex-direction: column; background: #ffffff !important; }
.modal__header { flex-shrink: 0; position: sticky; top: 0; z-index: 50; width: 100%; background: #ffffff !important; border-bottom: 1px solid var(--color-border); }
.modal__close-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-bg-soft); border-radius: 50%; color: #000000; cursor: pointer; border: none; margin-left: 16px; flex-shrink: 0; }
.modal__content { max-width: 1200px; margin: 0 auto; width: 100%; padding: 40px 20px; display: block; flex-grow: 1; }
.modal__content--hidden { display: none; }
.modal__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; width: 100%; }
.modal__gallery { position: relative; display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
.modal__slider-wrap { width: 100%; background: var(--color-bg-soft); border-radius: 16px; overflow: hidden; display: flex; align-items: center; }
.modal__slider { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.modal__slider::-webkit-scrollbar { display: none; }
.modal__slide { flex: 0 0 100%; width: 100%; height: 400px; object-fit: contain; scroll-snap-align: start; padding: 20px; }
.modal__arrow { position: absolute; top: 200px; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--color-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 10; cursor: pointer; border: none; }
.modal__arrow--prev { left: 10px; }
.modal__arrow--next { right: 10px; }
.modal__thumbs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; min-height: 80px; }
.modal__thumb { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 12px; background: var(--color-bg-soft); border: 2px solid transparent; padding: 8px; cursor: pointer; object-fit: contain; transition: border-color 0.2s; }
.modal__thumbs::-webkit-scrollbar { display: none; }
.modal__thumb.is-active { border-color: var(--color-accent); }
.modal__info { display: flex; flex-direction: column; padding-top: 10px; width: 100%; min-width: 0; }
.modal__title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; color: #000000; }
.modal__sku { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.modal__price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.modal__price { font-size: 32px; font-weight: 800; color: #000000; }
.modal__stock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: transparent; border: 2px solid #d1d5db; border-radius: 8px; font-size: 15px; font-weight: 600; color: #000000; cursor: pointer; margin-bottom: 32px; align-self: flex-start; transition: border-color 0.2s; }
.modal__stock-btn:hover { border-color: #000000; }
.modal__stock-dot { width: 8px; height: 8px; background: #1f8f4e; border-radius: 50%; }
.accordion { border-top: 1px solid var(--color-border); width: 100%; }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 16px; font-weight: 500; color: #000000; cursor: pointer; background: none; border: none; text-align: left; }
.accordion__icon { display: flex; transition: transform 0.3s ease; }
.accordion__item.is-active .accordion__icon { transform: rotate(45deg); }
.accordion__content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--color-muted); font-size: 15px; line-height: 1.6; }
.accordion__content p { padding-bottom: 20px; }
.char-list { padding-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.char-list__item { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--color-border); padding-bottom: 8px; }
.modal__map-header { margin-bottom: 24px; text-align: center; }
.modal__map-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--color-muted); margin-bottom: 24px; cursor: pointer; background: var(--color-bg-soft); padding: 10px 20px; border-radius: 100px; border: none; }
.modal__map-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; color: #000000; }
.modal__map-address { font-size: 18px; color: var(--color-muted); margin-bottom: 32px; }
.modal__map-wrapper { width: 100%; min-height: 500px; height: 60vh; border-radius: 16px; overflow: hidden; background: var(--color-bg-soft); position: relative; }
.modal__map-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.modal__footer { flex-shrink: 0; margin-top: auto; width: 100%; padding-bottom: 20px; }
.fullscreen-img-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #ffffff !important; z-index: 99999; display: none; align-items: center; justify-content: center; touch-action: none; }
.fullscreen-img-modal.is-open { display: flex; }
.fullscreen-img-modal__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.fullscreen-img-modal__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 40px; color: #000000; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 100000; }
.fullscreen-img-modal__arrow--prev { left: 20px; }
.fullscreen-img-modal__arrow--next { right: 20px; }