/**
 * Celsius WooCommerce Elementor Widgets Styling
 */

/* General Widget Wrapper */
.celsius-widget-wrapper {
	font-family: inherit;
	color: #2c3e50;
	box-sizing: border-box;
}

/* Odoo Specifications Widget */
.celsius-odoo-specs-table-wrapper {
	width: 100%;
	overflow-x: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	background: #ffffff;
	border: 1px solid #e9ecef;
}

.celsius-odoo-specs-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.95rem;
}

.celsius-odoo-specs-table th,
.celsius-odoo-specs-table td {
	padding: 12px 18px;
	border-bottom: 1px solid #f1f3f5;
}

.celsius-odoo-specs-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	color: #1a252f;
	width: 35%;
}

.celsius-odoo-specs-table tr:last-child th,
.celsius-odoo-specs-table tr:last-child td {
	border-bottom: none;
}

.celsius-odoo-specs-table tr:hover {
	background-color: #f8f9fa;
	transition: background-color 0.2s ease-in-out;
}

.celsius-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.celsius-spec-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.celsius-spec-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.celsius-spec-card-label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 4px;
	font-weight: 600;
}

.celsius-spec-card-value {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0f172a;
}

/* Attribute Grid Widget */
.celsius-attribute-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.celsius-attribute-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 6px 14px;
	transition: all 0.2s ease;
}

.celsius-attribute-item:hover {
	border-color: #3b82f6;
	background: #eff6ff;
}

.celsius-attribute-thumb {
	width: 24px;
	height: 24px;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
}

.celsius-attribute-label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #334155;
}

/* Product Extra Info Widget */
.celsius-extra-info-container {
	background: #ffffff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #e2e8f0;
}

.celsius-extra-info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.celsius-extra-info-item:last-child {
	margin-bottom: 0;
}

.celsius-extra-info-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #f0f7ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.celsius-extra-info-content h4 {
	margin: 0 0 4px 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
}

.celsius-extra-info-content p {
	margin: 0;
	font-size: 0.9rem;
	color: #64748b;
	line-height: 1.5;
}

/* ==========================================================================
   Product Debug Inspector Widget
   ========================================================================== */
.celsius-debug-container {
	background: #1e1e2e;
	color: #cdd6f4;
	font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
	border-radius: 10px;
	padding: 20px;
	border: 1px solid #313244;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	margin: 20px 0;
	box-sizing: border-box;
}

.celsius-debug-empty {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
	padding: 16px;
	border-radius: 8px;
	font-size: 14px;
}

.celsius-debug-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 2px solid #313244;
}

.celsius-debug-header-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.celsius-debug-header-title h3 {
	margin: 0;
	color: #f5e0dc;
	font-size: 1.2rem;
	font-weight: 700;
}

.celsius-debug-header-title small {
	color: #89dceb;
	font-weight: normal;
}

.celsius-debug-badge {
	background: #a6e3a1;
	color: #11111b;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 8px;
	border-radius: 4px;
	letter-spacing: 1px;
}

.celsius-debug-search-input {
	background: #11111b;
	border: 1px solid #45475a;
	color: #cdd6f4;
	padding: 8px 14px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
	width: 280px;
	outline: none;
	transition: border-color 0.2s ease;
}

.celsius-debug-search-input:focus {
	border-color: #89b4fa;
}

.celsius-debug-section {
	background: #181825;
	border: 1px solid #313244;
	border-radius: 8px;
	margin-bottom: 12px;
	overflow: hidden;
}

.celsius-debug-summary {
	padding: 12px 16px;
	background: #1e1e2e;
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #cdd6f4;
	font-size: 14px;
	transition: background 0.2s ease;
}

.celsius-debug-summary:hover {
	background: #313244;
}

.celsius-debug-count {
	color: #a6adc8;
	font-size: 12px;
	margin-left: auto;
}

.celsius-debug-body {
	padding: 16px;
	border-top: 1px solid #313244;
	background: #181825;
}

.celsius-debug-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.celsius-debug-table th {
	background: #11111b;
	color: #89b4fa;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid #313244;
}

.celsius-debug-table td {
	padding: 8px 14px;
	border-bottom: 1px solid #313244;
	vertical-align: top;
}

.celsius-debug-key {
	color: #f9e2af;
	font-weight: 600;
	width: 250px;
	word-break: break-all;
}

.celsius-debug-val pre,
.celsius-debug-pre {
	background: #11111b !important;
	color: #a6e3a1 !important;
	padding: 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	max-height: 400px;
	overflow-y: auto;
	margin: 0 !important;
	border: 1px solid #313244 !important;
	white-space: pre-wrap;
	word-break: break-all;
}

.celsius-debug-odoo-highlight {
	background: #2a2b3d;
	border-left: 4px solid #fab387;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.celsius-debug-odoo-highlight h4 {
	margin: 0 0 8px 0;
	color: #fab387;
	font-size: 13px;
}

.celsius-debug-image-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.celsius-debug-img-card {
	background: #11111b;
	border: 1px solid #313244;
	border-radius: 6px;
	padding: 6px;
	text-align: center;
}

.celsius-debug-main-img {
	border-color: #a6e3a1;
}

.celsius-debug-img-card img {
	max-width: 100%;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	margin: 0 auto 6px;
}

.celsius-debug-img-card span {
	font-size: 10px;
	color: #a6adc8;
	display: block;
	word-break: break-all;
}

.celsius-debug-notice {
	color: #f9e2af;
	margin: 0;
	font-size: 13px;
}

/* ==========================================================================
   Product Ribbon Overlay (.celsius-product-single-main-photo)
   ========================================================================== */
.celsius-product-single-main-photo,
.celsius-product-single-main-photo .elementor-widget-container {
	position: relative !important;
}

.celsius-product-ribbon {
	position: absolute;
	top: 0px;
	z-index: 25;
	padding: 6px 14px;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	background-color: #e63946;
	color: #ffffff;
	pointer-events: none;
	line-height: 1.2;
	display: inline-block;
	max-width: 80%;
	word-break: break-word;
	transition: all 0.3s ease;
}

.celsius-product-ribbon span {
	display: inline-block;
}

/* Ribbons positioned on the right */
.celsius-product-ribbon.o_ribbon_right,
.celsius-product-ribbon.ribbon-right,
.celsius-product-ribbon.right {
	left: auto !important;
	right: 0px !important;
}

/* Ribbons positioned on the left */
.celsius-product-ribbon.o_ribbon_left,
.celsius-product-ribbon.ribbon-left,
.celsius-product-ribbon.left {
	right: auto !important;
	left: 0px !important;	
}

/* Elementor Widget Ribbon Helper Styles */
.celsius-ribbon-widget-wrapper {
	position: relative;
	width: 100%;
}

.elementor-widget-celsius_product_ribbon {
	z-index: 25;
}

.celsius-product-ribbon.celsius-ribbon-inline {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	display: inline-block;
}

/* ==========================================================================
   Catalog Ordering Widget (.celsius-catalog-ordering-widget)
   ========================================================================== */
.celsius-catalog-ordering-widget {
	display: block;
	width: 100%;
}

.celsius-ordering-form {
	margin: 0;
	padding: 0;
}

.celsius-ordering-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.celsius-ordering-label {
	display: inline-block;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #333333;
	white-space: nowrap;
}

.celsius-ordering-select {
	display: inline-block;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #2c3e50;
	background-color: #ffffff;
	border: 1px solid #dcdfe6;
	border-radius: 6px;
	outline: none;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}

.celsius-ordering-select:hover,
.celsius-ordering-select:focus {
	border-color: #409eff;
	box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}



