.store-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.store-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 15, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.store-nav__back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-nav__back:hover {
    color: var(--accent);
}

.store-nav__logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.store-nav__logo span {
    color: var(--accent);
}

/* Hero */
.store-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.store-hero__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 18, 0.95) 0%, rgba(15, 15, 18, 0.4) 50%, rgba(15, 15, 18, 0.2) 100%);
}

.store-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-hero__logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 3px solid var(--bg-primary);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.store-hero__info h1 {
    font-size: 1.75rem;
    margin: 0 0 6px;
}

.store-hero__category {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    margin-bottom: 10px;
}

.store-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.store-hero__rating {
    color: #fbbf24;
}

.store-hero__rating i {
    margin-right: 4px;
}

/* Layout */
.store-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.store-card {
    background: rgba(31, 31, 35, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.store-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.store-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.15rem;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.store-social__link:hover {
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent);
    transform: translateY(-2px);
}

.store-card h2 {
    font-size: 1.15rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-card h2 i {
    color: var(--accent);
}

.store-card__hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: -8px 0 20px;
}

.store-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.store-card__header h2 {
    margin: 0;
}

.store-card__badge {
    background: var(--border-color);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.store-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-details li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-details i {
    color: var(--accent);
    width: 18px;
}

.store-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.store-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.store-alert--success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.store-alert--error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.store-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 24px;
}

.store-booking-blocked {
    text-align: center;
    padding: 28px 20px;
    border: 1px dashed rgba(212, 165, 116, 0.4);
    border-radius: var(--radius-md);
    background: rgba(212, 165, 116, 0.08);
}

.store-booking-blocked__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.store-booking-blocked p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.95rem;
}

.store-booking-guest.buni-panel {
    margin-top: 4px;
}

.store-sidebar__guest-cta.buni-panel {
    margin-bottom: 0;
}

.store-sidebar__guest-cta .buni-panel__text {
    margin-bottom: 14px;
    font-size: 0.86rem;
}

/* Sidebar actions */
.store-sidebar__card {
    background: rgba(31, 31, 35, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.store-sidebar__card h3 {
    font-size: 0.95rem;
    margin: 0 0 14px;
    color: var(--text-secondary);
}

.store-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 10px;
}

.store-action-btn:last-child {
    margin-bottom: 0;
}

.store-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.store-action-btn--active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.store-action-btn--favorite.store-action-btn--active {
    background: rgba(239, 68, 68, 0.12);
    border-color: #f87171;
    color: #f87171;
}

.store-services-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-services-mini li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.store-services-mini li:last-child {
    border-bottom: none;
}

.store-services-mini span {
    color: var(--accent);
    white-space: nowrap;
}

/* Booking */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-field__hint {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, var(--text-secondary));
    opacity: 0.85;
}

.booking-calendar {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.booking-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.booking-calendar__nav span {
    font-weight: 600;
    text-transform: capitalize;
}

.booking-calendar__btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
}

.booking-calendar__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.booking-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: default;
}

.cal-day--empty {
    visibility: hidden;
}

.cal-day--disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cal-day--available {
    cursor: pointer;
    color: var(--text-primary);
}

.cal-day--available:hover {
    background: rgba(99, 102, 241, 0.2);
}

.cal-day--selected {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.cal-day--today {
    border: 1px solid var(--accent);
}

.booking-slots {
    min-height: 44px;
}

.booking-slots-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.booking-slots-group__label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.5rem;
}

.booking-slots__placeholder,
.booking-slots__loading,
.booking-slots__closed {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 100%;
}

.booking-slot {
    min-width: 0;
    padding: 0.65rem 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.booking-slot:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.booking-slot--selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (max-width: 480px) {
    .booking-slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.booking-employees {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.booking-employees__placeholder,
.booking-employees__loading,
.booking-employees__closed {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.booking-employees__closed {
    color: #f87171;
}

.booking-employee {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.booking-employee:hover {
    border-color: rgba(212, 165, 116, 0.45);
    background: rgba(212, 165, 116, 0.08);
}

.booking-employee--selected {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.12);
    box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.25);
}

.booking-employee__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.booking-employee__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.booking-employee__info strong {
    font-size: 0.95rem;
}

.booking-employee__info em {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.booking-employee__rating {
    font-size: 0.8rem;
    color: var(--accent);
}

.booking-employee__rating i {
    margin-right: 0.2rem;
}

.booking-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reviews */
.store-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-review {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition), background var(--transition);
}

.store-review:has(.store-review__author:hover),
.store-review:has(.store-review__name:hover) {
    border-color: rgba(212, 165, 116, 0.25);
    background: rgba(212, 165, 116, 0.04);
}

.store-review__body {
    flex: 1;
    min-width: 0;
}

.store-review__author {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 2px;
    border-radius: 50%;
    background: transparent;
    line-height: 0;
    transition: background 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.store-review__author:hover {
    background: var(--accent);
    transform: scale(1.04);
}

.store-review__author .store-review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Avatar sin enlace (mismo tamaño que el enlace circular) */
.store-review > .store-review__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.store-review__name {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.store-review__name:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-review__header strong {
    font-size: 0.95rem;
}

.store-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.store-review__stars {
    color: #fbbf24;
    font-size: 0.85rem;
}

.store-review__stars--empty {
    color: var(--border-color);
}

.store-review__comment {
    margin: 0 0 8px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.store-review__date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.store-reviews-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.store-reviews-loader[hidden] {
    display: none !important;
}

.store-reviews-loader__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: store-spin 0.7s linear infinite;
}

@keyframes store-spin {
    to { transform: rotate(360deg); }
}

.store-reviews-end {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 16px;
}

.store-reviews-end[hidden] {
    display: none !important;
}

/* Galería de publicaciones */
.store-card--posts {
    border-color: rgba(212, 165, 116, 0.22);
    background: linear-gradient(165deg, rgba(31, 31, 35, 0.98) 0%, rgba(24, 22, 20, 0.95) 100%);
}

.store-card__badge--accent {
    background: rgba(212, 165, 116, 0.18);
    color: var(--accent);
    border: 1px solid rgba(212, 165, 116, 0.35);
}

.store-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.store-post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-post-card__frame {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.store-post-card:hover .store-post-card__frame {
    border-color: rgba(212, 165, 116, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 165, 116, 0.12);
    transform: translateY(-2px);
}

.store-post-card__trigger {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    aspect-ratio: 1;
    width: 100%;
}

.store-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.store-post-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(15, 15, 18, 0.55) 0%, rgba(15, 15, 18, 0.1) 55%);
    color: #fff;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.store-post-card__trigger:hover .store-post-card__img {
    transform: scale(1.06);
}

.store-post-card__trigger:hover .store-post-card__overlay {
    opacity: 1;
}

.store-post-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1;
}

.store-post-card__footer {
    padding: 0 2px;
}

.store-post-card__caption {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-post-card__date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.store-post-card__date i {
    color: var(--accent);
    font-size: 0.68rem;
}

.store-post-card__data {
    display: none !important;
}

.store-posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
}

.store-posts-empty__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.12);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.store-posts-empty p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.store-posts-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.store-posts-loader__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: store-spin 0.7s linear infinite;
}

.store-posts-end {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 16px;
}

.store-posts-end[hidden],
.store-posts-loader[hidden] {
    display: none !important;
}

.store-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 8, 10, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    animation: store-lightbox-in 0.2s ease;
}

@keyframes store-lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.store-lightbox[hidden] {
    display: none !important;
}

body.store-lightbox-open {
    overflow: hidden;
}

.store-lightbox__content {
    max-width: min(920px, 100%);
    max-height: 85vh;
    text-align: center;
}

.store-lightbox__img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-lightbox__caption {
    margin: 14px auto 0;
    max-width: 520px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.store-lightbox__close,
.store-lightbox__prev,
.store-lightbox__next {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(31, 31, 35, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.store-lightbox__close:hover,
.store-lightbox__prev:hover,
.store-lightbox__next:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.45);
    color: var(--accent);
}

.store-lightbox__close {
    top: 16px;
    right: 16px;
}

.store-lightbox__prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.store-lightbox__next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.store-lightbox__prev[hidden],
.store-lightbox__next[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        order: -1;
    }

    .store-hero {
        height: 220px;
    }

    .store-hero__logo {
        width: 72px;
        height: 72px;
    }

    .store-hero__info h1 {
        font-size: 1.35rem;
    }
}
