/* product.css — Pagina produs: galerie, info, modul rezervare + calendar, tab-uri */
.product { display: grid; gap: var(--s6); margin-bottom: var(--s8); }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s10); align-items: start; } .product__side { position: sticky; top: 100px; } }
.product__main { min-width: 0; }
@media (max-width: 899px) { .product__main { display: contents; } .product__gallery { order: 1; } .product__side { order: 2; } .product__section { order: 3; margin-top: var(--s5); } }
.product__section { margin-top: var(--s8); }
.product__section h2 { font-size: 1.15rem; margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 2px solid var(--primary); display: inline-block; }
.product__section.faq details { margin-bottom: var(--s2); }
.product__section.faq summary { font-size: 1rem; }
.gallery__main { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery__zoom { position: absolute; right: var(--s3); bottom: var(--s3); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery__thumbs { display: flex; gap: var(--s2); margin-top: var(--s2); overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--primary); }
.lightbox { padding: var(--s3); background: #191919; max-width: 96vw; text-align: center; }
.lightbox img { max-height: 85vh; width: auto; margin: 0 auto; }
.lightbox .modal__close { position: absolute; top: var(--s2); right: var(--s2); }

/* Card rezervare (dreapta) */
.buy .card__body { padding: var(--s5); }
.product__brand { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--text-3); }
.product__title { font-size: 1.3rem; margin: 2px 0 var(--s2); line-height: 1.25; }
.product__codes { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-bottom: var(--s3); }
.product__codes .code { font-family: var(--mono); font-size: .78rem; color: var(--text-2); background: var(--surface-2); padding: 2px 7px; border-radius: 3px; cursor: copy; }
.product__codes .code:hover { background: var(--border); }
.product__codes-more { flex-basis: 100%; }
.product__codes-more .product__codes { margin: var(--s1) 0 0; }
.product__codes-more summary { font-size: .78rem; font-weight: 600; color: var(--primary); cursor: pointer; padding: 2px 4px; list-style: none; }
.product__codes-more summary::-webkit-details-marker { display: none; }
.product__short { font-size: .92rem; color: var(--text-2); margin-bottom: var(--s2); }
.product__compat-short { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); font-size: .88rem; color: var(--text-2); margin-bottom: var(--s4); }
.product__compat-short svg { width: 18px; height: 18px; color: var(--text); }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: var(--s4); }
.buy__price .price-big { font-size: 1.7rem; }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.buy__row .field__label { margin: 0; }
.buy .stepper__btn { width: 40px; height: 40px; }
.buy .stepper__value { min-width: 52px; height: 40px; }
.buy__trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); font-size: .8rem; color: var(--text-2); align-items: center; }
.buy__trust svg { width: 16px; height: 16px; color: var(--success); }

/* Booking */
.booking__title { font-size: 1.2rem; display: flex; align-items: center; gap: var(--s2); }
.booking__title svg { width: 22px; height: 22px; color: var(--primary); }
.booking__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s3); margin-bottom: var(--s3); }
.booking__legend { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .75rem; color: var(--text-2); }
.legend::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--border-strong); }
.legend--free::before { background: var(--success-soft); border-color: var(--success); } .legend--busy::before { background: #E5E7EB; } .legend--sel::before { background: var(--primary); border-color: var(--primary); }
.legend--buffer::before { background: repeating-linear-gradient(45deg, #FDE68A 0 3px, #fff 3px 6px); border-color: var(--accent); }
.booking__summary { background: var(--surface-2); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.summary__line { display: flex; justify-content: space-between; gap: var(--s3); padding: 3px 0; font-size: .9rem; }
.summary__line--total { border-top: 1px solid var(--border); margin-top: var(--s2); padding-top: var(--s2); font-size: 1.1rem; }
.booking__actions { display: grid; gap: var(--s2); margin-top: var(--s3); }

/* Calendar */
.calendar { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .calendar { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.calendar--single { grid-template-columns: 1fr; }
.calendar--single .cal { padding: var(--s2) var(--s1); border: 0; background: transparent; }
.calendar--single .cal__day { aspect-ratio: auto; height: 36px; min-height: 0; font-size: .88rem; }
.calendar--single .cal__grid { gap: 3px; }
.calendar--single .cal__dow { padding: 2px 0; }
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); }
.cal__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; padding: var(--s1) var(--s2) var(--s2); }
.cal__nav { width: 36px; height: 36px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav:disabled { opacity: .3; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .7rem; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 4px 0; }
.cal__day { aspect-ratio: 1; min-height: 34px; border: 0; border-radius: 6px; font-size: .9rem; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; background: transparent; color: var(--text); cursor: pointer; }
.cal__day:hover:not(:disabled) { outline: 2px solid var(--primary); }
.cal__day--free { background: var(--success-soft); color: #14532D; }
.cal__day--busy { background: #E5E7EB; color: #9CA3AF; text-decoration: line-through; cursor: not-allowed; }
.cal__day--past { background: transparent; color: #C4C9D1; cursor: not-allowed; }
.cal__day--nofit { background: #F3F4F6; color: #9CA3AF; cursor: not-allowed; }
.cal__day--sel { background: var(--primary); color: #fff; }
.cal__day--range { background: var(--text); color: #fff; }
.cal__day--buffer { background: repeating-linear-gradient(45deg, #FDE68A 0 3px, #FFFBEB 3px 6px); color: var(--accent-text); }
.cal__day--today::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cal__day--empty { visibility: hidden; }

/* Tabs produs */
.contents-list { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) { .contents-list { columns: 2; gap: var(--s6); } }
.contents-list li { display: flex; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.contents-list svg { width: 20px; height: 20px; color: var(--success); flex: none; }
