/*#########################*/
/*#### PRODUCT CARD */
/*#########################*/
.product-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: visible;
	transition: all 0.3s ease-in-out;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #f0f0f0;
	z-index: 1;
}

.product-card-image {
	overflow: hidden;
}

.product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	border-color: #e0e0e0;
}

.product-card-image {
	position: relative;
	overflow: hidden;
	background: #f8f9fa;
	padding: 20px;
	text-align: center;
	min-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.product-card-image img {
	width: 100%;
	height: auto;
	max-width: 200px;
	transition: transform 0.3s ease-in-out;
}

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

/* Product Badges */
.product-badges {
	position: absolute;
	top: 18px;
	left: -18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 3;
}

.product-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-badge-sale,
.product-badge-discount {
	background: var(--primary-bg, #007bff);
	color: var(--primary-color, #fff);
}

.product-badge-hot {
	background: #dc3545;
	color: #fff;
}

.product-badge-new {
	background: #28a745;
	color: #fff;
}

.product-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	z-index: 2;
}

.product-card:hover .product-card-overlay {
	opacity: 1;
}

.product-card-actions {
	display: flex;
	gap: 10px;
}

.btn-action {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
	font-size: 16px;
}

.btn-action:hover {
	background: var(--primary-bg);
	color: var(--primary-color);
	transform: scale(1.1);
}

.product-card-body {
	padding: 18px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
}

.product-card-category {
	font-size: 13px;
	color: #6c757d;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-card-title {
	margin: 0 0 10px 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	min-height: 45px;
}

.product-card-title a {
	color: #212529;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.product-card-title a:hover {
	color: var(--primary-bg);
}

.product-card-rating {
	margin-bottom: 10px;
	font-size: 14px;
	color: #ffc107;
	display: flex;
	align-items: center;
	gap: 2px;
}

.product-card-rating .fa-star-o,
.product-card-rating .fa-star-empty {
	color: #ddd;
}

.product-card-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #28a745;
}

.product-card-stock .fa-check-circle {
	color: #28a745;
}

.product-card-stock.out-of-stock {
	color: #dc3545;
}

.product-card-stock.out-of-stock .fa-times-circle {
	color: #dc3545;
}

.product-card-price {
	margin-bottom: 16px;
}

.product-card-price .price-current,
.product-card-price .price-new {
	color: #212529;
	font-size: 19px;
	font-weight: 600;
}

.product-card-price .price-old {
	color: #999;
	text-decoration: line-through;
	font-weight: 400;
	font-size: 15px;
	margin-left: 8px;
}

.product-card-add-to-cart {
	width: 100%;
	padding: 12px;
	background: var(--primary-bg, #007bff);
	color: var(--primary-color, #fff);
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	margin-bottom: 10px;
}

.product-card-add-to-cart:hover {
	background: var(--primary-bg, #007bff);
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card-sku {
	font-size: 11px;
	color: #999;
	text-align: center;
	margin-top: 4px;
}

.product-card-sku strong {
	font-weight: 600;
}

/* Product Badge Ribbon for Thumb */
.product-badge-ribbon-thumb {
	position: absolute;
	top: 12px;
	left: -20px;
	background: #dc3545;
	color: #fff;
	padding: 5px 35px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	transform: rotate(-45deg);
	transform-origin: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	z-index: 4;
	white-space: nowrap;
}

.product-badge-top-right-thumb {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--secondary-bg, #ff9800);
	color: var(--secondary-color, #fff);
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 4;
}

/* Brand and Code Section */
.product-card-brand-code {
	background: #f8f9fa;
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

.product-card-brand-code .brand-code-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.product-card-brand {
	color: var(--primary-bg, #007bff);
	text-decoration: underline;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.product-card-code {
	color: #6c757d;
	text-transform: uppercase;
	font-weight: 400;
}

.product-card-quantity-right {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
}

.product-card-quantity-right .quantity-label {
	color: #6c757d;
	font-weight: 400;
}

.product-card-quantity-right .quantity-value {
	color: #212529;
	font-weight: 600;
}

/* Quantity and Actions Row */
.product-card-actions-row {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
}

.product-card-quantity-group {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}

.product-card-quantity-group .qty-btn {
	background: #fff;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	color: #495057;
	transition: all 0.2s ease;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
}

.product-card-quantity-group .qty-btn:hover {
	background: #f8f9fa;
	color: var(--primary-bg, #007bff);
}

.product-card-quantity-group .qty-input {
	border: none;
	width: 45px;
	text-align: center;
	padding: 8px 4px;
	font-size: 14px;
	font-weight: 600;
	border-left: 1px solid #dee2e6;
	border-right: 1px solid #dee2e6;
	background: #fff;
}

.product-card-quantity-group .qty-input:focus {
	outline: none;
	background: #fff;
}

.product-card-cart-form {
	flex: 1;
	min-width: 140px;
	max-width: calc(100% - 120px);
}

.product-card-add-to-cart {
	width: 100%;
	padding: 11px 16px;
	background: var(--primary-bg, #1e3c72);
	color: var(--primary-color, #fff);
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.product-card-add-to-cart:hover:not(:disabled) {
	background: var(--primary-bg, #1e3c72);
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card-add-to-cart:disabled {
	background: #adb5bd;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Notify Me Button */
.product-card-notify-me {
	width: 100%;
	padding: 11px 16px;
	background: var(--secondary-bg, #ff9800);
	color: var(--secondary-color, #fff);
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.product-card-notify-me:hover {
	background: var(--secondary-bg, #ff9800);
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: var(--secondary-color, #fff);
}

.product-card-notify-me i {
	font-size: 14px;
}

/* Notify Me Modal - Created dynamically in JS and appended to body, so Bootstrap's default z-index works */
/* No special CSS needed since modal is outside product card DOM structure */

.notify-me-form .form-label {
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 6px;
}

.notify-me-form .form-control {
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
}

.notify-me-form .form-control:focus {
	border-color: var(--primary-bg, #007bff);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Ensure modals appear above product cards */
.modal {
	z-index: 1055 !important;
}

.modal-backdrop {
	z-index: 1050 !important;
}

.product-card-quick-actions {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-shrink: 0;
}

.product-card-quick-actions form {
	display: flex;
	gap: 6px;
}

.btn-quick-action-thumb {
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	color: #6c757d;
	transition: all 0.2s ease;
	font-size: 14px;
	cursor: pointer;
}

.btn-quick-action-thumb:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	color: #495057;
}

/* Secondary Actions (Buy Now, Question) */
.product-card-secondary-actions {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.product-card-action-btn {
	background: transparent;
	border: 1px solid #e0e0e0;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
	justify-content: center;
}

.product-card-action-btn i {
	font-size: 14px;
	opacity: 0.7;
}

.product-card-action-btn:hover {
	background: #f8f9fa;
	border-color: #d0d0d0;
	color: #333;
	text-decoration: none;
}

.product-card-action-btn:hover i {
	opacity: 1;
}

.product-card-action-btn.buy-now-btn {
	border-color: var(--primary-bg, #007bff);
	color: var(--primary-bg, #007bff);
	background: transparent;
}

.product-card-action-btn.buy-now-btn:hover {
	background: var(--primary-bg, #007bff);
	color: var(--primary-color, #fff);
	border-color: var(--primary-bg, #007bff);
}

.product-card-action-btn.buy-now-btn:hover i {
	opacity: 1;
	color: var(--primary-color, #fff);
}

.product-card-action-btn.question-btn {
	border-color: #ccc;
	color: #666;
	background: transparent;
}

.product-card-action-btn.question-btn:hover {
	background: #f5f5f5;
	border-color: #bbb;
	color: #333;
}

/* Responsive for Product Cards */
@media (max-width: 576px) {
	.product-card-actions-row {
		flex-direction: column;
	}
	
	.product-card-quantity-group {
		width: 100%;
	}
	
	.product-card-cart-form {
		width: 100%;
	}
	
	.product-card-quick-actions {
		width: 100%;
		justify-content: center;
	}
	
	.product-card-secondary-actions {
		flex-direction: column;
	}
	
	.product-card-action-btn {
		width: 100%;
		justify-content: center;
	}
}

