/**
 * Product Table Frontend Styles
 */

.se-product-table {
	margin: 0;
}

/* Tabs */
.se-pt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.se-pt-tab {
	display: inline-block !important;
	text-align: center !important;
	padding: 12px 24px !important;
	background-color: #FFFFFF !important;
	color: #1C244B !important;
	border: 1px solid #000000 !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	font-family: 'Poppins', Arial, Sans-serif !important;
	transition: all 0.3s ease !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.se-pt-tab:hover {
	background-color: #F3F5F8 !important;
	color: #3791C5 !important;
	border-color: #3791C5 !important;
}

.se-pt-tab.active {
	background-color: #1C244B !important;
	color: #FFFFFF !important;
	border-color: #1C244B !important;
}

/* Content */
.se-pt-content {
	background: transparent;
	padding: 0;
	border: none;
}

.se-pt-tab-content {
	display: none;
}

.se-pt-tab-content.active {
	display: block;
}

/* Table */
.se-pt-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.se-pt-table thead {
	background: #f5f5f5;
	border-bottom: 2px solid #ddd;
}

.se-pt-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #333;
}

.se-pt-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background 0.2s;
}

.se-pt-table tbody tr:hover {
	background: #f9f9f9;
}

.se-pt-table td {
	padding: 15px 12px;
	vertical-align: middle;
}

/* Columns */
.col-checkbox {
	width: 40px;
	text-align: center;
}

.col-checkbox input[type="checkbox"] {
	cursor: pointer;
	width: 18px;
	height: 18px;
	margin: 0;
}

.col-model {
	width: 100px;
}

.col-model img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.col-name {
	width: 40%;
}

.col-name a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.col-name a:hover {
	text-decoration: underline;
}

.variation-attributes {
	color: #666;
	font-weight: normal;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

.se-pt-variation {
	background: #fafafa;
}

.se-pt-variation:hover {
	background: #f5f5f5;
}

.col-number {
	width: 20%;
	color: #666;
	font-family: monospace;
}

.col-quantity {
	width: 20%;
}

/* Quantity Input */
.quantity-input {
	display: flex;
	align-items: center;
	gap: 10px;
}

.se-pt-quantity {
	width: 60px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--e-global-color-text, #000000);
	border-radius: 10px;
	text-align: center;
	font-size: 14px;
	background-color: #fff;
	color: var(--e-global-color-primary, #1C244B);
	transition: all 0.3s ease;
	font-family: var(--e-global-typography-accent-font-family, 'Poppins'), Sans-serif;
}

.se-pt-quantity:focus {
	outline: none;
	border-color: var(--e-global-color-accent, #3791C5);
}

.se-pt-add-to-cart {
	display: inline-block !important;
	text-align: center !important;
	padding: 12px 24px !important;
	background-color: #FFFFFF !important;
	color: #1C244B !important;
	border: 1px solid #000000 !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	font-family: 'Poppins', Arial, Sans-serif !important;
	transition: all 0.3s ease !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.se-pt-add-to-cart:hover {
	background-color: #F3F5F8 !important;
	color: #3791C5 !important;
	border-color: #3791C5 !important;
}

.se-pt-add-to-cart:active {
	transform: none !important;
}

.se-pt-add-to-cart:disabled {
	background-color: #d5d8dc !important;
	color: #babfc5 !important;
	cursor: not-allowed !important;
	border-color: #d5d8dc !important;
}

.out-of-stock {
	color: #d63638;
	font-style: italic;
}

/* Actions */
.se-pt-actions {
	margin-top: 20px;
	padding-top: 0;
	border-top: none;
	text-align: center;
}

.se-pt-add-selected {
	display: inline-block !important;
	text-align: center !important;
	padding: 12px 24px !important;
	background-color: #FFFFFF !important;
	color: #1C244B !important;
	border: 1px solid #000000 !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	font-family: 'Poppins', Arial, Sans-serif !important;
	transition: all 0.3s ease !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.se-pt-add-selected:hover {
	background-color: #F3F5F8 !important;
	color: #3791C5 !important;
	border-color: #3791C5 !important;
}

.se-pt-add-selected:active {
	transform: none !important;
}

.se-pt-add-selected:disabled {
	background-color: #d5d8dc !important;
	color: #babfc5 !important;
	cursor: not-allowed !important;
	border-color: #d5d8dc !important;
}

/* Responsive */
@media (max-width: 768px) {
	.se-pt-tabs {
		flex-direction: column;
	}

	.se-pt-tab {
		width: 100%;
		text-align: center;
	}

	.se-pt-table {
		display: block;
		overflow-x: auto;
	}

	.col-model {
		width: 60px;
	}

	.col-model img {
		width: 50px;
		height: 50px;
	}

	.quantity-input {
		flex-direction: column;
		gap: 5px;
	}

	.se-pt-quantity {
		width: 100%;
	}

	.se-pt-add-to-cart {
		width: 100%;
	}
}
