/* Custom Add To Cart Default Styles */
.studiollice-custom-add-to-cart-wrapper {
	display: flex;
	flex-direction: column;
	font-family: 'Roboto', sans-serif;
	color: #000;
}

/* Attributes Rows */
.studiollice-attribute-group {
	margin-bottom: 30px;
}

.studiollice-attribute-label {
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	color: #333;
}

.studiollice-selected-value {
	margin-left: 5px;
	font-weight: 400;
	text-transform: capitalize;
	color: #666;
}

.studiollice-attributes-row {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

/* Colors */
.studiollice-color-swatch {
	width: 32px;
	height: 32px;
	cursor: pointer;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.studiollice-color-swatch.active::after,
.studiollice-color-swatch:hover::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #000;
}

/* Sizes */
.studiollice-sizes-row {
	justify-content: space-between;
}

.studiollice-sizes-wrapper {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.studiollice-size-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 4px 0;
	background-color: transparent;
	color: #000;
	cursor: pointer;
	font-weight: 400;
	transition: all 0.2s ease;
	position: relative;
	border: none;
	border-radius: 0;
	box-shadow: none;
	min-width: auto;
	height: auto;
}

.studiollice-size-btn:hover {
	font-weight: 500;
}

.studiollice-size-btn.active {
	font-weight: 500;
}

.studiollice-size-btn.active::after,
.studiollice-size-btn:hover::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #000;
}

/* Size Guide Link */
.studiollice-size-guide-btn {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
}

.studiollice-size-guide-btn:hover {
	color: #333;
}

/* Info Box */
.studiollice-model-info {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #f5f5f5;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	align-self: flex-start;
	margin-top: 15px;
	margin-bottom: 30px;
}

.studiollice-model-icon {
	display: flex;
	align-items: center;
}

/* Actions Row */
.studiollice-actions-row {
	display: flex;
	gap: 15px;
	align-items: stretch;
}

/* Add To Cart Button */
.studiollice-add-to-cart-btn {
	flex-grow: 1;
	background-color: #000;
	color: #fff;
	border: none;
	padding: 16px 24px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
}

.studiollice-add-to-cart-btn:hover {
	background-color: #222;
}

.studiollice-add-to-cart-btn.disabled,
.studiollice-add-to-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Wishlist Wrapper */
.studiollice-wishlist-btn-wrapper,
.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist,
.studiollice-wishlist-btn-wrapper.yith-wcwl-add-to-wishlist {
	display: flex;
	margin: 0 !important;
	padding: 0 !important;
}

.studiollice-wishlist-btn-wrapper .yith-add-to-wishlist-button-block {
	display: flex;
	height: 100%;
}

.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 52px !important;
	height: 52px !important;
	border: 2px solid #000 !important;
	background-color: #fff !important;
	color: #000 !important;
	border-radius: 0 !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
}

.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist-button:hover {
	background-color: #f5f5f5 !important;
}

.studiollice-wishlist-btn-wrapper .yith-wcwl-icon-svg__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist-button-icon {
	margin: 0;
	width: 24px;
	height: 24px;
}

.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist-button__label {
	display: none !important;
}

/* Added state: Fill the heart */
.studiollice-wishlist-btn-wrapper .yith-add-to-wishlist-button-block[data-is-added="true"] .yith-wcwl-add-to-wishlist-button-icon,
.studiollice-wishlist-btn-wrapper .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added .yith-wcwl-add-to-wishlist-button-icon {
	fill: #000 !important;
}

/* Custom Modal for Size Guide */
.studiollice-custom-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.studiollice-custom-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.studiollice-custom-modal-content {
	background: #fff;
	width: 70%;
	height: 70vh;
	position: relative;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.studiollice-custom-modal-overlay.active .studiollice-custom-modal-content {
	transform: translateY(0);
}

.studiollice-custom-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #f1f1f1;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	color: #000;
	transition: background 0.2s;
}

.studiollice-custom-modal-close:hover {
	background: #e0e0e0;
}

.studiollice-custom-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 30px;
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {
	.studiollice-custom-modal-content {
		width: 90%;
		height: 80vh;
	}

	.studiollice-custom-modal-body {
		padding: 20px;
	}
}