/**
 * WooCommerce Custom Layouts Stylesheet
 *
 * @package SecuDepo
 */

.as-wc-main {
  padding-block: var(--space-8);
  background: var(--as-page-bg);
  min-height: 60vh;
}

/* ==========================================
   1. PRODUCT ARCHIVE & SHOPPING PAGES
   Mirrors the storefront category page.
   ========================================== */

/* Full-width breadcrumb strip above the archive */
.as-breadcrumb-bar {
  background: var(--as-soft);
  border-bottom: 1px solid var(--as-border-light);
}

.as-breadcrumb-bar .as-breadcrumb {
  height: 40px;
  margin-bottom: 0;
}

.as-breadcrumb-bar .as-breadcrumb ol {
  height: 100%;
}

.as-archive {
  padding-block: 32px;
}

.as-archive__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--as-ink);
}

.as-subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.as-subcategory-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-pill);
  background: var(--as-white);
  font-size: 14px;
  font-weight: 500;
  color: var(--as-ink);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.as-subcategory-chip:hover {
  border-color: var(--as-primary);
  color: var(--as-primary);
}

.as-shop-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.as-shop-sidebar {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  padding: 16px;
  height: fit-content;
}

.as-shop-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.as-shop-sidebar__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--as-ink);
}

/* Only shown when the sidebar becomes an off-canvas drawer */
.as-filter-sidebar-close {
  display: none;
  border: 0;
  padding: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--as-ink);
  cursor: pointer;
}

.as-shop-catlist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.as-shop-catlist__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--as-radius-control);
  font-size: 14px;
  color: var(--as-gray-600);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.as-shop-catlist__link:hover {
  background: var(--as-soft);
  color: var(--as-gray-600);
}

.as-shop-catlist__link.is-active {
  background: var(--as-primary-light);
  color: var(--as-primary-dark);
  font-weight: 500;
}

.as-shop-catlist__count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--as-gray-400);
}

.as-shop-catlist__link.is-active .as-shop-catlist__count {
  color: var(--as-primary-dark);
}

.as-shop-sidebar__widgets {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--as-border-light);
}

.as-filter-group {
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--as-border-light);
  padding-bottom: var(--space-5);
}

.as-filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.as-filter-group__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--as-gray-900);
}

.as-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--as-gray-700);
  cursor: pointer;
}

.as-filter-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--as-border-medium);
  cursor: pointer;
}

/* Toolbar: "N products" on the left, "Sort by [select]" on the right */
.as-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.as-shop-toolbar__count {
  margin: 0;
  font-size: 14px;
  color: var(--as-gray-400);
}

.as-shop-toolbar__filters {
  display: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-control);
  background: var(--as-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--as-ink);
  cursor: pointer;
}

.as-shop-toolbar__filters:hover {
  border-color: var(--as-primary);
  color: var(--as-primary);
}

.as-shop-toolbar__sorting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  font-size: 14px;
}

.as-shop-toolbar__sorting-label {
  color: var(--as-gray-400);
  white-space: nowrap;
}

.as-shop-toolbar__sorting select {
  padding: 8px 12px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-control);
  background-color: var(--as-white);
  font-family: inherit;
  font-size: 14px;
  color: var(--as-ink);
}

.as-shop-toolbar__sorting select:focus {
  border-color: var(--as-primary);
  outline: none;
}

.as-product-grid-container {
  position: relative;
  min-width: 0;
}

.as-product-grid-container ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-product-grid-container ul.products::before,
.as-product-grid-container ul.products::after {
  display: none;
}

.as-product-grid-container ul.products > li.product {
  float: none;
  width: auto;
  margin: 0;
}

.as-product-grid-container.is-loading {
  min-height: 420px;
  opacity: .55;
  pointer-events: none;
}

.as-product-grid-container.is-loading::after {
  content: "";
  position: absolute;
  top: 96px;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--as-gray-200);
  border-top-color: var(--as-blue-600);
  border-radius: 50%;
  animation: as-spin 700ms linear infinite;
}

.as-product-skeleton-grid {
  position: absolute;
  z-index: 4;
  inset: 70px 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  opacity: 1;
}

.as-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

/* Prev / "Page X of Y" / Next */
.as-shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.as-shop-pagination__status {
  margin: 0;
  font-size: 14px;
  color: var(--as-gray-400);
}

.as-page-link {
  padding: 8px 16px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-control);
  font-size: 14px;
  font-weight: 500;
  color: var(--as-ink);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.as-page-link:hover {
  border-color: var(--as-primary);
  color: var(--as-primary);
}

.as-page-link.is-disabled {
  color: var(--as-gray-400);
  opacity: 0.5;
  pointer-events: none;
}

/* Empty state */
.as-shop-empty {
  padding: 40px 20px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  background: var(--as-white);
  text-align: center;
}

.as-shop-empty__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--as-ink);
}

.as-shop-empty__text {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--as-gray-400);
}

.as-shop-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Term description, rendered below the grid */
.as-archive__description {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--as-border-light);
  font-size: 14px;
  line-height: 1.75;
  color: var(--as-gray-600);
}

.as-archive__description h2 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--as-ink);
}

.as-archive__description h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--as-ink);
}

.as-archive__description p {
  margin: 0 0 12px;
}

.as-archive__description ul,
.as-archive__description ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.as-archive__description li {
  margin-bottom: 4px;
}

.as-archive__description strong {
  font-weight: 600;
  color: var(--as-ink);
}

.as-archive__description a {
  color: var(--as-primary);
  text-decoration: underline;
}

/* ==========================================
   2. SINGLE PRODUCT PAGE PANELS
   ========================================== */
.as-product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-block: var(--space-8);
}

/* Gallery Slider */
.as-product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.as-product-gallery__main {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-lg);
  display: grid;
  place-items: center;
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
}

.as-product-gallery__main img {
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.as-product-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.as-product-gallery__thumb {
  width: 70px;
  height: 70px;
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 150ms ease;
}

.as-product-gallery__thumb.is-active,
.as-product-gallery__thumb:hover {
  border-color: var(--as-blue-600);
}

.as-product-gallery__thumb img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

/* Purchase details panel */
.as-product-panel {
  display: flex;
  flex-direction: column;
}

.as-product-panel__sku {
  font-size: var(--fs-xs);
  color: var(--as-gray-500);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.as-product-panel__brand {
  font-size: 14px;
  color: var(--as-blue-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.as-product-panel__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--as-navy-950);
  margin-bottom: 12px;
}

.as-product-panel__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--as-blue-600);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.as-product-panel__price del {
  font-size: var(--fs-lg);
  color: var(--as-gray-400);
  font-weight: 500;
}

.as-product-panel__desc {
  font-size: var(--fs-base);
  color: var(--as-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--as-border-light);
  padding-bottom: var(--space-6);
}

/* Custom Highlights */
.as-product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.as-product-highlight-chip {
  background: var(--as-gray-50);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-xs);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--as-gray-700);
}

/* Trust features list */
.as-product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--as-gray-50);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-md);
}

.as-product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--as-gray-700);
}

.as-product-feature svg {
  color: var(--as-blue-600);
}

/* Purchase Actions Form */
.as-product-qty-add {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-4);
}

.as-native-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.as-native-add-to-cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin: 0;
}

.as-native-add-to-cart .variations_form,
.as-native-add-to-cart .variations_form.cart {
  display: block;
  width: 100%;
}

.as-native-add-to-cart .variations {
  width: 100%;
  margin-bottom: var(--space-4);
}

.as-native-add-to-cart .variations th,
.as-native-add-to-cart .variations td {
  display: block;
  padding: 0 0 var(--space-2);
  text-align: left;
}

.as-native-add-to-cart .single_variation_wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.as-native-add-to-cart .quantity {
  display: inline-flex;
}

.as-native-add-to-cart .qty {
  width: 76px;
  min-height: 46px;
  border: 1px solid var(--as-border-medium);
  border-radius: var(--as-radius-sm);
  text-align: center;
  font-weight: 700;
}

.as-native-add-to-cart .single_add_to_cart_button {
  min-height: 46px;
  border-radius: var(--as-radius-sm);
  background: var(--as-blue-600);
  border: 1px solid var(--as-blue-600);
  color: var(--as-white);
  font-weight: 700;
  padding-inline: var(--space-6);
  cursor: pointer;
}

.as-install-addon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px var(--space-4);
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--as-radius-md);
}

.as-install-addon__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--as-navy-950);
  cursor: pointer;
}

.as-install-addon__label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.as-install-addon__label small {
  display: block;
  margin-top: 2px;
  color: var(--as-gray-600);
  font-size: 11px;
  line-height: 1.4;
}

.as-install-addon__price {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  color: var(--as-navy-950);
}

/* Quantity stepper wrapper */
.as-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--as-border-medium);
  border-radius: var(--as-radius-sm);
  height: 46px;
  background: var(--as-white);
  overflow: hidden;
}

.as-qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--as-gray-700);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
  transition: background 150ms ease;
}

.as-qty-btn:hover {
  background: var(--as-gray-100);
}

.as-qty-input {
  width: 44px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--as-border-medium);
  border-right: 1px solid var(--as-border-medium);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--as-navy-950);
  outline: none;
  padding: 0;
}

/* Tab as Accordion panels */
.as-tabs-section {
  margin-block: var(--space-12);
}

.as-tab-accordion {
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--as-border-light);
}

.as-tab-item {
  background: var(--as-white);
}

.as-tab-trigger {
  width: 100%;
  padding: 18px 24px;
  background: var(--as-white);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--as-gray-900);
  cursor: pointer;
  text-align: left;
}

.as-tab-trigger::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--as-gray-500);
}

.as-tab-item.is-active .as-tab-trigger::after {
  content: "−";
}

.as-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.as-tab-item.is-active .as-tab-content {
  max-height: 2000px;
}

.as-tab-inner {
  padding: var(--space-6) var(--space-8) var(--space-8);
  font-size: 15px;
  line-height: 1.6;
}

.as-recently-viewed {
  margin-bottom: var(--space-12);
}

.as-recently-viewed > h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-5);
}

.as-recently-viewed__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.as-recent-product {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-xs);
  background: var(--as-white);
}

.as-recent-product__image {
  aspect-ratio: 1;
  background: var(--as-gray-50);
}

.as-recent-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.as-recent-product span {
  color: var(--as-blue-700);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.as-recent-product h3 {
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.35;
}

.as-recent-product h3 a {
  color: var(--as-gray-900);
}

.as-recent-product p {
  margin: 0;
  color: var(--as-navy-950);
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================
   3. CART DASHBOARD SYSTEM
   ========================================== */
.as-cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  margin-block: var(--space-8);
  align-items: start;
}

.as-cart-items {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  padding: var(--space-6);
}

.as-cart-item {
  display: grid;
  grid-template-columns: 80px 2fr 120px 120px 40px;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--as-border-light);
}

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

.as-cart-item__image {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-sm);
  display: grid;
  place-items: center;
  background: var(--as-gray-50);
}

.as-cart-item__image img {
  max-width: 80%;
  height: auto;
}

.as-cart-item__details {
  display: flex;
  flex-direction: column;
}

.as-cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--as-gray-900);
}

.as-cart-item__meta {
  font-size: 12px;
  color: var(--as-gray-500);
}

.as-cart-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--as-navy-950);
}

.as-cart-summary {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  padding: var(--space-6);
  position: sticky;
  top: 100px;
}

.as-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: 14px;
}

.as-summary-row.is-total {
  border-top: 1px solid var(--as-border-light);
  padding-top: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--as-navy-950);
}

.as-cart-summary-panel {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  padding: var(--space-6);
  box-shadow: var(--as-shadow-md);
}

.as-empty-cart-recovery {
  max-width: 840px;
  margin-inline: auto;
  padding: var(--space-12) var(--space-6);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  background: var(--as-white);
  text-align: center;
}

.as-empty-cart-recovery__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--as-blue-100);
  color: var(--as-blue-700);
  font-size: 0;
}

.as-empty-cart-recovery__icon::before {
  content: "";
  width: 26px;
  height: 22px;
  border: 2px solid currentColor;
  border-top: 0;
}

.as-empty-cart-recovery__actions,
.as-empty-cart-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-5);
}

.as-empty-cart-categories a {
  padding: 6px 10px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-xs);
  color: var(--as-gray-700);
  font-size: 12px;
  font-weight: 600;
}

.as-login-grid {
  display: grid;
  align-items: start;
  gap: 40px;
  margin-inline: auto;
}

.as-login-grid-split {
  max-width: 980px;
  grid-template-columns: 1fr 1fr;
}

.as-login-grid-single {
  max-width: 480px;
  grid-template-columns: 1fr;
}

.as-order-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--as-radius-pill);
  background: var(--as-gray-100);
  color: var(--as-gray-700);
  font-size: 11px;
  font-weight: 700;
}

.as-order-status--completed {
  background: rgba(18, 183, 106, .1);
  color: var(--as-success-dark);
}

.as-order-status--processing,
.as-order-status--on-hold {
  background: rgba(247, 144, 9, .1);
  color: var(--as-warning);
}

.as-order-status--failed,
.as-order-status--cancelled {
  background: rgba(225, 29, 72, .1);
  color: var(--as-danger);
}

.as-cart-summary-panel .cart_totals {
  float: none;
  width: 100%;
}

.as-cart-summary-panel .shop_table {
  width: 100%;
  border-collapse: collapse;
}

.as-cart-summary-panel .shop_table th,
.as-cart-summary-panel .shop_table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--as-border-light);
  text-align: left;
  vertical-align: top;
}

.as-cart-summary-panel .shop_table td {
  text-align: right;
}

.as-cart-summary-panel .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: var(--space-4);
  border-radius: var(--as-radius-sm);
  background: var(--as-blue-600);
  color: var(--as-white);
  font-weight: 700;
}

/* ==========================================
   4. CHECKOUT SYSTEM
   ========================================== */
.as-checkout-shell {
  max-width: 1280px;
  margin-inline: auto;
}

.as-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .8fr);
  gap: var(--space-8);
  margin-block: var(--space-8);
  align-items: start;
}

/* Steps Progress Indicator */
.as-checkout-progress {
  list-style: none;
  display: flex;
  justify-content: space-between;
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-md);
  padding: 16px;
  margin-bottom: var(--space-6);
  padding-left: 16px;
}

.as-checkout-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--as-gray-500);
}

.as-checkout-progress__step > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--as-gray-100);
  color: var(--as-gray-700);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.as-checkout-progress__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--as-gray-100);
  color: var(--as-gray-700);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.as-checkout-progress__step.is-active {
  color: var(--as-blue-600);
}

.as-checkout-progress__step.is-active .as-checkout-progress__num,
.as-checkout-progress__step.is-active > span {
  background: var(--as-blue-600);
  color: var(--as-white);
}

.as-checkout-panel {
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-card);
  padding: var(--space-6);
  box-shadow: var(--as-shadow-sm);
}

#customer_details {
  display: grid;
  gap: var(--space-5);
}

#customer_details::before,
#customer_details::after {
  display: none;
}

#customer_details .col-1,
#customer_details .col-2 {
  float: none;
  width: 100%;
}

.as-checkout-order {
  position: sticky;
  top: 96px;
}

.as-checkout-order > h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}

.as-checkout-summary-toggle {
  display: none;
}

.as-mpesa-total-note td span {
  display: block;
  font-size: 12px;
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--as-border-light);
  text-align: left;
  vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

.woocommerce-checkout-review-order-table .order-total {
  font-size: var(--fs-lg);
}

.woocommerce-checkout #payment {
  margin-top: var(--space-5);
  background: var(--as-gray-50);
  border-radius: var(--as-radius-sm);
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  min-height: 46px;
}

.as-checkout-progress__step.is-completed {
  color: var(--as-success);
}

.as-checkout-progress__step.is-completed .as-checkout-progress__num {
  background: var(--as-success);
  color: var(--as-white);
}

/* Form Steps Container */
.as-checkout-step {
  display: none;
  background: var(--as-white);
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-md);
  padding: var(--space-6);
}

.as-checkout-step.is-active {
  display: block;
}

/* Step Footer Nav buttons */
.as-checkout-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--as-border-light);
}

/* Express M-PESA Box */
.as-mpesa-payment-box {
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--as-radius-md);
  padding: var(--space-5);
  margin-block: var(--space-4);
}

.as-mpesa-badge {
  background: var(--as-whatsapp);
  color: var(--as-white);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--as-radius-xs);
  font-size: 11px;
  text-transform: uppercase;
}

/* Responsive adjustment overlays */
@media (max-width: 1023px) {
  .as-archive-grid-layout {
	grid-template-columns: 1fr !important;
  }

  .as-shop-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes an off-canvas drawer */
  .as-filter-sidebar.as-shop-sidebar {
    display: block;
	position: fixed !important;
	top: 0 !important;
	left: -320px;
	width: min(300px, calc(100vw - 32px));
	height: 100dvh !important;
	padding: 20px;
	z-index: 10000;
	overflow-y: auto;
	border-radius: 0 !important;
	transition: left 280ms cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: var(--as-shadow-lg) !important;
  }

  .as-filter-sidebar.as-shop-sidebar.is-open {
	left: 0;
  }

  .as-filter-sidebar-close {
	display: block;
  }

  .as-shop-toolbar__filters {
	display: inline-flex;
  }

  body.as-filter-open {
	overflow: hidden;
  }
  .as-product-single {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .as-cart-layout,
  .as-checkout-layout,
  .as-checkout-grid {
    grid-template-columns: 1fr;
  }
  .as-checkout-order {
    position: static;
  }

  .as-checkout-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    margin-bottom: var(--space-3);
    padding: 14px 16px;
    border: 1px solid var(--as-border-light);
    border-radius: var(--as-radius-xs);
    background: var(--as-white);
    color: var(--as-gray-900);
    font: inherit;
    font-weight: 700;
    text-align: left;
  }

  .as-checkout-order.is-collapsed > h2,
  .as-checkout-order.is-collapsed #order_review {
    display: none;
  }
  .as-product-grid-container ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .as-recently-viewed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .as-product-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .as-cart-item {
    grid-template-columns: 60px 1fr auto auto;
  }
  .as-cart-item__image {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 639px) {
  .as-recently-viewed__grid {
    grid-template-columns: 1fr;
  }
  /* Two-up on phones, matching the storefront grid */
  .as-product-grid-container ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .as-product-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .as-shop-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .as-checkout-progress {
    overflow-x: auto;
    gap: 20px;
  }
  .as-checkout-progress__step {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .as-checkout-panel {
    padding: var(--space-4);
  }
  .as-cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-3);
  }
  .as-cart-item__image {
    grid-row: span 2;
  }
}

/* The storefront stays two-up all the way down, so no 1-column fallback here. */

/* ==========================================
   9. CHECKOUT FORM FIELDS & DELIVERY AREA
   Matches the storefront's AddressFields.
   ========================================== */
.woocommerce-checkout .form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  padding: 0;
}

.woocommerce-checkout .form-row label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--as-ink);
}

.woocommerce-checkout .form-row .required {
  color: var(--as-danger);
  text-decoration: none;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-control);
  background: var(--as-white);
  font-family: inherit;
  font-size: 14px;
  color: var(--as-ink);
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--as-primary);
  outline: none;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

/* Two-up rows on tablet and up, stacked on phones */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 100%;
}

@media (min-width: 640px) {
  .woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .woocommerce-checkout .form-row-wide,
  .woocommerce-checkout .form-row.notes {
    grid-column: 1 / -1;
  }
}

/* The zone code rides in the postcode field, entered via the dropdown instead */
.as-hidden-field {
  display: none !important;
}

/* Countrywide fee note, shown in place of the Nairobi dropdown */
.as-delivery-note {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
}

.as-delivery-note label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--as-ink);
}

.as-delivery-note__value {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--as-border-light);
  border-radius: var(--as-radius-control);
  background: var(--as-soft);
  font-size: 14px;
  color: var(--as-gray-600);
}

/* Shop-pickup checkbox */
.as-pickup-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.as-pickup-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--as-primary);
  cursor: pointer;
}

/* Delivery fee line in the order totals */
.woocommerce-checkout-review-order-table .fee th,
.woocommerce-checkout-review-order-table .fee td {
  color: var(--as-ink);
}

/* ==========================================
   10. WOOCOMMERCE CORE OVERRIDES
   woocommerce-general.css targets `.woocommerce a.button` and
   `.woocommerce ul.products li.product`, which outrank plain theme classes.
   These rules carry matching specificity so the theme wins.
   ========================================== */

/* Grid items: never float, never clear, always fill their track */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.as-product-grid-container ul.products > li.product {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 12px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

/* Card CTA buttons keep the brand styling */
.woocommerce a.button.as-product-card__cart,
.woocommerce-page a.button.as-product-card__cart,
.woocommerce a.button.alt.as-product-card__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--as-primary);
  border-radius: var(--as-radius-control);
  background: var(--as-primary);
  color: var(--as-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.woocommerce a.button.as-product-card__cart:hover,
.woocommerce-page a.button.as-product-card__cart:hover {
  background: var(--as-primary-dark);
  border-color: var(--as-primary-dark);
  color: var(--as-white);
}

/* Single-product add to cart */
.woocommerce button.button.alt.single_add_to_cart_button,
.woocommerce .as-product-buy button.button {
  border-radius: var(--as-radius-control);
  background: var(--as-primary);
  color: var(--as-white);
  font-weight: 600;
}

.woocommerce button.button.alt.single_add_to_cart_button:hover {
  background: var(--as-primary-dark);
  color: var(--as-white);
}

/* Core hides the "added to cart" link and prints its own price/rating markup
   inside the loop item; the theme card supplies its own. */
.woocommerce ul.products li.product .added_to_cart {
  display: none;
}

.woocommerce ul.products li.product a img {
  margin: 0;
  box-shadow: none;
}

.woocommerce ul.products li.product .price {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.woocommerce ul.products li.product .price del {
  opacity: 1;
}

/* Sale flash is rendered by the card ribbon, not core */
.woocommerce ul.products li.product .onsale {
  display: none;
}

/* Generic buttons elsewhere (cart, account) follow the brand */
.woocommerce .button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
  background: var(--as-primary);
  border-radius: var(--as-radius-control);
  color: var(--as-white);
}

.woocommerce .button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--as-primary-dark);
  color: var(--as-white);
}
