/*
 * Shop: Warenkorb, Kasse, Mein Konto (/warenkorb/, /kasse/, /konto/)
 * Rahmen (Panel, Brotkrümel, Überschrift): page.php · Inhalt: Blöcke bzw. Shortcode von WooCommerce (+ Germanized)
 * Hier nur Farben, Formen und Schriften der Website über den Stilen von WooCommerce – Aufbau und Logik bleiben bei WooCommerce,
 * damit Updates, Germanized-Checkboxen und Zahlungsarten (Mollie) ohne Anpassung weiter funktionieren.
 */

.shop-page { color: var(--ink); }
.shop-page__head { margin-bottom: 26px; }
.shop-page__title {
	margin: 18px 0 10px;
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: clamp(32px, 5vw, 46px);
	font-weight: 400;
	line-height: 1.1;
}
.shop-page__content { font-size: 16px; line-height: 1.6; }
.shop-page__content > *:first-child { margin-top: 0; }
.shop-page__content > *:last-child { margin-bottom: 0; }

/* Links */
.shop-page__content a:not(.wc-block-components-button):not(.button):not(.wp-block-button__link) { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shop-page__content a:not(.wc-block-components-button):not(.button):not(.wp-block-button__link):hover { color: var(--accent-dark); }

/* Überschriften der Blöcke und Formulare */
.shop-page__content h2,
.shop-page .wc-block-components-title.wc-block-components-title,
.shop-page .wc-block-cart__totals-title.wc-block-cart__totals-title {
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
}
.shop-page .wc-block-components-product-name { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.shop-page .wc-block-components-button:not(.is-link):not(.outlined),
.shop-page .wc-block-cart__submit-button,
.shop-page .wc-block-components-checkout-place-order-button,
.shop-page .woocommerce .button,
.shop-page .woocommerce button.button,
.shop-page .woocommerce a.button,
.shop-page .wp-block-button__link,
.shop-page .wc-block-components-product-button__button {
	min-height: 50px;
	padding: 12px 26px;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-button);
	box-shadow: var(--button-keyline);
	background: var(--accent);
	color: #fff;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.shop-page .wc-block-components-button:not(.is-link):not(.outlined):hover,
.shop-page .wc-block-cart__submit-button:hover,
.shop-page .wc-block-components-checkout-place-order-button:hover,
.shop-page .woocommerce .button:hover,
.shop-page .wp-block-button__link:hover,
.shop-page .wc-block-components-product-button__button:hover {
	border-color: var(--accent-dark);
	background: var(--accent-dark);
	color: #fff;
}
.shop-page .wc-block-components-button.outlined,
.shop-page .woocommerce .button.wc-backward,
.shop-page .woocommerce .woocommerce-Button--previous {
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-button);
	box-shadow: var(--button-keyline);
	background: #fff;
	color: var(--accent);
}
.shop-page .wc-block-components-button:focus-visible,
.shop-page .woocommerce .button:focus-visible,
.shop-page .wp-block-button__link:focus-visible,
.shop-page .wc-block-components-product-button__button:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	box-shadow: none;
}
.shop-page .wc-block-components-button:disabled,
.shop-page .woocommerce .button:disabled { opacity: 0.55; }

/* ==========================================================================
   Eingabefelder
   ========================================================================== */
.shop-page .wc-block-components-text-input input,
.shop-page .wc-blocks-components-select__select,
.shop-page .wc-block-components-textarea,
.shop-page .wc-block-components-combobox .components-combobox-control input.components-combobox-control__input,
.shop-page .wc-block-components-form .wc-block-components-text-input input,
.shop-page .woocommerce .input-text,
.shop-page .woocommerce select,
.shop-page .woocommerce textarea {
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-control);
	background-color: #fff;
	color: var(--ink);
}
.shop-page .wc-block-components-text-input input:focus,
.shop-page .wc-blocks-components-select__select:focus,
.shop-page .wc-block-components-textarea:focus,
.shop-page .woocommerce .input-text:focus,
.shop-page .woocommerce select:focus,
.shop-page .woocommerce textarea:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(140, 29, 58, 0.18);
	outline-offset: 0;
	box-shadow: none;
}
.shop-page .woocommerce .input-text { min-height: 48px; padding: 10px 14px; }
.shop-page .woocommerce form .form-row label { font-weight: 700; }

/* Checkboxen und Optionsfelder (auch Germanized-Hinweise und Mollie-Zahlungsarten) */
.shop-page input[type="checkbox"],
.shop-page input[type="radio"] { accent-color: var(--accent); }
.shop-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-color: var(--line-strong); border-radius: 4px; }
.shop-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.shop-page .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.shop-page .wc-block-components-radio-control__input { border-color: var(--line-strong); }
.shop-page .wc-block-components-radio-control__input:checked { border-color: var(--accent); }
.shop-page .wc-block-components-radio-control__input:checked::before { background: var(--accent); }
.shop-page .wc-block-components-checkbox__input:focus-visible,
.shop-page .wc-block-components-radio-control__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Mengenauswahl im Warenkorb */
.shop-page .wc-block-components-quantity-selector { border-radius: var(--radius-control); border-color: var(--line-strong); overflow: hidden; }
.shop-page .wc-block-components-quantity-selector::after { border-radius: var(--radius-control); border-color: var(--line-strong); }
.shop-page .wc-block-components-quantity-selector__button { color: var(--accent); }
.shop-page .wc-block-cart-item__remove-link { color: var(--accent); }

/* ==========================================================================
   Kästen: Zusammenfassung, Zahlungsarten, Hinweise
   ========================================================================== */
.shop-page .wp-block-woocommerce-checkout-order-summary-block:not(.checkout-order-summary-block-fill-wrapper),
.shop-page .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: #fff;
}
.shop-page .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { padding: 4px 18px 8px; }
.shop-page .wc-block-components-radio-control-accordion-option,
.shop-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked { border-radius: 12px; }
.shop-page .wc-block-components-radio-control--highlight-checked::after,
.shop-page .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted,
.shop-page .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--accent); }
.shop-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.shop-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 800; }

/* Hinweise (klassisch: Konto; Blöcke haben eigene Banner) */
.shop-page .woocommerce-message,
.shop-page .woocommerce-info,
.shop-page .woocommerce-error {
	border: 0;
	border-radius: 14px;
	background: var(--info-bg);
	color: var(--info);
}
.shop-page .woocommerce-message { background: var(--success-bg); color: var(--success); }
.shop-page .woocommerce-error { background: #FCEDEC; color: #8C1D18; }
.shop-page .woocommerce-message::before,
.shop-page .woocommerce-info::before,
.shop-page .woocommerce-error::before { color: inherit; }
.shop-page .wc-block-components-notice-banner { border-radius: 14px; }

/* ==========================================================================
   Mein Konto
   ========================================================================== */
.shop-page .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.shop-page .woocommerce-MyAccount-navigation li { margin: 0; }
.shop-page .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-control);
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.shop-page .woocommerce-MyAccount-navigation a:hover { border-color: var(--accent); color: var(--accent); }
.shop-page .woocommerce-MyAccount-navigation .is-active a { border-color: var(--accent); background: var(--accent); color: #fff; }
.shop-page .woocommerce-MyAccount-navigation a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Navigation über dem Inhalt statt daneben (WooCommerce teilt sonst 30/70). */
.shop-page .woocommerce-account .woocommerce-MyAccount-navigation,
.shop-page .woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .shop-page .woocommerce-MyAccount-navigation,
.woocommerce-account .shop-page .woocommerce-MyAccount-content { float: none; width: auto; }
.shop-page .woocommerce table.shop_table { border-color: var(--line); border-radius: 14px; }
.shop-page .woocommerce table.shop_table th,
.shop-page .woocommerce table.shop_table td { border-color: var(--line-soft); }
.shop-page .woocommerce form.login,
.shop-page .woocommerce form.register,
.shop-page .woocommerce form.lost_reset_password {
	max-width: 520px;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: #fff;
}
.shop-page .woocommerce .col2-set .col-1,
.shop-page .woocommerce .col2-set .col-2 { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
	.shop-page * { transition: none !important; }
}

/* ==========================================================================
 * EMMA-ANPASSUNG 02.12. (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Kasse mit Germanized: Bestellübersicht hatte keinen Innenabstand (Text klebte am Rahmen).
 * ========================================================================== */
.woocommerce-gzd-checkout .wp-block-woocommerce-checkout-order-summary-block {
	padding: 8px 18px 14px;
	border-radius: var(--radius-card);
	overflow: hidden;
}
.woocommerce-gzd-checkout .wc-block-components-checkout-order-summary__title {
	padding: 10px 0;
}
