/* 商品卡: product cards in lists in the old site's look. Each rule is scoped to the plugin's own card and doubled up (body …item.item) because
   a shop's theme settings can style list buttons and labels with !important (the partner's WoodMart custom CSS does). */
body .gb-card-item.gb-card-item{position:relative;display:flex!important;flex-direction:column;text-align:center;list-style:none;margin-bottom:24px}
body .gb-card-item.gb-card-item .gb-card-link{display:flex;flex-direction:column;align-items:center;color:inherit;text-decoration:none}
body .gb-card-item.gb-card-item .gb-card-media{position:relative;width:100%}
body .gb-card-item.gb-card-item .gb-card-image{position:relative;display:block;width:100%;aspect-ratio:3/4;overflow:hidden;background:#f6f6f6}
body .gb-card-item.gb-card-item .gb-card-image img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;margin:0!important}
body .gb-card-item.gb-card-item .gb-card-image .onsale{z-index:2;position:absolute!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;margin:0!important;padding:4px 8px!important;border-radius:0!important;background:#c0392b!important;color:#fff!important;font-size:10px!important;line-height:1.4!important;font-weight:600}
/* The name takes at most two lines and ends in … */
body .gb-card-item.gb-card-item .gb-card-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:10px 4px 4px;color:#333;font-size:14px;line-height:1.45;font-weight:400}
/* A sale price stacks (sale above, regular struck through below); a price range stays on one line. */
body .gb-card-item.gb-card-item .gb-card-price{display:block;color:#333;font-size:16px;font-weight:600;line-height:1.3}
body .gb-card-item.gb-card-item .gb-card-price:has(del){display:flex;flex-direction:column;align-items:center;gap:2px}
body .gb-card-item.gb-card-item .gb-card-price ins{order:-1;color:#d72f45;text-decoration:none;font-weight:600;background:none}
body .gb-card-item.gb-card-item .gb-card-price del{order:1;color:#999;font-size:13px;font-weight:400;opacity:1;text-decoration:line-through}
/* the original price itself thin and grey too, whatever colour and weight the theme or the shop's settings give prices */
body .gb-card-item.gb-card-item .gb-card-price del :is(.amount,bdi,.woocommerce-Price-currencySymbol){color:#999!important;font-weight:400!important;font-size:inherit!important}
body .gb-card-item.gb-card-item .gb-card-wishlist{position:absolute;top:8px;right:8px;z-index:2}
/* centred in its circle: the shop's WoodMart settings push list wishlist buttons' content to the right with !important, and the button's
   own (hidden, zero-size) words still count as a flex item, so no gap beside the heart either; once added, the wishlist's own style puts
   5px on the heart's right (the heart then sat 2.5px left of the middle), so no margin on it */
body .gb-card-item.gb-card-item .gb-card-wishlist .woosw-btn{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;width:32px!important;height:32px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;color:#555!important;font-size:0!important;line-height:0!important;box-shadow:none!important}
body .gb-card-item.gb-card-item .gb-card-wishlist .woosw-btn>*{display:none!important}
body .gb-card-item.gb-card-item .gb-card-wishlist .woosw-btn::before{content:"";display:block;flex:none;width:18px;height:18px;margin:0!important;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9-8.7C1.6 8 3.6 4.5 7 4.5c2 0 3.6 1.2 5 3 1.4-1.8 3-3 5-3 3.4 0 5.4 3.5 4 6.8C19 15.6 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9-8.7C1.6 8 3.6 4.5 7 4.5c2 0 3.6 1.2 5 3 1.4-1.8 3-3 5-3 3.4 0 5.4 3.5 4 6.8C19 15.6 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat}
body .gb-card-item.gb-card-item .gb-card-wishlist .woosw-btn.woosw-added{color:#d72f45!important}
body .gb-card-item.gb-card-item .gb-card-cart{margin-top:auto;padding-top:12px}
body .gb-card-item.gb-card-item .gb-card-cart a.button{box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;width:100%!important;height:36px;min-height:0;margin:0!important;padding:0!important;border:1px solid #ddd!important;border-radius:0!important;background:#f2f2f2!important;color:#c74060!important;box-shadow:none!important;font-size:14px}
body .gb-card-item.gb-card-item .gb-card-cart .button:hover,body .gb-card-item.gb-card-item .gb-card-cart .button:focus-visible{background:#e8e8e8!important;color:#c74060!important}
body .gb-card-item.gb-card-item .gb-card-cart .added_to_cart{display:block;margin-top:6px;font-size:13px}
/* a solid cart, as the old site's */
body .gb-card-item.gb-card-item .gb-card-cart-icon{width:18px;height:18px;fill:currentColor;stroke:none}
body .gb-card-item.gb-card-item .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body .gb-card-item.gb-card-item .gb-card-cart a.button::before,body .gb-card-item.gb-card-item .gb-card-cart a.button::after{content:none!important;display:none!important}
/* Phones and tablets (WoodMart's 1024px breakpoint and below): the cards in a row are as tall as the tallest, the grey cart button at the
   bottom of each. Computers: no button under the card; over the picture, on hover or keyboard focus, the photo turns half dark (the same
   as a 50% black veil, but on the photo only, so the sale tag, the heart and any label a shop's plugin draws on the picture stay as they
   are) and a white 加入購物車 button shows at its foot. */
body .gb-card-item.gb-card-item .gb-card-hover{display:none}
/* the first gallery picture: over the main one, shown on computers with a pointer while it is over the picture (fades in and out); not
   shown, so not loaded, on phones, tablets and touch screens */
body .gb-card-item.gb-card-item .gb-card-image img.gb-card-alt{display:none}
@media (min-width:1025px) and (hover:hover){
body .gb-card-item.gb-card-item .gb-card-image img.gb-card-alt{display:block;position:absolute!important;inset:0;opacity:0;transition:opacity .3s ease,filter .15s}
body .gb-card-item.gb-card-item .gb-card-media:hover .gb-card-image img.gb-card-alt,body .gb-card-item.gb-card-item .gb-card-media:focus-within .gb-card-image img.gb-card-alt{opacity:1}
}
@media (max-width:1024px){
body .gb-card-item.gb-card-item{align-self:stretch!important;height:auto!important}
}
@media (min-width:1025px){
body .gb-card-item.gb-card-item .gb-card-cart{display:none!important}
body .gb-card-item.gb-card-item .gb-card-image img{transition:filter .15s}
body .gb-card-item.gb-card-item .gb-card-media:hover .gb-card-image img,body .gb-card-item.gb-card-item .gb-card-media:focus-within .gb-card-image img{filter:brightness(.5)}
body .gb-card-item.gb-card-item .gb-card-hover{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:10px;opacity:0;pointer-events:none;transition:opacity .15s}
/* the layer lets a click through to the picture's link; only the button (and WooCommerce's 查看購物車 after adding) take clicks */
body .gb-card-item.gb-card-item .gb-card-media:hover .gb-card-hover,body .gb-card-item.gb-card-item .gb-card-media:focus-within .gb-card-hover{opacity:1}
body .gb-card-item.gb-card-item .gb-card-media:hover .gb-card-hover a,body .gb-card-item.gb-card-item .gb-card-media:focus-within .gb-card-hover a{pointer-events:auto}
body .gb-card-item.gb-card-item .gb-card-hover a.button{box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;width:100%!important;height:40px;min-height:0!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:0!important;background:#fff!important;color:#333!important;font-size:15px!important;font-weight:400!important;line-height:1.2!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important}
/* the mouse on the button itself: rose (#c74060, as on the shop's picture and the phone cart icon) with white words; keyboard focus the
   same, with an outline */
body .gb-card-item.gb-card-item .gb-card-hover a.button:hover,body .gb-card-item.gb-card-item .gb-card-hover a.button:focus-visible{background:#c74060!important;color:#fff!important}
body .gb-card-item.gb-card-item .gb-card-hover a.button:focus-visible{outline:2px solid #fff!important;outline-offset:-4px}
body .gb-card-item.gb-card-item .gb-card-hover a.button::before,body .gb-card-item.gb-card-item .gb-card-hover a.button::after{content:none!important;display:none!important}
body .gb-card-item.gb-card-item .gb-card-hover a.button.loading{opacity:.7}
body .gb-card-item.gb-card-item .gb-card-hover .added_to_cart{display:block;color:#fff!important;font-size:13px;text-align:center;text-decoration:underline}
}
/* Square buttons and sale tags: the theme's own inside the card too (WoodMart's buttons read these, its round and semi-round styles set
   them on the button itself; any other button or tag here square whoever styles it). The round wishlist heart stays round. */
body .gb-card-item.gb-card-item,body .gb-card-item.gb-card-item :is(.btn-shape-round,.btn-style-round,.btn-shape-semi-round,.btn-style-semi-round){--btn-brd-radius:0px;--btn-default-brd-radius:0px;--btn-accented-brd-radius:0px}
body .gb-card-item.gb-card-item :is(button,a.button,.button,.onsale):not(.gb-card-wishlist .woosw-btn){border-radius:0!important}
/* Page numbers under the products (the shop, categories, tags and product search, WoodMart's or WooCommerce's own list; the shop's choice,
   11/19): no box and no fill, the numbers only, the current one with a short rose line under it; ‹ › as the theme draws them. WoodMart's
   back-to-top button beside them is its own and stays. With 商品卡 off this file is not on the page. */
body.archive nav.woocommerce-pagination ul.page-numbers{border:0!important;gap:4px}
body.archive nav.woocommerce-pagination ul.page-numbers li{border:0!important;background:none!important}
body.archive nav.woocommerce-pagination li .page-numbers{position:relative;min-width:28px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#333!important}
body.archive nav.woocommerce-pagination li a.page-numbers:hover{color:#c43656!important;background:transparent!important}
body.archive nav.woocommerce-pagination li .page-numbers.current{color:#333!important;font-weight:600}
body.archive nav.woocommerce-pagination li .page-numbers.current::after{content:"";position:absolute;left:50%;bottom:3px;width:22px;height:2px;background:#c43656;transform:translateX(-50%)}
