/**
 * GabionSystem Shop Styles
 * Styles for products, cart, checkout
 */

/* ==========================================================================
   Product Archive
   ========================================================================== */

.gs-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.gs-product-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gs-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gs-product-card__image {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f5;
}

.gs-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gs-product-card:hover .gs-product-card__image img {
	transform: scale(1.05);
}

.gs-product-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.gs-product-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
}

.gs-product-badge--sale {
	background: #e53935;
	color: #fff;
}

.gs-product-badge--new {
	background: #43a047;
	color: #fff;
}

.gs-product-badge--outofstock {
	background: #757575;
	color: #fff;
}

.gs-product-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gs-product-card:hover .gs-product-card__actions {
	opacity: 1;
}

.gs-product-card__action-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease;
}

.gs-product-card__action-btn:hover {
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

.gs-product-card__content {
	padding: 1rem;
}

.gs-product-card__category {
	font-size: 12px;
	color: #757575;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.gs-product-card__title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
}

.gs-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.gs-product-card__title a:hover {
	color: var(--wp--preset--color--primary, #ff6f00);
}

.gs-product-card__price {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #ff6f00);
}

.gs-product-card__price del {
	font-size: 14px;
	font-weight: 400;
	color: #999;
}

.gs-product-card__stock {
	font-size: 13px;
	margin-top: 8px;
}

.gs-product-card__stock.in-stock {
	color: #43a047;
}

.gs-product-card__stock.out-of-stock {
	color: #e53935;
}

.gs-product-card__add-to-cart {
	width: 100%;
	margin-top: 1rem;
	padding: 12px;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gs-product-card__add-to-cart:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

.gs-product-card__add-to-cart:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* ==========================================================================
   Single Product
   ========================================================================== */

.gs-single-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin: 2rem 0;
}

@media (max-width: 768px) {
	.gs-single-product {
		grid-template-columns: 1fr;
	}
}

.gs-product-gallery {
	position: sticky;
	top: 2rem;
}

.gs-product-gallery__main {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	margin-bottom: 1rem;
}

.gs-product-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.gs-product-gallery__thumb {
	aspect-ratio: 1;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	border: 2px solid transparent;
}

.gs-product-gallery__thumb:hover,
.gs-product-gallery__thumb.active {
	opacity: 1;
	border-color: var(--wp--preset--color--primary, #ff6f00);
}

.gs-product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-product-info {
	padding: 1rem 0;
}

.gs-product-info__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 1rem;
	line-height: 1.2;
}

.gs-product-info__sku {
	font-size: 13px;
	color: #757575;
	margin-bottom: 1rem;
}

.gs-product-info__price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #ff6f00);
	margin-bottom: 1.5rem;
}

.gs-product-info__price del {
	font-size: 1.25rem;
	font-weight: 400;
	color: #999;
	margin-right: 10px;
}

.gs-product-info__description {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 2rem;
}

.gs-product-info__meta {
	border-top: 1px solid #eee;
	padding-top: 1.5rem;
	margin-bottom: 2rem;
}

.gs-product-info__meta-item {
	display: flex;
	padding: 8px 0;
	font-size: 14px;
}

.gs-product-info__meta-label {
	width: 120px;
	color: #757575;
}

.gs-product-info__meta-value {
	font-weight: 500;
}

.gs-product-quantity {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.gs-product-quantity__label {
	font-weight: 500;
}

.gs-qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.gs-qty-minus,
.gs-qty-plus {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.2s ease;
}

.gs-qty-minus:hover,
.gs-qty-plus:hover {
	background: #e0e0e0;
}

.gs-qty-value {
	width: 60px;
	height: 40px;
	text-align: center;
	border: none;
	font-size: 16px;
	font-weight: 500;
}

.gs-add-to-cart-btn {
	width: 100%;
	padding: 16px 32px;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gs-add-to-cart-btn:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

.gs-add-to-cart-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.gs-cart-page {
	max-width: 1000px;
	margin: 2rem auto;
}

.gs-cart-page.gs-loading {
	opacity: 0.5;
	pointer-events: none;
}

.gs-cart-empty {
	text-align: center;
	padding: 4rem 2rem;
}

.gs-cart-empty__icon {
	font-size: 4rem;
	color: #ddd;
	margin-bottom: 1rem;
}

.gs-cart-empty__title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.gs-cart-empty__text {
	color: #757575;
	margin-bottom: 2rem;
}

.gs-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
}

.gs-cart-table th {
	text-align: left;
	padding: 1rem;
	border-bottom: 2px solid #eee;
	font-weight: 600;
}

.gs-cart-table td {
	padding: 1rem;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.gs-cart-item {
	transition: opacity 0.3s ease;
}

.gs-cart-item.gs-removing {
	opacity: 0.3;
}

.gs-cart-item__product {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.gs-cart-item__image {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.gs-cart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-cart-item__title {
	font-weight: 500;
}

.gs-cart-item__title a {
	color: inherit;
	text-decoration: none;
}

.gs-cart-item__title a:hover {
	color: var(--wp--preset--color--primary, #ff6f00);
}

.gs-cart-item__sku {
	font-size: 12px;
	color: #757575;
}

.gs-cart-item__price {
	font-weight: 500;
}

.gs-cart-item__subtotal {
	font-weight: 700;
	color: var(--wp--preset--color--primary, #ff6f00);
}

.gs-cart-remove-btn {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 20px;
	padding: 5px;
	transition: color 0.2s ease;
}

.gs-cart-remove-btn:hover {
	color: #e53935;
}

.gs-cart-totals {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.5rem;
	max-width: 400px;
	margin-left: auto;
}

.gs-cart-totals__row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 15px;
}

.gs-cart-totals__row.total {
	border-top: 2px solid #ddd;
	margin-top: 10px;
	padding-top: 15px;
	font-size: 18px;
	font-weight: 700;
}

.gs-free-shipping {
	color: #43a047;
	font-weight: 500;
}

.gs-cart-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.gs-cart-continue-btn {
	padding: 12px 24px;
	background: #f5f5f5;
	color: #333;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.gs-cart-continue-btn:hover {
	background: #e0e0e0;
}

.gs-cart-checkout-btn {
	padding: 12px 32px;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.gs-cart-checkout-btn:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.gs-checkout-page {
	max-width: 1100px;
	margin: 2rem auto;
}

.gs-checkout-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.gs-checkout-grid {
		grid-template-columns: 1fr;
	}
}

.gs-checkout-section {
	margin-bottom: 2rem;
}

.gs-checkout-section__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--primary, #ff6f00);
}

.gs-form-row {
	margin-bottom: 1rem;
}

.gs-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.gs-form-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 14px;
}

.gs-form-label .required {
	color: #e53935;
}

.gs-form-input,
.gs-form-select,
.gs-form-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gs-form-input:focus,
.gs-form-select:focus,
.gs-form-textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #ff6f00);
	box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.gs-form-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.gs-form-checkbox input {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

#shipping-fields {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}

.gs-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gs-payment-method {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 1rem;
	border: 2px solid #eee;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.gs-payment-method:hover {
	border-color: #ccc;
}

.gs-payment-method.selected {
	border-color: var(--wp--preset--color--primary, #ff6f00);
	background: rgba(255, 111, 0, 0.02);
}

.gs-payment-method input {
	margin-top: 3px;
}

.gs-payment-method__title {
	font-weight: 600;
	margin-bottom: 4px;
}

.gs-payment-method__description {
	font-size: 13px;
	color: #757575;
}

.gs-order-summary {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.5rem;
	position: sticky;
	top: 2rem;
}

.gs-order-summary__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.gs-order-summary__items {
	margin-bottom: 1.5rem;
}

.gs-order-summary__item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.gs-order-summary__item-image {
	width: 60px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.gs-order-summary__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-order-summary__item-details {
	flex: 1;
}

.gs-order-summary__item-title {
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 4px;
}

.gs-order-summary__item-qty {
	font-size: 13px;
	color: #757575;
}

.gs-order-summary__item-price {
	font-weight: 600;
	white-space: nowrap;
}

.gs-order-summary__totals {
	border-top: 2px solid #ddd;
	padding-top: 1rem;
}

.gs-order-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
}

.gs-order-summary__row.total {
	font-size: 18px;
	font-weight: 700;
	padding-top: 12px;
	margin-top: 8px;
	border-top: 1px solid #eee;
}

.gs-checkout-submit {
	width: 100%;
	margin-top: 1.5rem;
	padding: 16px;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gs-checkout-submit:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

.gs-checkout-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* ==========================================================================
   Order Received
   ========================================================================== */

.gs-order-received {
	max-width: 700px;
	margin: 3rem auto;
	text-align: center;
}

.gs-order-received__icon {
	width: 80px;
	height: 80px;
	background: #43a047;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	margin: 0 auto 1.5rem;
}

.gs-order-received__title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.gs-order-received__text {
	color: #757575;
	margin-bottom: 2rem;
}

.gs-order-received__details {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: left;
}

.gs-order-received__detail-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.gs-order-received__detail-row:last-child {
	border-bottom: none;
}

.gs-order-received__detail-label {
	color: #757575;
}

.gs-order-received__detail-value {
	font-weight: 500;
}

/* ==========================================================================
   Mini Cart
   ========================================================================== */

.gs-mini-cart {
	position: relative;
}

.gs-mini-cart__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	font-size: 14px;
}

.gs-mini-cart__icon {
	position: relative;
	font-size: 20px;
}

.gs-mini-cart__count {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gs-mini-cart__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 320px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	padding: 1rem;
	display: none;
	z-index: 1000;
}

.gs-mini-cart__dropdown.active {
	display: block;
}

.gs-mini-cart__items {
	max-height: 300px;
	overflow-y: auto;
}

.gs-mini-cart__item {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.gs-mini-cart__item-image {
	width: 50px;
	height: 50px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.gs-mini-cart__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-mini-cart__item-details {
	flex: 1;
}

.gs-mini-cart__item-title {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
}

.gs-mini-cart__item-meta {
	font-size: 12px;
	color: #757575;
}

.gs-mini-cart__total {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0;
	font-weight: 600;
}

.gs-mini-cart__buttons {
	display: flex;
	gap: 10px;
}

.gs-mini-cart__btn {
	flex: 1;
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.gs-mini-cart__btn--cart {
	background: #f5f5f5;
	color: #333;
}

.gs-mini-cart__btn--cart:hover {
	background: #e0e0e0;
}

.gs-mini-cart__btn--checkout {
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

.gs-mini-cart__btn--checkout:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

/* ==========================================================================
   Stock Status
   ========================================================================== */

.gs-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
}

.gs-stock-status--in-stock {
	color: #43a047;
}

.gs-stock-status--low-stock {
	color: #fb8c00;
}

.gs-stock-status--out-of-stock {
	color: #e53935;
}

.gs-stock-status__icon {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.gs-cart-table thead {
		display: none;
	}

	.gs-cart-table,
	.gs-cart-table tbody,
	.gs-cart-table tr,
	.gs-cart-table td {
		display: block;
	}

	.gs-cart-table tr {
		padding: 1rem 0;
		border-bottom: 1px solid #eee;
	}

	.gs-cart-table td {
		padding: 8px 0;
		border: none;
	}

	.gs-cart-table td::before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 10px;
	}

	.gs-cart-totals {
		max-width: none;
	}

	.gs-cart-actions {
		flex-direction: column;
		gap: 10px;
	}

	.gs-checkout-grid {
		gap: 2rem;
	}

	.gs-form-row--half {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   XOneWShop Shortcode Styles
   ========================================================================== */

/* Products Grid */
.xone-products-grid {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.xone-products-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.xone-products-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.xone-products-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.xone-products-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 992px) {
	.xone-products-grid.columns-4,
	.xone-products-grid.columns-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.xone-products-grid.columns-3,
	.xone-products-grid.columns-4,
	.xone-products-grid.columns-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.xone-products-grid { grid-template-columns: 1fr; }
}

/* Product Card */
.xone-product-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.3s, box-shadow 0.3s;
}

.xone-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.xone-product-image {
	display: block;
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f5;
}

.xone-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.xone-product-card:hover .xone-product-image img {
	transform: scale(1.05);
}

.xone-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	font-size: 14px;
}

.xone-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
}

.xone-badge-sale { background: #e53935; color: #fff; }
.xone-badge-outofstock { background: #757575; color: #fff; }

.xone-product-info {
	padding: 1rem;
}

.xone-product-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
}

.xone-product-title a {
	color: inherit;
	text-decoration: none;
}

.xone-product-title a:hover {
	color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-product-price {
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #ff6f00);
	margin-bottom: 1rem;
}

.xone-product-price del {
	font-size: 14px;
	font-weight: 400;
	color: #999;
	margin-right: 8px;
}

.xone-product-price ins {
	text-decoration: none;
}

.xone-product-actions {
	display: flex;
	gap: 8px;
}

.xone-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.xone-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.xone-btn-primary {
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

.xone-btn-primary:hover:not(:disabled) {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

.xone-btn-secondary {
	background: #f5f5f5;
	color: #333;
}

.xone-btn-secondary:hover:not(:disabled) {
	background: #e0e0e0;
}

.xone-btn-large {
	padding: 14px 28px;
	font-size: 16px;
}

.xone-btn-icon {
	width: 40px;
	height: 40px;
	padding: 0;
	background: #f5f5f5;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.xone-btn-icon:hover {
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

/* Categories Grid */
.xone-categories-grid {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.xone-categories-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

.xone-category-card {
	display: block;
	text-align: center;
	padding: 1.5rem;
	background: #fff;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.3s, box-shadow 0.3s;
}

.xone-category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.xone-category-card img {
	max-width: 100px;
	margin-bottom: 1rem;
}

.xone-category-card h3 {
	font-size: 16px;
	margin: 0 0 4px;
}

.xone-category-card .count {
	font-size: 13px;
	color: #757575;
}

/* Product Detail */
.xone-product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin: 2rem 0;
}

@media (max-width: 768px) {
	.xone-product-detail { grid-template-columns: 1fr; }
}

.xone-product-gallery { position: sticky; top: 2rem; }

.xone-main-image {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	margin-bottom: 1rem;
}

.xone-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xone-thumbnails {
	display: flex;
	gap: 10px;
}

.xone-thumbnails img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.xone-thumbnails img:hover,
.xone-thumbnails img.active {
	opacity: 1;
}

.xone-product-summary h1 {
	font-size: 2rem;
	margin: 0 0 0.5rem;
}

.xone-product-sku {
	font-size: 13px;
	color: #757575;
	margin-bottom: 1rem;
}

.xone-product-stock {
	margin-bottom: 1rem;
}

.xone-product-stock .in-stock { color: #43a047; }
.xone-product-stock .out-of-stock { color: #e53935; }

.xone-product-short-desc {
	margin-bottom: 1.5rem;
	line-height: 1.7;
	color: #555;
}

.xone-add-to-cart-form {
	display: flex;
	gap: 1rem;
	align-items: flex-end;
	margin-bottom: 1.5rem;
}

.xone-quantity label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.xone-quantity input {
	width: 80px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
}

.xone-product-meta-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.xone-product-meta-actions button {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	transition: color 0.2s;
}

.xone-product-meta-actions button:hover {
	color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-product-description {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

.xone-product-description h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* Cart Page */
.xone-cart-page {
	max-width: 1000px;
	margin: 2rem auto;
}

.xone-cart-empty {
	text-align: center;
	padding: 4rem 2rem;
}

.xone-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
}

.xone-cart-table th,
.xone-cart-table td {
	padding: 1rem;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.xone-cart-table th {
	font-weight: 600;
	border-bottom-width: 2px;
}

.xone-cart-product {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.xone-cart-product img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.xone-cart-qty {
	width: 60px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

.xone-cart-remove {
	background: none;
	border: none;
	font-size: 20px;
	color: #999;
	cursor: pointer;
}

.xone-cart-remove:hover {
	color: #e53935;
}

.xone-cart-totals {
	background: #f9f9f9;
	padding: 1.5rem;
	border-radius: 8px;
	max-width: 400px;
	margin-left: auto;
}

.xone-cart-totals table {
	width: 100%;
}

.xone-cart-totals th,
.xone-cart-totals td {
	padding: 10px 0;
}

.xone-cart-totals th {
	text-align: left;
	font-weight: 500;
}

.xone-cart-totals td {
	text-align: right;
}

.xone-total-row {
	border-top: 2px solid #ddd;
}

.xone-total-row td {
	font-size: 1.25rem;
}

/* Wishlist & Compare */
.xone-wishlist-page,
.xone-compare-page {
	margin: 2rem 0;
}

.xone-compare-table {
	width: 100%;
	border-collapse: collapse;
}

.xone-compare-table th,
.xone-compare-table td {
	padding: 1rem;
	border: 1px solid #eee;
	text-align: center;
	vertical-align: middle;
}

.xone-compare-table th {
	background: #f9f9f9;
	text-align: left;
	width: 120px;
}

.xone-compare-table img {
	max-width: 100px;
	max-height: 100px;
}

.xone-compare-table .in-stock { color: #43a047; }
.xone-compare-table .out-of-stock { color: #e53935; }

/* No Products Message */
.xone-no-products {
	text-align: center;
	padding: 3rem;
	color: #757575;
}

/* ==========================================================================
   Flash Sales
   ========================================================================== */

.xone-flash-sale {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
	border-radius: 12px;
	padding: 2rem;
	margin: 2rem 0;
	color: #fff;
}

.xone-flash-sale__banner {
	position: relative;
	margin: -2rem -2rem 2rem;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
}

.xone-flash-sale__banner img {
	width: 100%;
	height: auto;
	display: block;
}

.xone-flash-sale__banner-text {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.xone-flash-sale__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.xone-flash-sale__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
}

.xone-flash-sale__countdown {
	display: flex;
	gap: 0.5rem;
}

.xone-flash-sale__countdown .countdown-item {
	background: rgba(255,255,255,0.2);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	text-align: center;
	min-width: 60px;
}

.xone-flash-sale__countdown .countdown-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.xone-flash-sale__countdown .countdown-label {
	display: block;
	font-size: 0.75rem;
	opacity: 0.8;
	margin-top: 0.25rem;
	text-transform: uppercase;
}

.xone-flash-sale__description {
	opacity: 0.9;
	margin-bottom: 1.5rem;
}

.xone-flash-sale .xone-products-grid {
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	margin: 0;
}

.xone-flash-sale .xone-product-card {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.xone-flash-sale .xone-product-card--flash .xone-product-badge--sale {
	background: #ff6b6b;
	color: #fff;
}

.xone-flash-sale .xone-price--sale {
	color: #ff6b6b;
	font-weight: 700;
}

/* Flash Sale Banner (standalone) */
.xone-flash-banner {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
	border-radius: 8px;
	padding: 1rem 2rem;
	margin: 1rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
}

.xone-flash-banner__title {
	font-weight: 700;
	font-size: 1.25rem;
}

.xone-flash-banner__countdown {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.xone-flash-banner__countdown span {
	background: rgba(255,255,255,0.2);
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-weight: 700;
}

/* Responsive Flash Sale */
@media (max-width: 768px) {
	.xone-flash-sale {
		padding: 1.5rem;
	}

	.xone-flash-sale__banner {
		margin: -1.5rem -1.5rem 1.5rem;
	}

	.xone-flash-sale__header {
		flex-direction: column;
		text-align: center;
	}

	.xone-flash-sale__countdown .countdown-item {
		min-width: 50px;
		padding: 0.5rem 0.75rem;
	}

	.xone-flash-sale__countdown .countdown-value {
		font-size: 1.25rem;
	}

	.xone-flash-banner {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

/* ==========================================================================
   XOneWShop - Shop Page Layout
   ========================================================================== */

/* Shop Container */
.xone-shop {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	margin: 2rem 0;
}

.xone-shop:not(:has(.xone-shop-sidebar)) {
	grid-template-columns: 1fr;
}

/* Sidebar */
.xone-shop-sidebar {
	position: sticky;
	top: 120px;
	height: fit-content;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}

.xone-filter-widget {
	background: #fff;
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.xone-filter-widget h3 {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #eee;
}

/* Search Filter */
.xone-search-filter {
	display: flex;
	gap: 8px;
}

.xone-filter-search {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.xone-filter-search:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-search-btn {
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.xone-search-btn:hover {
	background: var(--wp--preset--color--primary-dark, #e65100);
}

/* Category Filter */
.xone-category-filter {
	list-style: none;
	padding: 0;
	margin: 0;
}

.xone-category-filter li {
	margin-bottom: 8px;
}

.xone-category-filter label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.2s;
}

.xone-category-filter label:hover {
	color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-category-filter input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-category-filter .count {
	color: #999;
	font-size: 12px;
	margin-left: auto;
}

/* Price Filter */
.xone-price-filter {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xone-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xone-price-inputs input {
	width: 80px;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
}

.xone-price-inputs input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #ff6f00);
}

.xone-price-inputs span {
	color: #666;
	font-size: 14px;
}

.xone-price-apply {
	padding: 8px 16px;
	font-size: 13px;
}

/* Checkbox Filters */
.xone-checkbox-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
	margin-bottom: 8px;
}

.xone-checkbox-filter input {
	width: 16px;
	height: 16px;
	accent-color: var(--wp--preset--color--primary, #ff6f00);
}

/* Active Filters */
.xone-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1rem;
}

.xone-filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #f5f5f5;
	border-radius: 20px;
	font-size: 13px;
}

.xone-filter-remove {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ddd;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	transition: background 0.2s;
}

.xone-filter-remove:hover {
	background: #ccc;
}

/* Reset Filters Button */
.xone-filters-reset {
	width: 100%;
	padding: 10px;
	font-size: 13px;
}

/* Shop Content */
.xone-shop-content {
	min-width: 0;
}

/* Shop Header */
.xone-shop-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.xone-results-count {
	font-size: 15px;
	font-weight: 600;
	color: #0a0a0a;
}

.xone-shop-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.xone-per-page,
.xone-sorting {
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	padding: 10px 36px 10px 14px;
	font-size: 14px;
	font-weight: 500;
	background-color: #faf8f5;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
	appearance: none;
	cursor: pointer;
}

.xone-per-page:focus,
.xone-sorting:focus {
	outline: none;
	border-color: #ff4d00;
	box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

/* View Toggle */
.xone-view-toggle {
	display: flex;
	gap: 4px;
}

.xone-view-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	cursor: pointer;
	color: #666;
	transition: all 0.2s;
}

.xone-view-btn:hover {
	background: #eee;
}

.xone-view-btn.active {
	background: var(--wp--preset--color--primary, #ff6f00);
	border-color: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

/* Products Wrapper */
.xone-products-wrapper {
	position: relative;
	min-height: 200px;
}

.xone-products-grid {
	transition: opacity 0.3s ease;
}

/* Loading Spinner */
.xone-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	z-index: 10;
}

.xone-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid var(--wp--preset--color--primary, #ff6f00);
	border-radius: 50%;
	animation: xone-spin 0.8s linear infinite;
}

@keyframes xone-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* No Products Found */
.xone-no-products-found {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 2rem;
	background: #f9f9f9;
	border-radius: 8px;
}

.xone-no-products-found p {
	margin: 0;
	color: #666;
	font-size: 16px;
}

/* Pagination */
.xone-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

.xone-page-link {
	min-width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
}

.xone-page-link:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.xone-page-link.active {
	background: var(--wp--preset--color--primary, #ff6f00);
	border-color: var(--wp--preset--color--primary, #ff6f00);
	color: #fff;
}

.xone-page-prev,
.xone-page-next {
	padding: 0;
}

.xone-page-dots {
	padding: 0 8px;
	color: #999;
}

/* Product Card Stock Status in Shop */
.xone-product-card .xone-product-stock {
	font-size: 12px;
	margin-bottom: 0.75rem;
}

.xone-product-card .xone-product-stock .in-stock {
	color: #43a047;
}

.xone-product-card .xone-product-stock .out-of-stock {
	color: #e53935;
}

/* Responsive Shop */
@media (max-width: 1024px) {
	.xone-shop {
		grid-template-columns: 240px 1fr;
	}
}

@media (max-width: 768px) {
	.xone-shop {
		grid-template-columns: 1fr;
	}

	.xone-shop-sidebar {
		position: relative;
		top: 0;
		max-height: none;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.xone-shop-sidebar .xone-filter-widget {
		margin-bottom: 0;
	}

	.xone-shop-sidebar .xone-filters-reset {
		grid-column: 1 / -1;
	}

	.xone-shop-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.xone-shop-controls {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 480px) {
	.xone-shop-sidebar {
		grid-template-columns: 1fr;
	}

	.xone-shop-controls {
		flex-wrap: wrap;
	}

	.xone-per-page,
	.xone-sorting {
		flex: 1;
		min-width: 120px;
	}

	.xone-pagination {
		flex-wrap: wrap;
	}

	.xone-page-link {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}
}

/* ==========================================================================
   XOne Notifications
   ========================================================================== */

.xone-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	max-width: 400px;
	padding: 16px 20px;
	border-radius: 8px;
	background: #333;
	color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.xone-notification.active {
	transform: translateX(0);
	opacity: 1;
}

.xone-notification--success {
	background: #43a047;
}

.xone-notification--error {
	background: #e53935;
}

.xone-notification--info {
	background: #1976d2;
}

.xone-notification__close {
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	cursor: pointer;
	opacity: 0.7;
	padding: 0;
	line-height: 1;
}

.xone-notification__close:hover {
	opacity: 1;
}

/* ==========================================================================
   XOne Mini Cart
   ========================================================================== */

.xone-mini-cart {
	position: relative;
}

.xone-mini-cart__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	font-size: 14px;
}

.xone-mini-cart__icon {
	width: 24px;
	height: 24px;
}

.xone-mini-cart__count {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	background: var(--wp--preset--color--primary, #d4a574);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 10px;
	padding: 0 6px;
}

.xone-mini-cart__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 340px;
	max-height: 400px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	overflow: hidden;
}

.xone-mini-cart__dropdown.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.xone-mini-cart__header {
	padding: 15px;
	border-bottom: 1px solid #eee;
	font-weight: 600;
}

.xone-mini-cart__items {
	max-height: 250px;
	overflow-y: auto;
	padding: 10px 15px;
}

.xone-mini-cart__item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
	transition: opacity 0.3s ease;
}

.xone-mini-cart__item:last-child {
	border-bottom: none;
}

.xone-mini-cart__item-image {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f5f5f5;
}

.xone-mini-cart__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xone-mini-cart__item-details {
	flex: 1;
	min-width: 0;
}

.xone-mini-cart__item-title {
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xone-mini-cart__item-title a {
	color: inherit;
	text-decoration: none;
}

.xone-mini-cart__item-meta {
	font-size: 13px;
	color: #757575;
}

.xone-mini-cart__remove {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	padding: 4px;
	font-size: 18px;
	line-height: 1;
}

.xone-mini-cart__remove:hover {
	color: #e53935;
}

.xone-mini-cart__footer {
	padding: 15px;
	border-top: 1px solid #eee;
}

.xone-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
	font-weight: 600;
}

.xone-mini-cart__buttons {
	display: flex;
	gap: 10px;
}

.xone-mini-cart__btn {
	flex: 1;
	padding: 12px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.xone-mini-cart__btn--cart {
	background: #f5f5f5;
	color: #333;
}

.xone-mini-cart__btn--cart:hover {
	background: #e0e0e0;
}

.xone-mini-cart__btn--checkout {
	background: var(--wp--preset--color--primary, #d4a574);
	color: #fff;
}

.xone-mini-cart__btn--checkout:hover {
	opacity: 0.9;
}

.xone-mini-cart__empty {
	padding: 30px 15px;
	text-align: center;
	color: #757575;
}

/* ==========================================================================
   XOne Spinner
   ========================================================================== */

.xone-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: xone-spin 0.6s linear infinite;
}

@keyframes xone-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   XOne Add to Cart States
   ========================================================================== */

.xone-add-to-cart {
	position: relative;
	transition: all 0.3s ease;
}

.xone-add-to-cart:disabled {
	cursor: not-allowed;
}

.xone-add-to-cart.xone-added {
	background: #43a047 !important;
	color: #fff !important;
}

/* ==========================================================================
   XOne Quantity Input
   ========================================================================== */

.xone-qty-wrapper {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	max-width: 120px;
}

.xone-qty-minus,
.xone-qty-plus {
	width: 36px;
	height: 36px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.xone-qty-minus:hover,
.xone-qty-plus:hover {
	background: #e0e0e0;
}

.xone-qty-input {
	width: 48px;
	height: 36px;
	border: none;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
}

.xone-qty-input::-webkit-outer-spin-button,
.xone-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ==========================================================================
   XOne Stock Status
   ========================================================================== */

.xone-product-stock {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin: 15px 0;
}

.xone-product-stock.xone-stock-status--instock {
	background: #e8f5e9;
	color: #2e7d32;
}

.xone-product-stock.xone-stock-status--lowstock {
	background: #fff3e0;
	color: #e65100;
}

.xone-product-stock.xone-stock-status--outofstock {
	background: #ffebee;
	color: #c62828;
}

.xone-stock-icon {
	font-size: 16px;
	font-weight: 700;
}

.xone-stock-qty {
	font-size: 13px;
	opacity: 0.8;
}

/* Stock Badge */
.xone-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
	letter-spacing: 0.5px;
}

.xone-badge--lowstock {
	background: #ff9800;
	color: #fff;
}

.xone-badge--outofstock {
	background: #757575;
	color: #fff;
}

.xone-badge--instock {
	background: #4caf50;
	color: #fff;
}

/* Admin Stock Info */
.xone-admin-stock-info {
	margin: 20px 0;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.xone-admin-stock-info h4 {
	margin: 0 0 15px;
	font-size: 14px;
}

.xone-admin-stock-info table {
	margin-bottom: 15px;
}

.xone-admin-stock-info th {
	text-align: left;
	padding: 8px 10px;
	width: 120px;
}

.xone-admin-stock-info td {
	padding: 8px 10px;
}

/* Delivery Estimate */
.xone-delivery-estimate {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #f5f5f5;
	border-radius: 8px;
	margin: 15px 0;
	font-size: 14px;
}

.xone-delivery-estimate__icon {
	font-size: 20px;
}

.xone-delivery-estimate--fast {
	background: #e3f2fd;
	color: #1565c0;
}

.xone-delivery-estimate--slow {
	background: #fafafa;
	color: #757575;
}

/* ==========================================================================
   XOne Single Product Page (template-xone-product.php)
   ========================================================================== */

.xone-single-product {
	padding-top: 120px;
}

.xone-single-product .container,
.xone-category-archive .container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* Breadcrumbs */
.xone-breadcrumbs {
	padding: 20px 0;
	font-size: 14px;
	color: #666;
}

.xone-breadcrumbs a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s;
}

.xone-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary, #ff4d00);
}

.xone-breadcrumbs .separator {
	margin: 0 10px;
	color: #ccc;
}

.xone-breadcrumbs .current {
	color: #333;
	font-weight: 500;
}

/* Product Layout */
.xone-product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	margin: 40px 0;
}

@media (max-width: 992px) {
	.xone-product-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Gallery */
.xone-product-gallery {
	position: sticky;
	top: 140px;
	align-self: start;
}

.xone-gallery-main {
	position: relative;
	aspect-ratio: 1;
	background: #f8f8f8;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 16px;
}

.xone-gallery-main .xone-main-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.xone-gallery-main .xone-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
}

.xone-gallery-main .xone-badge--sale {
	background: #e53935;
	color: #fff;
	padding: 8px 16px;
	font-size: 13px;
}

.xone-gallery-main .xone-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #ccc;
}

.xone-gallery-thumbs {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.xone-thumb {
	width: 80px;
	height: 80px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #f8f8f8;
	transition: border-color 0.2s;
}

.xone-thumb:hover,
.xone-thumb.active {
	border-color: var(--wp--preset--color--primary, #ff4d00);
}

.xone-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Product Info */
.xone-product-info {
	padding-top: 20px;
}

.xone-product-info .xone-product-title {
	font-size: 2.25rem;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.2;
}

.xone-product-info .xone-product-sku {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #888;
	margin-bottom: 20px;
}

.xone-product-info .xone-product-sku .label {
	font-weight: 500;
}

/* Price */
.xone-product-info .xone-product-price {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.xone-price-old {
	font-size: 1.25rem;
	color: #999;
	text-decoration: line-through;
}

.xone-price-current {
	font-size: 2rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #ff4d00);
}

.xone-discount-badge {
	background: #e53935;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}

/* Stock Status */
.xone-product-info .xone-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 24px;
}

.xone-product-info .xone-stock-status--instock {
	background: #e8f5e9;
	color: #2e7d32;
}

.xone-product-info .xone-stock-status--lowstock {
	background: #fff3e0;
	color: #ef6c00;
}

.xone-product-info .xone-stock-status--outofstock {
	background: #ffebee;
	color: #c62828;
}

/* Delivery Estimate */
.xone-product-info .xone-delivery-estimate {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: #f0f7ff;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #1565c0;
}

/* Excerpt */
.xone-product-excerpt {
	font-size: 16px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

/* Add to Cart Form */
.xone-product-info .xone-add-to-cart-form {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.xone-quantity-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.xone-quantity-wrapper label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.xone-product-info .xone-quantity {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.xone-product-info .xone-qty-minus,
.xone-product-info .xone-qty-plus {
	width: 44px;
	height: 44px;
	background: #f5f5f5;
	border: none;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.2s;
}

.xone-product-info .xone-qty-minus:hover,
.xone-product-info .xone-qty-plus:hover {
	background: #e0e0e0;
}

.xone-product-info .xone-qty-input {
	width: 60px;
	height: 44px;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
}

.xone-add-to-cart-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	background: var(--wp--preset--color--primary, #ff4d00);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.xone-add-to-cart-btn:hover:not(:disabled) {
	background: #e64500;
	transform: translateY(-2px);
}

.xone-add-to-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Product Actions */
.xone-product-actions {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.xone-action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f5f5f5;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	transition: all 0.2s;
}

.xone-action-btn:hover {
	background: #eee;
	color: var(--wp--preset--color--primary, #ff4d00);
}

/* Product Meta */
.xone-product-meta {
	font-size: 14px;
	color: #666;
}

.xone-meta-item {
	margin-bottom: 8px;
}

.xone-meta-item .label {
	font-weight: 500;
	margin-right: 8px;
}

.xone-meta-item a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.xone-meta-item a:hover {
	color: var(--wp--preset--color--primary, #ff4d00);
}

/* Product Tabs */
.xone-product-tabs {
	margin: 60px 0;
}

.xone-tabs-nav {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #eee;
	margin-bottom: 30px;
}

.xone-tab-btn {
	padding: 14px 24px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 15px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: all 0.2s;
}

.xone-tab-btn:hover {
	color: #333;
}

.xone-tab-btn.active {
	color: var(--wp--preset--color--primary, #ff4d00);
	border-bottom-color: var(--wp--preset--color--primary, #ff4d00);
}

.xone-tab-panel {
	display: none;
}

.xone-tab-panel.active {
	display: block;
}

.xone-tab-panel h2,
.xone-tab-panel h3 {
	margin-top: 0;
}

/* Specifications Table */
.xone-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.xone-specs-table tr {
	border-bottom: 1px solid #eee;
}

.xone-specs-table th,
.xone-specs-table td {
	padding: 14px 16px;
	text-align: left;
}

.xone-specs-table th {
	width: 200px;
	background: #f9f9f9;
	font-weight: 500;
}

/* Related Products */
.xone-related-products {
	margin: 60px 0 40px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.xone-related-products h2 {
	font-size: 1.75rem;
	margin: 0 0 30px;
}

/* Mini Cart Actions */
.xone-mini-cart__actions {
	display: flex;
	gap: 10px;
}

.xone-mini-cart__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.xone-mini-cart__header h4 {
	margin: 0;
	font-size: 16px;
}

.xone-mini-cart__close {
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.xone-mini-cart__close:hover {
	color: #333;
}

/* Checkout Progress */
.checkout-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 20px 0;
}

.checkout-progress .step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.checkout-progress .step-number {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e0e0e0;
	color: #666;
	border-radius: 50%;
	font-weight: 600;
	font-size: 16px;
}

.checkout-progress .step.completed .step-number {
	background: #4caf50;
	color: #fff;
}

.checkout-progress .step.active .step-number {
	background: var(--wp--preset--color--primary, #ff4d00);
	color: #fff;
}

.checkout-progress .step-label {
	font-size: 13px;
	color: #666;
}

.checkout-progress .step.active .step-label {
	color: #333;
	font-weight: 500;
}

.checkout-progress .step-line {
	width: 60px;
	height: 2px;
	background: #e0e0e0;
	margin: 0 8px;
	margin-bottom: 28px;
}

.checkout-progress .step-line.completed {
	background: #4caf50;
}

@media (max-width: 480px) {
	.checkout-progress .step-line {
		width: 30px;
	}

	.checkout-progress .step-number {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.checkout-progress .step-label {
		font-size: 11px;
	}
}
