/*
Theme Name: Piro66 Astra
Description: Compact Piro66 shop layout based on Astra Free.
Author: PIRO66
Template: astra
Version: 1.0.15
Text Domain: piro66-astra
*/
:root {
  --piro66-accent: #c54118;
  --piro66-ink: #242424;
  --piro66-muted: #626262;
  --piro66-line: #e6e6e6;
}
body {
  background: #fff;
}
::selection {
  background: #f6c3a7;
  color: #242424;
}
a {
  text-underline-offset: 3px;
}
input {
  caret-color: var(--piro66-accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #155db6;
  outline-offset: 3px;
}
.piro66-header-contact {
  text-align: right;
  line-height: 1.35;
}
.piro66-header-contact a {
  color: var(--piro66-ink);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}
.piro66-header-contact small {
  color: var(--piro66-muted);
  display: block;
  font-size: 12px;
}
.site-header .woocommerce-product-search {
  display: flex;
  width: min(440px, 100%);
  margin: 0;
}
.site-header .woocommerce-product-search .search-field {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: 3px 0 0 3px;
  padding: 0 12px;
  background: #fff;
}
.site-header .woocommerce-product-search button {
  flex-shrink: 0;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  min-height: 44px;
  border-radius: 0 3px 3px 0;
  padding: 0 15px;
  margin: 0;
  font-size: 13px;
}
.ast-below-header-bar {
  border-bottom: 3px solid var(--piro66-accent);
}
.main-header-menu > .menu-item > .menu-link {
  font-size: 14px;
  font-weight: 700;
}
.piro66-home-banner {
  margin-bottom: 26px;
}
.piro66-home-banner img {
  width: 100%;
  height: auto;
}
.piro66-store-layout #primary {
  min-width: 0;
}
.piro66-store-layout #secondary .widget {
  margin-bottom: 25px;
}
.piro66-store-layout #secondary .widget-title {
  margin: 0;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--piro66-accent);
}
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--piro66-line);
  border-top: 0;
}
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--piro66-line);
}
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) li:last-child {
  border-bottom: 0;
}
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) a {
  display: block;
  padding: 10px 13px;
  color: var(--piro66-ink);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) a:hover,
.piro66-store-layout #secondary :is(ul.product-categories, ul.menu) .current-cat > a {
  color: var(--piro66-accent);
  background: #fff6f1;
}
.piro66-store-layout #primary ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0;
}
.piro66-store-layout ul.products::before,
.piro66-store-layout ul.products::after {
  display: none;
}
.piro66-store-layout ul.products li.product {
  width: auto !important;
  float: none;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid var(--piro66-line);
  min-width: 0;
}
.piro66-store-layout ul.products li.product .astra-shop-summary-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.piro66-store-layout ul.products li.product .woocommerce-loop-product__title {
  min-height: 4.35em;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.piro66-store-layout ul.products li.product .woocommerce-loop-product__link img,
.piro66-store-layout ul.products li.product .astra-shop-thumbnail-wrap img {
  height: 174px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 12px;
}
.piro66-store-layout ul.products li.product .price {
  margin-top: auto;
  color: var(--piro66-ink);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.piro66-store-layout ul.products li.product .price del {
  font-size: 12px;
  color: var(--piro66-muted);
  opacity: 1;
}
.piro66-store-layout ul.products li.product .price ins {
  text-decoration: none;
}
.piro66-store-layout ul.products li.product .button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
}
.piro66-category-toggle {
  display: none;
}
#secondary[hidden] {
  display: none !important;
}
/* Keep Astra's allocated sidebar and primary divider; fill its 60px inner gap. */
@media (min-width: 922px) {
  .piro66-store-layout.ast-left-sidebar #secondary {
    padding-right: 3px;
  }
}
/* Native gallery images retain their real resolution, including recovered 200px photos. */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.piro66-native-product-image {
  display: block;
  width: 100%;
  max-width: min(100%, var(--piro66-image-native-width, 100%));
  height: auto;
  margin-inline: auto;
}
.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary form.cart .quantity input,
.site-header .menu-toggle {
  min-height: 44px;
}
.site-header .menu-toggle {
  min-width: 44px;
}
@media (min-width: 922px) and (max-width: 1199px) {
  .piro66-store-layout #primary ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .piro66-header-contact a {
    font-size: 18px;
  }
}
@media (max-width: 921px) {
  .piro66-store-layout.ast-left-sidebar #content > .ast-container {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .piro66-store-layout #secondary,
  .piro66-store-layout #primary {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .piro66-store-layout #secondary {
    margin-top: 0;
    margin-bottom: 0;
  }
  .piro66-store-layout #primary {
    margin-top: 8px;
  }
  .piro66-category-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin: 18px 0 12px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: var(--piro66-ink);
    font-size: 14px;
    font-weight: 700;
  }
  .piro66-category-toggle[hidden] {
    display: none;
  }
  .piro66-js .piro66-store-layout .piro66-category-toggle {
    display: flex;
  }
  .piro66-js .piro66-store-layout .piro66-category-panel[data-expanded='false'] {
    display: none;
  }
  .piro66-store-layout .piro66-category-panel {
    margin-bottom: 20px;
  }
  .piro66-category-toggle svg {
    height: 18px;
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }
  .piro66-category-toggle[aria-expanded='true'] svg {
    transform: rotate(180deg);
  }
  .piro66-store-layout #secondary .widget-title {
    display: none;
  }
  .piro66-store-layout #secondary :is(ul.product-categories, ul.menu) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--piro66-line);
  }
  .piro66-store-layout #primary ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .piro66-header-contact {
    text-align: center;
  }
  .piro66-header-contact a {
    font-size: 16px;
  }
  .site-header .ast-header-html-2,
  .site-header .ast-header-html-2 .ast-builder-html-element,
  .site-header .woocommerce-product-search {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .piro66-store-layout #primary ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 11px;
  }
  .piro66-store-layout ul.products li.product {
    padding: 9px;
  }
  .piro66-store-layout ul.products li.product .woocommerce-loop-product__title {
    min-height: 5.8em;
    font-size: 14px;
  }
  .piro66-store-layout ul.products li.product .woocommerce-loop-product__link img,
  .piro66-store-layout ul.products li.product .astra-shop-thumbnail-wrap img {
    height: 140px;
    margin-bottom: 10px;
  }
  .piro66-store-layout ul.products li.product .price {
    font-size: 16px;
  }
  .piro66-store-layout ul.products li.product .price del {
    font-size: 11px;
  }
  .piro66-store-layout ul.products li.product .button {
    font-size: 14px;
  }
  .piro66-store-layout #secondary :is(ul.product-categories, ul.menu) {
    grid-template-columns: 1fr;
  }
  .piro66-header-contact small {
    font-size: 12px;
  }
}

/* Editable merchant footer, shared with the existing orange/white storefront. */
.piro-footer {
  margin-top: 32px;
  border-top: 3px solid var(--piro66-accent);
  background: #fff6f1;
  color: var(--piro66-ink);
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
.piro-footer-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.82fr 0.9fr 1.35fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 36px;
}
.piro-footer-grid > div {
  min-width: 0;
}
.piro-footer .piro-footer-logo {
  margin-bottom: 18px;
}
.piro-footer .custom-logo-link {
  display: inline-block;
  max-width: 100%;
}
.piro-footer .custom-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}
.piro-footer .piro-footer-heading {
  margin: 0 0 16px;
  color: var(--piro66-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.piro-footer p,
.piro-footer address {
  margin: 0 0 12px;
  font-style: normal;
}
.piro-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.piro-footer li {
  margin: 0 0 7px;
}
.piro-footer a {
  color: var(--piro66-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.piro-footer a:hover {
  color: var(--piro66-accent);
  text-decoration: underline;
}
.piro-footer .piro-footer-phone {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.piro-footer small {
  display: block;
  color: var(--piro66-muted);
  font-size: 12px;
  line-height: 1.6;
}
.piro-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 19px 0 22px;
  border-top: 1px solid #e7d9cf;
  color: var(--piro66-muted);
  font-size: 12px;
}
@media (max-width: 1199px) {
  .piro-footer-grid {
    gap: 28px;
  }
  .piro-footer-bottom {
    margin-right: 24px;
    margin-left: 24px;
  }
}
@media (max-width: 921px) {
  .piro-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
  }
}
@media (max-width: 600px) {
  .piro-footer {
    margin-top: 24px;
  }
  .piro-footer-grid {
    gap: 28px 24px;
    padding: 30px 20px;
  }
  .piro-footer-brand,
  .piro-footer-contact {
    grid-column: 1 / -1;
  }
  .piro-footer .piro-footer-logo {
    margin-bottom: 12px;
  }
  .piro-footer .custom-logo {
    width: 210px;
  }
  .piro-footer .piro-footer-heading {
    margin-bottom: 12px;
  }
  .piro-footer li {
    margin-bottom: 8px;
  }
  .piro-footer-bottom {
    padding-right: 48px;
    margin-right: 20px;
    margin-left: 20px;
  }
}
