/* Header section styles */
:root {
    --primary-color: #55ad9b;
    --second-color: #2e2e2e;
    --bg-color: #f5f5f5;
    --text-color: #000000;
    --border-radius: 8px;
    --font-family: poppins;
    --text-gray: #7a7a7a;
    --title-mb: 24px;
    --title-font-size: 24px;
    --section-mt: 50px;
    --white: #fff;
    --rounded-16: 16px;
    --primary-rgb-500: 237, 49, 89;
    --secondary-50: #cccccc;
    --secondary-100: #aaaaaa;
    --secondary-200: #808080;
    --secondary-300: #555555;
    --secondary-400: #2a2a2a;
    --gray-50: #e0e0e2;
    --gray-100: #ccccce;
    --gray-200: #b2b2b5;
    --gray-300: #98989d;
    --gray-400: #7f7f84;
    --gray-500: #65656c;
    --gray-600: #54545a;
    --gray-700: #434348;
    --gray-800: #323236;
    --gray-900: #222224;
    --gray-950: #141416;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --green-950: #052e16;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    --orange-950: #431407;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;
    --rounded-0: 0;
    --rounded-2: 2px;
    --rounded-4: 4px;
    --rounded-6: 6px;
    --rounded-8: 8px;
    --rounded-10: 10px;
    --rounded-12: 12px;
    --rounded-16: 16px;
    --rounded-full: 999px;
    --font-raleway: "Raleway", sans-serif;
    --font-poppins: "Poppins", sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
}

/* start: Skeleton */
.skeleton {
    background-image: linear-gradient(90deg, hsl(210, 15%, 88%), hsl(210, 15%, 95%), hsl(210, 15%, 88%));
    background-size: 200%;
    border-radius: 8px;
    animation: skeleton 1s infinite reverse;
}

@keyframes skeleton {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}
/* end: Skeleton */

/* Unified Responsive Image Gallery */
.gallery-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Image Styles */
.main-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.img-display {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--rounded-16);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    /* PERFORMANCE: Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out; /* Removed opacity transition for instant switching */
    cursor: pointer;
    /* PERFORMANCE: Hardware acceleration for smooth animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    /* INSTANT SWITCHING: No opacity transitions needed */
}

.main-image:hover {
    transform: scale3d(1.02, 1.02, 1); /* Use 3D transform for hardware acceleration */
}

/* Preloaded state for visual feedback */
.thumbnail-image.preloaded {
    /* Optional: Add subtle indicator for preloaded thumbnails */
    border: 1px solid rgba(85, 173, 155, 0.3);
}

/* Touch Navigation for Mobile */
.touch-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.touch-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    margin: 0 12px;
    pointer-events: auto;
    transition:
        transform 0.1s ease-out,
        background-color 0.1s ease-out; /* Faster transitions */
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
    /* PERFORMANCE: Hardware acceleration for smooth interactions */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, background-color;
    touch-action: manipulation;
}

.touch-nav-btn:hover {
    background: var(--white);
    transform: translateZ(0) scale3d(1.05, 1.05, 1); /* Use 3D transforms */
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.touch-nav-btn:active {
    transform: translateZ(0) scale3d(0.95, 0.95, 1); /* Use 3D transforms */
    transition: transform 0.05s ease-out; /* Ultra-fast active feedback */
}

.touch-nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Thumbnails */
.thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    scroll-behavior: smooth;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: var(--rounded-8);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.1s ease-out,
        border-color 0.1s ease-out; /* Faster transitions */
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    /* PERFORMANCE: Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, border-color;
}

.thumbnail-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background 0.1s ease-out; /* Faster transition */
    pointer-events: none;
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: translateZ(0) translateY(-1px); /* Use translateZ for hardware acceleration */
    box-shadow: 0 2px 8px rgba(85, 173, 155, 0.25);
}

.thumbnail-item:hover::after {
    background: rgba(85, 173, 155, 0.08);
}

.thumbnail-item:active {
    transform: translateZ(0) translateY(0); /* Use translateZ for hardware acceleration */
    transition: transform 0.05s ease-out; /* Ultra-fast active feedback */
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.thumbnail-item.active::after {
    background: rgba(85, 173, 155, 0.2);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out; /* Faster transition */
    /* PERFORMANCE: Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.thumbnail-item:hover .thumbnail-image {
    transform: translateZ(0) scale3d(1.03, 1.03, 1); /* Use 3D transforms */
}

/* Preloaded state styling */
.thumbnail-image.preloaded {
    border: 1px solid rgba(85, 173, 155, 0.3);
}

/* Desktop Layout (768px and up) */
@media (min-width: 768px) {
    .gallery-container {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        max-width: none;
    }

    .main-image-container {
        flex: 1;
        margin-bottom: 0;
    }

    .thumbnails-container {
        flex-direction: column;
        flex: 0 0 120px;
        width: 120px;
        max-height: none; /* Remove height limit, let it grow naturally */
        overflow-y: visible; /* Remove vertical scroll */
        overflow-x: visible;
        order: -1; /* Move thumbnails to the left */
        padding: 0;
        gap: 12px; /* Add gap between thumbnails */
    }

    .thumbnail-item {
        flex: 0 0 80px;
        margin-bottom: 12px;
    }

    .thumbnail-item:last-child {
        margin-bottom: 0;
    }

    .touch-nav-btn {
        display: none !important;
    }
}

/* Mobile Layout Optimizations */
@media (max-width: 767px) {
    .gallery-container {
        max-width: none;
    }
    .card-wrapper .card {
        padding: 0 !important;
    }
    .thumbnails-container {
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        scroll-behavior: smooth;
        /* PERFORMANCE: Optimize scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar on mobile */
    }

    .thumbnails-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar on mobile */
    }

    .thumbnail-item {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        touch-action: manipulation;
        /* PERFORMANCE: Mobile optimization */
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .touch-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 8px;
        /* PERFORMANCE: Mobile touch optimization */
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .main-image {
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        /* PERFORMANCE: Mobile image optimization */
        transform: translateZ(0);
        backface-visibility: hidden;
        /* INSTANT LOADING: Disable image smoothing for faster rendering */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* PERFORMANCE: Optimize for mobile performance */
    .img-display {
        transform: translateZ(0);
        backface-visibility: hidden;
        /* Mobile-specific optimizations */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }

    /* MOBILE OPTIMIZATION: Reduce animation complexity on low-end devices */
    .thumbnail-item:hover .thumbnail-image {
        transform: translateZ(0) scale3d(1.01, 1.01, 1); /* Smaller scale on mobile */
    }

    .main-image:hover {
        transform: translateZ(0); /* Disable hover effects on mobile */
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .thumbnail-item {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .touch-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin: 0 6px;
    }
}

/* Loading and Error States */
.main-image[src*="Loading"],
.thumbnail-image[src*="Loading"],
.thumbnail-image[src*="data:image/svg+xml"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.thumbnail-image.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.thumbnail-image:not(.loaded) {
    opacity: 0.7;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error State Styling */
.thumbnail-item.error,
.main-image.error {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.thumbnail-item.error::before,
.main-image.error::before {
    content: "🖼️";
    font-size: 24px;
}
.card-wrapper .card {
    padding: 20px 0;
}
/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .thumbnail-image,
    .main-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .thumbnail-item,
    .main-image,
    .touch-nav-btn {
        transition: none;
    }

    .main-image:hover,
    .thumbnail-item:hover .thumbnail-image {
        transform: none;
    }
}

/* Performance optimizations for animations */
@media (max-width: 767px) {
    .main-image,
    .thumbnail-image,
    .touch-nav-btn {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Focus states for keyboard navigation */
.thumbnail-item:focus,
.touch-nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch-friendly improvements for mobile */
@media (pointer: coarse) {
    .touch-nav-btn {
        width: 48px;
        height: 48px;
    }

    .thumbnail-item {
        min-height: 44px;
        min-width: 44px;
    }
}
/* Skeleton and dynamic content styles are now in the HTML head */
.logo-styled {
    color: var(--primary-color);
}
.website-name {
    font-size: 26px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}
.seller-profile_header_section {
    padding: 50px 0;
}
/* End header section styles */

/*  Start seller info section styles*/
.shop-profile_logo img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.shop-profile_logo {
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid #898989;
    width: 80px;
    height: 80px;
}
.profile-header {
    gap: 30px;
}
.shop-profile_name {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
}
.shop-profile_role {
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-gray);
}
.shop-profile_gallery {
    margin-top: 24px;
}
.shop-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-profile-about {
    margin-top: var(--section-mt);
}
.shop-profile-about_title {
    font-size: var(--title-font-size);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
    margin-bottom: var(--title-mb);
}
.shop-profile-about_description {
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 30px;
}
hr {
    color: #7a7a7a;
}
/*  Start seller info section styles*/
/* Start Good to know section styles*/
.good-to_know_title,
.get-in_touch_title {
    font-size: var(--title-font-size);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
    margin-bottom: var(--title-mb);
}
.good-to_know {
    margin-top: var(--section-mt);
}
.good-to_know_items-information_title {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 0.5;
    margin: 0 0 8px 0;
}
.good-to_know_items-information_description {
    font-size: 12px;
    font-family: var(--font-family);
    color: var(--text-gray);
    margin: 0;
}
.good-to_know_item {
    gap: 16px;
}
.good-to_know_items {
    display: flex;
    gap: 200px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}
/* End Good to know section styles*/
/* Start Get in touch section styles*/
.get-in_touch {
    margin-top: var(--section-mt);
    padding-bottom: 50px;
}
.get-in_touch-information_subtitle {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 0.5;
    margin-top: 15px;
}
.get-in_touch_items {
    gap: 100px;
}
.get-in_touch_item {
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 132px;
    width: 100%;
}
/*  */
ul {
    margin-left: 0px;
    padding-left: 20px;
}
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}
.contact li {
    border: 1px solid #cfcfcf;
    border-radius: 10px;
}

li {
    padding-block: 6px;
}
.contact li a {
    padding: 20px;
    display: block;
}
.contact .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 20px;
}
.contact li div {
    font-size: 1.2rem;
    font-weight: 500;
}
/* End Get in touch section styles*/
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-underline-offset: 4px;
}
.section-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.2;
}
.section-title > span {
    color: var(--primary-color);
}
.listing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 38px;
    margin-top: 32px;
}
.listing-item {
    background-color: var(--white);
    border-radius: var(--rounded-16);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.listing-item-image-image {
    display: block;
    width: 100%;
    height: 258px;
    object-fit: cover;
}
.listing-item-body {
    padding: 16px;
}
.listing-item-title {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--text-xl);
    line-height: 1.3;
    margin-bottom: 8px;
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-item-distance {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.listing-item-shop {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.listing-item-bottom {
    display: flex;
    align-items: center;
}
.listing-item-shop-image {
    flex-shrink: 0;
    margin-right: 12px;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--rounded-full);
}
.listing-item-shop-body {
    min-width: 0;
    margin-right: auto;
}
.listing-item-shop-title {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.listing-item-shop-postcode {
    font-size: var(--text-xs);
}
.listing-item-bottom > * {
    margin-right: 16px;
}
.listing-item-bottom > :last-child {
    margin-right: 0;
}
.listing-item-favourite {
    background-color: transparent;
    cursor: pointer;
    border: none;
    outline: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #46555d;
}
.related-section {
    margin-top: var(--section-mt);
}
.listing-item-shop-price {
    flex-shrink: 0;
    margin-left: 16px;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
}

/* Product card text overflow handling */
.prodcut-card-title {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color);
}

.prodcut-card-title:hover {
    color: var(--primary-color);
}

/* Card body responsive layout */
.card-body {
    min-width: 0;
}

.card-body a {
    min-width: 0;
    max-width: 100%;
}

/* Shop name and price container */
.card-body .d-flex.align-items-center.justify-content-between {
    gap: 8px;
    flex-wrap: nowrap;
}

.card-body .d-flex.align-items-center.justify-content-between a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.card-body .currecnt-price {
    flex-shrink: 0;
    white-space: nowrap;
}

.get-in_touch_item:hover {
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease-in-out;
}
.listing-item-favourite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-full);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}
.listing-item-favourite:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* start: Contact */
.chatbox {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 10;
}
.chatbox-trigger {
	background-color: var(--primary-color);
	color: var(--white);
	font-weight: 600;
	font-size: 14px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 24px 0 16px;
	border-radius: 999px;
	border: none;
	outline: none;
	box-shadow: 0 2px 8px rgba(85, 173, 155, 0.25);
	transition: transform .2s ease-in-out;
}
.chatbox-trigger:active {
	transform: scale(0.95);
}
.chatbox-dialog {
	position: absolute;
	bottom: 100%;
	margin-bottom: 8px;
	right: 0;
	background-color: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(85, 173, 155, 0.25);
	width: 400px;
	border: 1px solid #eee;
	opacity: 0;
	visibility: hidden;
	transform: scale(.9);
	transition: all 0.2s ease-in-out;
	transform-origin: bottom right;
}
.chatbox.open .chatbox-dialog {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}
.chatbox-dialog-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #eee;
	padding: 8px 12px;
}
.chatbox-dialog-info {
	min-width: 0;
	flex-grow: 1;
}
.chatbox-dialog-store {
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}
.chatbox-dialog-status {
	font-size: 12px;
	color: var(--gray-500);
	display: flex;
	align-items: center;
	gap: 6px;
}
.chatbox-dialog-status.online {
	color: var(--green-600);
}
.chatbox-dialog-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
}
.chatbox-dialog-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--gray-500);
	cursor: pointer;
	border: none;
	outline: none;
	border-radius: 8px;
	background-color: transparent;
}
.chatbox-dialog-close:hover {
	background-color: var(--gray-50);
	color: var(--gray-700);
}
.chatbox-mentioned {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}
.chatbox-mentioned-info {
	flex-grow: 1;
	min-width: 0;
}
.chatbox-mentioned-name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}
.chatbox-mentioned-status {
	font-size: 10px;
	font-weight: 500;
	color: var(--gray-500);
	padding: 2px 8px;
	border-radius: 999px;
	background-color: var(--gray-50);
	display: inline-block;
}
.chatbox-mentioned-status.in-stock {
	color: var(--green-600);
	background-color: var(--green-100);
}
.chatbox-mentioned-price {
	font-size: 16px;
	font-weight: 600;
	color: var(--primary-color);
}
.chatbox-content {
	height: 300px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}
.chatbox-item {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}
.chatbox-item.me {
	justify-content: flex-end;
}
.chatbox-item::before {
	content: "";
	width: 6px;
	height: 6px;
	background-image: linear-gradient(135deg, transparent 50%, var(--gray-50) 50%);
}
.chatbox-item.me::after {
	content: "";
	width: 6px;
	height: 6px;
	background-image: linear-gradient(225deg, transparent 50%, var(--primary-color) 50%);
}
.chatbox-item.me::before {
	display: none;
}
.chatbox-item-bubble {
	padding: 8px 12px;
	border-radius: 12px 12px 12px 0;
	background-color: var(--gray-50);
	max-width: 90%;
}
.chatbox-item.me .chatbox-item-bubble {
	background-color: var(--primary-color);
	color: var(--white);
	border-radius: 12px 12px 0 12px;
}
.chatbox-item-text {
	font-size: 14px;
	margin-bottom: 2px;
    overflow-wrap: break-word;
}
.chatbox-item-time {
	font-size: 10px;
	color: var(--gray-500);
	text-align: right;
}
.chatbox-item.me .chatbox-item-time {
	color: var(--gray-50);
}
.chatbox-form {
	border-top: 1px solid #eee;
	position: relative;
}
.chatbox-form.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.chatbox-form-input {
	padding: 12px 48px 12px 12px;
	font-size: 14px;
	width: 100%;
	border: none;
	outline: none;
}
.chatbox-form-button {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background-color: transparent;
	border: none;
	outline: none;
	border-radius: 8px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	color: var(--gray-500);
	display: flex;
	align-items: center;
	justify-content: center;
}
.chatbox-form-button:hover {
	background-color: var(--gray-50);
	color: var(--gray-700);
}
.chatbox-empty {
	padding: 12px;
	text-align: center;
	color: var(--gray-500);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}
.chatbox-empty-icon {
	font-size: 24px;
}
.chatbox-empty-text {
	font-size: 14px;
	color: var(--gray-500);
}
.chatbox-alert {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    background-color: var(--gray-50);
}
.chatbox-alert-warning {
    color: var(--orange-600);
    background-color: var(--orange-100);
}
.chatbox-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.chatbox-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-100);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: chatbox-spin 0.7s linear infinite;
}
@keyframes chatbox-spin {
    to { transform: rotate(360deg); }
}
/* end: Contact */

@media screen and (max-width: 991px) {
    .company-feature-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 767px) {
    .company-wrapper {
        grid-template-columns: 1fr;
    }
    .main-image,
    .img-display {
        border-radius: 8px 8px 0 0;
    }

    /* Responsive card adjustments */
    .similar-items-card .card-body {
        padding: 12px;
    }

    .prodcut-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
    }

    .card-body .d-flex.align-items-center.justify-content-between {
        gap: 6px;
    }

    .card-body .currecnt-price {
        font-size: 1rem !important;
    }
}
@media screen and (max-width: 450px) {
    .get-in_touch_items {
        gap: 50px;
        flex-wrap: wrap;
    }

    /* Extra small screen card adjustments */
    .similar-items-card .card-body {
        padding: 10px;
    }

    .prodcut-card-title {
        font-size: 0.9rem;
    }

    .card-body .d-flex.align-items-center.justify-content-between a {
        font-size: 0.85rem;
        max-width: 60%;
    }

    .card-body .currecnt-price {
        font-size: 0.9rem !important;
    }

	.chatbox {
		z-index: 30;
	}
	.chatbox-dialog {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		transform-origin: bottom;
		display: flex;
		flex-direction: column;
	}
	.chatbox-mentioned,
	.chatbox-form,
	.chatbox-dialog-topbar {
		flex-shrink: 0;
	}
	.chatbox-content {
		flex-grow: 1;
		min-height: 0;
	}
}
