/**
 * Abbey Glass shop branding — colors, header, footer, WooCommerce accents.
 *
 * @package AbbeyShopChild
 */

:root {
  --abbey-yellow: #ffc640;
  --abbey-yellow-dark: #e6b039;
  --abbey-text: #1a1a1a;
  --abbey-muted: #5c5c5c;
  --abbey-border: #e8e8e8;
  --abbey-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
  --abbey-radius: 12px;
  --abbey-page-max: 1280px;
  --abbey-content-max: 1120px;
  --abbey-page-gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --abbey-catalog-surface: #faf8f4;
  --abbey-catalog-accent: rgba(255, 198, 64, 0.22);
}

body {
  color: var(--abbey-text);
  background: #fff;
}

a {
  color: var(--abbey-text);
}

a:hover,
a:focus {
  color: #000;
}

.abbey-shop-theme .col-full {
  box-sizing: border-box !important;
  max-width: var(--abbey-page-max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--abbey-page-gutter) !important;
  padding-right: var(--abbey-page-gutter) !important;
}

@media (max-width: 66.4989378333em) {
  .abbey-shop-theme .col-full {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 568px) {
  .abbey-shop-theme .col-full {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.col-full {
  max-width: var(--abbey-page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--abbey-page-gutter);
  padding-right: var(--abbey-page-gutter);
  box-sizing: border-box;
}

.abbey-home__content {
  width: 100%;
  max-width: var(--abbey-content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Top bar */

.abbey-top-bar {
  background: var(--abbey-text);
  color: #fff;
  font-size: 0.875rem;
}

.abbey-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
}

.abbey-top-bar__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.abbey-top-bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.abbey-top-bar__main-site {
  color: var(--abbey-yellow);
  font-weight: 700;
  text-decoration: none;
}

.abbey-top-bar__main-site:hover,
.abbey-top-bar__main-site:focus {
  color: #fff;
}

/* Header branding */

.site-header .col-full {
  max-width: var(--abbey-page-max);
  padding-top: 0;
  padding-bottom: 0;
}

.abbey-header-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.35rem 0 0.2rem;
}

.abbey-header-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.abbey-header-search {
  min-width: 0;
  margin: 0;
}

.abbey-header-search__hint {
  display: none;
}

.abbey-header-search form.woocommerce-product-search {
  position: static !important;
  display: flex !important;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.abbey-header-search form.woocommerce-product-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.abbey-header-search form.woocommerce-product-search button[type="submit"] {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  min-width: 5.5rem;
  border-radius: 999px !important;
}

.abbey-header-cart {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  position: static !important;
  float: none !important;
}

.abbey-site-branding {
  flex: 0 0 auto;
  padding: 0;
  align-self: center;
}

.site-header .site-title,
.site-header .site-description,
.site-header .beta,
.site-header .site-branding:not(.abbey-site-branding) {
  display: none !important;
}

.abbey-logo-link {
  display: inline-flex;
  align-items: center;
}

.abbey-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}

/* Hide duplicate Storefront search forms — keep only the toolbar search */
.site-header form.woocommerce-product-search,
.site-header .site-search {
  display: none !important;
}

.abbey-header-toolbar form.woocommerce-product-search,
.abbey-header-toolbar .site-search {
  display: flex !important;
}

.abbey-site-branding .logo {
  margin: 0;
  line-height: 1;
}

.abbey-header-cart__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--abbey-text);
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: transparent !important;
  white-space: nowrap;
}

.abbey-header-cart__link:hover,
.abbey-header-cart__link:focus {
  color: #000;
  background: #fafafa !important;
}

.abbey-header-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--abbey-text);
}

.abbey-header-cart__svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.abbey-header-cart__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.abbey-header-cart__amount {
  font-weight: 700;
  font-size: 0.9rem;
}

.abbey-header-cart__label {
  font-size: 0.72rem;
  color: var(--abbey-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-header .site-header-cart {
  display: none !important;
}

/* Hide default Storefront nav if any hooks still render */
.site-header .secondary-navigation,
.site-header .storefront-primary-navigation .main-navigation:not(.abbey-main-navigation),
.site-header .storefront-primary-navigation > .site-header-cart {
  display: none !important;
}

.abbey-header-nav {
  border-top: 1px solid var(--abbey-border);
  padding: 0.35rem 0 0.55rem;
}

.abbey-main-navigation .abbey-primary-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.abbey-main-navigation .abbey-primary-menu a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .storefront-primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  margin: 0;
  float: none;
  clear: none;
}

.site-header .main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .main-navigation ul.menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-header .main-navigation ul.menu::-webkit-scrollbar {
  display: none;
}

.site-header .main-navigation ul.menu > li > a {
  white-space: nowrap;
  padding: 0.35rem 0;
}

.abbey-header-phone {
  display: none !important;
}

.site-header,
.abbey-fallback-header {
  background: #fff;
  border-bottom: 1px solid var(--abbey-border);
}

.site-header {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.abbey-shop-theme #masthead,
.abbey-shop-theme #page > .site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.abbey-shop-theme .site-content,
body.single-product .site-content {
  padding-top: 0.5rem !important;
}

.abbey-shop-theme .storefront-breadcrumb {
  margin-top: 0;
}

body.home .site-header {
  margin-bottom: 0 !important;
}

body.woocommerce-shop .site-header,
body.post-type-archive-product .site-header,
body.tax-product_cat .site-header {
  margin-bottom: 0 !important;
}

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.abbey-product-list .site-content {
  padding-top: 0.65rem;
}

body.abbey-product-list .site-main {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

body.home .site-main {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

body.woocommerce-shop .woocommerce-products-header {
  display: none;
}

body.abbey-product-list .storefront-sorting {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-shop .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header,
.woocommerce-shop .storefront-sorting:first-child,
.post-type-archive-product .storefront-sorting:first-child {
  margin-top: 0;
}

.tax-product_cat .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 198, 64, 0.45);
  border-radius: var(--abbey-radius);
  background: linear-gradient(135deg, var(--abbey-catalog-accent) 0%, #fff 72%);
  box-shadow: var(--abbey-shadow);
}

.woocommerce-products-header__title,
.post-type-archive-product .page-title,
.tax-product_cat .page-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 0;
}

.abbey-fallback-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.abbey-header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0;
}

.abbey-header-phone__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--abbey-muted);
}

.abbey-header-phone a {
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 768px) {
  .abbey-header-phone {
    display: flex;
  }
}

.abbey-fallback-nav__menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.abbey-fallback-nav__menu a {
  text-decoration: none;
  font-weight: 600;
}

/* Buttons */

.abbey-button,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link {
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.abbey-button--primary,
.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--abbey-yellow) !important;
  border-color: var(--abbey-yellow) !important;
  color: var(--abbey-text) !important;
}

.abbey-button--primary:hover,
.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--abbey-yellow-dark) !important;
  border-color: var(--abbey-yellow-dark) !important;
  color: #000 !important;
}

.abbey-button--secondary,
.abbey-button--dark,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--abbey-text) !important;
  color: var(--abbey-text) !important;
}

.abbey-button--dark {
  background: var(--abbey-text) !important;
  border-color: var(--abbey-text) !important;
  color: #fff !important;
}

.abbey-button--dark:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: var(--abbey-yellow) !important;
}

.abbey-button--lg,
.abbey-home .abbey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.abbey-home-hero__actions .abbey-button {
  min-width: min(100%, 12rem);
}

.abbey-card {
  box-shadow: var(--abbey-shadow);
  border: 1px solid var(--abbey-border);
}

.abbey-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.abbey-hero__subhead {
  font-size: 1.125rem;
  color: var(--abbey-muted);
  max-width: 38rem;
}

.abbey-support-cta {
  border-top: 4px solid var(--abbey-yellow-dark);
}

.abbey-support-cta h2,
.has-abbey-yellow-background-color h2 {
  color: var(--abbey-text);
}

.abbey-tier__label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 198, 64, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abbey-tier--best {
  box-shadow: var(--abbey-shadow);
}

/* Footer */

.abbey-footer-info {
  background: #fafafa;
  border-top: 1px solid var(--abbey-border);
  padding: 3rem 0;
}

.abbey-footer-info__inner {
  box-sizing: border-box;
}

.abbey-footer-info__inner.col-full::before,
.abbey-footer-info__inner.col-full::after {
  display: none;
}

.abbey-footer-info__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 1024px) {
  .abbey-footer-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .abbey-footer-info__grid {
    grid-template-columns: 1fr;
  }
}

.abbey-footer-info h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.abbey-footer-info p {
  margin: 0 0 0.75rem;
  color: var(--abbey-muted);
}

.abbey-footer-info__company {
  font-weight: 700;
  color: var(--abbey-text) !important;
}

.abbey-footer-info__logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 0.75rem;
}

.abbey-footer-info a {
  font-weight: 600;
}

.abbey-footer-info .abbey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  height: auto !important;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  text-decoration: none !important;
  overflow: visible;
}

.abbey-footer-info__service-area {
  font-size: 0.9375rem;
}

/* WooCommerce */

.abbey-product-support {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--abbey-yellow);
  background: #fff9ea;
}

.abbey-product-support__phone {
  font-weight: 700;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--abbey-border);
  border-radius: var(--abbey-radius);
  padding: 1rem;
  background: #fff;
  box-shadow: var(--abbey-shadow);
}

.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.woocommerce span.onsale {
  background: var(--abbey-yellow);
  color: var(--abbey-text);
}

.abbey-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--abbey-border);
  border-radius: var(--abbey-radius);
  background: linear-gradient(180deg, var(--abbey-catalog-surface) 0%, #fff 100%);
  box-shadow: var(--abbey-shadow);
}

.abbey-catalog-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.abbey-catalog-toolbar__row--nav {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.abbey-catalog-toolbar__summary .woocommerce-result-count,
.abbey-catalog-toolbar__ordering .woocommerce-ordering {
  margin: 0;
  float: none;
}

.abbey-catalog-toolbar__ordering .orderby {
  min-height: 2.5rem;
  border: 1px solid var(--abbey-border);
  border-radius: 999px;
  padding: 0.35rem 2rem 0.35rem 0.85rem;
  background: #fff;
}

.abbey-catalog-toolbar__view.abbey-catalog-view-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.abbey-catalog-view-controls__status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--abbey-text);
}

.abbey-catalog-view-controls__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--abbey-border);
  border-radius: 999px;
  background: #fff;
  color: var(--abbey-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.abbey-catalog-view-controls__link:hover,
.abbey-catalog-view-controls__link:focus {
  border-color: #c9a227;
  background: rgba(255, 198, 64, 0.18);
  color: var(--abbey-text);
  outline: none;
}

.abbey-catalog-view-controls__link--primary {
  border-color: var(--abbey-text);
  background: var(--abbey-yellow);
}

.abbey-catalog-toolbar__pagination {
  margin-left: auto;
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination {
  margin: 0;
  padding: 0;
  border: 0;
  float: none;
  width: auto;
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  border: 0;
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.55rem;
  border: 1px solid var(--abbey-border);
  border-radius: 999px;
  background: #fff;
  color: var(--abbey-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination .page-numbers.current {
  background: var(--abbey-yellow);
  border-color: var(--abbey-text);
}

.abbey-catalog-toolbar__pagination .woocommerce-pagination .page-numbers:hover,
.abbey-catalog-toolbar__pagination .woocommerce-pagination .page-numbers:focus {
  background: rgba(255, 198, 64, 0.18);
  border-color: #c9a227;
}

.abbey-shop-show-all .abbey-catalog-toolbar__pagination,
.abbey-shop-show-all .storefront-sorting:last-child,
body.abbey-product-list .woocommerce-after-shop-loop .storefront-sorting {
  display: none !important;
}

.storefront-primary-navigation .menu > li > a,
.main-navigation .menu > li > a {
  font-weight: 600;
}

/* Header search */
.abbey-header-search .woocommerce-product-search {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.abbey-header-search input[type="search"] {
  flex: 1;
  min-height: 2.5rem;
  border: 1px solid var(--abbey-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.abbey-header-search button {
  border: 0;
  border-radius: 999px;
  background: var(--abbey-yellow);
  color: var(--abbey-text);
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.abbey-header-search__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--abbey-muted);
}

/* Shop filters */
.abbey-shop-filters {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem 1.15rem;
  border: 1px solid rgba(255, 198, 64, 0.45);
  border-radius: var(--abbey-radius);
  background: linear-gradient(135deg, var(--abbey-catalog-accent) 0%, #fff 58%);
  box-shadow: var(--abbey-shadow);
}

.abbey-shop-filters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--abbey-yellow);
}

.abbey-shop-filters__heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.abbey-shop-filters__intro {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--abbey-muted);
}

.abbey-shop-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1rem;
}

.abbey-shop-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.abbey-shop-filters__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--abbey-muted);
}

.abbey-shop-filters__field select {
  min-height: 2.65rem;
  border: 1px solid var(--abbey-border);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.abbey-shop-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.abbey-shop-filters__actions .abbey-button,
.abbey-shop-filters__actions button,
.abbey-shop-filters__actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 9rem;
  min-height: 2.75rem;
  margin: 0 !important;
  padding: 0.6rem 1.35rem !important;
  line-height: 1.25 !important;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.abbey-shop-filters__clear {
  background: #fff !important;
}

.abbey-product-identifiers {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.95rem;
}

.abbey-product-identifiers p {
  margin: 0.25rem 0;
}

.abbey-product-specs {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

/* Full-width catalog / product pages (no blog sidebar) */

body.abbey-full-width #secondary,
body.abbey-full-width .widget-area,
body.no-sidebar.woocommerce #secondary {
  display: none !important;
}

body.abbey-full-width #primary,
body.abbey-full-width .content-area,
body.abbey-full-width.woocommerce-page #primary,
body.abbey-full-width.woocommerce-page .content-area,
body.no-sidebar.woocommerce #primary,
body.no-sidebar.woocommerce .content-area,
body.storefront-full-width-content.woocommerce #primary,
body.storefront-full-width-content.woocommerce .content-area {
  width: 100% !important;
  float: none !important;
  max-width: none;
  margin-right: 0 !important;
}

body.abbey-full-width #content .col-full,
body.no-sidebar.woocommerce #content .col-full {
  max-width: var(--abbey-page-max);
}

body.home #content,
body.home #content .col-full,
body.home #primary,
body.home .content-area,
body.home .site-main,
body.home .abbey-home {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.home #secondary,
body.home .widget-area {
  display: none !important;
}

body.home .site-content > .col-full {
  max-width: 100%;
  box-sizing: border-box;
}

body.home .abbey-home {
  width: 100%;
}

body.home .abbey-home-hero__inner.col-full::before,
body.home .abbey-home-hero__inner.col-full::after {
  display: none;
}

/* Dev site catalog-only banner (Abbey Shop Enhancements) */

.abbey-dev-mode-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 198, 64, 0.35);
  border: 1px solid #e07a2f;
  border-radius: var(--abbey-radius);
  color: #5a3d10;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.abbey-dev-mode-checkout-disabled {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff9ea;
  border: 1px solid #e07a2f;
  border-radius: var(--abbey-radius);
  color: #5a3d10;
  font-weight: 600;
}

/* Single product layout */

.single-product div.product.abbey-pdp,
.single-product div.product.abbey-pdp .abbey-pdp-main {
  display: grid !important;
  float: none !important;
  width: 100%;
}

.single-product div.product.abbey-pdp::before,
.single-product div.product.abbey-pdp::after,
.single-product div.product.abbey-pdp .abbey-pdp-main::before,
.single-product div.product.abbey-pdp .abbey-pdp-main::after {
  display: none !important;
}

.single-product div.product.abbey-pdp .abbey-pdp-main > * {
  float: none !important;
  clear: none !important;
  max-width: 100%;
}

.single-product .woocommerce-products-header,
.single-product .storefront-page-title {
  display: none !important;
}

.single-product .storefront-breadcrumb {
  margin-bottom: 1rem;
}

.single-product div.product.abbey-pdp {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas:
    "sidebar main"
    "related related";
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.single-product div.product.abbey-pdp::before,
.single-product div.product.abbey-pdp::after {
  display: none;
}

.single-product .abbey-pdp-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 1rem;
  align-self: start;
  border-right: 1px solid var(--abbey-border);
  padding-right: 1rem;
}

.single-product .abbey-pdp-sidebar__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.single-product .abbey-pdp-sidebar__tab a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--abbey-muted);
}

.single-product .abbey-pdp-sidebar__tab.active a,
.single-product .abbey-pdp-sidebar__tab a:hover {
  background: #fff9ea;
  color: var(--abbey-text);
}

.single-product .abbey-pdp-main {
  grid-area: main;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 0.65fr);
  grid-template-areas: "gallery summary";
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.single-product .abbey-pdp-main > span.onsale {
  display: none;
}

.single-product .abbey-pdp-gallery-column {
  grid-area: gallery;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.single-product .abbey-pdp-main .woocommerce-product-gallery {
  position: relative;
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 100%;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--abbey-border);
  border-radius: var(--abbey-radius);
  min-height: 420px;
  box-sizing: border-box;
  overflow: hidden;
}

.single-product .abbey-pdp-main .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .abbey-pdp-main .woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
}

.single-product .abbey-pdp-main .woocommerce-product-gallery .flex-viewport {
  overflow: hidden !important;
  min-height: min(72vh, 640px) !important;
  max-height: min(76vh, 680px) !important;
}

.single-product .woocommerce-product-gallery__image {
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100% !important;
  max-width: 100%;
  min-height: min(72vh, 640px);
  max-height: min(76vh, 680px);
  margin: 0 auto;
  background: #fff;
  box-sizing: border-box;
}

.single-product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.single-product .woocommerce-product-gallery__image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center center;
  transform: none;
  margin: 0 auto !important;
  display: block;
}

/* Disable hover zoom lens; use Photoswipe lightbox on click instead */
.single-product .woocommerce-product-gallery .zoomImg,
.single-product .woocommerce-product-gallery .zoomContainer {
  display: none !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none;
}

.single-product .abbey-pdp-main .summary.entry-summary {
  grid-area: summary;
  position: sticky;
  top: 1rem;
  align-self: start;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.single-product .abbey-pdp-main .summary .product_title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Finish variation swatches — Emtek-style square texture tiles */

.single-product table.variations td.value {
  position: relative;
}

.single-product select.abbey-finish-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.abbey-finish-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 0.85rem;
  padding: 0.35rem 0 0.85rem;
  margin: 0.35rem 0 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.abbey-finish-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.abbey-finish-swatch:hover,
.abbey-finish-swatch:focus {
  outline: none;
  transform: translateY(-1px);
}

.abbey-finish-swatch.is-selected .abbey-finish-swatch__chip {
  box-shadow: 0 0 0 2px var(--abbey-yellow);
  border-color: #c9a227;
}

.abbey-finish-swatch__chip {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--abbey-swatch-color, #d0d0d0);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-shadow: none;
}

.abbey-finish-swatch__chip.has-image {
  background: #fff;
}

.abbey-finish-swatch__chip.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.15);
  transform-origin: center center;
  border-radius: 0;
}

.abbey-finish-swatch__label,
.abbey-finish-swatch__code {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--abbey-text);
  line-height: 1.25;
  text-align: center;
  width: 100%;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.single-product table.variations tr:has(.abbey-finish-swatches) td.value {
  width: 100%;
}

.single-product table.variations tr:has(.abbey-finish-swatches) .label label {
  font-weight: 700;
}

.abbey-pdp-gallery-notice {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.7rem 0.85rem;
  border-top: 2px solid #e07a2f;
  background: rgba(255, 198, 64, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #3a3a3a;
  pointer-events: none;
}

.abbey-pdp-gallery-notice[hidden] {
  display: none !important;
}

.abbey-pdp-gallery-notice strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7a4a10;
  margin-bottom: 0.15rem;
}

.abbey-rosette-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5a5a5a;
}

.abbey-rosette-reference__missing {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #5a5a5a;
}

.single-product select.abbey-rosette-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.abbey-rosette-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
}

.abbey-rosette-swatch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.abbey-rosette-swatch:hover,
.abbey-rosette-swatch:focus {
  outline: none;
  transform: translateY(-1px);
}

.abbey-rosette-swatch.is-selected .abbey-rosette-swatch__chip {
  box-shadow: 0 0 0 2px var(--abbey-yellow);
  border-color: #e07a2f;
}

.abbey-rosette-swatch__chip {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--abbey-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.abbey-rosette-swatch__chip.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.abbey-rosette-swatch__chip.is-missing {
  background: repeating-linear-gradient(
    -45deg,
    #f7f7f7,
    #f7f7f7 8px,
    #ececec 8px,
    #ececec 16px
  );
}

.abbey-rosette-swatch__label {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
  color: #333;
  word-break: break-word;
}

.single-product table.variations tr:has(.abbey-rosette-swatches) td.value {
  width: 100%;
}

.single-product table.variations tr:has(.abbey-rosette-swatches) .label label {
  font-weight: 700;
}

.single-product .abbey-pdp-gallery-column .abbey-pdp-panels {
  flex: 0 1 auto;
  border-top: 1px solid var(--abbey-border);
  padding-top: 1rem;
  min-width: 0;
  float: none !important;
  clear: none !important;
  width: 100%;
}

.single-product .abbey-pdp-gallery-column .abbey-pdp-panels .abbey-pdp-panel {
  display: none;
}

.single-product .abbey-pdp-gallery-column .abbey-pdp-panels .abbey-pdp-panel.active {
  display: block !important;
}

.single-product .abbey-pdp > .related.products,
.single-product .abbey-pdp > .upsells.products {
  grid-area: related;
}

@media (max-width: 900px) {
  .abbey-header-toolbar {
    grid-template-columns: 1fr;
  }

  .abbey-header-tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .abbey-home-hero__grid {
    grid-template-columns: 1fr;
  }

  .single-product div.product.abbey-pdp {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar"
      "related";
  }

  .single-product .abbey-pdp-sidebar {
    position: static;
    border-right: 0;
    border-top: 1px solid var(--abbey-border);
    padding: 1rem 0 0;
  }

  .single-product .abbey-pdp-sidebar__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .single-product .abbey-pdp-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "summary"
      "panels";
  }

  .single-product .abbey-pdp-gallery-column {
    display: contents;
  }

  .single-product .abbey-pdp-main .woocommerce-product-gallery {
    grid-area: gallery;
  }

  .single-product .abbey-pdp-main .summary.entry-summary {
    grid-area: summary;
    position: static;
  }

  .single-product .abbey-pdp-gallery-column .abbey-pdp-panels {
    grid-area: panels;
  }
}

@media (max-width: 767px) {
  .abbey-top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .abbey-top-bar__actions {
    flex-wrap: wrap;
  }
}

/* Shop homepage */

.abbey-home {
  padding-bottom: 3rem;
}

.abbey-home-hero {
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  border-bottom: 1px solid var(--abbey-border);
  padding: 2.5rem 0 2.25rem;
  width: 100%;
}

.abbey-home-hero__inner {
  box-sizing: border-box;
}

.abbey-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.abbey-home-hero__copy {
  align-self: center;
}

.abbey-home-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.abbey-home-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--abbey-muted);
}

.abbey-home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.abbey-home-hero__subhead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--abbey-muted);
}

.abbey-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.abbey-home-hero__actions .abbey-button {
  min-width: min(100%, 12rem);
  flex: 0 1 auto;
}

.abbey-home-hero__help {
  margin: 1.25rem 0 0;
  color: var(--abbey-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.abbey-home-hero__image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--abbey-radius);
  border: 1px solid var(--abbey-border);
  box-shadow: var(--abbey-shadow);
  background: #fff;
  object-fit: contain;
}

.abbey-home-hero__card {
  padding: 1.5rem;
}

.abbey-home-hero__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.abbey-home-hero__card p {
  margin: 0 0 0.75rem;
  color: var(--abbey-muted);
}

.abbey-home-hero__phone {
  font-weight: 700;
  text-decoration: none;
}

.abbey-home-categories {
  padding: 2.5rem 0 1rem;
}

.abbey-home-categories__empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.abbey-home-categories__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.abbey-home-categories__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.abbey-home-categories__all {
  font-weight: 700;
  text-decoration: none;
}

.abbey-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.abbey-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--abbey-border);
  border-radius: var(--abbey-radius);
  overflow: hidden;
  box-shadow: var(--abbey-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abbey-category-card:hover,
.abbey-category-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.1);
}

.abbey-category-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.abbey-category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.abbey-category-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 198, 64, 0.25), #f4f4f4);
}

.abbey-category-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 1.1rem;
}

.abbey-category-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.abbey-category-card__desc {
  font-size: 0.92rem;
  color: var(--abbey-muted);
}

.abbey-home-collections {
  padding-top: 1rem;
}

.abbey-home-collections__lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--abbey-muted);
  font-size: 0.98rem;
}

.abbey-collection-card__style {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 198, 64, 0.22);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.abbey-category-card__count {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--abbey-muted);
}

/* WooCommerce category tiles on shop / archive pages */

.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
  text-align: center;
}

.woocommerce ul.products li.product-category a,
.woocommerce-page ul.products li.product-category a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product-category .woocommerce-loop-category__title {
  margin-top: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.woocommerce ul.products li.product-category img,
.woocommerce-page ul.products li.product-category img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  border: 1px solid var(--abbey-border);
  border-radius: var(--abbey-radius);
  box-sizing: border-box;
  margin: 0 auto;
}

.abbey-home-support {
  margin-top: 2rem;
  padding: 2.25rem 0;
  border-top: 4px solid var(--abbey-yellow-dark);
}

.abbey-home-support__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.abbey-home-support__inner h2 {
  margin: 0 0 0.5rem;
}

.abbey-home-support__inner p {
  margin: 0;
  max-width: 42rem;
}

.abbey-home-glass {
  padding: 1.5rem 0 0;
}

.abbey-home-glass__inner {
  padding: 1.5rem;
  text-align: center;
}

.abbey-home-glass__inner h2 {
  margin: 0 0 0.75rem;
}

.abbey-home-glass__inner p {
  margin: 0 0 1rem;
  color: var(--abbey-muted);
}

@media (max-width: 900px) {
  .abbey-home-hero__grid {
    grid-template-columns: 1fr;
  }

  .abbey-home-support__inner {
    align-items: flex-start;
  }

  .abbey-home-support__inner .abbey-button {
    width: 100%;
    text-align: center;
  }
}
