.barfstar-shop {
  --shop-panel: #fff;
  --shop-border: #d8e6ef;
  --shop-radius: 24px;
  --shop-pad: clamp(18px, 3vw, 32px);
  background: #edf5fa;
}

.barfstar-shop .shop-shell { width: min(1080px, calc(100% - 32px)); }
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px clamp(16px, 3vw, 28px);
  margin-block: 22px 38px;
  border: 1px solid #fff;
  border-radius: 36px;
  background: linear-gradient(120deg, #fff, #e3f0f8);
  box-shadow: 0 12px 34px #11354b0e;
}

.shop-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--deep);
}
.shop-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.shop-back .icon { width: 16px; height: 16px; }
.shop-page-title { margin-block-end: 18px; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.shop-footer { border-top: 1px solid var(--shop-border); margin-block-start: 36px; padding-block: 16px; color: var(--muted); font-size: .875rem; }
.shop-empty { padding: var(--shop-pad); border-radius: var(--shop-radius); background: #fff; }
.shop-empty p { margin-block-end: 12px; }

.barfstar-shop.single-product .product.type-product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  background: linear-gradient(145deg, #caeaf7, #eef8fd 75%);
  padding: var(--shop-pad);
  border: 1px solid #fff;
  border-radius: var(--shop-radius);
}
.barfstar-shop.single-product .product.type-product:has(> .woocommerce-product-gallery) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(18px, 4vw, 40px);
}
.barfstar-shop.single-product .product.type-product::before,
.barfstar-shop.single-product .product.type-product::after { display: none; }
.barfstar-shop.single-product div.product > .summary,
.barfstar-shop.single-product div.product > .woocommerce-product-gallery {
  width: auto;
  min-width: 0;
  float: none;
  margin: 0;
}
.barfstar-shop.single-product .product_title { font-size: clamp(1.8rem, 5vw, 3rem); overflow-wrap: anywhere; }
.barfstar-shop.single-product .summary .price { color: var(--deep); margin-block: 12px; font-size: 1.35rem; }
.barfstar-shop.single-product .summary .price ins { text-decoration: none; }
.barfstar-shop.single-product span.onsale { position: static; width: fit-content; padding: 4px 12px; min-height: 0; min-width: 0; line-height: 1.8; background: var(--deep); grid-column: 1 / -1; }
.barfstar-shop.single-product div.product form.cart { margin-block: 18px 0; }
.barfstar-shop.single-product .woocommerce-tabs { grid-column: 1 / -1; background: #ffffffb8; border-radius: 16px; padding: clamp(12px, 3vw, 24px); margin-block-start: 12px; }
.barfstar-shop .woocommerce-tabs .woocommerce-Tabs-panel { margin-block-end: 0; }
.barfstar-shop .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { font-size: 1.2rem; margin-block-end: 8px; }

.barfstar-shop form.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.barfstar-shop form.woocommerce-checkout > :not(#customer_details, .shop-order-summary) { grid-column: 1 / -1; }
.barfstar-shop #customer_details,
.barfstar-shop .shop-order-summary,
.barfstar-shop .cart-collaterals,
.barfstar-shop .woocommerce-order,
.barfstar-shop form#order_review {
  min-width: 0;
  padding: var(--shop-pad);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-panel);
}
.barfstar-shop .woocommerce .col2-set .col-1,
.barfstar-shop .woocommerce .col2-set .col-2 { float: none; width: 100%; }
.barfstar-shop #customer_details h3,
.barfstar-shop #order_review_heading { margin-block-end: 14px; font-size: 1.2rem; }
.barfstar-shop .woocommerce form .form-row input.input-text,
.barfstar-shop .woocommerce form .form-row textarea,
.barfstar-shop .woocommerce form .form-row select,
.barfstar-shop .quantity .qty {
  color: var(--ink);
  border: 1px solid #b7cede;
  background: #f7fbfe;
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 44px;
}
.barfstar-shop input[type=email] { direction: ltr; text-align: start; }
.barfstar-shop .quantity .qty { width: 4.75em; }
.barfstar-shop .woocommerce table.shop_table { border-color: var(--shop-border); margin-block-end: 14px; overflow-wrap: anywhere; }
.barfstar-shop #payment { background: #eef6fb; border: 1px solid var(--shop-border); border-radius: 14px; }
.barfstar-shop #payment div.payment_box { background: #deedf7; }
.barfstar-shop .woocommerce #payment #place_order { float: none; display: block; width: 100%; }
.barfstar-shop.woocommerce button.button.alt,
.barfstar-shop .woocommerce :is(button,a).button.alt,
.barfstar-shop .shop-empty .button {
  background: var(--deep);
  color: #fff;
  border: 1px solid var(--deep);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 22px;
  line-height: 1.6;
  font-weight: 650;
}
.barfstar-shop.woocommerce button.button.alt:hover,
.barfstar-shop .woocommerce :is(button,a).button.alt:hover,
.barfstar-shop .shop-empty .button:hover { background: #0a4161; }
.barfstar-shop input[type=radio], .barfstar-shop input[type=checkbox] { accent-color: var(--deep); }

@media (max-width: 760px) {
  .shop-header { margin-block: 14px 24px; }
  .barfstar-shop form.woocommerce-checkout,
  .barfstar-shop.single-product .product.type-product:has(> .woocommerce-product-gallery) { grid-template-columns: minmax(0, 1fr); }
}

.shop-service-intro {
  padding: var(--shop-pad);
  margin-block-end: 18px;
  border-radius: var(--shop-radius);
  background: linear-gradient(145deg, #caeaf7, #eef8fd 75%);
}
.shop-service-intro h1 { font-size: clamp(2rem, 5vw, 3rem); }
.shop-service-intro p { margin-block-start: 4px; }
.shop-preview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-preview-fields .form-row:first-child { grid-column: 1 / -1; }
.shop-preview-fields label { display: block; margin-bottom: 4px; }
.shop-preview-fields input { width: 100%; }
.shop-preview-totals { margin: 0 0 16px; }
.shop-preview-totals > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; }
.shop-preview-totals > div { font-weight: 700; }
.shop-preview-totals dd { margin: 0; }
.shop-preview-gateway { display: flex; align-items: center; gap: 10px; font-weight: 600; padding-block-end: 10px; }
.shop-preview-gateway img, .barfstar-shop #payment .payment_methods img { inline-size: 48px; block-size: auto; object-fit: contain; }
.shop-preview-status { margin-block-start: 12px; color: var(--deep); }
.shop-service-intro, .shop-preview-status { overflow-wrap: anywhere; }
.barfstar-shop #payment:has(.shop-preview-gateway) { padding: 14px; }

.barfstar-shop #customer_details h2 { font-size: 1.2rem; margin-block-end: 14px; }
@media (max-width: 440px) {
  .shop-preview-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.barfstar-shop #services.compact-services {
  border: 0;
  padding-block: 0;
  background: transparent;
}

.barfstar-shop #services > .container { width: 100%; }

.shop-account,
.shop-content {
  padding: var(--shop-pad);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-panel);
}
.shop-content .wp-block-heading { margin-block: 1em .5em; }
.shop-content article + article { margin-block-start: 24px; }
.barfstar-shop .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.barfstar-shop .woocommerce-MyAccount-navigation a {
  display: block;
  border-radius: 12px;
  padding: 6px 12px;
}
.barfstar-shop .woocommerce-MyAccount-navigation .is-active a,
.barfstar-shop .woocommerce-MyAccount-navigation a:hover { background: var(--ice); color: var(--deep); }
.barfstar-shop .shop-account form { border-color: var(--shop-border); }
.barfstar-shop .shop-account a:not(.button) { color: var(--deep); }
.barfstar-shop #payment .woocommerce-privacy-policy-text {
  font-size: .875rem;
  color: var(--muted);
  margin-block-end: 12px;
}
.barfstar-shop #payment .woocommerce-privacy-policy-text a { text-decoration: underline; }
.barfstar-shop #payment label img { vertical-align: middle; margin-inline-start: 8px; }
.barfstar-shop #payment .payment_methods label { color: var(--ink); font-weight: 600; }
.barfstar-shop .woocommerce form.checkout input[type=tel] { direction: ltr; text-align: start; }
@media (max-width: 760px) {
  .barfstar-shop .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .barfstar-shop .woocommerce .form-row-first,
  .barfstar-shop .woocommerce .form-row-last { width: 100%; float: none; }
}

.barfstar-shop .shop-remove-item {
  display: block;
  width: fit-content;
  margin-block-start: 3px;
  padding-block: 3px;
  color: #a13939;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.barfstar-shop .woocommerce-checkout-review-order-table :is(.product-total, .cart-subtotal td, .order-total td) .amount {
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: .9rem;
}
