/*
 * Ormsy Style - WooCommerce Extra Styles
 * Additional WooCommerce-specific styles loaded only on WC pages.
 */

/* ========================================
   MINI CART
   ======================================== */

.wc-block-mini-cart__button {
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0.4em;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* ========================================
   CHECKOUT
   ======================================== */

.wc-block-checkout {
	max-width: 1200px;
	margin: 0 auto;
}

.wc-block-checkout__form input,
.wc-block-checkout__form select {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius-small);
	padding: 0.6em 0.8em;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-checkout__form input:focus,
.wc-block-checkout__form select:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* ========================================
   MY ACCOUNT
   ======================================== */

.woocommerce-MyAccount-navigation {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius);
	padding: var(--wp--preset--spacing--20);
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.6em 1em;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--border-radius-small);
	font-size: var(--wp--preset--font-size--small);
	transition: var(--wp--custom--transition);
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}


/* ========================================
   PRODUCT CATEGORY CARDS
   ======================================== */

.wc-block-product-categories-list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.wc-block-product-categories-list-item {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius);
	padding: var(--wp--preset--spacing--20);
	text-align: center;
	transition: var(--wp--custom--transition);
}

.wc-block-product-categories-list-item:hover {
	box-shadow: var(--wp--custom--box-shadow);
}

.wc-block-product-categories-list-item a {
	text-decoration: none;
	font-weight: 600;
}


/* ========================================
   FORM STYLES
   ======================================== */

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius-small);
	padding: 0.6em 0.8em;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	width: 100%;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.woocommerce form .form-row label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.3em;
	display: block;
}


/* ========================================
   COUPON CODE
   ======================================== */

.woocommerce-form-coupon {
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius);
	padding: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--20);
}


/* ========================================
   ORDER DETAILS
   ======================================== */

.woocommerce-order-details table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-order-details th,
.woocommerce-order-details td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-order-details th {
	font-weight: 600;
	background: var(--wp--preset--color--surface);
}


/* ========================================
   RELATED PRODUCTS
   ======================================== */

.related.products > h2,
.up-sells > h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: var(--wp--preset--spacing--30);
}
