/*
Theme Name: Care Norden
Description: Nordic storefront child theme for Dcare.
Template: dcare
Version: 0.3.0
Text Domain: carenorden
*/

:root{--cn-ink:#142622;--cn-green:#176f63;--cn-green-dark:#10574e;--cn-mint:#e9f4f1;--cn-line:#d9e5e2;--cn-muted:#667570;--cn-pink:#fde7ec}
html{scroll-behavior:smooth;overflow-x:hidden}
body{color:var(--cn-ink);letter-spacing:0;background:#fff}
body *{letter-spacing:0}
.cn-brand{display:inline-flex;align-items:center;gap:11px;color:var(--cn-ink)!important;text-decoration:none!important;white-space:nowrap}
.cn-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:4px;background:var(--cn-green);color:#fff;font-size:28px;font-weight:500;line-height:1}
.cn-brand-name{font-size:28px;font-weight:800}.cn-brand-name span{color:var(--cn-green)}
.logo-wrapper .logo{line-height:1}.logo-wrapper .logo>a{display:flex;align-items:center}

.cn-home{overflow:hidden;background:#fff}
.cn-home-hero{width:100%;min-height:520px;background-color:var(--cn-pink);background-image:var(--cn-hero-image);background-repeat:no-repeat;background-position:right center;background-size:auto 100%}
.cn-home-hero-inner{display:flex;align-items:center;max-width:1470px;min-height:520px;margin:0 auto;padding:48px 20px}
.cn-home-hero-copy{position:relative;z-index:1;width:min(610px,48%);color:#151719}
.cn-home-hero h1{max-width:590px;margin:22px 0 14px;font-size:58px;line-height:1.03;font-weight:800;letter-spacing:0}
.cn-hero-subtitle{margin:0 0 8px;font-size:22px;line-height:1.35;font-weight:700}
.cn-hero-delivery{margin:0 0 30px;font-size:18px;line-height:1.5}
.cn-hero-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border:2px solid var(--cn-green);border-radius:4px;background:#fff;color:var(--cn-green)!important;font-size:16px;font-weight:800;text-decoration:none!important;text-transform:uppercase}
.cn-hero-button:hover{background:var(--cn-green);color:#fff!important}
.cn-hero-flag{position:relative;display:block;width:48px;height:34px;overflow:hidden;border:1px solid rgba(0,0,0,.14);border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.cn-hero-flag::before,.cn-hero-flag::after{content:"";position:absolute;display:block}
.cn-hero-flag-se{background:#006aa7}.cn-hero-flag-se::before{left:0;top:14px;width:100%;height:6px;background:#fecc02}.cn-hero-flag-se::after{left:14px;top:0;width:6px;height:100%;background:#fecc02}
.cn-hero-flag-dk{background:#c60c30}.cn-hero-flag-dk::before{left:0;top:14px;width:100%;height:6px;background:#fff}.cn-hero-flag-dk::after{left:15px;top:0;width:6px;height:100%;background:#fff}
.cn-hero-flag-fi{background:#fff}.cn-hero-flag-fi::before{left:0;top:13px;width:100%;height:8px;background:#003580}.cn-hero-flag-fi::after{left:15px;top:0;width:8px;height:100%;background:#003580}
.cn-hero-flag-no{background:#ba0c2f}.cn-hero-flag-no::before{left:0;top:12px;width:100%;height:10px;background:#fff;box-shadow:inset 0 3px 0 #00205b,inset 0 -3px 0 #00205b}.cn-hero-flag-no::after{left:13px;top:0;width:10px;height:100%;background:#fff;box-shadow:inset 3px 0 0 #00205b,inset -3px 0 0 #00205b}

.cn-home-inner{max-width:1470px;margin:0 auto;padding:0 20px 72px}
.cn-home-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--cn-line)}
.cn-home-benefits>div{display:flex;align-items:center;gap:14px;min-height:112px;padding:22px 32px;border-right:1px solid var(--cn-line)}
.cn-home-benefits>div:first-child{padding-left:0}.cn-home-benefits>div:last-child{border-right:0}
.cn-home-benefits p{display:grid;gap:3px;margin:0}.cn-home-benefits strong{font-size:16px}.cn-home-benefits p span{color:var(--cn-muted);font-size:14px}
.cn-benefit-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--cn-green);border-radius:50%;color:var(--cn-green);font-size:18px;font-weight:800}
.cn-home-section{padding-top:58px}.cn-home-section>h2{margin:0 0 28px;font-size:32px;line-height:1.2;font-weight:800;letter-spacing:0}

.cn-home-products .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:32px 20px!important;width:100%!important;margin:0!important;padding:0!important}
.cn-home-products .products::before,.cn-home-products .products::after{display:none!important;content:none!important}
.cn-home-products .products>.product{float:none!important;clear:none!important;display:flex!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0 0 18px!important;border:1px solid transparent!important;border-radius:4px!important;background:#fff!important;position:relative!important;inset:auto!important;transform:none!important}
.cn-home-products .products>.product:hover{border-color:var(--cn-line)!important;box-shadow:0 8px 24px rgba(20,38,34,.07)}
.cn-home-products .product .product-wrapper{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important}
.cn-home-products .product .thumbnail-wrapper,.cn-home-products .product .thumbnail-wrapper>a,.cn-home-products .product figure{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:0!important;aspect-ratio:1/1!important;margin:0!important;padding:14px!important;overflow:hidden!important;background:#fff!important}
.cn-home-products .product .thumbnail-wrapper img,.cn-home-products .product img.wp-post-image{display:block!important;width:100%!important;height:100%!important;max-width:90%!important;max-height:90%!important;margin:auto!important;object-fit:contain!important;object-position:center!important}
.cn-home-products .product .meta-wrapper,.cn-home-products .product .product-meta{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;padding:14px 16px 0!important}
.cn-home-products .product .product-categories{min-height:40px!important;margin:0 0 8px!important;color:#87918e!important;font-size:13px!important;line-height:1.45!important}
.cn-home-products .product .product-name,.cn-home-products .product h3,.cn-home-products .product .woocommerce-loop-product__title{min-height:50px!important;margin:0 0 8px!important;color:var(--cn-ink)!important;font-size:17px!important;line-height:1.45!important;font-weight:600!important}
.cn-home-products .product .price{display:block!important;margin-top:auto!important;color:#111!important;font-size:17px!important;line-height:1.35!important;font-weight:800!important}
.cn-price-from{color:var(--cn-muted);font-size:.82em;font-weight:600}
.cn-home-products .product .button{width:100%!important;min-height:44px!important;margin-top:14px!important;border:1px solid var(--cn-green)!important;border-radius:4px!important;background:#fff!important;color:var(--cn-green)!important;font-size:13px!important;font-weight:800!important;text-align:center!important}
.cn-home-products .product .button:hover{background:var(--cn-green)!important;color:#fff!important}
.cn-home-products .product-group-button-meta,.cn-home-products .loop-add-to-cart{position:static!important;display:block!important;width:100%!important;height:auto!important;margin:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
.cn-home-products .product-group-button-meta .group-button-in{display:none!important}
.cn-home-products .loop-add-to-cart .button .ts-tooltip{position:static!important;display:inline!important;width:auto!important;height:auto!important;padding:0!important;background:none!important;color:inherit!important;opacity:1!important;visibility:visible!important;transform:none!important}
.cn-home-products .loop-add-to-cart .button .ts-tooltip::before,.cn-home-products .loop-add-to-cart .button .ts-tooltip::after{display:none!important}
.cn-home-products .short-description,.cn-home-products .star-rating,.cn-home-products .product-label{display:none!important}

.cn-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
.cn-category{display:grid;grid-template-rows:210px auto;min-width:0;overflow:hidden;border:1px solid var(--cn-line);border-radius:4px;background:#fff;color:var(--cn-ink)!important;text-decoration:none!important;box-shadow:0 5px 18px rgba(20,38,34,.05)}
.cn-category:hover{border-color:#a9c6bf;transform:translateY(-2px)}
.cn-category-media{display:grid;place-items:center;overflow:hidden;background:#f4f8f7}.cn-category img{display:block;width:100%;height:100%;object-fit:cover}.cn-category-placeholder{font-size:44px;color:var(--cn-green)}
.cn-category-copy{padding:16px 18px 18px}.cn-category-copy strong{display:block;margin-bottom:4px;font-size:17px;line-height:1.35}.cn-category-copy span{color:var(--cn-muted);font-size:13px}

.cn-home-guidance{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);align-items:center;gap:56px;margin-top:64px;padding:44px 48px;border-left:4px solid var(--cn-green);background:var(--cn-mint)}
.cn-guidance-kicker{margin:0 0 8px;color:var(--cn-green);font-size:14px;font-weight:800;text-transform:uppercase}.cn-home-guidance h2{margin:0;font-size:29px;line-height:1.25}.cn-home-guidance>p{margin:0;color:#3e514d;font-size:17px;line-height:1.7}

.woocommerce .products .product .thumbnail-wrapper,.woocommerce .products .product .thumbnail-wrapper>a,.woocommerce .products .product figure{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;min-height:0;background:#fff;overflow:hidden}
.woocommerce .products .product .thumbnail-wrapper img,.woocommerce .products .product img.wp-post-image{width:100%!important;height:100%!important;max-width:90%!important;max-height:90%!important;object-fit:contain!important;object-position:center!important}
.product-label .onsale,.product-label .discount-percent,.single-product .discount-percent,.single-product .ts-product-viewing{display:none!important}
.tini-wishlist,.wishlist,.compare,.quickshop,.ts-add-to-wishlist,.ts-add-to-compare,.ts-social-sharing,.single-product .social-sharing,.single-product .ts-buy-now-button{display:none!important}
.cn-product-facts{display:grid;gap:8px;margin:18px 0;padding:16px 18px;border-left:3px solid var(--cn-green);background:#f3f8f7;color:#3f504c}.cn-product-facts p{margin:0!important}

.cn-footer{background:#f3f7f6;border-top:1px solid var(--cn-line)}
.cn-footer-inner,.cn-footer-benefits,.cn-footer-bottom{max-width:1470px;margin:0 auto;padding-left:20px;padding-right:20px}
.cn-footer-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:26px;padding-bottom:26px;border-bottom:1px solid var(--cn-line)}
.cn-footer-benefits>div{display:grid;gap:4px;padding:0 26px;border-right:1px solid var(--cn-line)}.cn-footer-benefits>div:first-child{padding-left:0}.cn-footer-benefits>div:last-child{border:0}
.cn-footer-benefits span,.cn-footer-brand p{color:var(--cn-muted)}
.cn-footer-inner{display:grid;grid-template-columns:minmax(280px,1.55fr) repeat(3,minmax(155px,1fr));gap:40px;padding-top:42px;padding-bottom:42px}
.cn-footer h2{margin:0 0 14px;font-size:16px}.cn-footer ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}.cn-footer a{color:var(--cn-ink);text-decoration:none}.cn-footer a:hover{color:var(--cn-green)}
.cn-footer-brand p{max-width:500px;line-height:1.6}.cn-footer-bottom{padding-top:16px;padding-bottom:16px;border-top:1px solid var(--cn-line);font-size:13px;color:var(--cn-muted)}

body .cn-home .cn-home-inner .cn-home-products .woocommerce.columns-4 .products{grid-template-columns:repeat(4,minmax(0,1fr))!important}

@media(max-width:1100px){.cn-home-hero-copy{width:54%}.cn-home-hero h1{font-size:48px}body .cn-home .cn-home-inner .cn-home-products .woocommerce.columns-4 .products{grid-template-columns:repeat(3,minmax(0,1fr))!important}.cn-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cn-footer-inner{grid-template-columns:repeat(3,minmax(0,1fr))}.cn-footer-brand{grid-column:1/-1}}
@media(max-width:800px){.cn-home-hero{min-height:650px;background-size:auto 54%;background-position:center bottom}.cn-home-hero-inner{align-items:flex-start;min-height:650px;padding-top:42px}.cn-home-hero-copy{width:100%;max-width:620px}.cn-home-hero h1{max-width:100%;font-size:42px}.cn-home-benefits{grid-template-columns:1fr}.cn-home-benefits>div{min-height:0;padding:18px 0;border-right:0;border-bottom:1px solid var(--cn-line)}.cn-home-benefits>div:last-child{border-bottom:0}body .cn-home .cn-home-inner .cn-home-products .woocommerce.columns-4 .products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cn-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cn-home-guidance{grid-template-columns:1fr;gap:18px;padding:34px 30px}}
@media(max-width:767px){body{overflow-x:hidden}.header-right .express-delivery{display:none!important}.cn-brand-mark{width:36px;height:36px;font-size:24px}.cn-brand-name{font-size:22px}.cn-home-hero{min-height:610px;background-size:auto 48%}.cn-home-hero-inner{min-height:610px;padding:30px 16px}.cn-home-hero h1{margin-top:16px;font-size:36px}.cn-hero-subtitle{font-size:18px}.cn-hero-delivery{margin-bottom:22px;font-size:16px}.cn-hero-button{min-height:48px;padding:0 22px}.cn-home-inner{padding:0 14px 52px}.cn-home-section{padding-top:42px}.cn-home-section>h2{margin-bottom:20px;font-size:26px}.cn-home-products .products{gap:18px 10px!important}.cn-home-products .products>.product{padding-bottom:12px!important}.cn-home-products .product .thumbnail-wrapper,.cn-home-products .product .thumbnail-wrapper>a,.cn-home-products .product figure{padding:8px!important}.cn-home-products .product .meta-wrapper,.cn-home-products .product .product-meta{padding:10px 9px 0!important}.cn-home-products .product .product-categories{min-height:36px!important;font-size:11px!important}.cn-home-products .product .product-name,.cn-home-products .product h3,.cn-home-products .product .woocommerce-loop-product__title{min-height:66px!important;font-size:14px!important;line-height:1.4!important}.cn-home-products .product .price{font-size:14px!important}.cn-home-products .product .button{min-height:42px!important;padding:8px 6px!important;font-size:11px!important;white-space:normal!important}.cn-category-grid{gap:12px 10px}.cn-category{grid-template-rows:132px auto}.cn-category-copy{padding:11px 12px 13px}.cn-category-copy strong{font-size:14px}.cn-home-guidance{margin-top:46px;padding:28px 22px}.cn-home-guidance h2{font-size:23px}.cn-home-guidance>p{font-size:15px}.cn-footer-benefits{grid-template-columns:1fr}.cn-footer-benefits>div{padding:14px 0;border-right:0;border-bottom:1px solid var(--cn-line)}.cn-footer-inner{grid-template-columns:1fr;gap:28px}.cn-footer-brand{grid-column:auto}}
@media(max-width:390px){.cn-home-hero h1{font-size:32px}.cn-home-products .product .product-name,.cn-home-products .product h3,.cn-home-products .product .woocommerce-loop-product__title{min-height:78px!important;font-size:13px!important}}

/* Keep Dcare catalogue and cart geometry aligned with the Polish storefront. */
.woocommerce .products .product .thumbnail-wrapper,
.woocommerce .products .product .thumbnail-wrapper>a,
.woocommerce .products .product figure.no-back-image,
.woocommerce .products .product figure.has-back-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;min-height:250px;background:#fff;overflow:hidden}
.woocommerce .products .product .thumbnail-wrapper img,
.woocommerce .products .product .thumbnail-wrapper img.attachment-shop_catalog,
.woocommerce .products .product .thumbnail-wrapper img.wp-post-image{width:100%!important;height:100%!important;max-width:86%!important;max-height:86%!important;object-fit:contain!important;object-position:center!important}
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a{display:flex;align-items:center;justify-content:center;min-height:520px;background:#fff;overflow:hidden}
.woocommerce div.product div.images .woocommerce-product-gallery__image a{width:100%}
.woocommerce div.product div.images img.wp-post-image{width:auto!important;height:auto!important;max-width:86%!important;max-height:500px!important;object-fit:contain!important;object-position:center!important}
.woocommerce-cart table.cart img,
.woocommerce-checkout-review-order-table img,
.woocommerce-mini-cart img,
.cart_list img{object-fit:contain!important;background:#fff}

/* The bonus selector is intentionally absent, matching the Polish cart. */
#gift-dropdown,.gift-dropdown,.gift-dropdown-wrapper,[class*="gift-dropdown"]{display:none!important}

@media(max-width:767px){
  .woocommerce .products .product .thumbnail-wrapper,
  .woocommerce .products .product .thumbnail-wrapper>a,
  .woocommerce .products .product figure.no-back-image,
  .woocommerce .products .product figure.has-back-image{min-height:210px}
  .woocommerce .products .product .thumbnail-wrapper img,
  .woocommerce .products .product .thumbnail-wrapper img.attachment-shop_catalog,
  .woocommerce .products .product .thumbnail-wrapper img.wp-post-image{max-width:88%!important;max-height:88%!important}
  .woocommerce div.product div.images .woocommerce-product-gallery__image,
  .woocommerce div.product div.images .woocommerce-product-gallery__image a{min-height:340px}
  .woocommerce div.product div.images img.wp-post-image{max-width:88%!important;max-height:320px!important}
}
