/**
 * Sellacious CSS Overrides
 * 
 * This file contains custom CSS overrides for Sellacious components.
 * Add all Sellacious styling customizations here instead of modifying
 * the vendor CSS files (fe.component.css, fe.view.*.css, etc.)
 * 
 * This file is loaded after all other Sellacious CSS files to ensure
 * overrides take precedence.
 */

/* ============================================
   Heart Icon (Favourites) Styles for Product Grid
   ============================================ */

/* Container positioning - no circular background */
.product-block-elegant .product-wishlist-container {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.product-block-elegant .product-wishlist-container:hover {
	background: transparent;
	border: none;
	box-shadow: none;
}

/* Override ctech-rounded-circle and ctech-border-danger for grid hearts */
.product-block-elegant .product-wishlist-container.ctech-rounded-circle {
	border-radius: 0 !important;
}

.product-block-elegant .product-wishlist-container.ctech-border-danger {
	border: none !important;
}

/* Link styling - default state (empty heart, black outline) */
.product-block-elegant .product-wishlist-container .btn-wishlist {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #1a1a1a;
	text-decoration: none;
}

.product-block-elegant .product-wishlist-container .btn-wishlist:hover {
	color: #e74c3c;
}

/* Icon sizing */
.product-block-elegant .product-wishlist-container .btn-wishlist i {
	font-size: 18px;
	transition: color 0.2s ease;
	color: inherit;
}

/* Active/Filled heart state - when ctech-text-danger is added by JS */
.product-block-elegant .product-wishlist-container.ctech-text-danger .btn-wishlist,
.product-block-elegant .product-wishlist-container.ctech-text-danger .btn-wishlist i {
	color: #e74c3c !important;
}

/* Ensure product-block-wrap has position for absolute children */
.product-block-elegant .product-block-wrap {
	position: relative;
}

/* ============================================
   UOM and Pack Attributes Display Styles
   ============================================ */

/* Product Grid - UOM/Pack styling */
.product-block-elegant .product-uom-pack {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #666;
	margin: 4px 0;
	line-height: 1.4;
}

.product-block-elegant .product-uom-pack .uom-value,
.product-block-elegant .product-uom-pack .pack-value {
	font-family: 'Montserrat', sans-serif;
}

.product-block-elegant .product-uom-pack .uom-pack-separator {
	color: #999;
	margin: 0 2px;
}

/* Favourites List - UOM/Pack styling (Grid View) */
.favourites-products-grid .product-uom-pack {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #666;
	margin: 3px 0;
	line-height: 1.3;
}

.favourites-products-grid .product-uom-pack .uom-value,
.favourites-products-grid .product-uom-pack .pack-value {
	font-family: 'Montserrat', sans-serif;
}

.favourites-products-grid .product-uom-pack .uom-pack-separator {
	color: #999;
	margin: 0 2px;
}

/* Favourites List - UOM/Pack styling (List View) */
.favourites-products-list .product-uom-pack {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #666;
	margin: 2px 0;
	line-height: 1.3;
}

.favourites-products-list .product-uom-pack .uom-value,
.favourites-products-list .product-uom-pack .pack-value {
	font-family: 'Montserrat', sans-serif;
}

.favourites-products-list .product-uom-pack .uom-pack-separator {
	color: #999;
	margin: 0 2px;
}

/* ============================================
   Skeleton Loading UI for AJAX-first loading
   ============================================ */

.products-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1200px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-skeleton-grid {
        grid-template-columns: 1fr;
    }
}

.product-skeleton-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #e8e8e8 0%, #d0d0d0 20%, #c0c0c0 40%, #d0d0d0 60%, #e8e8e8 80%, #e8e8e8 100%);
    background-size: 300% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 18px;
    background: linear-gradient(90deg, #e8e8e8 0%, #d0d0d0 20%, #c0c0c0 40%, #d0d0d0 60%, #e8e8e8 80%, #e8e8e8 100%);
    background-size: 300% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    animation-delay: 0.1s;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-price {
    height: 22px;
    background: linear-gradient(90deg, #e8e8e8 0%, #d0d0d0 20%, #c0c0c0 40%, #d0d0d0 60%, #e8e8e8 80%, #e8e8e8 100%);
    background-size: 300% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    animation-delay: 0.2s;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 40%;
}

.skeleton-button {
    height: 36px;
    background: linear-gradient(90deg, #e8e8e8 0%, #d0d0d0 20%, #c0c0c0 40%, #d0d0d0 60%, #e8e8e8 80%, #e8e8e8 100%);
    background-size: 300% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    animation-delay: 0.3s;
    border-radius: 4px;
    width: 100%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* ============================================
   Load More Button for Infinite Scroll
   ============================================ */

.load-more-container {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
}

.btn-load-more {
    background: #559945;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-load-more:hover {
    background: #4a8639;
    transform: translateY(-2px);
}

.btn-load-more:active {
    transform: translateY(0);
}

.end-of-results {
    color: #888;
    font-size: 14px;
    padding: 20px;
}

/* Loading spinner for infinite scroll */
.load-more-container.loading .btn-load-more {
    opacity: 0.7;
    pointer-events: none;
}

.load-more-container.loading .btn-load-more::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Favourites List Page Styling
   (Matching Product Grid Typography)
   ============================================ */

/* Page container */
.favourites-page-container {
	padding: 2rem 0;
}

.favourites-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.favourites-empty-state,
.favourites-empty-list {
	text-align: center;
	padding: 4rem 2rem;
}

.favourites-lists-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

/* List View Styles */
.favourites-products-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.favourites-products-list .favourite-product-card {
	flex-direction: row;
	align-items: center;
	padding: 1rem;
	min-height: auto;
	gap: 1.5rem;
}

.favourites-products-list .product-image {
	width: 80px;
	height: 80px;
	margin-bottom: 0;
	flex-shrink: 0;
	border: 1px solid #eee;
}

.favourites-products-list .product-info {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-right: 1rem;
}

.favourites-products-list .product-details-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.favourites-products-list .product-info h4 {
	height: auto;
	min-height: auto;
	-webkit-line-clamp: 1;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

.favourites-products-list .product-price {
	margin: 0 0 0 auto;
	text-align: right;
	white-space: nowrap;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 600;
}

.favourites-products-list .product-sku {
	display: inline-block;
	margin-right: 1rem;
	margin-bottom: 0;
	font-size: 12px;
}

.favourites-products-list .product-uom-pack {
	display: inline-block;
	margin-right: 1rem;
	margin-bottom: 0;
	font-size: 13px;
}

.favourites-products-list .product-seller {
	display: inline-block;
	margin-right: 1rem;
	margin-bottom: 0;
	font-size: 11px;
}

.favourites-products-list .product-actions {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
	width: 220px;
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.favourites-products-list .favourite-product-card {
		flex-wrap: wrap;
		padding-top: 2.5rem;
	}
	.favourites-products-list .product-image {
		width: 60px;
		height: 60px;
	}
	.favourites-products-list .product-info {
		flex-direction: column;
		align-items: flex-start;
		flex-grow: 1;
		margin-right: 0;
	}
	.favourites-products-list .product-price {
		margin: 0.5rem 0 0 0;
		text-align: left;
		white-space: normal;
	}
	.favourites-products-list .product-actions {
		width: 100%;
		margin-top: 1rem;
		border-top: 1px solid #eee;
		padding-top: 1rem;
	}
}

/* List Card Styles */
.favourites-list-card {
	border: 1px solid var(--treno-midgreen);
	border-radius: 8px;
	padding: 1.5rem;
	transition: box-shadow 0.3s;
}

.favourites-list-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	gap: 1rem;
	align-items: center;
}

.list-icon {
	font-size: 2rem;
}

.list-name {
	margin: 0;
	font-size: 1.25rem;
	color: var(--treno-darkgreen);
}

.list-count {
	color: #6B7280;
	margin: 0.5rem 0 0 0;
}

.list-actions {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #E5E7EB;
	display: flex;
	gap: 1rem;
}

.favourites-breadcrumb {
	margin-bottom: 1rem;
}

.favourites-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.list-header-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.view-toggle-group {
	margin-right: 0 !important;
}

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

/* Product Card */
.favourite-product-card {
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	padding: 1rem;
	position: relative;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.favourite-product-card .product-image {
	height: 200px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	border-radius: 4px;
}

.favourite-product-card .product-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.favourite-product-card .no-image {
	font-size: 3rem;
	color: #9CA3AF;
}

.favourite-product-card .product-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	margin: 0;
	width: 100%;
	align-items: flex-start;
}

.favourite-product-card .product-info > div {
	width: 100%;
	max-width: 100%;
	padding: 0;
	flex: auto;
}

/* Product Title - matches .product-title in product grid (14px, 600 weight) */
.favourite-product-card .product-info h4 {
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	height: auto;
	min-height: 36px;
	color: #222222;
}

/* SKU - matches product grid small text (12px) */
.favourite-product-card .product-sku {
	font-size: 12px;
	color: #9CA3AF;
	margin: 0 0 4px 0;
}

/* UOM/Pack - consistent sizing (13px) */
.favourite-product-card .product-uom-pack {
	font-size: 13px;
	color: #6B7280;
	margin: 0 0 4px 0;
}

/* Seller - matches seller overlay in product grid (11px, blue with SOLD BY label) */
.favourite-product-card .product-seller {
	font-size: 11px;
	color: #0078d4;
	margin: 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.favourite-product-card .product-seller .seller-label {
	font-weight: bold;
	color: #0078d4;
}

/* Price - matches .product-price in product grid (16px, 600 weight) */
.favourite-product-card .product-price {
	font-size: 16px;
	font-weight: 600;
	color: #212121;
	margin: 8px 0;
	max-width: 100%;
	letter-spacing: 0.5px;
}

/* Remove Button */
.favourite-product-card .remove-btn-absolute {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	color: #EF4444;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 1px solid #E5E7EB;
	transition: all 0.2s;
	z-index: 2;
	padding: 0;
}

.favourite-product-card .remove-btn-absolute:hover {
	background: #FEE2E2;
	transform: scale(1.1);
}

/* Product Actions */
.favourite-product-card .product-actions {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #E5E7EB;
}

.favourite-product-card .cart-row {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.favourite-product-card .cart-row .qty-input {
	width: 70px;
	text-align: center;
}

.favourite-product-card .btn-block {
	display: block;
	width: 100%;
}

/* Toggle Buttons */
.view-toggle-group .btn.active {
	background-color: var(--treno-darkgreen);
	border-color: var(--treno-darkgreen);
	color: white;
	z-index: 2;
}

/* Header Actions */
.favourites-header-actions {
	display: flex;
	align-items: center;
}

@media (max-width: 767px) {
	.favourites-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.favourites-header-actions {
		width: 100%;
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.favourites-header-actions .btn {
		width: 100%;
		margin-right: 0 !important;
	}
}

/* ============================================
   Stores/Suppliers Page - Modern Card Styles
   ============================================ */

/* Override default stores grid styles if they exist */
.store-blocks-container .store-list-block,
.store-blocks-container .store-block-default {
	border: none !important;
}

.store-blocks-container .store-wrap {
	border: none !important;
	border-radius: 16px !important;
	overflow: hidden;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-blocks-container .store-wrap:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.store-blocks-container .store-box {
	border: none !important;
	border-radius: 16px !important;
}

.store-blocks-container .image-box {
	background: #fafafa;
	border-bottom: none !important;
}

.store-blocks-container .store-info-box {
	padding: 20px;
	text-align: center;
}

.store-blocks-container .store-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.store-blocks-container .store-title a {
	color: inherit;
	text-decoration: none;
}

.store-blocks-container .store-title a:hover {
	color: #559945;
}

/* ============================================
   Suppliers/Stores Page - Search & Grid Styles
   ============================================ */

/* Search bar styles */
.stores-search-wrapper {
	margin-bottom: 24px;
}

.stores-search-container {
	position: relative;
	max-width: 500px;
}

.stores-search-input {
	width: 100%;
	padding: 14px 48px 14px 20px;
	font-size: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.stores-search-input:focus {
	border-color: #559945;
	box-shadow: 0 0 0 3px rgba(85, 153, 69, 0.15);
}

.stores-search-input::placeholder {
	color: #999;
}

.stores-search-icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 18px;
	pointer-events: none;
}

.stores-search-container.searching .stores-search-icon {
	animation: storesSearchPulse 1s ease-in-out infinite;
}

@keyframes storesSearchPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.stores-search-clear {
	position: absolute;
	right: 44px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 16px;
	cursor: pointer;
	padding: 4px;
	display: none;
}

.stores-search-clear:hover {
	color: #333;
}

.stores-search-container.has-value .stores-search-clear {
	display: block;
}

.stores-search-results-info {
	margin-top: 12px;
	font-size: 14px;
	color: #666;
	display: none;
}

.stores-search-results-info.active {
	display: block;
}

/* Skeleton loading styles */
.store-card-skeleton {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.skeleton-logo {
	height: 180px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: storesShimmer 1.5s infinite;
}

.skeleton-info {
	padding: 20px;
	text-align: center;
}

.skeleton-title {
	height: 20px;
	width: 60%;
	margin: 0 auto 16px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: storesShimmer 1.5s infinite;
	border-radius: 4px;
}

.skeleton-button {
	height: 40px;
	width: 120px;
	margin: 0 auto;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: storesShimmer 1.5s infinite;
	border-radius: 8px;
}

@keyframes storesShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Stores grid container */
.stores-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	padding: 20px 0;
}

.store-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.store-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.store-logo-wrap {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #fafafa;
}

.store-logo-wrap img {
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
}

.store-info {
	padding: 20px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.store-name {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 16px 0;
}

.store-name a {
	color: inherit;
	text-decoration: none;
}

.store-name a:hover {
	color: #559945;
}

/* Connection button styles */
#stores-page .btn-connect {
	background: linear-gradient(135deg, #559945 0%, #6ab854 100%);
	color: white;
	border: none;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#stores-page .btn-connect:hover {
	background: linear-gradient(135deg, #477d39 0%, #559945 100%);
	transform: translateY(-1px);
}

#stores-page .btn-connect.guest {
	background: #6c757d;
}

#stores-page .btn-connect.guest:hover {
	background: #5a6268;
}

#stores-page .badge-connected {
	background: linear-gradient(135deg, #559945 0%, #6ab854 100%);
	color: white;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#stores-page .badge-connected-clickable {
	cursor: pointer;
	transition: all 0.3s ease;
}

#stores-page .badge-connected-clickable:hover {
	background: linear-gradient(135deg, #477d39 0%, #559945 100%);
	box-shadow: 0 4px 12px rgba(85, 153, 69, 0.4);
	transform: translateY(-2px);
}

#stores-page .badge-connected-clickable::after {
	content: '\f040';
	font-family: FontAwesome;
	margin-left: 6px;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#stores-page .badge-connected-clickable:hover::after {
	opacity: 1;
}

#stores-page .badge-pending {
	background: #f0ad4e;
	color: white;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#stores-page .badge-rejected {
	background: #d9534f;
	color: white;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* No stores message */
#stores-page .no-stores {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

#stores-page .no-stores h4 {
	margin: 0;
	font-size: 18px;
}

/* Connect Modal */
.stores-connect-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.stores-connect-modal.active {
	display: flex;
}

.stores-connect-modal-content {
	background: white;
	border-radius: 16px;
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.stores-connect-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	line-height: 1;
}

.stores-connect-modal-close:hover {
	color: #333;
}

.stores-connect-modal-header {
	padding: 30px 30px 20px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

.stores-connect-modal-header h2 {
	margin: 0 0 8px;
	font-size: 24px;
	color: #333;
}

.stores-connect-modal-header p {
	margin: 0;
	color: #666;
}

.stores-connect-modal-body {
	padding: 20px 30px 30px;
}

.stores-connect-modal .connect-option {
	display: flex;
	align-items: center;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.stores-connect-modal .connect-option:hover {
	border-color: #559945;
	background: #f9fff7;
}

.stores-connect-modal .connect-option:last-child {
	margin-bottom: 0;
}

.stores-connect-modal .connect-option-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(135deg, #559945 0%, #6ab854 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 16px;
	flex-shrink: 0;
}

.stores-connect-modal .connect-option-icon i {
	font-size: 20px;
	color: white;
}

.stores-connect-modal .connect-option-content {
	flex-grow: 1;
}

.stores-connect-modal .connect-option-content h3 {
	margin: 0 0 4px;
	font-size: 16px;
	color: #333;
}

.stores-connect-modal .connect-option-content p {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.stores-connect-modal .connect-option-arrow {
	color: #ccc;
	margin-left: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
	.stores-grid-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.store-logo-wrap {
		height: 140px;
	}
	
	.store-info {
		padding: 15px;
	}
	
	.store-name {
		font-size: 16px;
	}
	
	#stores-page .btn-connect,
	#stores-page .badge-connected,
	#stores-page .badge-pending {
		padding: 8px 16px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.stores-grid-container {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Sell Infobox Branding Overrides (Treno Green Theme)
   ============================================ */

.sell-infobox {
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px;
	overflow: hidden;
}

.sell-infobox > h5 {
	background: linear-gradient(135deg, #4a7c59 0%, #3d6a4a 100%) !important;
	color: #fff !important;
	border-bottom: none !important;
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Specification table styling */
.specification-box .tbl-specifications thead th {
	background: #f8f9f8 !important;
	color: #4a7c59;
	font-weight: 600;
}

.specification-box .tbl-specifications tbody tr:nth-child(even) {
	background: #fafbfa;
}

.specification-box .tbl-specifications tbody th {
	color: #555;
	font-weight: 500;
}

/* Description box */
.description-box > h5,
.package-box > h5,
.rating-box > h5,
.questionarea-box > h5,
.price-history-box > h5 {
	background: linear-gradient(135deg, #4a7c59 0%, #3d6a4a 100%) !important;
	color: #fff !important;
}

/* ============================================
   Price History Chart Styles (Pure CSS/SVG)
   ============================================ */

.price-history-box {
	margin-top: 20px;
}

.price-history-box h5 {
	margin-bottom: 15px;
}

.price-history-inner {
	padding: 15px;
}

.price-history-subtitle {
	color: #666;
	font-size: 14px;
	margin-bottom: 20px;
}

.price-history-chart-wrapper {
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	padding-bottom: 10px;
}

.price-history-chart-wrapper::-webkit-scrollbar {
	height: 8px;
}

.price-history-chart-wrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.price-history-chart-wrapper::-webkit-scrollbar-thumb {
	background: #4a7c59;
	border-radius: 4px;
}

.price-history-chart-wrapper::-webkit-scrollbar-thumb:hover {
	background: #3d6a4a;
}

.price-history-chart {
	display: flex;
	flex-direction: column;
	min-width: 100%;
}

.price-history-chart-row {
	display: flex;
	height: 250px;
}

.price-history-y-axis {
	width: 70px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-right: 10px;
	text-align: right;
}

.price-history-y-axis .y-label {
	font-size: 11px;
	color: #666;
	line-height: 1;
}

.price-history-plot-area {
	flex: 1;
	position: relative;
	border-left: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	background: #fff;
}

.price-history-grid-lines {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
}

.price-history-grid-lines .grid-line {
	border-top: 1px dashed #eee;
	width: 100%;
}

.price-history-points {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.price-point {
	position: absolute;
	transform: translate(-50%, 50%);
	z-index: 10;
	cursor: pointer;
}

.price-point .point-dot {
	width: 12px;
	height: 12px;
	background: #4a7c59;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-point:hover .point-dot {
	transform: scale(1.3);
	box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.price-point .point-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	margin-bottom: 8px;
	z-index: 100;
}

.price-point .point-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: rgba(0, 0, 0, 0.85);
}

.price-point:hover .point-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Tooltip below for points near top of chart */
.price-point.tooltip-below .point-tooltip {
	bottom: auto;
	top: 100%;
	margin-bottom: 0;
	margin-top: 8px;
}

.price-point.tooltip-below .point-tooltip::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: rgba(0, 0, 0, 0.85);
}

.point-tooltip .tooltip-date {
	font-weight: bold;
	margin-bottom: 4px;
}

.point-tooltip .tooltip-price {
	color: #7fcd91;
	font-size: 14px;
	font-weight: bold;
}

.point-tooltip .tooltip-qty {
	color: #aaa;
	font-size: 11px;
	margin-top: 2px;
}

.price-history-line {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.price-history-x-axis-row {
	display: flex;
	height: 30px;
}

.price-history-y-axis-spacer {
	width: 70px;
	flex-shrink: 0;
}

.price-history-x-axis {
	position: relative;
	flex: 1;
}

.price-history-x-axis .x-label {
	position: absolute;
	transform: translateX(-50%);
	font-size: 11px;
	color: #666;
	padding-top: 8px;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.price-history-chart-row {
		height: 200px;
	}
	
	.price-history-y-axis,
	.price-history-y-axis-spacer {
		width: 60px;
	}
}

@media (max-width: 480px) {
	.price-history-chart-row {
		height: 180px;
	}
	
	.price-history-y-axis,
	.price-history-y-axis-spacer {
		width: 50px;
	}
	
	.price-history-y-axis .y-label,
	.price-history-x-axis .x-label {
		font-size: 10px;
	}
	
	.price-history-subtitle {
		font-size: 12px;
	}
}