#ag_container {
	clear: both;
}
#ag_bo_container {
	clear: both;
	width:900px;
	margin:auto
}
/* Default textbox / radio cell */
.ag_attribute_container {
	width:37px;
	padding:0 0 0 0 ;
	margin:0 0 0 0;
	border: none;
}

/* Textbox when out of stock, but can still get ordered*/
.ag_attribute_oos_order_container {
	border: 1px solid red;
}

/* Textbox when out of stock, or non-existing combination */
.ag_attribute_disable_container {
	display: none;
}

/* Default  textbox / radio cell */
.ag_attribute_selected {
	padding:0 0 0 0 ;
	margin:0 0 0 0;
}

.ag_attribute_selected_text {
	width:35px;
	text-align:center;
}

.ag_attribute_selected_single_text {
	width:20px;
	text-align:center;
}

.ag_attribute_selected_radio {
	width:16px;
	border: none;
}

.ag_price_change{
	clear:both;
	margin:auto;
	padding-bottom:6px;
}

.ag_price_change_single{
	float: right;
	margin:auto;
	padding-bottom:6px;
}
.ag_total_price{
	text-align: right;	
}

.ag_pointer {
	cursor: pointer;
}

.ag_single_table{
	border-top: 1px dotted grey;
	height: 3px;
	width: 100%;
}
/* Textbox when out of stock, but can still get ordered*/
.ag_attribute_oos_order {
	background-color: #FFDEDE;
}

/* Textbox when out of stock, or non-existing combination */
.ag_attribute_disable {
	display: none;
}

.ag_oos_single_text {
	color: red;
}

#ag_box {background: transparent; margin:0px 0em 10px 0em;}
.xtop, .xbottom {display:block; background:transparent; font-size:1px;}
.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}
.xb1, .xb2, .xb3 {height:1px;}
.xb2, .xb3, .xb4 {background:transparent; border-left:1px solid #d9d9d9; border-right:1px solid #d9d9d9;}
.xb1 {margin:0 5px; background:#d9d9d9;}
.xb2 {margin:0 3px; border-width:0 2px;}
.xb3 {margin:0 2px;}
.xb4 {height:2px; margin:0 1px;}
.xbtop {background-color:transparent;}
.xbbot {background-color:#ffffff}

.ag_header {
	display:block;
	background:#f3f3f3; 
	padding:10px;
	border-bottom:1px solid #d9d9d9;
}

.ag_description {
	display:block;
	padding:10px;
	border-bottom:1px solid #d9d9d9;
}

.ag_content {
	display:block;
	padding:10px;
}

#ag_attribute_groups {
	list-style:none;
	margin:0;
	padding:0;
}

#ag_attribute_groups li {
	margin:0;
	padding:0;
}

#ag_attribute_groups li img.handle {
	cursor:move;
}

.ag_csc {
	text-align:center;
}

.ag_csl {
	text-align:left;
}

.ag_sing_att_name{
	font-weight:bold;
}

.ag_sign_in_stock{
	font-size:11px;
	color:#666;
}

.ag_in_stock{
	font-size:11px;
	color:#666;
}

#ag_container .box-info-product {
	margin:0;
}

#ag_container  table td, #ag_container  table th {
	padding:5px;
}

#ag_container {
	margin:0;
}

.ag_in_stock {
	color:#666;
}

.ag_price_change {
	clear:both;
}

.ag_attribute_container {
	width:37px;
}

#ag_container .lnk_view {
	margin:0;
}

#ag_additional_1, #ag_additional_2 { width: 100px; }

.ag-action-buttons {
	text-align:center;
}

.ag-action-buttons span {
	margin:0 5px;
}

.ag-additional-attributes {
	margin:10px 0;
}

.ag-additional-attributes > div, .ag-additional-attributes > div > div{
	margin:5px 0;
}

.ag-total-qty,
.ag-total-price {
	font-weight:bold;
	font-size:14px;
}

.ag-color-cell {
	text-align:center;
	vertical-align:top;
	padding:10px;
}

.ag-color-img {
	width:80px;
	height:80px;
	border:2px solid #e0e0e0;
	border-radius:8px;
	object-fit:cover;
	margin-bottom:8px;
	transition:all 0.3s ease;
}

.ag-color-img:hover {
	border-color:#3b5bdb;
	transform:scale(1.05);
}

.ag-color-fallback {
	width:80px;
	height:80px;
	border:2px solid #e0e0e0;
	border-radius:8px;
	display:block;
	margin:0 auto 8px auto;
	transition:all 0.3s ease;
}

.ag-color-fallback:hover {
	border-color:#3b5bdb;
	transform:scale(1.05);
}

.ag-color-name {
	font-weight:bold;
	font-size:14px;
	color:#2d3748;
	margin-bottom:5px;
	text-align:center;
}

.ag-color-row {
	display:flex;
	align-items:center;
	gap:10px;
}

.ag-color-img-small {
	width:40px;
	height:40px;
	border:2px solid #e0e0e0;
	border-radius:6px;
	object-fit:cover;
	transition:all 0.3s ease;
}

.ag-color-img-small:hover {
	border-color:#3b5bdb;
	transform:scale(1.1);
}

.ag-color-name-inline {
	font-weight:bold;
	font-size:14px;
	color:#2d3748;
	flex:1;
}

.ag-qty-cell {
	text-align:center;
	vertical-align:middle;
}

.ag-qty-cell input.ag_attribute_selected_single_text {
	width:60px;
	height:35px;
	text-align:center;
	border:2px solid #e0e0e0;
	border-radius:6px;
	font-size:14px;
	font-weight:bold;
	transition:all 0.3s ease;
}

.ag-qty-cell input.ag_attribute_selected_single_text:focus {
	border-color:#3b5bdb;
	outline:none;
	box-shadow:0 0 0 3px rgba(59, 91, 219, 0.1);
}

.ag-qty-cell .ag_pointer {
	width:35px;
	height:35px;
	border:2px solid #e0e0e0;
	background:white;
	border-radius:6px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:16px;
	font-weight:bold;
	color:#666;
	cursor:pointer;
	transition:all 0.2s ease;
}

.ag-qty-cell .ag_pointer:hover {
	border-color:#3b5bdb;
	background:#f8f9fa;
	color:#3b5bdb;
}

.ag-color-stock {
	font-size:11px;
	color:#666;
	margin-top:5px;
	display:block;
}

/* Nuevos estilos para el diseño de dos columnas */
.ag-two-column-layout {
	display:flex;
	gap:30px;
	align-items:flex-start;
}

.ag-combinations-column {
	flex:1;
	min-width:0;
}

.ag-pricing-column {
	width:380px;
	position:sticky;
	top:20px;
}

.ag-combination-card {
	border:2px solid #f0f0f0;
	border-radius:12px;
	padding:20px;
	transition:all 0.3s ease;
	background:white;
	margin-bottom:15px;
}

.ag-combination-card:hover {
	border-color:#3b5bdb;
	box-shadow:0 4px 20px rgba(59, 91, 219, 0.15);
}

.ag-combination-card.selected {
	border-color:#3b5bdb;
	background:linear-gradient(135deg, rgba(59, 91, 219, 0.05) 0%, rgba(59, 91, 219, 0.1) 100%);
}

.ag-pricing-card {
	background:white;
	border-radius:12px;
	box-shadow:0 4px 20px rgba(0,0,0,0.08);
	overflow:hidden;
}

.ag-pricing-header {
	background:linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	color:white;
	padding:20px;
	text-align:center;
}

.ag-pricing-content {
	padding:25px;
}

.ag-combinations-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
	gap:20px;
}

.ag-breakdown-item {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding:8px 0;
	border-bottom:1px solid #f0f0f0;
}

.ag-breakdown-item:last-child {
	border-bottom:none;
}

.ag-breakdown-item .ag-item-name {
	font-weight:bold;
	color:#2d3748;
}

.ag-breakdown-item .ag-item-quantity {
	color:#666;
	font-size:12px;
}

.ag-breakdown-item .ag-item-price {
	font-weight:bold;
	color:#3b5bdb;
}

.ag-total-section {
	border-top:2px solid #f0f0f0;
	padding-top:20px;
	margin-top:20px;
}

.ag-total-row {
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:10px;
}

.ag-total-row.final {
	border-top:2px solid #e0e0e0;
	padding-top:15px;
	margin-top:15px;
}

.ag-total-row.final .ag-total-label,
.ag-total-row.final .ag-total-value {
	font-size:16px;
	font-weight:bold;
	color:#2d3748;
}

.ag-add-to-cart-btn {
	width:100%;
	padding:15px;
	background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border:none;
	border-radius:8px;
	color:white;
	font-size:16px;
	font-weight:bold;
	cursor:pointer;
	transition:all 0.3s ease;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:8px;
}

.ag-add-to-cart-btn:hover {
	transform:translateY(-2px);
	box-shadow:0 6px 25px rgba(102, 126, 234, 0.3);
}

.ag-add-to-cart-btn:active {
	transform:translateY(0);
}

/* Botón flotante de carrito de presupuesto */
.ag-quote-cart-button {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #9ccc24 0%, #54a42c 100%);
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(156, 204, 36, 0.3);
	cursor: pointer;
	z-index: 1000;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	text-decoration: none;
}

.ag-quote-cart-button:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 25px rgba(156, 204, 36, 0.4);
	text-decoration: none;
	color: white;
}

.ag-quote-cart-button:active {
	transform: translateY(-1px) scale(1.02);
}

.ag-quote-cart-button .ag-cart-icon {
	position: relative;
}

/* Estilo para el símbolo del carrito */
.ag-quote-cart-button .ag-cart-symbol {
	font-size: 24px;
	display: block;
	line-height: 1;
}

.ag-quote-cart-button .ag-cart-count {
	position: absolute;
	bottom: -16px;
	right: -12px;
	background: transparent;
	color: white;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	line-height: 1;
}

.ag-quote-cart-button .ag-cart-count.ag-empty {
	display: none;
}

/* Estilo para contadores con muchos dígitos */
.ag-quote-cart-button .ag-cart-count:not(.ag-empty) {
	background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	border-radius: 4px;
	padding: 2px 4px;
	min-width: 16px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animación de pulso eliminada para un diseño más profesional */

/* Preview del carrito al hacer hover */
.ag-cart-preview {
	position: absolute;
	top: 70px;
	right: 0;
	width: 320px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1001;
	border: 1px solid #e5e7eb;
}

.ag-quote-cart-button:hover .ag-cart-preview {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ag-cart-preview-header {
	background: linear-gradient(135deg, #8cd028 0%, #64bc28 100%);
	color: white;
	padding: 15px 20px;
	border-radius: 12px 12px 0 0;
	font-weight: bold;
	font-size: 16px;
}

.ag-cart-preview-content {
	padding: 15px 20px;
	max-height: 300px;
	overflow-y: auto;
}

.ag-cart-preview-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.ag-cart-preview-item:last-child {
	border-bottom: none;
}

.ag-cart-preview-item-image {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3f4f6;
}

.ag-cart-preview-item-details {
	flex: 1;
	min-width: 0;
}

.ag-cart-preview-item-name {
	font-weight: bold;
	font-size: 14px;
	color: #1f2937;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ag-cart-preview-item-info {
	font-size: 12px;
	color: #6b7280;
}

.ag-cart-preview-item-price {
	font-weight: bold;
	font-size: 14px;
	color: #000000;
}

.ag-cart-preview-footer {
	padding: 15px 20px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	border-radius: 0 0 12px 12px;
}

.ag-cart-preview-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.ag-cart-preview-total-label {
	font-weight: bold;
	color: #1f2937;
}

.ag-cart-preview-total-value {
	font-weight: bold;
	font-size: 16px;
	color: #000000;
}

.ag-cart-preview-button {
	width: 100%;
	padding: 10px;
	background: linear-gradient(135deg, #68a428 0%, #54a42c 100%);
	color: white !important;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
	text-align: center;
}

.ag-cart-preview-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(104, 164, 40, 0.3);
	text-decoration: none;
	color: white !important;
}

.ag-cart-preview-empty {
	text-align: center;
	padding: 30px 20px;
	color: #6b7280;
	font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
	.ag-two-column-layout {
		flex-direction:column;
		gap:20px;
	}
	
	.ag-pricing-column {
		width:100%;
		position:static;
	}
	
	.ag-combinations-grid {
		grid-template-columns:1fr;
		gap:15px;
	}
	
	.ag-combination-card {
		padding:15px;
	}
	
	.ag-quote-cart-button {
		top: 20px;
		right: 20px;
		width: 55px;
		height: 55px;
		font-size: 20px;
	}
	
	.ag-cart-preview {
		width: 280px;
		right: -10px;
		top: 75px;
	}
}