/**
 * Financial Models Marketplace - Template Styles
 *
 * Custom styles for page-financial-models-modern.php template
 * Loaded after theme CSS to override WooCommerce button defaults
 *
 * @package Ryan_Oconnell
 * @since 1.0.0
 * @version 7.0.0
 *
 * Phase 3: Added category cards, filter pills, and breadcrumb navigation
 * Phase 4: Added search functionality and results messaging
 * Phase 4.3: Search UX enhancements - hide categories during search, smooth scroll to results
 * Phase 5: Advanced filtering sidebar with multi-category, price range, and sort
 * Phase 6: SEO optimization with dynamic meta tags and schema markup
 * Phase 7: Essential UX polish - toast notifications, loading states, interaction polish
 */

/* Prevent horizontal overflow on all devices */
html, body {
	overflow-x: hidden;
	max-width: 100%;
}

/* ============================================
   Container & Grid Layout
   ============================================ */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ============================================
   Hero Section
   ============================================ */

.roc-hero-section {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	color: white;
	padding: 60px 0;
	text-align: center;
	margin-bottom: 50px;
}

.roc-page-title {
	font-size: 48px;
	font-weight: 700;
	margin: 0 0 10px 0;
	font-family: 'Roboto', sans-serif;
}

.roc-page-subtitle {
	font-size: 20px;
	opacity: 0.95;
	margin: 0 0 30px 0;
	font-family: 'Roboto', sans-serif;
}

.roc-search-wrapper {
	max-width: 600px;
	margin: 0 auto 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.roc-search-input {
	flex: 1;
	padding: 15px 20px;
	font-size: 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	background: white;
	color: #111827;
	transition: all 0.3s ease;
}

.roc-search-input::placeholder {
	color: #6b7280;
	opacity: 1;
}

.roc-search-input:focus {
	outline: 2px solid white;
	outline-offset: 2px;
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roc-search-btn {
	padding: 15px 25px;
	background: #1e40af;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.roc-search-btn:hover {
	background: #1d3a8a;
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
}

/* Phase 4: Clear Search Button */
.roc-clear-search {
	padding: 12px 20px;
	background: rgba(239, 68, 68, 0.9);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.roc-clear-search:hover {
	background: #dc2626;
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
	color: white;
}

.roc-product-count {
	font-size: 16px;
	opacity: 0.9;
	margin: 0;
}

/* ============================================
   Main Content Area
   ============================================ */

.roc-main-content {
	padding: 0 0 60px 0;
	background: #f9fafb;
	min-height: 500px;
}

/* ============================================
   Products Grid
   ============================================ */

.roc-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 50px;
	align-items: stretch;
}

/* ============================================
   Product Card
   ============================================ */

.roc-product-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.roc-product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

/* ============================================
   Product Image (16:9 Aspect Ratio)
   ============================================ */

.roc-product-image {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #f3f4f6;
}

.roc-product-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.roc-product-image a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.roc-product-card:hover .roc-product-image img {
	transform: scale(1.08);
}

.roc-sale-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #ef4444;
	color: white;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 10;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sale Badge Pop on Card Hover */
.roc-product-card:hover .roc-sale-badge {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ============================================
   Product Info Container
   ============================================ */

.roc-product-info {
	padding: 20px;
	background: white;
	border-top: 1px solid #f3f4f6;
	position: relative;
	min-height: 180px;
	padding-bottom: 68px;
}

.roc-product-category {
	display: inline-block;
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 8px 0;
	font-weight: 500;
	line-height: 20px;
}

.roc-product-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px 0;
	line-height: 1.3;
	font-family: 'Roboto', sans-serif;
	height: 50px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.roc-product-title a {
	color: #111827;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* Title turns blue on card hover */
.roc-product-card:hover .roc-product-title a {
	color: #2563eb;
}

.roc-product-title a:hover {
	color: #2563eb;
}

.roc-product-excerpt {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
	height: 42px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin: 0 0 20px 0;
}

/* ============================================
   CTA Buttons - Absolute Positioning for Perfect Alignment
   ============================================ */

.roc-product-cta {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
}

/* CRITICAL FIX: Override theme's .add_to_cart_button margin */
.roc-product-cta a.add_to_cart_button {
	margin: 0 !important;
}

/* Base Button Styles */
.roc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	text-align: center;
	font-family: 'Roboto', sans-serif;
	height: 48px;
	width: 100%;
	box-sizing: border-box;
}

/* Free Download Button */
.roc-btn-free,
.roc-btn-free:link,
.roc-btn-free:visited,
.roc-btn-free:active {
	background: #10b981;
	color: white !important;
	gap: 8px;
}

.roc-btn-free:hover {
	background: #059669;
	color: white !important;
	transform: translateY(-1px);
}

.roc-btn-free svg {
	fill: white !important;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Premium Buy Now Button */
.roc-btn-premium,
.roc-btn-premium:link,
.roc-btn-premium:visited,
.roc-btn-premium:active {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: white !important;
}

.roc-btn-premium:hover {
	background: linear-gradient(135deg, #d97706, #b45309);
	color: white !important;
	transform: translateY(-1px);
}

/* ============================================
   Visual Hierarchy - Subtle Borders
   ============================================ */

.roc-product-card[data-is-free="true"] {
	border: 2px solid rgba(16, 185, 129, 0.2);
}

.roc-product-card[data-is-free="false"] {
	border: 2px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   Accessibility - Focus States
   ============================================ */

.roc-btn:focus,
.roc-btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.roc-product-card a:focus,
.roc-product-card a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.roc-product-title a:focus {
	outline: none;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: #2563eb;
}

/* ============================================
   Pagination
   ============================================ */

.roc-pagination {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.roc-pagination ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.roc-pagination li {
	margin: 0;
}

.roc-pagination a,
.roc-pagination span.current {
	display: block;
	padding: 10px 15px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
	font-weight: 500;
}

.roc-pagination a:hover {
	border-color: #2563eb;
	color: #2563eb;
	background: #eff6ff;
}

.roc-pagination .current {
	background: #2563eb;
	color: white;
	border-color: #2563eb;
}

/* ============================================
   No Products Message
   ============================================ */

.roc-no-products {
	text-align: center;
	padding: 80px 20px;
}

.roc-no-products h2 {
	font-size: 28px;
	color: #111827;
	margin-bottom: 10px;
}

.roc-no-products p {
	font-size: 16px;
	color: #6b7280;
}

/* ============================================
   Phase 3: Filters Section
   ============================================ */

.roc-filters-section {
	padding: 30px 0;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 40px;
	margin-top: 40px; /* Added spacing now that category cards are removed */
}

/* Breadcrumb Navigation */
.roc-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 25px;
	font-size: 14px;
}

.roc-breadcrumb a {
	color: #2563eb;
	text-decoration: none;
	transition: color 0.2s;
}

.roc-breadcrumb a:hover {
	color: #1e40af;
	text-decoration: underline;
}

.roc-breadcrumb-separator {
	color: #9ca3af;
	margin: 0 4px;
}

.roc-breadcrumb-current {
	color: #374151;
	font-weight: 500;
}

/* Filter Pills */
.roc-filter-pills {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.roc-filter-label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-right: 8px;
}

.roc-filter-pill {
	padding: 10px 20px;
	border: 2px solid #e5e7eb;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
	background: white;
}

.roc-filter-pill:hover {
	border-color: #2563eb;
	color: #2563eb;
	background: rgba(37, 99, 235, 0.05);
}

.roc-filter-pill.active {
	border-color: #2563eb;
	background: #2563eb;
	color: white;
}

.roc-filter-pill.active:hover {
	background: #1e40af;
	border-color: #1e40af;
}

/* Results Info */
.roc-results-info {
	font-size: 15px;
	color: #6b7280;
}

.roc-results-info p {
	margin: 0;
}

.roc-results-info strong {
	color: #111827;
	font-weight: 600;
}

/* Phase 4: Search Results Message */
.roc-search-results-message {
	background: #f3f4f6;
	border-left: 4px solid #2563eb;
	border-radius: 8px;
	padding: 20px 25px;
	margin-bottom: 25px;
}

.roc-search-results-message h2 {
	font-size: 22px;
	color: #111827;
	margin: 0 0 5px 0;
	font-weight: 600;
}

.roc-search-results-message p {
	font-size: 15px;
	color: #6b7280;
	margin: 8px 0 0 0;
}

.roc-search-results-message a {
	color: #2563eb;
	text-decoration: underline;
	font-weight: 500;
}

.roc-search-results-message a:hover {
	color: #1e40af;
	text-decoration: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
	.roc-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		align-items: stretch;
	}

	.roc-page-title {
		font-size: 36px;
	}

	.roc-hero-section {
		padding: 40px 0;
	}
}

@media (max-width: 576px) {
	.roc-products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		align-items: stretch;
	}

	.roc-page-title {
		font-size: 28px;
	}

	.roc-page-subtitle {
		font-size: 16px;
	}

	.roc-search-wrapper {
		flex-direction: column;
	}

	.roc-search-input,
	.roc-search-btn,
	.roc-clear-search {
		width: 100%;
	}

	/* Phase 4: Search results message on mobile */
	.roc-search-results-message {
		padding: 15px 20px;
	}

	.roc-search-results-message h2 {
		font-size: 18px;
	}

	.roc-hero-section {
		padding: 30px 0;
	}

	.roc-main-content {
		padding: 30px 0 40px 0;
	}

	.roc-product-info {
		min-height: 160px;
	}

	.roc-filter-pills {
		flex-direction: column;
		align-items: stretch;
	}

	.roc-filter-pill {
		text-align: center;
		width: 100%;
	}

	.roc-filters-section {
		padding: 20px 0;
	}

	.roc-breadcrumb {
		font-size: 13px;
		margin-bottom: 20px;
	}

	.roc-results-info {
		font-size: 14px;
	}

	/* Mobile Container - Better Padding */
	.container {
		padding: 0 20px;
	}

	/* Mobile Products Section */
	.roc-products-section {
		width: 100%;
	}

	/* Mobile Filter Toggle Spacing */
	.roc-mobile-filter-toggle {
		margin-bottom: 25px;
	}

	/* Optimize Product Cards for Mobile */
	.roc-product-card {
		width: 100%;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
		border: 1px solid #e5e7eb;
	}

	.roc-product-image {
		height: 180px;
	}

	.roc-product-info {
		padding: 16px;
		min-height: 160px;
		padding-bottom: 75px;
	}

	.roc-product-title {
		font-size: 16px;
		line-height: 1.3;
		margin-bottom: 8px;
		-webkit-line-clamp: 2;
	}

	.roc-product-excerpt {
		font-size: 13px;
		line-height: 1.4;
		margin-bottom: 10px;
		-webkit-line-clamp: 2;
	}

	/* Mobile Badge Sizes */
	.roc-badge {
		font-size: 11px;
		padding: 4px 10px;
	}

	/* Mobile Price/Button Section */
	.roc-product-footer {
		padding: 14px 16px;
		gap: 10px;
	}

	.roc-product-price {
		font-size: 16px;
	}

	.roc-product-price .roc-sale-price {
		font-size: 20px;
	}

	.roc-product-price .roc-regular-price {
		font-size: 13px;
	}

	.roc-download-btn,
	.roc-view-details-btn {
		font-size: 13px;
		padding: 10px 16px;
	}
}

/* ============================================
   Phase 4.3: Search Active State & UX Enhancements
   ============================================ */

/* Smooth scroll behavior for anchor jumps */
html {
	scroll-behavior: smooth;
}

/* Scroll margin to account for any sticky headers or spacing */
#results {
	scroll-margin-top: 20px;
}

/* ============================================
   PHASE 5: ADVANCED FILTERING SIDEBAR
   ============================================ */

/* Content Wrapper - Two Column Layout */
.roc-content-wrapper {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Products Section - Main Content Area */
.roc-products-section {
	flex: 1;
	min-width: 0; /* Fix flex overflow issue */
}

/* Mobile Filter Toggle (Hidden on Desktop) */
.roc-mobile-filter-toggle {
	display: none; /* Hidden on desktop */
	width: 100%;
	padding: 12px 20px;
	margin-bottom: 20px;
	background: #2563eb;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.roc-mobile-filter-toggle svg {
	display: inline-block;
	vertical-align: middle;
}

.roc-mobile-filter-toggle:hover {
	background: #1e40af;
}

.roc-filter-badge {
	display: inline-block;
	background: #dc2626;
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	margin-left: 5px;
}

/* Filters Sidebar */
.roc-filters-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: #f9fafb;
	border-radius: 12px;
	padding: 20px;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

/* Sidebar Header */
.roc-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e5e7eb;
}

.roc-sidebar-title {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.roc-clear-filters {
	font-size: 13px;
	color: #dc2626;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.roc-clear-filters:hover {
	color: #b91c1c;
	text-decoration: underline;
}

.roc-close-sidebar {
	display: none; /* Hidden on desktop, shown on mobile */
	background: none;
	border: none;
	font-size: 24px;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.roc-close-sidebar:hover {
	color: #111827;
}

/* Filters Form */
.roc-filters-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Filter Group */
.roc-filter-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.roc-filter-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.roc-filter-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Checkbox Labels */
.roc-checkbox-label,
.roc-radio-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 8px 10px;
	border-radius: 6px;
	transition: background 0.2s;
}

.roc-checkbox-label:hover,
.roc-radio-label:hover {
	background: #e5e7eb;
}

.roc-checkbox,
.roc-radio {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #2563eb;
}

.roc-checkbox-text,
.roc-radio-text {
	flex: 1;
	font-size: 14px;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
}

.roc-checkbox-count {
	font-size: 12px;
	color: #9ca3af;
	margin-left: auto;
}

/* Price Range Inputs */
.roc-price-inputs {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.roc-price-input-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.roc-price-input-group label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

.roc-price-input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.roc-price-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.roc-price-separator {
	color: #6b7280;
	font-size: 16px;
	padding-bottom: 8px;
}

/* Sort Select */
.roc-sort-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: white;
	cursor: pointer;
	transition: border-color 0.3s;
}

.roc-sort-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Apply Filters Button */
.roc-apply-filters {
	display: none; /* Hidden on desktop, shown on mobile */
	width: 100%;
	padding: 12px 20px;
	background: #2563eb;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 10px;
}

.roc-apply-filters:hover {
	background: #1e40af;
}

/* ============================================
   RESPONSIVE STYLES - PHASE 5
   ============================================ */

/* Tablet (991px and below) */
@media (max-width: 991px) {
	.roc-filters-sidebar {
		width: 240px;
	}

	.roc-content-wrapper {
		gap: 20px;
	}
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
	/* Show mobile filter toggle */
	.roc-mobile-filter-toggle {
		display: flex;
	}

	/* Change content wrapper to column */
	.roc-content-wrapper {
		flex-direction: column;
		gap: 0;
	}

	/* Sidebar becomes full-screen overlay on mobile */
	.roc-filters-sidebar {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 320px;
		height: 100vh;
		max-height: 100vh;
		z-index: 9999;
		background: white;
		border-radius: 0;
		padding: 20px;
		transition: left 0.3s ease;
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	}

	/* Show sidebar when active */
	.roc-filters-sidebar.active {
		left: 0;
	}

	/* Show close button on mobile */
	.roc-close-sidebar {
		display: block;
	}

	/* Show apply button on mobile */
	.roc-apply-filters {
		display: block;
	}

	/* Add overlay when sidebar is open */
	.roc-filters-sidebar.active::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}
}

/* Extra small mobile (576px and below) */
@media (max-width: 576px) {
	.roc-filters-sidebar {
		width: 90%;
	}

	.roc-sidebar-title {
		font-size: 18px;
	}

	.roc-filter-title {
		font-size: 13px;
	}
}

/* ============================================
   PHASE 7: TOAST NOTIFICATION SYSTEM
   ============================================ */

/* Toast Container */
.roc-toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
	pointer-events: none; /* Allow clicks through container */
}

/* Individual Toast */
.roc-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
	transform: translateX(450px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	pointer-events: auto; /* Allow interaction with toast */
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #111827;
	position: relative;
}

/* Toast show state */
.roc-toast.show {
	transform: translateX(0);
	opacity: 1;
}

/* Toast Icon */
.roc-toast-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Toast Message */
.roc-toast-message {
	flex: 1;
	font-weight: 500;
}

/* Toast Close Button */
.roc-toast-close {
	flex-shrink: 0;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.roc-toast-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #111827;
}

.roc-toast-close:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
}

/* Toast Action Button */
.roc-toast-action {
	flex-shrink: 0;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.roc-toast-action:hover {
	background: white;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	color: #111827;
}

.roc-toast-action:focus {
	outline: 2px solid white;
	outline-offset: 2px;
}

.roc-toast-action:active {
	transform: translateY(0);
}

/* Toast Types */

/* Success Toast (Green) */
.roc-toast-success {
	background: #10b981;
	color: white;
	border-left: 4px solid #059669;
}

.roc-toast-success .roc-toast-icon {
	color: white;
}

.roc-toast-success .roc-toast-close {
	color: rgba(255, 255, 255, 0.8);
}

.roc-toast-success .roc-toast-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

/* Success toast action button (white button on green background) */
.roc-toast-success .roc-toast-action {
	background: white;
	color: #10b981;
	font-weight: 700;
}

.roc-toast-success .roc-toast-action:hover {
	background: #f0fdf4;
	color: #059669;
	transform: translateY(-1px) scale(1.02);
}

/* Error Toast (Red) */
.roc-toast-error {
	background: #ef4444;
	color: white;
	border-left: 4px solid #dc2626;
}

.roc-toast-error .roc-toast-icon {
	color: white;
}

.roc-toast-error .roc-toast-close {
	color: rgba(255, 255, 255, 0.8);
}

.roc-toast-error .roc-toast-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

/* Info Toast (Blue) */
.roc-toast-info {
	background: #2563eb;
	color: white;
	border-left: 4px solid #1e40af;
}

.roc-toast-info .roc-toast-icon {
	color: white;
}

.roc-toast-info .roc-toast-close {
	color: rgba(255, 255, 255, 0.8);
}

.roc-toast-info .roc-toast-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

/* Mobile Responsive Toast */
@media (max-width: 768px) {
	.roc-toast-container {
		top: 10px;
		left: 10px;
		right: 10px;
		max-width: none;
	}

	.roc-toast {
		transform: translateY(-100px);
	}

	.roc-toast.show {
		transform: translateY(0);
	}
}

/* ============================================
   PHASE 7: LOADING STATES
   ============================================ */

/* Loading Spinner Animation */
.roc-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: roc-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

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

/* Dark spinner for light backgrounds */
.roc-spinner-dark {
	border-color: rgba(0, 0, 0, 0.1);
	border-top-color: #2563eb;
}

/* Button Loading States */
.roc-btn-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.8;
}

.roc-apply-filters:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form Loading State */
.roc-filters-form.roc-loading {
	pointer-events: none;
	opacity: 0.7;
}

/* ============================================
   PHASE 7: INTERACTION POLISH
   ============================================ */

/* Product Card Image Hover Effect */
.roc-product-image {
	overflow: hidden;
	position: relative;
}

.roc-product-image img {
	transition: transform 0.4s ease;
}

.roc-product-card:hover .roc-product-image img {
	transform: scale(1.08);
}

/* Button Smooth Transitions */
.roc-btn {
	transition: all 0.25s ease;
	position: relative;
	overflow: hidden;
}

/* Enhanced Button Focus States for Accessibility */
.roc-btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.roc-btn-free:focus-visible {
	outline-color: #10b981;
}

.roc-btn-premium:focus-visible {
	outline-color: #f59e0b;
}

/* Product Card Focus State (keyboard navigation) */
.roc-product-card:focus-within {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 12px;
}

/* Product Title Link Smooth Transition */
.roc-product-title a {
	transition: color 0.2s ease;
}

/* Category Badge Hover */
.roc-product-category {
	transition: color 0.2s ease;
}

.roc-product-card:hover .roc-product-category {
	color: #2563eb;
}

/* Filter Pills Smooth Transitions */
.roc-filter-pill {
	transition: all 0.2s ease;
}

/* Mobile Filter Toggle Smooth Transition */
.roc-mobile-filter-toggle {
	transition: all 0.2s ease;
}

.roc-mobile-filter-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Clear Filters Button Hover */
.roc-clear-filters {
	transition: all 0.2s ease;
}

.roc-clear-filters:hover {
	transform: translateX(-2px);
}

/* Pagination Link Smooth Transitions */
.roc-pagination a {
	transition: all 0.2s ease;
}

.roc-pagination a:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

/* Search Input Focus Enhancement */
.roc-search-input:focus {
	transform: translateY(-1px);
}

/* Checkbox and Radio Smooth Transitions */
.roc-checkbox,
.roc-radio {
	transition: all 0.15s ease;
}

/* Sort Select Smooth Transition */
.roc-sort-select {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roc-sort-select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Price Input Smooth Transitions */
.roc-price-input {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roc-price-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
