/* ======================================================================
   SHIMA STOREFRONT UI 2.3.0 — Premium commerce unification layer
   Scope: shop/archive, single product, cart, checkout, mobile refinement.
   ====================================================================== */

:root {
  --shima-premium-green: #078747;
  --shima-premium-green-dark: #06643a;
  --shima-premium-soft: #f4faf6;
  --shima-premium-line: #dbe8e0;
  --shima-premium-text: #122019;
  --shima-premium-muted: #66756d;
  --shima-premium-shadow: 0 14px 38px rgba(15,44,29,.055);
  --shima-premium-shadow-hover: 0 20px 44px rgba(15,44,29,.085);
  --shima-premium-radius: 20px;
}

/* ---------- Global storefront harmony ---------- */
.shima-storefront-ui-active .shima-main {
  background:
    radial-gradient(circle at 9% 7%, rgba(7,135,71,.035), transparent 23rem),
    linear-gradient(180deg, #fbfdfc 0%, #f7faf8 100%);
}
.shima-storefront-ui-active .shima-breadcrumbs {
  min-height: 28px;
  font-size: 10.5px;
}
.shima-storefront-ui-active .shima-breadcrumbs strong {
  font-size: 11.5px;
}
.shima-storefront-ui-active .shima-btn {
  border-radius: 11px;
}

/* ---------- Shop / archive: premium catalogue ---------- */
.shima-archive-page .shima-archive-head {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid var(--shima-premium-line);
  border-radius: var(--shima-premium-radius);
  background: linear-gradient(135deg, #f2faf5 0%, #fff 68%);
  box-shadow: var(--shima-premium-shadow);
}
.shima-archive-page .shima-archive-head::after {
  content: "";
  position: absolute;
  inset: auto -55px -75px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7,135,71,.10), rgba(7,135,71,0) 68%);
  pointer-events: none;
}
.shima-archive-page .shima-archive-head h1 {
  color: var(--shima-premium-green-dark);
  font-size: clamp(25px, 2.3vw, 33px);
  line-height: 1.45;
  letter-spacing: -.02em;
}
.shima-archive-page .shima-archive-head p {
  max-width: 700px;
  color: #56665e;
  font-size: 12.5px;
  line-height: 1.95;
}
.shima-archive-page .shima-archive-ordering select {
  min-width: 220px;
  min-height: 44px;
  border-color: var(--shima-premium-line);
  border-radius: 12px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 750;
}
.shima-archive-page .shima-category-chips {
  padding: 4px 0 2px;
}
.shima-archive-page .shima-category-chips a {
  min-height: 39px;
  border-color: var(--shima-premium-line);
  background: rgba(255,255,255,.94);
  color: #314139;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15,44,29,.025);
}
.shima-archive-page .shima-category-chips a:hover {
  border-color: #9ccdb0;
  background: #f1faf4;
  color: var(--shima-premium-green);
}
.shima-archive-page .shima-archive-meta {
  color: #75827b;
  font-size: 10.5px;
}
.shima-archive-page .shima-archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.shima-archive-page .shima-product-card {
  overflow: hidden;
  border: 1px solid #dfe9e3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,44,29,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shima-archive-page .shima-product-card:hover {
  transform: translateY(-3px);
  border-color: #c9dfd2;
  box-shadow: var(--shima-premium-shadow-hover);
}
.shima-archive-page .shima-product-image {
  aspect-ratio: 1.16 / 1;
  margin: 7px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfcfb, #f3f7f5);
}
.shima-archive-page .shima-product-image img {
  object-fit: contain;
  transition: transform .2s ease;
}
.shima-archive-page .shima-product-card:hover .shima-product-image img {
  transform: scale(1.025);
}
.shima-archive-page .shima-product-card-body {
  padding: 8px 12px 12px;
}
.shima-archive-page .shima-product-card h2 {
  min-height: 42px;
  margin: 0;
  font-size: 11.8px;
  line-height: 1.8;
  font-weight: 850;
}
.shima-archive-page .shima-product-price {
  margin-top: 5px;
  font-size: 9.8px;
  line-height: 1.75;
}
.shima-archive-page .shima-product-price strong {
  font-size: 11.5px;
}
.shima-archive-page .shima-btn-block {
  min-height: 39px;
  margin-top: 9px;
  font-size: 10.2px;
  font-weight: 850;
}
.shima-archive-page .shima-pagination {
  margin-top: 24px;
}

/* ---------- Single product: premium, calmer typography ---------- */
.shima-product-page .shima-product-hero {
  gap: 18px;
}
.shima-product-page .shima-product-gallery,
.shima-product-page .shima-product-summary {
  border: 1px solid #dce8e1;
  border-radius: 22px;
  box-shadow: var(--shima-premium-shadow);
}
.shima-product-page .shima-product-gallery {
  padding: 14px;
}
.shima-product-page .shima-product-main-image {
  border-radius: 17px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f5f8f6 100%);
}
.shima-product-page .shima-product-thumbs {
  margin-top: 12px;
}
.shima-product-page .shima-product-thumb {
  flex-basis: 106px;
  height: 82px;
  border-radius: 12px;
}
.shima-product-page .shima-product-summary {
  padding: 28px 30px 24px;
}
.shima-product-page .shima-product-badges {
  margin-bottom: 12px;
}
.shima-product-page .shima-badge {
  min-height: 33px;
  padding-inline: 12px;
  font-size: 10px;
}
/* Requested: product title a little smaller on every product. */
.shima-product-page .shima-product-summary h1 {
  max-width: 95%;
  margin-bottom: 12px;
  color: #102018;
  font-size: clamp(27px, 2.05vw, 34px);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: -.018em;
}
.shima-product-page .shima-summary-price {
  font-size: 16px;
}
.shima-product-page .shima-summary-price strong {
  font-size: 25px;
}
.shima-product-page .shima-summary-price small {
  font-size: 12px;
}
.shima-product-page .shima-min-order {
  font-size: 13px;
}
.shima-product-page .shima-short-description {
  min-height: 78px;
  margin: 14px 0 10px;
  color: #56655e;
  font-size: 13px;
  line-height: 2;
}
.shima-product-page .shima-variation-title {
  font-size: 13px;
}
.shima-product-page .shima-variation-option {
  min-height: 43px;
  min-width: 74px;
  font-size: 11.5px;
}
.shima-product-page .shima-qty-label {
  font-size: 13px;
}
.shima-product-page .shima-qty-unit {
  font-size: 12px;
}
.shima-product-page .shima-qty-stepper {
  min-height: 46px;
  border-radius: 11px;
}
.shima-product-page .shima-add-to-cart-wrap .single_add_to_cart_button {
  min-height: 48px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
}
.shima-product-page .shima-product-assurance {
  margin-top: auto;
  border: 1px solid #dce9e1;
  border-radius: 15px;
  background: linear-gradient(180deg, #f7fbf8, #f1f8f4);
}
.shima-product-page .shima-product-assurance > div {
  min-height: 82px;
  padding: 10px;
}
.shima-product-page .shima-product-assurance svg {
  width: 24px;
  height: 24px;
}
.shima-product-page .shima-product-assurance strong {
  font-size: 12.5px;
  font-weight: 900;
}
.shima-product-page .shima-product-assurance small {
  font-size: 10.5px;
  font-weight: 800;
}
.shima-product-page .shima-product-details {
  gap: 16px;
}
.shima-product-page .shima-detail-block {
  border-color: #e0e9e4;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15,44,29,.025);
}
.shima-product-page .shima-detail-block h2 {
  font-size: 17px;
}
.shima-product-page .shima-rich-text,
.shima-product-page .shima-spec-list li {
  font-size: 12px;
}
.shima-product-page .shima-related-card strong {
  font-size: 11.5px;
}

/* ---------- Transaction pages: shared premium shell ---------- */
.shima-transaction-page .shima-transaction-head {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  padding: 22px 26px;
  border: 1px solid var(--shima-premium-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #f2faf5 0%, #fff 72%);
  box-shadow: var(--shima-premium-shadow);
}
.shima-transaction-page .shima-transaction-head::after {
  content: "";
  position: absolute;
  inset: -70px auto auto -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7,135,71,.09), transparent 70%);
  pointer-events: none;
}
.shima-transaction-page .shima-transaction-head h1 {
  color: var(--shima-premium-green-dark);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.5;
}
.shima-transaction-page .shima-transaction-head p {
  font-size: 12.5px;
  line-height: 1.95;
}
.shima-transaction-page .shima-transaction-badges > span {
  min-height: 38px;
  padding-inline: 12px;
  border: 1px solid #dbe9e1;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  font-size: 10.5px;
  font-weight: 800;
}
.shima-transaction-page .shima-checkout-progress {
  min-height: 82px;
  padding: 8px;
  border: 1px solid #dce8e1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,44,29,.025);
}
.shima-transaction-page .shima-checkout-progress > div {
  border-radius: 12px;
}
.shima-transaction-page .shima-checkout-progress strong {
  font-size: 11.5px;
}
.shima-transaction-page .shima-checkout-progress small {
  font-size: 9px;
}
.shima-transaction-page .shima-transaction-content {
  margin-top: 14px;
}

/* Woo Blocks cards */
.shima-transaction-page .shima-transaction-content .wc-block-cart__main,
.shima-transaction-page .shima-transaction-content .wc-block-checkout__main,
.shima-transaction-page .shima-transaction-content .wc-block-cart__sidebar,
.shima-transaction-page .shima-transaction-content .wc-block-checkout__sidebar,
.shima-transaction-page .shima-transaction-content .wc-block-components-order-summary,
.shima-transaction-page .shima-transaction-content .wc-block-components-checkout-step {
  border-color: #dfe9e3 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(15,44,29,.035) !important;
}
.shima-transaction-page .shima-transaction-content .wc-block-components-title,
.shima-transaction-page .shima-transaction-content .wc-block-components-checkout-step__heading {
  color: #142018;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.shima-transaction-page .shima-transaction-content .wc-block-cart-item__product .wc-block-components-product-name,
.shima-transaction-page .shima-transaction-content .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-size: 11.5px;
  line-height: 1.75;
  font-weight: 850;
}
.shima-transaction-page .shima-transaction-content .wc-block-cart-item__image img,
.shima-transaction-page .shima-transaction-content .wc-block-components-order-summary-item__image img {
  border: 1px solid #e3ebe6;
  border-radius: 12px;
  background: #f7faf8;
}
.shima-transaction-page .shima-transaction-content .wc-block-components-button,
.shima-transaction-page .shima-transaction-content .wc-block-cart__submit-button,
.shima-transaction-page .shima-transaction-content .wc-block-components-checkout-place-order-button {
  min-height: 48px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Classic cart */
.shima-cart-page .woocommerce-cart-form,
.shima-cart-page .cart_totals,
.shima-checkout-page form.woocommerce-checkout #customer_details,
.shima-checkout-page form.woocommerce-checkout #order_review {
  border: 1px solid #dfe9e3 !important;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,44,29,.035) !important;
}
.shima-cart-page .woocommerce-cart-form table.shop_table,
.shima-checkout-page .woocommerce-checkout-review-order-table {
  border-color: #e2ebe6 !important;
}
.shima-cart-page .woocommerce-cart-form table.shop_table th,
.shima-checkout-page .woocommerce-checkout-review-order-table th {
  color: #43524a;
  background: #f7faf8;
  font-size: 10.5px;
  font-weight: 850;
}
.shima-cart-page .woocommerce-cart-form table.shop_table td,
.shima-checkout-page .woocommerce-checkout-review-order-table td {
  font-size: 11.5px;
}
.shima-cart-page .woocommerce-cart-form .product-name a {
  font-size: 11.5px;
  line-height: 1.75;
}
.shima-cart-page .cart_totals h2,
.shima-checkout-page .woocommerce-billing-fields h3,
.shima-checkout-page .woocommerce-additional-fields h3,
.shima-checkout-page #order_review_heading {
  color: #15231b;
  font-size: 17px;
  font-weight: 900;
}
.shima-checkout-page .form-row label {
  color: #34423a;
  font-size: 10.8px;
  font-weight: 800;
}
.shima-checkout-page .form-row input.input-text,
.shima-checkout-page .form-row textarea,
.shima-checkout-page .form-row select,
.shima-checkout-page .select2-container--default .select2-selection--single {
  min-height: 46px;
  border-color: #d6e3db !important;
  border-radius: 11px !important;
  background: #fbfdfc !important;
  font-size: 11.5px;
}
.shima-checkout-page .woocommerce-checkout-payment {
  border-radius: 14px !important;
  background: #f7faf8 !important;
}
.shima-checkout-page #place_order,
.shima-cart-page a.checkout-button {
  min-height: 50px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .shima-archive-page .shima-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shima-product-page .shima-product-summary h1 {
    font-size: clamp(25px, 2.8vw, 31px);
  }
}

@media (max-width: 980px) {
  .shima-product-page .shima-product-hero {
    gap: 12px;
  }
  .shima-product-page .shima-product-main-image {
    height: min(76vw, 530px);
  }
  .shima-product-page .shima-product-summary {
    min-height: 0;
  }
  .shima-product-page .shima-short-description {
    min-height: 0;
  }
  .shima-product-page .shima-product-assurance {
    margin-top: 16px;
  }
}

/* ---------- Mobile: deliberate app-like refinement ---------- */
@media (max-width: 760px) {
  :root {
    --shima-premium-radius: 15px;
  }
  body.shima-storefront-ui-active {
    font-size: 13.5px;
    line-height: 1.75;
  }
  .shima-storefront-ui-active .shima-main {
    padding-top: 9px;
    padding-bottom: 24px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f6faf7 100%);
  }
  .shima-storefront-ui-active .shima-container {
    width: calc(100% - 18px);
  }
  .shima-storefront-ui-active .shima-breadcrumbs {
    gap: 5px;
    min-height: 24px;
    font-size: 8.8px;
  }
  .shima-storefront-ui-active .shima-breadcrumbs strong {
    font-size: 9.3px;
  }

  /* Mobile archive */
  .shima-archive-page .shima-archive-head {
    padding: 16px 14px;
    gap: 10px;
    border-radius: 15px;
  }
  .shima-archive-page .shima-archive-head h1 {
    margin-top: 3px;
    font-size: 20px;
  }
  .shima-archive-page .shima-archive-head p {
    font-size: 10.5px;
    line-height: 1.85;
  }
  .shima-archive-page .shima-archive-ordering select {
    min-height: 41px;
    font-size: 10.5px;
  }
  .shima-archive-page .shima-category-chips {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .shima-archive-page .shima-category-chips::-webkit-scrollbar { display:none; }
  .shima-archive-page .shima-category-chips a {
    flex: 0 0 auto;
    min-height: 35px;
    padding-inline: 11px;
    font-size: 9.5px;
  }
  .shima-archive-page .shima-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .shima-archive-page .shima-product-card {
    border-radius: 13px;
  }
  .shima-archive-page .shima-product-image {
    aspect-ratio: 1 / .94;
    margin: 5px;
    border-radius: 10px;
  }
  .shima-archive-page .shima-product-card-body {
    padding: 6px 8px 8px;
  }
  .shima-archive-page .shima-product-card h2 {
    min-height: 34px;
    font-size: 9.8px;
    line-height: 1.75;
  }
  .shima-archive-page .shima-product-price {
    font-size: 8.2px;
  }
  .shima-archive-page .shima-product-price strong {
    font-size: 9.6px;
  }
  .shima-archive-page .shima-btn-block {
    min-height: 35px;
    margin-top: 7px;
    font-size: 8.9px;
  }

  /* Mobile product */
  .shima-product-page .shima-product-hero {
    gap: 8px;
  }
  .shima-product-page .shima-product-gallery,
  .shima-product-page .shima-product-summary {
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(15,44,29,.045);
  }
  .shima-product-page .shima-product-gallery {
    padding: 8px;
  }
  .shima-product-page .shima-product-main-image {
    min-height: 0;
    height: min(91vw, 420px);
    border-radius: 12px;
  }
  .shima-product-page .shima-product-thumbs {
    gap: 7px;
    margin-top: 8px;
  }
  .shima-product-page .shima-product-thumb {
    flex-basis: 74px;
    height: 58px;
    padding: 4px;
    border-radius: 9px;
  }
  .shima-product-page .shima-product-summary {
    padding: 16px 14px 14px;
  }
  .shima-product-page .shima-product-badges {
    gap: 6px;
    margin-bottom: 9px;
  }
  .shima-product-page .shima-badge {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 8.8px;
  }
  .shima-product-page .shima-product-summary h1 {
    max-width: 100%;
    margin-bottom: 9px;
    font-size: 20px;
    line-height: 1.55;
  }
  .shima-product-page .shima-summary-price {
    margin-bottom: 6px;
    font-size: 12px;
  }
  .shima-product-page .shima-summary-price strong {
    font-size: 19px;
  }
  .shima-product-page .shima-summary-price small {
    font-size: 9.5px;
  }
  .shima-product-page .shima-min-order {
    font-size: 10.5px;
  }
  .shima-product-page .shima-short-description {
    margin: 10px 0 8px;
    font-size: 10.8px;
    line-height: 1.9;
    -webkit-line-clamp: 4;
  }
  .shima-product-page .shima-variation-group {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
  }
  .shima-product-page .shima-variation-title {
    padding-top: 0;
    font-size: 11px;
  }
  .shima-product-page .shima-variation-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .shima-product-page .shima-variation-option {
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
    font-size: 9.6px;
  }
  .shima-product-page .shima-add-to-cart-wrap .woocommerce-variation-add-to-cart,
  .shima-product-page .shima-add-to-cart-wrap form.cart:not(.variations_form) {
    grid-template-columns: 44px minmax(120px, 1fr) auto !important;
    gap: 7px !important;
  }
  .shima-product-page .shima-qty-label {
    font-size: 10.5px;
  }
  .shima-product-page .shima-qty-unit {
    font-size: 9.5px;
  }
  .shima-product-page .shima-qty-stepper {
    width: 100%;
    min-height: 43px;
    grid-template-columns: 40px 1fr 40px;
  }
  .shima-product-page .shima-qty-stepper button {
    width: 40px;
    height: 43px;
    font-size: 18px;
  }
  .shima-product-page .shima-qty-stepper input.qty {
    min-height: 43px;
  }
  .shima-product-page .shima-add-to-cart-wrap .single_add_to_cart_button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 45px !important;
    font-size: 11.5px !important;
  }
  .shima-product-page .shima-product-assurance {
    margin-top: 12px;
    border-radius: 12px;
  }
  .shima-product-page .shima-product-assurance > div {
    min-height: 60px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }
  .shima-product-page .shima-product-assurance svg {
    width: 19px;
    height: 19px;
  }
  .shima-product-page .shima-product-assurance strong {
    font-size: 9.2px;
  }
  .shima-product-page .shima-product-assurance small {
    display: none;
  }
  .shima-product-page .shima-product-details {
    margin-top: 10px;
    gap: 9px;
  }
  .shima-product-page .shima-detail-block {
    padding: 14px;
    border-radius: 13px;
  }
  .shima-product-page .shima-detail-block h2 {
    margin-bottom: 9px;
    font-size: 14px;
  }
  .shima-product-page .shima-rich-text,
  .shima-product-page .shima-spec-list li {
    font-size: 10.5px;
  }
  .shima-product-page .shima-related {
    margin-top: 14px;
  }

  /* Mobile transaction headers */
  .shima-transaction-page .shima-transaction-head {
    padding: 15px 13px;
    gap: 10px;
    border-radius: 15px;
  }
  .shima-transaction-page .shima-transaction-head h1 {
    margin-top: 3px;
    font-size: 20px;
  }
  .shima-transaction-page .shima-transaction-head p {
    font-size: 10.5px;
    line-height: 1.85;
  }
  .shima-transaction-page .shima-transaction-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
  }
  .shima-transaction-page .shima-transaction-badges > span {
    min-height: 34px;
    justify-content: center;
    padding-inline: 7px;
    white-space: normal;
    text-align: center;
    font-size: 8.8px;
  }
  .shima-transaction-page .shima-checkout-progress {
    min-height: 0;
    padding: 6px;
    gap: 4px;
    border-radius: 13px;
  }
  .shima-transaction-page .shima-checkout-progress > div {
    min-height: 58px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 1px;
    padding: 5px 2px;
    text-align: center;
  }
  .shima-transaction-page .shima-checkout-progress > div:not(:last-child)::after {
    display: none;
  }
  .shima-transaction-page .shima-checkout-progress > div > span {
    grid-row: auto;
    width: 25px;
    height: 25px;
    font-size: 9px;
  }
  .shima-transaction-page .shima-checkout-progress strong {
    font-size: 8.8px;
  }
  .shima-transaction-page .shima-checkout-progress small {
    font-size: 7.2px;
  }

  /* Woo Blocks on mobile */
  .shima-transaction-page .shima-transaction-content .wc-block-components-sidebar-layout {
    display: block !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-components-main,
  .shima-transaction-page .shima-transaction-content .wc-block-components-sidebar {
    width: 100% !important;
    padding-inline: 0 !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-components-sidebar {
    position: static !important;
    margin-top: 9px !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-cart__main,
  .shima-transaction-page .shima-transaction-content .wc-block-checkout__main,
  .shima-transaction-page .shima-transaction-content .wc-block-cart__sidebar,
  .shima-transaction-page .shima-transaction-content .wc-block-checkout__sidebar {
    padding: 11px !important;
    border-radius: 13px !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-cart-items__row {
    padding: 11px 0 !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-cart-item__image {
    width: 62px !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-cart-item__product .wc-block-components-product-name,
  .shima-transaction-page .shima-transaction-content .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-size: 10px;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-components-title,
  .shima-transaction-page .shima-transaction-content .wc-block-components-checkout-step__heading {
    font-size: 13px !important;
  }
  .shima-transaction-page .shima-transaction-content .wc-block-components-button,
  .shima-transaction-page .shima-transaction-content .wc-block-cart__submit-button,
  .shima-transaction-page .shima-transaction-content .wc-block-components-checkout-place-order-button {
    min-height: 45px !important;
    font-size: 11px !important;
  }

  /* Classic cart becomes card-based on mobile instead of a 640px horizontal table. */
  .shima-cart-page .woocommerce-cart-form {
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table {
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table thead {
    display: none;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table tbody,
  .shima-cart-page .woocommerce-cart-form table.shop_table tr.cart_item {
    display: block;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table tr.cart_item {
    position: relative;
    margin-bottom: 9px;
    padding: 12px 11px 11px;
    border: 1px solid #dfe9e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15,44,29,.03);
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table tr.cart_item td {
    display: block;
    width: 100%;
    padding: 4px 0 !important;
    border: 0 !important;
    text-align: right !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-thumbnail {
    width: 72px;
    float: right;
    margin-left: 10px;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-thumbnail img {
    width: 72px;
    border-radius: 10px;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-name {
    min-height: 72px;
    padding-top: 7px !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-name a {
    font-size: 10.8px;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-price,
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-quantity,
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal {
    clear: both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    border-top: 1px solid #edf2ef !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-price::before { content:"قیمت"; color:#6b7770; font-size:9.5px; font-weight:800; }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-quantity::before { content:"تعداد کارتن"; color:#6b7770; font-size:9.5px; font-weight:800; }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal::before { content:"جمع"; color:#6b7770; font-size:9.5px; font-weight:800; }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    z-index: 2;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table td.product-remove a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff1f2;
    color: #c94757 !important;
  }
  .shima-cart-page .woocommerce-cart-form table.shop_table tr:not(.cart_item) td.actions {
    display: block;
    padding: 10px !important;
    border: 1px solid #dfe9e3 !important;
    border-radius: 13px;
    background: #fff;
  }
  .shima-cart-page .woocommerce-cart-form .coupon {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .shima-cart-page .woocommerce-cart-form .coupon .input-text,
  .shima-cart-page .woocommerce-cart-form .coupon .button {
    min-height: 42px;
  }
  .shima-cart-page .cart_totals {
    padding: 13px !important;
    border-radius: 14px !important;
  }

  /* Classic checkout mobile */
  .shima-checkout-page form.woocommerce-checkout {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .shima-checkout-page form.woocommerce-checkout #customer_details,
  .shima-checkout-page form.woocommerce-checkout #order_review_heading,
  .shima-checkout-page form.woocommerce-checkout #order_review {
    grid-column: 1 !important;
  }
  .shima-checkout-page form.woocommerce-checkout #customer_details,
  .shima-checkout-page form.woocommerce-checkout #order_review {
    padding: 13px !important;
    border-radius: 14px !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review {
    position: static !important;
  }
  .shima-checkout-page .woocommerce-billing-fields h3,
  .shima-checkout-page .woocommerce-additional-fields h3,
  .shima-checkout-page #order_review_heading {
    font-size: 14px;
  }
  .shima-checkout-page .form-row label {
    font-size: 9.8px;
  }
  .shima-checkout-page .form-row input.input-text,
  .shima-checkout-page .form-row textarea,
  .shima-checkout-page .form-row select,
  .shima-checkout-page .select2-container--default .select2-selection--single {
    min-height: 43px;
    font-size: 10.5px;
  }
}

@media (max-width: 430px) {
  .shima-archive-page .shima-product-card h2 {
    font-size: 9.3px;
  }
  .shima-product-page .shima-product-summary h1 {
    font-size: 18.5px;
  }
  .shima-product-page .shima-summary-price strong {
    font-size: 18px;
  }
  .shima-product-page .shima-variation-options {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .shima-transaction-page .shima-checkout-progress strong {
    font-size: 8.3px;
  }
}


/* ==========================================================
   2.3.1 — premium harmonization: category cards, archive cards, calmer title
   ========================================================== */

/* Homepage category cards: make media/icon perfectly aligned and visually consistent */
.shima-home-v2 .shima-home2-category-track {
  align-items: stretch;
}
.shima-home-v2 .shima-home2-category {
  min-height: 164px;
  grid-template-columns: minmax(0,1fr) 124px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #dde8e1;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15,44,29,.04);
}
.shima-home-v2 .shima-home2-category-copy {
  align-self: stretch;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.shima-home-v2 .shima-home2-category-copy strong {
  font-size: 17px;
  line-height: 1.55;
}
.shima-home-v2 .shima-home2-category-copy small {
  min-height: 38px;
  font-size: 12px;
  line-height: 1.85;
}
.shima-home-v2 .shima-home2-category-copy b {
  margin-top: auto;
  font-size: 11.5px;
}
.shima-home-v2 .shima-home2-category-copy b svg {
  width: 14px !important;
  height: 14px !important;
}
.shima-home-v2 .shima-home2-category-image {
  position: relative !important;
  inset: auto !important;
  width: 108px !important;
  height: 108px !important;
  justify-self: start;
  align-self: center;
  display: grid;
  place-items: center;
}
.shima-home-v2 .shima-home2-category-image::before {
  width: 108px !important;
  height: 108px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.52)) !important;
  box-shadow: inset 0 0 0 1px rgba(8,123,67,.06);
}
.shima-home-v2 .shima-home2-category-image.has-image img {
  width: auto !important;
  max-width: 90px !important;
  height: 90px !important;
  max-height: 90px !important;
  object-fit: contain !important;
}
.shima-home-v2 .shima-home2-category-fallback {
  width: 78px !important;
  height: 78px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 10px 24px rgba(8,123,67,.09);
}
.shima-home-v2 .shima-home2-category-fallback svg {
  width: 30px !important;
  height: 30px !important;
}

/* Homepage product cards: more balanced premium grid */
.shima-home-v2 .shima-home2-product-track {
  align-items: stretch;
}
.shima-home-v2 .shima-home2-product-card {
  height: 100%;
  border-radius: 16px;
  border-color: #dfe8e2;
  box-shadow: 0 9px 24px rgba(15,44,29,.035);
}
.shima-home-v2 .shima-home2-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 12px;
}
.shima-home-v2 .shima-home2-product-body h3 {
  min-height: 42px;
  font-size: 11px;
  line-height: 1.8;
}
.shima-home-v2 .shima-home2-price {
  margin-top: auto;
}
.shima-home-v2 .shima-home2-pack {
  margin: 0;
}
.shima-home-v2 .shima-home2-product-card .shima-btn {
  margin-top: 2px;
}

/* Archive / shop: unify card rhythm and premium feel */
.shima-archive-page .shima-archive-grid {
  align-items: stretch;
}
.shima-archive-page .shima-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,44,29,.04);
}
.shima-archive-page .shima-product-image {
  aspect-ratio: 1.12 / 1;
  margin: 8px;
  border-radius: 14px;
}
.shima-archive-page .shima-product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 10px 13px 13px;
}
.shima-archive-page .shima-product-card h2 {
  min-height: 40px;
  font-size: 11.2px;
  line-height: 1.82;
}
.shima-archive-page .shima-product-price {
  margin-top: auto;
  font-size: 9.6px;
}
.shima-archive-page .shima-product-price strong {
  font-size: 11.2px;
}
.shima-archive-page .shima-btn-block {
  min-height: 40px;
  margin-top: 2px;
  border-radius: 10px;
  font-size: 10px;
}

/* Product page: reduce title size by ~4px and keep premium calm scale */
.shima-product-page .shima-product-summary h1 {
  font-size: clamp(23px, 1.85vw, 30px);
  line-height: 1.62;
}
.shima-product-page .shima-product-summary {
  box-shadow: 0 10px 26px rgba(15,44,29,.035);
}
.shima-product-page .shima-product-gallery {
  box-shadow: 0 10px 26px rgba(15,44,29,.035);
}

@media (max-width: 1180px) {
  .shima-home-v2 .shima-home2-category {
    grid-template-columns: minmax(0,1fr) 112px;
    min-height: 156px;
  }
  .shima-home-v2 .shima-home2-category-image,
  .shima-home-v2 .shima-home2-category-image::before {
    width: 96px !important;
    height: 96px !important;
  }
  .shima-home-v2 .shima-home2-category-image.has-image img {
    max-width: 82px !important;
    height: 82px !important;
  }
}

@media (max-width: 760px) {
  .shima-home-v2 .shima-home2-category {
    flex: 0 0 228px;
    min-height: 124px;
    grid-template-columns: minmax(0,1fr) 84px;
    padding: 12px 13px;
    border-radius: 15px;
  }
  .shima-home-v2 .shima-home2-category-copy strong {
    font-size: 14px;
  }
  .shima-home-v2 .shima-home2-category-copy small {
    min-height: auto;
    font-size: 10px;
    line-height: 1.75;
  }
  .shima-home-v2 .shima-home2-category-copy b {
    font-size: 9.8px;
  }
  .shima-home-v2 .shima-home2-category-image,
  .shima-home-v2 .shima-home2-category-image::before {
    width: 72px !important;
    height: 72px !important;
    border-radius: 20px !important;
  }
  .shima-home-v2 .shima-home2-category-image.has-image img {
    max-width: 62px !important;
    height: 62px !important;
  }
  .shima-home-v2 .shima-home2-category-fallback {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
  }
  .shima-home-v2 .shima-home2-category-fallback svg {
    width: 24px !important;
    height: 24px !important;
  }
  .shima-archive-page .shima-product-card h2 {
    font-size: 10.6px;
    min-height: 36px;
  }
  .shima-archive-page .shima-product-price strong {
    font-size: 10.6px;
  }
  .shima-product-page .shima-product-summary h1 {
    font-size: 24px;
    line-height: 1.7;
  }
}
