/* --- public/css/store.css --- */

/* =========================================
   1. IMMERSIVE HERO BANNER
   ========================================= */
.store-hero {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-top: -76px; /* Pulls the image up behind the transparent header */
    padding-top: 76px;
}

/* Updated: Overlay now spans 100% width, alignment moved to hero-container */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.2) 0%, rgba(10, 37, 64, 0.95) 100%);
}

/* New wrapper to keep text aligned with the rest of the page */
.hero-container {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.hero-text-block {
    width: 100%;
    color: #FFFFFF;
}

.store-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.9;
}

.meta-rating {
    color: #FFD700; /* Gold for stars */
}

.meta-divider {
    opacity: 0.5;
}


/* =========================================
   2. TWO-COLUMN LAYOUT
   ========================================= */
.store-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Main, 33% Sidebar */
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 80px;
}


/* =========================================
   3. MAIN CONTENT (Left Column)
   ========================================= */
.store-section {
    margin-bottom: 60px;
}

.section-header {
    border-bottom: 2px solid var(--border-light, #E1E8ED);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: var(--brand-accent);
    color: #FFF;
    font-size: 0.85rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
}

/* Masseur Grid */
.masseur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Updated: Softer shadows and borders */
.masseur-card {
    background: var(--bg-surface, #FFFFFF);
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(225, 232, 237, 0.6); 
}

.masseur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.masseur-photo {
    width: 100%;
    aspect-ratio: 3 / 4; /* Perfect portrait ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.masseur-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFF;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* Updated: Increased padding for breathability */
.masseur-info {
    padding: 16px 20px;
}

.masseur-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Masseur Rating Styles */
.masseur-rating {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.masseur-rating .star-icon {
    color: #FFD700; /* Signature Gold */
    font-size: 0.85rem;
}

.masseur-rating .review-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 2px;
}

/* Updated: Faded stats text to increase contrast with the name */
.stats-text {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Courses List */
.course-list {
    display: flex;
    flex-direction: column;
}

/* Updated: Clean, minimalist menu look */
.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    border-radius: 8px;
    border: none;
    border-bottom: 1px solid rgba(225, 232, 237, 0.5);
    transition: background-color 0.2s ease;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item:hover {
    background-color: #F8FAFC; 
}

.course-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.course-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-accent);
}


/* =========================================
   4. SIDEBAR (Right Column)
   ========================================= */
.store-sidebar {
    position: sticky;
    top: 100px; /* Sticks slightly below the header */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light, #E1E8ED);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

/* Action Buttons */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Updated: Added transparent border default to prevent layout jump */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #FFFFFF;
    border: 2px solid transparent; 
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-contact.line { 
    background: #06C755; 
    border-color: #06C755;
}

.btn-contact.tg { 
    background: #229ED9; 
    border-color: #229ED9;
}

/* Updated: Ghost button for secondary actions */
.btn-contact.web { 
    background: transparent; 
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-contact.web:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
}

/* Text Info Lists */
.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-light, #E1E8ED);
    padding-top: 20px;
}

.contact-details-list li, .hours-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-details-list i, .hours-text i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}


/* =========================================
   5. REVIEWS LIST (Main Column)
   ========================================= */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--bg-surface, #FFFFFF);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-light, #E1E8ED);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.05rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(32, 178, 170, 0.2) 100%);
    color: var(--brand-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.review-rating {
    color: #FFD700; /* Gold */
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}


/* =========================================
   6. MOBILE RESPONSIVENESS (Max 992px)
   ========================================= */
/* Break to single column earlier for better tablet viewing */
@media (max-width: 992px) {
    .store-layout {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
        gap: 32px;
        padding-top: 40px;
    }

    .store-sidebar {
        position: static; /* Disable sticky on mobile */
    }
}

@media (max-width: 768px) {
    .store-hero {
        height: 300px; /* Shorter hero on mobile */
        margin-top: 0; 
        padding-top: 0;
    }

    .store-title {
        font-size: 2.2rem;
    }

    .masseur-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on phones */
        gap: 12px;
    }

    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .course-price {
        align-self: flex-end; /* Push price to bottom right on mobile */
    }
    
    .review-item {
        padding: 16px; /* Slightly tighter padding on phones */
    }
}