.commerce-category {
  display: block;
  color: #6b756a;
  margin: -2px 0 8px;
  font-size: 11px;
}

.commerce-price {
  min-height: 36px;
}

.commerce-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #d8ded4;
  border-radius: 15px;
  text-align: center;
  color: #6c756b;
  background: #fafbf8;
}

.commerce-header {
  background: #fff;
  border-bottom: 1px solid #e5e9e2;
}

.commerce-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.commerce-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.commerce-cart-link {
  position: relative;
  background: #317c25;
  color: #fff;
  border-radius: 9px;
  padding: 11px 15px;
}

.page-shell {
  min-height: 60vh;
  background: #fafbf8;
  padding: 42px 0 70px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title h1 {
  margin: 0 0 7px;
  color: #193c18;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -2px;
}

.page-title p {
  color: #6a7469;
  margin: 0;
}

.store-toolbar {
  padding: 15px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid #e2e6df;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.store-toolbar input,
.store-toolbar select,
.product-form input,
.product-form textarea,
.product-form select,
.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid #d9ded5;
  border-radius: 9px;
  min-height: 45px;
  padding: 10px 13px;
  outline: none;
  background: #fff;
}

.store-toolbar input:focus,
.store-toolbar select:focus,
.product-form input:focus,
.product-form textarea:focus,
.order-form input:focus,
.order-form textarea:focus {
  border-color: #429337;
  box-shadow: 0 0 0 3px rgba(66,147,55,.08);
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.store-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e6de;
  border-radius: 16px;
  transition: .2s;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 35px rgba(20,58,22,.08);
}

.store-card-image {
  height: 260px;
  padding: 12px;
  background: #f8faf5;
  display: grid;
  place-items: center;
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-card-body {
  padding: 17px;
}

.store-card-body h3 {
  font-size: 16px;
  line-height: 1.3;
  min-height: 42px;
  margin: 5px 0 9px;
}

.store-card-category {
  color: #487a3d;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .7px;
}

.store-card-price {
  min-height: 35px;
  margin: 10px 0;
}

.store-card-price strong {
  font-size: 19px;
  color: #1e3f1c;
}

.store-card button,
.primary-button,
.whatsapp-order {
  width: 100%;
  border: 0;
  min-height: 43px;
  border-radius: 8px;
  cursor: pointer;
  background: #317c25;
  color: #fff;
  font-weight: 800;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}

.product-gallery {
  background: #fff;
  min-height: 520px;
  border: 1px solid #e2e7df;
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 30px;
}

.product-gallery img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product-detail {
  padding-top: 15px;
}

.product-detail .category {
  color: #397c30;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-detail h1 {
  margin: 9px 0 18px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: #193c18;
}

.product-detail .description {
  color: #586358;
  line-height: 1.75;
  margin: 24px 0;
}

.product-detail-price {
  margin: 20px 0;
}

.product-detail-price strong {
  font-size: 30px;
  color: #173b17;
}

.product-stock {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 10px;
  background: #eaf4e5;
  color: #36722c;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.quantity-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.quantity-row input {
  width: 85px;
  border: 1px solid #d9dfd5;
  border-radius: 8px;
  text-align: center;
}

.quantity-row button {
  flex: 1;
}

.secondary-button {
  width: 100%;
  min-height: 45px;
  border: 1px solid #28a961;
  border-radius: 8px;
  color: #187743;
  background: #effbf4;
  font-weight: 800;
  cursor: pointer;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr .75fr;
  gap: 25px;
  align-items: start;
}

.cart-items,
.cart-summary {
  background: #fff;
  border: 1px solid #e1e6de;
  border-radius: 16px;
}

.cart-item {
  padding: 17px;
  border-bottom: 1px solid #e9ece7;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 17px;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #f7f9f4;
  border-radius: 10px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item small {
  color: #727a70;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.cart-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #d9ded5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.cart-controls .remove {
  width: auto;
  color: #b72d25;
  margin-left: 9px;
  border: 0;
}

.cart-item-total {
  font-weight: 850;
  white-space: nowrap;
}

.cart-summary {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  margin-top: 0;
}

.cart-summary-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e9ece7;
}

.cart-summary-row.total {
  font-size: 20px;
  border-bottom: 0;
}

.order-form {
  margin-top: 18px;
}

.order-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 12px 0 5px;
}

.order-form textarea {
  min-height: 80px;
  resize: vertical;
}

.whatsapp-order {
  margin-top: 16px;
  background: #21a95c;
}

.whatsapp-order:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.whatsapp-warning {
  margin-top: 11px;
  font-size: 12px;
  color: #a26418;
  line-height: 1.5;
}

.empty-cart {
  padding: 50px 20px;
  text-align: center;
  color: #697368;
}

@media (max-width: 950px) {
  .store-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 650px) {
  .commerce-header-inner {
    min-height: 72px;
  }

  .commerce-links > a:not(.commerce-cart-link) {
    display: none;
  }

  .store-toolbar {
    grid-template-columns: 1fr;
  }

  .store-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .store-card-image {
    height: 180px;
  }

  .store-card-body {
    padding: 12px;
  }

  .store-card-body h3 {
    font-size: 13px;
    min-height: 52px;
  }

  .product-gallery {
    min-height: 320px;
  }

  .product-layout {
    gap: 24px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
  }

  .cart-item-total {
    grid-column: 2;
  }
}
