/**
 * Guicho Sport — WooCommerce Custom Stylesheet Override
 *
 * @package guicho-sport
 * @version 1.0.0
 */

/* ============================================================
   STAR RATING WOOCOMMERCE STYLE
   ============================================================ */
.woocommerce .star-rating {
	float: none;
	display: inline-block;
	margin: 0 0 10px;
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1;
	font-size: 14px;
	width: 5.4em;
	font-family: 'star';
	color: #ffc107;
}
.woocommerce .star-rating::before {
	content: '\73\73\73\73\73';
	color: var(--border);
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}
.woocommerce .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1em;
}
.woocommerce .star-rating span::before {
	content: '\53\53\53\53\53';
	top: 0;
	left: 0;
	position: absolute;
}

/* ============================================================
   SINGLE PRODUCT GALLERY STYLING
   ============================================================ */
.woocommerce-product-gallery {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
}
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	width: 44px;
	height: 44px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
	color: var(--navy);
	text-decoration: none;
	transition: var(--transition);
}
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
	background: var(--navy);
	color: white;
	transform: scale(1.05);
}
.woocommerce-product-gallery__wrapper {
	margin: 0;
	padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}
.woocommerce-product-gallery .flex-control-thumbs li {
	flex: 1;
	cursor: pointer;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 2px solid transparent;
	transition: var(--transition);
}
.woocommerce-product-gallery .flex-control-thumbs li.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li:hover {
	border-color: var(--green);
}
.woocommerce-product-gallery .flex-control-thumbs li img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================================
   VARIATIONS FORM (TALLAS Y COLORES SELECTORS)
   ============================================================ */
.woocommerce div.product form.cart .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}
.woocommerce div.product form.cart .variations td {
	padding: 8px 0;
	vertical-align: middle;
}
.woocommerce div.product form.cart .variations td.label {
	width: 100px;
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	color: var(--navy);
	font-weight: 700;
}
.woocommerce div.product form.cart .variations select {
	width: 100%;
	max-width: 320px;
	padding: 12px 16px;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: var(--text-primary);
	outline: none;
	background: white;
	transition: var(--transition);
	cursor: pointer;
}
.woocommerce div.product form.cart .variations select:focus {
	border-color: var(--green);
}
.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
	color: var(--orange);
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
}

/* ============================================================
   QUANTITY INPUT & ADD TO CART CONTAINER
   ============================================================ */
.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-bottom: 24px;
}
.woocommerce .quantity .qty {
	width: 80px;
	height: 48px;
	padding: 0 10px;
	text-align: center;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 16px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: var(--navy);
	outline: none;
}
.woocommerce .quantity .qty:focus {
	border-color: var(--green);
}
.woocommerce div.product form.cart .single_add_to_cart_button {
	height: 48px;
	padding: 0 32px;
	background: var(--green);
	color: white;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	letter-spacing: 0.5px;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
	background: var(--green-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* ============================================================
   WOOCOMMERCE TABS (DESCRIPCIÓN, RESEÑAS)
   ============================================================ */
.woocommerce-tabs ul.tabs {
	display: flex;
	border-bottom: 2px solid var(--border-light);
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	gap: 32px;
}
.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
}
.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 16px 0;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-muted);
	text-decoration: none;
	position: relative;
	transition: var(--transition);
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--navy);
}
.woocommerce-tabs ul.tabs li.active a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--green);
	border-radius: 2px;
}
.woocommerce-Tabs-panel {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 15px;
}

/* ============================================================
   RELATED PRODUCTS GRID
   ============================================================ */
.related.products {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--border-light);
}
.related.products h2 {
	font-family: 'Oswald', sans-serif;
	font-size: 26px;
	text-transform: uppercase;
	color: var(--navy);
	margin-bottom: 30px;
}
.related.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ============================================================
   CART COLLATERALS (CART PAGE SUMMARY)
   ============================================================ */
.cart-collaterals .cart_totals {
	width: 100%;
}
.cart-collaterals h2 {
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
	text-transform: uppercase;
	color: var(--navy);
	margin-bottom: 20px;
	border-bottom: 2px solid var(--green);
	padding-bottom: 8px;
}
.cart-collaterals table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.cart-collaterals table.shop_table tr {
	border-bottom: 1px solid var(--border);
}
.cart-collaterals table.shop_table tr:last-child {
	border-bottom: none;
}
.cart-collaterals table.shop_table th {
	padding: 12px 0;
	font-size: 13px;
	color: var(--text-secondary);
	text-align: left;
}
.cart-collaterals table.shop_table td {
	padding: 12px 0;
	text-align: right;
	font-weight: 700;
	color: var(--navy);
}
.cart-collaterals table.shop_table .order-total td {
	font-size: 20px;
	color: var(--green);
}
.cart-collaterals .wc-proceed-to-checkout {
	margin-top: 10px;
}
.cart-collaterals .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--green);
	color: white;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	text-align: center;
	text-decoration: none;
	transition: var(--transition);
}
.cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
	background: var(--green-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Responsive fixes for Related Products */
@media (max-width: 1024px) {
	.related.products ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 768px) {
	.woocommerce div.product form.cart {
		flex-direction: column;
		align-items: stretch;
	}
	.woocommerce .quantity .qty {
		width: 100%;
	}
	.woocommerce div.product form.cart .single_add_to_cart_button {
		width: 100%;
	}
	.woocommerce-tabs ul.tabs {
		gap: 16px;
	}
	.woocommerce-tabs ul.tabs li a {
		font-size: 14px;
	}
}
