/* SVUNG Merchandise – WooCommerce i SVUNG-stil (2.19.0). Indlæses kun på butikkens sider. */

.svung-shop { background: #f2f2f2; padding-bottom: 32px; }
.svung-shop__body { padding: 20px 14px 8px; }

/* ---------- Top ---------- */
.svung-shophero { background: #000; color: #fff; padding: 30px 18px 24px; border-bottom: 6px solid var(--svung-yellow); }
.svung-shophero__title { margin: 0; font-family: var(--svung-head); font-weight: 400; font-size: clamp(40px, 12vw, 64px); line-height: .98; color: var(--svung-yellow); text-transform: uppercase; word-break: break-word; }
.svung-shophero__title span { color: #fff; }
.svung-shophero__tag { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: #d6d6d6; }
.svung-shophero--slim { padding: 20px 18px 18px; }
.svung-shophero--slim .svung-shophero__title { font-size: clamp(34px, 10vw, 48px); color: #fff; }
.svung-usps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.svung-usps li { font-size: 14px; font-weight: 700; color: var(--svung-yellow); }
.svung-usps li::before { content: "✓"; margin-right: 6px; color: #fff; }

/* ---------- Beskeder ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 16px; padding: 14px 16px; background: #fff; border-left: 6px solid var(--svung-yellow); font-size: 15px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.woocommerce-error { border-left-color: var(--svung-red); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- Knapper ---------- */
.svung-btn, .svung-shop .button, .svung-shop button.button, .single_add_to_cart_button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--svung-yellow); color: #000; border: 2px solid #000; border-radius: 0;
	font-family: var(--svung-head); font-size: 19px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase;
	padding: 12px 20px; line-height: 1.1; cursor: pointer; box-shadow: 4px 4px 0 var(--svung-red); text-decoration: none;
}
.svung-btn:hover, .svung-shop .button:hover, .single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { opacity: 1; background: #fff; color: #000; }
.svung-btn--ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.svung-btn--ghost:hover { background: #fff; color: #000; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { font-family: var(--svung-head); }

/* ---------- Oversigt ---------- */
.svung-shop ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (max-width: 380px) { .svung-shop ul.products { grid-template-columns: 1fr; } }
.svung-shop ul.products li.product { position: relative; margin: 0; background: #fff; border: 2px solid #000; box-shadow: 5px 5px 0 var(--svung-yellow); transition: transform .12s ease, box-shadow .12s ease; }
.svung-shop ul.products li.product:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--svung-yellow); }
.svung-shop ul.products li.product > a { display: flex; flex-direction: column; height: 100%; color: #000; }
.svung-shop ul.products li.product > a:hover { opacity: 1; }
.svung-shop ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; border-bottom: 2px solid #000; }
.svung-shopcard__badge, .svung-shop .onsale { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--svung-red); color: #fff; font-family: var(--svung-head); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; padding: 2px 9px; transform: rotate(-3deg); }
.svung-shopcard__name { margin: 12px 12px 0; font-family: var(--svung-head); font-weight: 400; font-size: 22px; line-height: 1.05; }
.svung-shopcard__sub { margin: 4px 12px 0; font-size: 14px; line-height: 1.4; color: #555; }
.svung-shopcard__foot { margin-top: auto; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.svung-shopcard__foot .price { font-family: var(--svung-head); font-size: 22px; color: #000; }
.svung-shopcard__foot .price del { font-size: 15px; color: #777; margin-right: 4px; }
.svung-shopcard__foot .price ins { text-decoration: none; color: var(--svung-red); }
.svung-shopcard__btn { background: #000; color: var(--svung-yellow); font-family: var(--svung-head); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; padding: 6px 11px; }
.svung-shop ul.products li.svung-shopcard--soon { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 18px; background: transparent; border: 2px dashed #b5b5b5; box-shadow: none; text-align: center; font-family: var(--svung-head); font-size: 19px; line-height: 1.1; color: #8a8a8a; text-transform: uppercase; }
.svung-shop ul.products li.svung-shopcard--soon:hover { transform: none; box-shadow: none; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 22px 0 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: block; padding: 6px 12px; background: #fff; border: 2px solid #000; font-weight: 800; }
.woocommerce-pagination .current { background: #000; color: var(--svung-yellow); }
.woocommerce-no-products-found .woocommerce-info { justify-content: flex-start; }

/* ---------- Produktside ---------- */
.svung-shop--product .svung-shop__body { padding-top: 0; }
.svung-shop--product div.product { position: relative; display: flex; flex-direction: column; }
.svung-shop--product .woocommerce-product-gallery { position: relative; margin: 0 -14px; background: #fff; border-bottom: 2px solid #000; opacity: 1 !important; }
.svung-shop--product .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.svung-shop--product .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #000; color: #fff; border-radius: 50%; font-size: 0; }
.svung-shop--product .woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 20px; }
.svung-shop--product .woocommerce-product-gallery__trigger img { display: none !important; }
.svung-shop--product .flex-control-thumbs { list-style: none; display: flex; gap: 8px; margin: 0; padding: 10px 14px; overflow-x: auto; }
.svung-shop--product .flex-control-thumbs li { flex: 0 0 64px; }
.svung-shop--product .flex-control-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 2px solid transparent; cursor: pointer; opacity: .6; }
.svung-shop--product .flex-control-thumbs img.flex-active, .svung-shop--product .flex-control-thumbs img:hover { opacity: 1; border-color: #000; }
.svung-shop--product .onsale { top: 14px; left: 0; }
.svung-shop--product .summary { padding: 22px 0 0; }
.svung-prod__kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.svung-prod__kicker a { color: var(--svung-red); }
.svung-shophero .svung-prod__kicker a { color: var(--svung-yellow); }
.svung-shop .product_title { margin: 0; font-family: var(--svung-head); font-weight: 400; font-size: clamp(34px, 10vw, 50px); line-height: 1; word-break: break-word; }
.svung-shop .summary .price { margin: 14px 0 0; font-family: var(--svung-head); font-size: 36px; line-height: 1; color: #000; }
.svung-shop .summary .price del { font-size: 22px; color: #777; }
.svung-shop .summary .price ins { text-decoration: none; color: var(--svung-red); }
.svung-shop .woocommerce-price-suffix { font-family: var(--svung-body); font-size: 14px; font-weight: 600; color: #555; }
.svung-shop .woocommerce-product-details__short-description { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.svung-prod__usps { list-style: none; margin: 16px 0 0; padding: 14px 16px; background: #fff; border-left: 6px solid #000; }
.svung-prod__usps li { padding: 4px 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.svung-prod__usps li::before { content: "✓"; margin-right: 8px; color: var(--svung-red); font-weight: 800; }
.svung-shop form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 22px 0 0; }
.svung-shop form.cart .single_add_to_cart_button { flex: 1 1 200px; font-size: 22px; padding: 15px 20px; }
.svung-shop .stock { margin: 16px 0 0; font-weight: 800; }
.svung-shop .stock.out-of-stock { color: var(--svung-red); }
.svung-shop .quantity { display: flex; }
.svung-shop .quantity .qty { width: 72px; min-height: 52px; border: 2px solid #000; border-radius: 0; font-size: 18px; font-weight: 800; text-align: center; background: #fff; }
.svung-shop .woocommerce-tabs { margin-top: 28px; }
.svung-shop .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; border-bottom: 3px solid #000; }
.svung-shop .woocommerce-tabs ul.tabs li a { display: block; padding: 8px 14px; background: #000; color: #fff; font-family: var(--svung-head); font-size: 18px; text-transform: uppercase; }
.svung-shop .woocommerce-tabs .panel { background: #fff; padding: 18px 16px; font-size: 17px; line-height: 1.65; }
.svung-shop .woocommerce-tabs .panel > :first-child { margin-top: 0; }
.svung-shop .woocommerce-tabs .panel ul { padding-left: 20px; }

/* ---------- Kurv-ikon i headeren ---------- */
.svung-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 48px; margin-left: auto; }
.svung-cart__n { position: absolute; top: 6px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--svung-red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.svung-nav__shop a { color: var(--svung-yellow) !important; }

/* ---------- "Lagt i kurv"-popup ---------- */
.svung-added { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); padding: 16px; animation: svung-fade .18s ease; }
@media (min-width: 600px) { .svung-added { align-items: center; } }
.svung-added[hidden] { display: none; }
.svung-added__box { position: relative; width: 100%; max-width: 420px; background: #000; color: #fff; border: 3px solid var(--svung-yellow); padding: 22px 18px 18px; box-shadow: 8px 8px 0 var(--svung-red); animation: svung-pop .2s ease; }
.svung-added__x { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.svung-added__h { margin: 0 0 14px; font-family: var(--svung-head); font-size: 28px; line-height: 1; color: var(--svung-yellow); text-transform: uppercase; }
.svung-added__item { display: flex; gap: 12px; align-items: center; }
.svung-added__item img { width: 64px; height: 64px; object-fit: cover; background: #fff; flex-shrink: 0; }
.svung-added__name { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.3; }
.svung-added__price { margin: 4px 0 0; color: #d6d6d6; font-size: 15px; }
.svung-added__count { margin: 14px 0 16px; font-size: 14px; color: #a8a8a8; }
.svung-added__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svung-added__btns .svung-btn { font-size: 17px; padding: 12px 10px; }
.svung-added__cart { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: #fff; text-decoration: underline; }
@keyframes svung-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes svung-pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .svung-added, .svung-added__box, .svung-shop ul.products li.product { animation: none; transition: none; } }

/* ---------- Kurv og kasse (WooCommerce-blokke) ---------- */
.svung-shop--flow .svung-shop__body { font-size: 16px; }
.svung-shop--flow .wp-block-woocommerce-cart, .svung-shop--flow .wp-block-woocommerce-checkout, .svung-shop--flow .woocommerce { background: #fff; padding: 16px 14px; border: 2px solid #000; }
.svung-shop--flow h2, .svung-shop--flow .wc-block-components-title, .svung-shop--flow .wc-block-components-checkout-step__title { font-family: var(--svung-head); font-weight: 400; letter-spacing: .3px; }
.svung-shop--flow .wc-block-components-product-name { font-weight: 800; color: #000; }
.svung-shop--flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.svung-shop--flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--svung-head); font-size: 22px; font-weight: 400; }
.svung-shop--flow .wc-block-components-text-input input, .svung-shop--flow .wc-block-components-combobox input, .svung-shop--flow .wc-blocks-components-select select { border: 2px solid #000 !important; border-radius: 0 !important; }
.svung-shop--flow .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { width: 100%; font-size: 22px; padding: 16px; }
.svung-shop--flow a { text-decoration: underline; }
.svung-shop--flow .wc-block-components-button:not(.is-link) { text-decoration: none; }
.svung-shop--flow .wc-block-cart__empty-cart__title { font-family: var(--svung-head); font-weight: 400; }

/* Klassisk kurv/kasse/Min konto, hvis en side bruger shortcodes i stedet for blokke */
.svung-shop--flow table.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.svung-shop--flow table.shop_table th, .svung-shop--flow table.shop_table td { padding: 10px 6px; border-bottom: 1px solid #ddd; text-align: left; }
.svung-shop--flow .input-text, .svung-shop--flow select { width: 100%; min-height: 44px; padding: 8px 10px; border: 2px solid #000; border-radius: 0; font-size: 16px; }
.svung-shop--flow .form-row { margin: 0 0 12px; }
.svung-shop--flow label { display: block; font-weight: 700; margin-bottom: 4px; }
.svung-shop--flow .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svung-shop--flow .woocommerce-MyAccount-navigation a { display: block; padding: 6px 10px; background: #000; color: #fff; text-decoration: none; font-weight: 700; }
.svung-shop--flow .woocommerce-MyAccount-navigation .is-active a { background: var(--svung-yellow); color: #000; }
