/*
 * GGG eSite — Shop: WooCommerce's pages in the site's look.
 * Colors are the site's own — the eSite global colors of its Elementor kit — and fonts are inherited from it, so the
 * shop of every design follows that design. A design may set --gs-radius (buttons) and --gs-width (the column).
 */
body.ggg-shop-page {
  --gs-bg: var(--e-global-color-ggg_bg, #fff);
  --gs-band: var(--e-global-color-ggg_surface, #f4f4f0);
  --gs-text: var(--e-global-color-ggg_text, #111);
  --gs-soft: var(--e-global-color-ggg_text_soft, #5e5e57);
  --gs-accent: var(--e-global-color-ggg_primary, #111);
  --gs-on-accent: var(--e-global-color-ggg_on_primary, #fff);
  --gs-line: var(--e-global-color-ggg_line, #e2e2da);
  margin: 0; background: var(--gs-bg); color: var(--gs-text);
}
.ggg-shop-main { box-sizing: border-box; width: 100%; max-width: var(--gs-width, 1200px); margin: 0 auto; padding: 48px 24px 96px; }
@media (max-width: 767px) { .ggg-shop-main { padding: 28px 18px 64px; } }
.ggg-shop-main a { color: inherit; text-underline-offset: 3px; }
.ggg-shop-main img { max-width: 100%; height: auto; }

/* Headings: the site's faces at page sizes (a design's own h1 is made for its opening screen). */
body.ggg-shop-page .ggg-shop-main h1 { font-size: clamp(30px, 4.2vw, 46px) !important; line-height: 1.08 !important; margin: 0 0 22px; text-wrap: balance; }
body.ggg-shop-page .ggg-shop-main h2 { font-size: clamp(22px, 2.6vw, 30px) !important; line-height: 1.15 !important; margin: 0 0 14px; }
body.ggg-shop-page .ggg-shop-main h3 { font-size: 20px !important; line-height: 1.25 !important; margin: 0 0 10px; }

/* Buttons. */
.ggg-shop-main .button, .ggg-shop-main button[type=submit], .ggg-shop-main .wp-element-button, .ggg-shop-main .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 46px; padding: 12px 24px !important;
  border: 1.5px solid var(--gs-text) !important; border-radius: var(--gs-radius, 999px) !important; background: var(--gs-accent) !important; color: var(--gs-on-accent) !important;
  font: inherit; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; cursor: pointer;
  transition: background-color .18s ease, color .18s ease; }
.ggg-shop-main .button:hover, .ggg-shop-main button[type=submit]:hover, .ggg-shop-main .wp-element-button:hover, .ggg-shop-main .wc-block-components-button:not(.is-link):hover,
.ggg-shop-main .button:focus-visible, .ggg-shop-main button[type=submit]:focus-visible { background: var(--gs-text) !important; color: var(--gs-bg) !important; }
.ggg-shop-main .button:disabled, .ggg-shop-main .button.disabled { opacity: .5; cursor: default; }
.ggg-shop-main :focus-visible { outline: 2px solid var(--gs-text); outline-offset: 2px; }

/* Fields of WooCommerce's classic forms (the block checkout keeps its own field shapes). */
.ggg-shop-main .woocommerce form .form-row input.input-text, .ggg-shop-main .woocommerce form .form-row textarea, .ggg-shop-main .woocommerce form .form-row select,
.ggg-shop-main .woocommerce-ordering select, .ggg-shop-main .quantity .qty, .ggg-shop-main #coupon_code {
  box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--gs-text); border-radius: 8px; background: var(--gs-bg); color: var(--gs-text); font: inherit; }
.ggg-shop-main .woocommerce form .form-row label { font-weight: 600; }
.ggg-shop-main .woocommerce form.login, .ggg-shop-main .woocommerce form.register, .ggg-shop-main .woocommerce form.checkout_coupon { border: 1px solid var(--gs-line); border-radius: 14px; padding: 24px; }

/* Notices. */
.ggg-shop-main .woocommerce-message, .ggg-shop-main .woocommerce-info, .ggg-shop-main .woocommerce-error, .ggg-shop-main .woocommerce-noreviews {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 26px; padding: 14px 18px; list-style: none;
  border: 0; border-left: 4px solid var(--gs-accent); border-radius: 10px; background: var(--gs-band); color: var(--gs-text); }
.ggg-shop-main .woocommerce-error { border-left-color: #b3261e; }
.ggg-shop-main .woocommerce-message::before, .ggg-shop-main .woocommerce-info::before, .ggg-shop-main .woocommerce-error::before { display: none; }
.ggg-shop-main .woocommerce-message .button, .ggg-shop-main .woocommerce-info .button { order: 2; float: none; min-height: 38px; padding: 8px 18px !important; }

/* A list of products: an even grid. */
.ggg-shop-main ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 26px; margin: 0 0 40px; padding: 0; list-style: none; }
.ggg-shop-main ul.products::before, .ggg-shop-main ul.products::after { display: none !important; }
.ggg-shop-main ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.ggg-shop-main ul.products li.product a.woocommerce-loop-product__link { display: block; width: 100%; text-decoration: none; }
.ggg-shop-main ul.products li.product img { display: block; width: 100%; margin: 0 0 14px; border-radius: 12px; }
body.ggg-shop-page .ggg-shop-main ul.products li.product .woocommerce-loop-product__title { font-size: 19px !important; line-height: 1.25 !important; margin: 0 0 6px; padding: 0; }
.ggg-shop-main ul.products li.product .price, .ggg-shop-main div.product p.price, .ggg-shop-main div.product span.price { color: var(--gs-text); font-weight: 600; }
.ggg-shop-main ul.products li.product .price { display: block; margin: 0 0 14px; }
.ggg-shop-main ul.products li.product .button { margin-top: auto; align-self: flex-start; }
.ggg-shop-main .woocommerce-result-count { color: var(--gs-soft); }
.ggg-shop-main span.onsale { min-height: 0; min-width: 0; padding: 4px 12px; border-radius: 999px; background: var(--gs-text); color: var(--gs-bg); font-weight: 600; line-height: 1.4; }

/* A product. */
.ggg-shop-main div.product div.images img { border-radius: 14px; }
.ggg-shop-main div.product p.price, .ggg-shop-main div.product span.price { font-size: 22px; }
.ggg-shop-main div.product .woocommerce-product-details__short-description { color: var(--gs-soft); max-width: 46em; }
.ggg-shop-main div.product form.cart { margin: 26px 0; }
.ggg-shop-main div.product .product_meta { color: var(--gs-soft); font-size: .92em; }
.ggg-shop-main .woocommerce-tabs { clear: both; padding-top: 28px; }
.ggg-shop-main .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0 0 22px; padding: 0; list-style: none; border-bottom: 1px solid var(--gs-line); }
.ggg-shop-main .woocommerce-tabs ul.tabs::before, .ggg-shop-main .woocommerce-tabs ul.tabs li::before, .ggg-shop-main .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ggg-shop-main .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: none !important; }
.ggg-shop-main .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; color: var(--gs-soft); font-weight: 600; text-decoration: none; }
.ggg-shop-main .woocommerce-tabs ul.tabs li.active a { color: var(--gs-text); box-shadow: inset 0 -3px 0 var(--gs-text); }
.ggg-shop-main .related.products, .ggg-shop-main .upsells.products { clear: both; padding-top: 44px; }

/* Tables (the classic cart, orders in the account). */
.ggg-shop-main table.shop_table { border: 1px solid var(--gs-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; }
.ggg-shop-main table.shop_table th, .ggg-shop-main table.shop_table td { border-top: 1px solid var(--gs-line); padding: 12px 14px; }
.ggg-shop-main table.shop_table thead th { border-top: 0; }

/* The customer's account: its menu as a plain list beside the content. */
.ggg-shop-main .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ggg-shop-main .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.ggg-shop-main .woocommerce-MyAccount-navigation li.is-active a { background: var(--gs-band); font-weight: 600; }
.ggg-shop-main .woocommerce-MyAccount-navigation a:hover { background: var(--gs-band); }

/* The block cart and checkout: the site's accent where WooCommerce uses its own. */
.ggg-shop-main .wc-block-components-totals-item__value, .ggg-shop-main .wc-block-components-product-name { color: var(--gs-text); }
.ggg-shop-main .wc-block-components-product-name { font-weight: 600; text-decoration: none; }
.ggg-shop-main .wc-block-components-checkout-step__heading { margin-top: 0; }
body.ggg-shop-page .ggg-shop-main .wc-block-cart__totals-title, body.ggg-shop-page .ggg-shop-main .wc-block-components-title.wc-block-components-title { font-size: 20px !important; line-height: 1.25 !important; letter-spacing: 0; text-transform: none; }
