:root {
    --brand-green: #3AFFA5;
    --brand-dark-green: #00B262;
    /* The bright green from icons */
    --brand-dark-blue: #0b1a2d;
    /* Navbar background */
    --brand-teal-dark: #4a8280;
    /* Hero background */
    --brand-text-light: #f8f9fa;
    --brand-text-dark: #212529;
    --brand-text-muted: #6c757d;
    --brand-border-light: #dee2e6;
    --brand-bg-light: #F3F4F8;
}

body {
    /* Use the Vazirmatn font stack */
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #FFFFFF;
    color: var(--brand-text-dark);
}

/* --- Header / Navbar --- */
.main-navbar {
    background-color: var(--brand-dark-blue);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-divider {
    width: 1px;
    height: 32px;
    /* Adjust height based on logo */
    background-color: rgba(255, 255, 255, 0.2);
    /* Faint white line */
    margin: 0 1.5rem;
    /* Space on left and right */
}

.main-navbar .navbar-brand img {
    height: 24px;
    /* Set height for the logo */
    width: auto;
}

.main-navbar .nav-link {
    color: var(--brand-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Space between icon and text */
    font-size: 0.9rem;
}

.main-navbar .nav-link i {
    color: var(--brand-green);
    font-size: 1.25rem;
}

/* Make the bell icon white */
.main-navbar .nav-link i.bi-bell {
    color: var(--brand-text-light);
    font-size: 1.4rem;
    /* Slightly larger */
}

.main-navbar .nav-link:hover i.bi-bell {
    color: var(--brand-green);
    /* Make green on hover */
}

.main-navbar .nav-link:hover {
    color: var(--brand-green);
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--brand-text-light);
    /* White border */
    color: var(--brand-text-light);
    /* White font */
    border-radius: 8px;
    /* Less border radius */
    padding: 0.5rem 1.75rem;
    /* More padding */
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-login:hover {
    background-color: var(--brand-text-light);
    /* White background */
    color: var(--brand-dark-blue);
    /* Dark text */
}

/* --- Search Section --- */
.search-section {
    padding: 3rem 0;
    text-align: center;
}

.search-section h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.search-bar-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.main-search-bar {
    border-radius: 5px;
    /* Fully rounded */
    padding: 1rem 1.5rem;
    padding-right: 4.5rem;
    /* Space for icon on the right */
    padding-left: 3.5rem;
    /* Space for icon on the left */
    border: 1px solid #F3F4F8;
    /* Use bg color for border */
    background-color: #F3F4F8;
    /* Set background color */
    font-size: 0.9rem;
}

.main-search-bar:focus {
    border-color: var(--brand-green);
    box-shadow: 0 4px 15px rgba(31, 224, 162, 0.2);
    outline: none;
}

/* Upload Area */
.upload-area {
    background-color: #E0FFF2;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-area:hover {
    background-color: #d0fbe8;
}

.upload-area.no-bg {
    background-color: transparent !important;
}

.btn-remove-thumb {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.btn-remove-thumb img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.video-thumbnail::after {
    content: "\F4F4";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.upload-area-multiple {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    min-height: 210px;
}

.upload-placeholder {
    width: 100%;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.preview-item {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--brand-border-light);
    background-color: #fff;
    flex: 0 0 auto;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-add-more {
    width: 110px;
    height: 110px;
    border: none;
    border-radius: 10px;
    background-color: #E0FFF2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    transition: background-color 0.2s ease;
    cursor: pointer;
    padding: 10px;
}

.upload-add-more:hover {
    background-color: #d0fbe8;
}

.upload-add-more .upload-icon-circle {
    width: 28px;
    height: 28px;
    margin: 0;
}

.upload-add-more span {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.search-bar-icon-start {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    /* Positioned on the right (start in RTL) */
    transform: translateY(-50%);
    height: 1.5rem;
    /* Set height for the img */
    width: auto;
    /* Maintain aspect ratio */
    /* color property removed as it's an img */
}

.search-bar-icon-end {
    position: absolute;
    background-color: var(--brand-green);
    top: 50%;
    left: 1.5rem;
    /* Positioned on the left (end in RTL) */
    transform: translateY(-50%);
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-section-wrapper {
    position: relative;
    /* Container for absolute positioned content */
    border-radius: 20px;
    overflow: hidden;
    /*background-color: var(--brand-teal-dark); !* Fallback color *!*/
}

.hero-section-wrapper .carousel-item img {
    min-height: 400px;
    /* Ensure it has height */
    object-fit: cover;
    /* Cover the area */
}

.hero-content {
    /* Text is on the right in the image, which is the start in RTL */
    position: absolute;
    top: 50%;
    right: 0;
    /* Positioned to the right (start in RTL) */
    transform: translateY(-50%);
    color: var(--brand-text-light);
    padding: 2rem;
    max-width: 450px;
    z-index: 10;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Custom Carousel dots to match design */
.hero-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-carousel-indicators li {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-indicators li.active {
    background-color: #ffffff;
    width: 24px;
    /* Active one is wider */
    border-radius: 8px;
}

/* Quick Category Buttons (Real Estate & Car) */
.btn-quick-category {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    /* Dark text for contrast against bright green */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    /* Generous padding like the image */
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    gap: 0.75rem;
    /* Space between text and icon */
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
}

.btn-quick-category:hover {
    background-color: #32e091;
    /* Slightly darker green on hover */
    color: var(--brand-dark-blue);
    transform: translateY(-2px);
    /* Subtle lift effect */
}

.quick-category-icon {
    width: 2rem;
    /* Adjust size to match text */
    height: 2rem;
    object-fit: contain;
}

/* --- Special For You Section --- */
.special-section {
    background-color: var(--brand-dark-blue);
    color: var(--brand-text-light);
    padding: 2rem;
    /* Added padding to match screenshot */
    border-radius: 8px;
    margin-top: 1rem;
    /* Adjusted margin */
    margin-bottom: 2.5rem;
}

.special-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.special-section .section-header h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.special-section .view-all-link {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.special-section .view-all-link:hover {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
}

.product-card {
    /*border-radius: 12px;*/
    overflow: hidden;
    color: var(--brand-text-light);
    height: 100%;
    /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.product-card-img-wrapper {
    position: relative;
}

.product-card-img {
    border-radius: 5px;
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.product-card-icons {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
}

.product-card-icon {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    /* width: 32px; REMOVED fixed width */
    height: 32px;
    min-width: 32px;
    /* Ensure it stays square-ish if empty */
    padding: 0 8px;
    /* Add horizontal padding */
    gap: 6px;
    /* Space between icon and text */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    /* Adjust font size for the number */
    text-decoration: none;
}

.product-card-icon:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

/* Remove background/border from bookmark icon */
.product-card-icon-bookmark {
    background-color: transparent;
    border: none;
}

/* Add a hover effect for the bookmark icon */
.product-card-icon-bookmark:hover {
    background-color: transparent;
    color: var(--brand-green);
}

.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    /* Allows body to fill space */
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-card-location {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    /* Pushes location to the bottom */
}

/* --- Most Viewed Section (New) --- */
.most-viewed-section {
    background-color: #ffffff;
    border: 1px solid var(--brand-border-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    position: relative;
    /* For arrows */
}

/* Override product card text color in light section */
.most-viewed-section .product-card {
    color: var(--brand-text-dark);
}

.most-viewed-section .section-header h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.section-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid var(--brand-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-muted);
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.section-nav-btn:hover {
    color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
}

.section-nav-prev {
    left: -4rem;
    /* Outside left */
}

.section-nav-next {
    right: -4rem;
    /* Outside right */
}

/* --- Footer --- */
.main-footer {
    background-color: var(--brand-dark-blue);
    color: #fff;
    padding-top: 4rem;
    font-size: 0.9rem;
}

.main-footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 0.75rem;
    /* Spacing between links */
}

.main-footer a:hover {
    color: var(--brand-green);
}

.footer-logo-text {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #fff;
    font-weight: 300;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.footer-social-icons a {
    font-size: 1.4rem;
    margin-left: 1.25rem;
    /* Space between icons */
    color: var(--brand-green);
}

.footer-social-icons a:last-child {
    margin-left: 0;
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-enamad {
    margin-top: 1rem;
    width: 60px;
    /* Approximate size */
}

.footer-enamad:hover {
    filter: none;
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 4rem;
    color: #7a7a7a;
    font-size: 0.85rem;
}

/* --- Floating Bottom Nav --- */
.bottom-nav-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1050;
    /* Above bootstrap standard components */
    pointer-events: none;
    /* Allows clicking through the empty space around the bar */
}

.bottom-nav-bar {
    background-color: var(--brand-dark-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0.8rem 0.5rem;
    pointer-events: auto;
    /* Re-enable clicks on the bar itself */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
    color: var(--brand-text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.bottom-nav-item:hover {
    background-color: #060B20;
    color: #FFFFFF;
    border-radius: 8px;
}

.bottom-nav-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.2rem;
}

/* The Home Button Styling */
.bottom-nav-home-btn {
    color: var(--brand-green);
    /*border: 2px solid var(--brand-green);*/
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    /* In RTL this adds space to the left of the button if needed, but flex handles order */
    font-size: 1.2rem;
    transition: all 0.3s;
    border-radius: 8px;
}

.bottom-nav-home-btn:hover {
    background-color: #060B20;
    color: #FFFFFF;
    border-radius: 8px;
}

/* Breadcrumb */
.pdp-breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--brand-text-muted);
}

.pdp-breadcrumb a {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pdp-breadcrumb a:hover {
    color: var(--brand-dark-blue);
}

.pdp-breadcrumb .separator {
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

/* Gallery (Left Side Physically) */
.product-gallery-card {
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    /* Keep it in view if description is long */
    top: 20px;
}

.main-product-image {
    width: 100%;
    height: 450px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 12px;
    background-color: #f0f0f0;
    border: 1px solid var(--brand-border-light);
    margin-bottom: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Scrollbar spacing */
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--brand-green);
    opacity: 0.8;
}

/* Product Details (Right Side Physically) */
.product-info-wrapper {
    background-color: #fff;
    border: 1px solid var(--brand-border-light);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Each part of the info card is separated by a divider line */
.product-info-wrapper>.pdp-block {
    margin: 0 0 1.25rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--brand-border-light);
}

.product-info-wrapper>.pdp-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin: 0;
}

.btn-bookmark {
    background: none;
    border: 1px solid var(--brand-border-light);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-text-muted);
    transition: all 0.2s;
}

.btn-bookmark:hover {
    color: var(--brand-green);
    border-color: var(--brand-green);
    background-color: #f8fcfb;
}

.product-owner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    object-fit: cover;
}

.owner-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.owner-info span {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.product-description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.product-actions {
    margin-top: 2rem;
}

.btn-request-exchange {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: background 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-request-exchange:hover {
    background-color: #32e091;
    /* Slightly darker green on hover */
    color: var(--brand-dark-blue);
}

.standard-slider-section {
    border: 0.8px solid #C8CCD4;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
}

.btn-chat {
    background-color: var(--brand-green) !important;
    color: var(--brand-dark-blue) !important;
    border: 1px solid var(--brand-green) !important;
}

.btn-chat:hover {
    background-color: #32e091 !important;
    border-color: #32e091 !important;
    color: var(--brand-dark-blue) !important;
}

.btn-action-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border: 1px solid var(--brand-border-light);
    background-color: #fff;
    color: var(--brand-text-dark);
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-action-outline:hover {
    border-color: var(--brand-dark-blue);
    color: var(--brand-dark-blue);
    background-color: #f9f9fa;
}

/* PDP — design-parity additions (subtitle, profile link, specs, media viewer, report) */
.product-subtitle {
    color: var(--brand-text-muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.product-owner-card .owner-profile-link {
    color: var(--brand-dark-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-owner-card .owner-profile-link:hover {
    color: var(--brand-dark-blue);
}

.pdp-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pdp-specs .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
}

.pdp-specs .spec-item+.spec-item {
    border-right: 1px solid var(--brand-border-light);
}

.pdp-specs .spec-label {
    font-size: 0.78rem;
    color: var(--brand-text-muted);
}

.pdp-specs .spec-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
}

.exchange-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 1rem;
}

/* Main viewer can hold an image OR a video */
.main-media-viewer video.main-product-image {
    object-fit: contain;
    background-color: #000;
}

/* Thumbnails that may wrap an image or a video (with a play badge) */
.gallery-thumb-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumb-wrap img,
.gallery-thumb-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-wrap:hover,
.gallery-thumb-wrap.active {
    border-color: var(--brand-green);
}

.gallery-thumb-wrap .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.6rem;
}

.pdp-report {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-report {
    color: var(--brand-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.btn-report:hover {
    color: #dc3545;
}

@media (max-width: 575.98px) {
    .pdp-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pdp-specs .spec-item+.spec-item {
        border-right: none;
    }
}

/* Clickable selected image -> lightbox preview */
#pdpMainViewer img {
    cursor: zoom-in;
}

.pdp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1080;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.pdp-lightbox.open {
    display: flex;
}

.pdp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.pdp-lightbox-close {
    position: absolute;
    top: 18px;
    left: 28px;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

/* Inline SVG icons beside their labels */
.btn-bookmark img {
    width: 22px;
    height: 22px;
}

.owner-profile-link img {
    width: 16px;
    height: 16px;
}

.btn-report img {
    width: 18px;
    height: 18px;
}

/* Horizontal Scroll Container (Slider) */
.scrolling-wrapper-flexbox {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    /* Hide scrollbar for cleaner look, but allow functionality */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.scrolling-wrapper-flexbox::-webkit-scrollbar {
    height: 6px;
}

.scrolling-wrapper-flexbox::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.slider-card {
    flex: 0 0 auto;
    width: 260px;
    /* Fixed width for slider items */
    scroll-snap-align: start;
    border: 1px solid var(--brand-border-light);
    border-radius: 12px;
}


/* --- Add Product Page Styles --- */

/* Custom Tabs (Top of page) */
.custom-tab-container {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0px;
}

.custom-tab-link {
    text-decoration: none;
    color: var(--brand-text-muted);
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.custom-tab-link:hover {
    color: var(--brand-dark-blue);
}

.custom-tab-link.active {
    color: var(--brand-green);
    border-bottom: 2px solid var(--brand-green);
    font-weight: 700;
}

/* Custom Form Inputs */
.form-control-custom,
.form-select.form-control-custom,
.form-control-custom-group {
    background-color: #F3F4F8;
    /* Light Gray Background */
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--brand-text-dark);
}

.form-control-custom:focus,
.form-select.form-control-custom:focus {
    background-color: #fff;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(58, 255, 165, 0.1);
}

/* Input Group adjustment for Price (Rial text) */
.form-control-custom-group {
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.form-control-custom-group input {
    background-color: transparent;
    box-shadow: none !important;
    /* Remove focus shadow from inner input */
}

/* Ensure the input group focus style applies to the wrapper */
.form-control-custom-group:focus-within {
    background-color: #fff;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(58, 255, 165, 0.1);
}

/* Labels */
.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.text-danger {
    color: #ff4d4d !important;
    margin-right: 4px;
}

/* Custom Checkbox */
.custom-checkbox:checked {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

/*!* Upload Area *!*/
/*.upload-area {*/
/*    background-color: #E0FFF2; !* Very light green matching image *!*/
/*    border-radius: 8px;*/
/*    height: 200px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    cursor: pointer;*/
/*    transition: background 0.3s;*/
/*}*/

/*.upload-area:hover {*/
/*    background-color: #d0fbe8;*/
/*}*/

.upload-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #4a8280;
}

.custom-card {
    border: 0.8px solid #C8CCD4 !important;
    /* Explicit border per request */
    box-shadow: none !important;
    /* Remove any shadow */
    border-radius: 8px;
    /* Match the inputs rounded corner if desired, or use default */
    background-color: #fff;
}

/* --- Profile Page Styles --- */

/* Sidebar User Info */
.profile-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-avatar-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #E0E0E0;
    /* Placeholder color */
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-user-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-dark-blue);
}

.profile-user-info span {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.btn-profile-edit {
    color: var(--brand-green);
    font-size: 1.2rem;
    text-decoration: none;
}

/* Sidebar Menu */
.profile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu-item {
    margin-bottom: 0.5rem;
}

.profile-menu-link {
    display: block;
    padding: 0.6rem 0.5rem;
    color: var(--brand-text-muted);
    /* Gray text */
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    /* RTL Border */
}

.profile-menu-link:hover {
    color: var(--brand-dark-blue);
    background-color: #f9f9fa;
}

/* Active State (Bold text) */
.profile-menu-link.active {
    font-weight: 700;
    color: var(--brand-dark-blue);
}

.profile-logout-link {
    display: block;
    margin-top: 1rem;
    padding: 0.6rem 0.5rem;
    color: #dc3545;
    /* Bootstrap danger color */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-logout-link:hover {
    color: #bb2d3b;
}

/* Business Promo Box */
.business-promo-box {
    background-color: #060B20;
    /* Dark Blue from request */
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
    margin-top: 1.5rem;
}

.business-icon-wrapper {
    margin-bottom: 1rem;
    display: inline-block;
}

.business-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--brand-green);
}

.business-promo-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.btn-create-business {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.btn-create-business:hover {
    background-color: #32e091;
}

/* Performance Stats (Left Top) */
.stat-box {
    border: 1px solid var(--brand-border-light);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
}

/* Last Views Grid (Left Bottom) */
/* We reuse .product-card from previous css, but adjust grid gap */
.profile-products-grid {
    margin-top: 1.5rem;
}

/* --- Authentication Page Specifics --- */

/* The Confirm Button (Green) */
.btn-confirm-identity {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-confirm-identity:hover {
    background-color: #32e091;
    /* Slightly darker/richer green */
    color: var(--brand-dark-blue);
}

/* Specific styling for the read-only mobile input to match the image */
.input-mobile-disabled {
    background-color: #F3F4F8;
    /* Light gray background */
    color: #a0a0a0;
    /* Muted text color */
    direction: ltr;
    /* Phone numbers read better LTR */
    text-align: left;
    /* Align number to the left */
    cursor: not-allowed;
}

/* Adjusting the card padding for the auth section to look spacious */
.auth-card-content {
    padding: 3rem 2rem;
}

/* --- Asset List Specific Styles --- */

/* Specific border color requested */
.asset-item-card {
    border: 0.8px solid #C8CCD4;
    border-radius: 8px;
    padding: 1.25rem;
    background-color: #fff;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

/* Flex container for the asset row */
.asset-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Image styling */
.asset-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* Status Text Color #E36414 */
.text-status-orange {
    color: #E36414;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Delete Button Specifics: BG #FFF1F2, Text #FF384F */
.btn-soft-danger {
    background-color: #FFF1F2;
    color: #FF384F;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-soft-danger:hover {
    background-color: #ffe0e3;
    color: #d62c41;
}

/* Edit Button (Outline Gray) */
.btn-outline-gray {
    background-color: transparent;
    border: 1px solid #C8CCD4;
    color: var(--brand-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline-gray:hover {
    border-color: var(--brand-dark-blue);
    color: var(--brand-dark-blue);
}

/* "Register as Ad" Green Button */
.btn-register-ad {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-register-ad:hover {
    background-color: #32e091;
}

/* Container for the thumbnail and the close button */
.preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

/* The red close button */
.btn-remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #fff;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.btn-remove-file:hover {
    background-color: #ff0000;
}

/* Header "Add Asset" Button */
.btn-add-asset {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Meta data (Date/Views) */
.asset-meta {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.asset-meta i {
    font-size: 0.9rem;
    margin-left: 4px;
}


/* --- My Ads Page Specifics --- */

/* The Green "New Ad" Button */
.btn-new-ad {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-new-ad:hover {
    background-color: #32e091;
    color: var(--brand-dark-blue);
}

/* Tabs container */
.ads-tabs-container {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    /* Handle overflow on mobile */
    white-space: nowrap;
}

/* Tab Links */
.ads-tab-link {
    text-decoration: none;
    color: var(--brand-text-muted);
    padding-bottom: 0.75rem;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
    /* Pull down to overlap border */
}

.ads-tab-link:hover {
    color: var(--brand-dark-blue);
}

.ads-tab-link.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
    font-weight: 700;
}

/* Individual Ad Card in List */
.ad-item-card {
    padding: 1.5rem 0;
    border-bottom: 0.8px solid #C8CCD4;
    /* Specified Border */
}

.ad-item-card:last-child {
    border-bottom: none;
}

/* Ad Image Wrapper */
.ad-item-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.ad-item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Text */
.ad-status {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Meta Data (Date, Views) */
.ad-meta-info {
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
}

/* Edit Button (Gray Outline) */
.btn-action-edit {
    border: 1px solid #C8CCD4;
    color: var(--brand-text-dark);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background-color: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-action-edit:hover {
    border-color: var(--brand-dark-blue);
    background-color: #f9f9f9;
}

/* Delete Button (Specific Red) */
.btn-action-delete {
    background-color: #FFF1F2;
    /* Requested BG */
    color: #FF384F;
    /* Requested Text */
    border: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.btn-action-delete:hover {
    background-color: #ffe0e3;
    color: #d62c41;
}


/* --- Bookmarks Page Specifics --- */

/* The specific card style for the bookmarks grid */
.bookmark-item-card {
    border: 0.8px solid #C8CCD4;
    /* Specified Border */
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    /* For positioning the bookmark icon */
    background-color: #fff;
    transition: box-shadow 0.2s;
    height: 100%;
}

.bookmark-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bookmark-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.bookmark-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90px;
    /* Match image height to distribute text evenly */
    width: 100%;
}

.bookmark-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-text-dark);
    margin-bottom: 0.25rem;
}

.bookmark-price {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
}

.bookmark-status {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-green);
    /* Using brand green for "Sold/Available" status look */
}

/* The bookmark icon positioned at bottom-left (end in LTR, but physically left) */
.bookmark-action-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    /* Physically left */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.bookmark-action-btn img {
    width: 18px;
    /* Adjust size to match design */
    height: auto;
    filter: invert(48%) sepia(66%) saturate(459%) hue-rotate(113deg) brightness(92%) contrast(89%);
    /* The filter approximates the #3AFFA5 green color on the SVG if it's black by default,
       or you can rely on the SVG's native color */
}



/* --- Recent Visits Page Specifics --- */

.recent-visit-card {
    position: relative;
    border: 0.8px solid #C8CCD4;
    /* Requested border */
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    min-height: 120px;
    /* Ensure consistent height */
    transition: all 0.2s ease;
}

.recent-visit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Image Wrapper (Left side in visual card) */
.visit-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1rem;
    /* Space between image and text in RTL */
}

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

/* Text Info */
.visit-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* In RTL, text aligns right by default, which matches the image */
}

.visit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-text-dark);
    margin-bottom: 0.5rem;
}

.visit-price {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
}

/* Delete Button */
.btn-delete-visit {
    position: absolute;
    bottom: 10px;
    left: 10px;
    /* Physically left (End in RTL context if absolute, but left works for physical positioning) */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-delete-visit:hover {
    opacity: 1;
}

.btn-delete-visit img {
    width: 18px;
    height: 18px;
    /* Optional: If your SVG is black and needs to be red like the image, use this filter.
       If the SVG is already red, remove the filter line. */
    filter: invert(38%) sepia(91%) saturate(3369%) hue-rotate(334deg) brightness(102%) contrast(101%);
}


/* --- Newsletter Page Specifics --- */

/* Individual News Card */
.newsletter-card {
    background-color: #ffffff;
    border: 0.8px solid #C8CCD4;
    /* Requested border */
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.newsletter-card:hover {
    border-color: var(--brand-dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Content Side (Right side in RTL) */
.newsletter-content {
    flex-grow: 1;
}

.newsletter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-text-dark);
    margin: 0;
}

.newsletter-date {
    font-size: 0.8rem;
    color: var(--brand-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #F3F4F8;
    padding: 4px 10px;
    border-radius: 4px;
}

.newsletter-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin: 0;
}

/* Image Side (Left side in RTL) */
.newsletter-img-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

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


/* --- Fraud Page Specifics --- */

.fraud-description-text {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.fraud-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.fraud-list li {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    margin-bottom: 0.25rem;
    position: relative;
    padding-right: 10px;
    /* Space for the dash */
}

.fraud-list li::before {
    content: "-";
    position: absolute;
    right: 0;
    color: var(--brand-text-muted);
}

.btn-submit-report {
    background-color: var(--brand-green);
    color: var(--brand-dark-blue);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-submit-report:hover {
    background-color: #32e091;
    color: var(--brand-dark-blue);
}

/* --- Rules & Terms Page Specifics --- */

.rules-date {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.rule-group {
    margin-bottom: 1.5rem;
}

.rule-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-text-dark);
}

.rule-list {
    list-style-type: none;
    /* Remove default bullets */
    padding-right: 0.5rem;
    /* Slight indent in RTL */
    margin-bottom: 0;
}

.rule-list li {
    font-size: 0.95rem;
    color: #555;
    /* Slightly lighter than pure black */
    margin-bottom: 0.35rem;
    position: relative;
    padding-right: 15px;
    /* Space for custom bullet */
    line-height: 1.7;
}

/* Custom bullet point */
.rule-list li::before {
    content: "•";
    color: var(--brand-text-muted);
    font-weight: bold;
    position: absolute;
    right: 0;
    /* Position start in RTL */
    top: 0;
}

/* --- About Tahator Page Specifics --- */

.about-content-text {
    font-size: 0.95rem;
    /* Slightly smaller than body text */
    color: #555;
    /* Muted dark gray */
    line-height: 2.1;
    /* Tall line height for readability */
    text-align: justify;
    /* Clean edges */
}

/* Ensure bold spans stand out slightly within the muted text */
.about-content-text .fw-bold {
    color: var(--brand-text-dark) !important;
    display: inline-block;
    /* Helps with spacing */
    margin-bottom: 4px;
    /* Slight space before the paragraph text starts */
}

/* --- Business Page Specifics --- */

/* Card Container */
.business-card {
    border: 0.8px solid #C8CCD4;
    /* Requested specific border */
    border-radius: 16px;
    padding: 1.5rem;
    background-color: #ffffff;
    text-align: center;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Avatar */
.business-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

/* Name & Category */
.business-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 0.5rem;
}

.business-category {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
}

/* Biography */
.business-bio {
    font-size: 0.8rem;
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes content down to align buttons */
}

.business-bio strong {
    display: block;
    color: var(--brand-dark-blue);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Stats Row (Rating & Location) */
.business-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.business-stat-box {
    background-color: #F3F4F8;
    /* Light gray bg */
    border-radius: 8px;
    padding: 0.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* View Profile Button */
.btn-view-profile {
    background-color: var(--brand-green);
    /* Requested color */
    color: var(--brand-dark-blue);
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s;
}

.btn-view-profile:hover {
    background-color: #32e091;
    /* Slightly darker green on hover */
    color: var(--brand-dark-blue);
}

/* --- Chat Page Specifics --- */

/* Wrapper to control height on desktop */
.chat-layout-wrapper {
    /* Adjust height to fit between header and footer */
    height: calc(100vh - 160px);
    min-height: 500px;
    overflow: hidden;
    /* Prevents the whole section from growing */
}

/* Common Card Styling for Chat */
.chat-list-card,
.chat-detail-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;

    /* Flex setup */
    display: flex;
    flex-direction: column;

    /* Strict height enforcement */
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* --- Right Side: Chat List --- */

/* Tabs */
.chat-tabs {
    padding: 0 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.chat-tabs .nav-link {
    color: var(--brand-text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 0.5rem;
    margin-left: 1.5rem;
    background: transparent;
}

.chat-tabs .nav-link:hover {
    color: var(--brand-dark-blue);
}

.chat-tabs .nav-link.active {
    color: var(--brand-green);
    /* Text becomes green */
    border-bottom-color: var(--brand-green);
    /* Underline becomes green */
    font-weight: 700;
}

.chat-items-scroll {
    flex-grow: 1;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
    /* Critical Fix */
}

.chat-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-item:hover,
.chat-item.active {
    background-color: #f8f9fa;
}

.chat-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 10px;
}

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

.chat-item-content {
    flex-grow: 1;
    overflow: hidden;
    /* For truncation */
}

.chat-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--brand-dark-blue);
}

.chat-item-user {
    font-size: 0.8rem;
    color: var(--brand-green);
    /* User name in green per image */
    display: block;
    margin-bottom: 4px;
}

.chat-item-preview {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.chat-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 90px;
}

.badge-chat-type {
    background-color: #F1F2F4;
    /* Requested bg */
    color: #555;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.chat-item-time {
    font-size: 0.8rem;
    color: #999;
    direction: ltr;
    /* Keep time standard */
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Left Side: Chat Detail --- */

.chat-detail-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    /* Center the name */
}

/* Product Info Bar */
.chat-product-bar {
    background-color: #F1FFF9;
    /* Requested Light Green BG */
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #eefef5;
}

.chat-product-thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
}

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

.badge-product-bar {
    background-color: #e0f2ec;
    color: #333;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Body Area */
.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    /* Enable scroll */
    padding: 1.5rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;

    /* CRITICAL FIX: Allows flex item to shrink below content size so scrollbar appears */
    min-height: 0;
}

.chat-date-separator {
    text-align: center;
    margin: 1rem 0 1.5rem 0;
    position: relative;
}

.chat-date-separator span {
    background-color: #fff;
    padding: 0 10px;
    font-size: 0.85rem;
    color: #999;
}

/* Messages */
.message-row {
    display: flex;
    margin-bottom: 1rem;
    width: 100%;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 12px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.message-text {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.75rem;
    text-align: left;
    /* Pushes time to the left (end) */
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    opacity: 0.7;
}

/* Right Side Message (User) */
.message-right {
    justify-content: flex-start;
    /* In RTL, flex-start is Right */
}

.message-right .message-bubble {
    background-color: #060B20;
    /* Requested Dark Blue */
    color: #fff;
    border-top-right-radius: 2px;
    /* Slight sharp corner */
}

/* Left Side Message (Other) */
.message-left {
    justify-content: flex-end;
    /* In RTL, flex-end is Left */
}

.message-left .message-bubble {
    background-color: #F1F2F4;
    /* Requested Light Gray */
    color: #000;
    border-top-left-radius: 2px;
}

.message-image-container {
    max-width: 60%;
    border-radius: 12px;
    overflow: hidden;
}

/* Footer Input */
.chat-footer {
    padding: 1rem;
    background-color: #f9f9f9;
    /* Slight bg distinction */
    border-top: 1px solid #f0f0f0;
}

.chat-input {
    border-radius: 25px;
    /* Fully rounded pill */
    background-color: #F3F4F8;
    /* Same as global inputs */
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.chat-input:focus {
    box-shadow: none;
    background-color: #fff;
    border: 1px solid var(--brand-green);
}

.tab-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Critical Fix */
    overflow: hidden;
}

.tab-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* Mobile adjustments for the nav bar */
@media (max-width: 768px) {

    /* Release the sticky positioning on mobile */
    .product-gallery-card {
        position: static;
        top: auto;
    }

    /* Reset the viewer container */
    .main-media-viewer {
        display: block;
        width: 100%;
    }

    /* Size the image to be consistent and fully covered */
    .main-product-image {
        width: 100%;
        height: 300px;
        /* Fixed pixel height stops the mobile screen jumping */
        object-fit: cover;
        /* Fills the box completely, matching the desktop look */
        border-radius: 12px;
        margin-bottom: 1rem;
        background-color: #f0f0f0;
        border: 1px solid var(--brand-border-light);
    }

    /* Other mobile text/layout adjustments from your original code... */
    .newsletter-card {
        flex-direction: column-reverse;
    }

    .newsletter-img-wrapper {
        width: 100%;
        height: 180px;
        margin-bottom: 1rem;
    }

    .recent-visit-card {
        padding: 0.75rem;
    }

    .visit-img-wrapper {
        width: 70px;
        height: 70px;
    }

    .visit-title {
        font-size: 0.9rem;
    }

    .asset-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .asset-thumb {
        width: 100%;
        height: 200px;
    }

    .asset-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .auth-card-content {
        padding: 3rem 4rem;
    }

    .bottom-nav-container {
        bottom: 10px;
    }

    .bottom-nav-item {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .bottom-nav-home-btn {
        width: 36px;
        height: 36px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .slider-card {
        width: 200px;
    }
}