:root {
    --primary: #ff4d6d;
    --primary-dark: #e63958;
    --primary-light: #fff0f3;
    --bg-light: #f8f9fa;
    --text-main: #2d2d2d;
    --text-muted: #5f5f5f;
    --text-danger: #b80022;
    --text-link: #0084b8;
    --border: #e5e5e5;
    --border-light: #eee;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    font-family: 'Sahel', system-ui, -apple-system, sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    background: var(--white);
    min-height: 100vh;
}

/* ── Header ── */
.header {
    padding: .6rem 2.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: #323232;
    color: white;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h1 {
    font-size: 1rem;
    font-weight: 600;
}

.header a {
    color: white;
    text-decoration: none;
    font-size: .9em;
}

/* ── Banner & Profile Picture ── */
.banner-container,
.main-container {
    position: relative;
    padding: 1.5rem 2.5rem 4.5rem;
}

.banner {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic {
    position: absolute;
    bottom: 0;
    right: 80px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Main Layout ── */
.content-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    padding: 40px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        padding: 60px 24px 32px;
    }

    .profile-pic {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 640px) {
    .banner-container {
        padding: 1rem 1.2rem 5rem;
    }

    .banner {
        height: 180px;
    }

    .profile-pic {
        width: 90px;
        height: 90px;
        bottom: 20px;
    }

    .content-grid {
        padding: 10px 16px 24px;
        gap: 32px;
    }
}

/* ── Info Panel (Left Sidebar) ── */
.info-panel {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
}

.info-panel h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.info-panel .short-desc {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

.contact-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.9rem;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-list li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.btn-message {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin: 1rem 0;
}

.btn-message:hover {
    background: var(--primary-dark);
}

.section-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 1.8rem 0 0.9rem;
}

.separate-line {
    height: 1px;
    background: var(--border);
    margin: 1.8rem 0;
}

.social-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
}

.social-icons a:hover img {
    transform: scale(1.15);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 28px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.tab:hover,
.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Section Styles ── */
.section {
    margin-bottom: 3rem;
}

.section h3 {
    font-size: 1.17em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.description {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.empty-text {
    color: #a0a0a0;
    font-style: italic;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.tag svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    stroke: var(--primary);
}

/* ── Events & Products Grid ── */
.events-header,
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.events-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-img {
    height: 170px;
    background: #f0f0f0;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-body {
    padding: 1.3rem;
}

.event-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.event-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-meta span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.event-meta i {
    color: var(--primary);
    margin-left: 6px;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-img-wrapper {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.btn-view {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}

.empty-gallery {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed var(--primary-light);
}

.empty-icon {
    color: #aaa;
    margin-bottom: 1.5rem;
}

/* ── Description Wrapper ── */
.description-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .description-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

/* ── Memorandum Cards ── */
.memorandum-card {
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.memorandum-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.memorandum-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* ── Modals & Overlays ── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dark-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.dark-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 500px;
    display: none;
    z-index: 1000;
}

.modal.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.memorandum-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    resize: vertical;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 10px;
}

.memorandum-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.close-modal {
    position: absolute;
    top: 12px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-description {
    margin: 1rem 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-parties {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

/* ── Comments ── */
.new-comment {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed var(--primary-light);
    margin-top: 2rem;
}

.new-comment label {
    display: inline-flex;
    margin-bottom: 10px;
    font-weight: 600;
}

.comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid var(--border-light);
}

.comment .comment-logo {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-header .user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment .comment-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    margin-top: 10px;
    color: var(--text-main);
    line-height: 1.6;
}

.comment-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: center;
}

.comment-date {
    color: var(--text-muted);
    font-size: .8em;
}

.report-spam {
    font-size: .8em;
    color: var(--text-danger);
    background: none;
    border: none;
    cursor: pointer;
}

.reply-button {
    font-size: .85em;
    color: var(--text-link);
    background: none;
    border: none;
    cursor: pointer;
}

.reply-comment {
    scroll-margin-bottom: 300px;
    padding: 10px;
    font-size: .9em;
    color: #555;
    border-radius: 10px;
    background-color: #ffffff;
    margin: 10px 0;
    border-right: 3px solid var(--primary);
}

.reply-user {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.like-button {
    font-size: .8em;
    color: var(--text-link);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Best Products Grid ── */
.best-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: var(--white);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 1rem;
}

.product-card-actions {
    padding: 0 1rem 1rem;
}

.show-product-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.25s ease;
    font-size: 0.9rem;
}

.show-product-button:hover {
    background: var(--primary-dark);
}

.product-card .product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.product-original-price {
    color: var(--text-main);
    font-weight: 600;
}

.product-original-price.strike {
    color: #bbb;
    font-size: .85em;
    text-decoration: line-through;
}

.product-discounted-price {
    color: var(--text-danger);
    font-weight: 700;
}

/* ── Laravel Pagination ── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: inline-flex;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.85rem;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled span {
    color: var(--text-muted);
    background: #f5f5f5;
    border-color: var(--border-light);
    cursor: not-allowed;
}