/* Woostify 2.6.1 classic product-loop image and site logo. */
.site-branding .custom-logo-link img.custom-logo { display: block; flex: none; width: auto; height: auto; max-width: 44px; max-height: 44px; margin: 0; }
.woocommerce ul.products li.product .product-loop-image-wrapper > a.woocommerce-loop-product__link {
  aspect-ratio: 9 / 16; overflow: hidden;
}
.woocommerce ul.products li.product .product-loop-image-wrapper > a.woocommerce-loop-product__link img.product-loop-image {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.seere-sale-view-title { width: 100%; margin: 0 0 24px; }
.seere-catalogue-variation { margin: 5px 0 0; font-size: .875rem; line-height: 1.4; }

/* Boutique serif headings; body text keeps Woostify's sans-serif. */
body { --seere-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
body :is(h1, h2, h3, h4, h5, h6), .woocommerce div.product .product_title, .site-branding .seere-brand-name {
  font-family: var(--seere-serif); font-weight: 400; letter-spacing: 0;
}
.onsale, .woostify-tag-on-sale { background-color: var(--seere-button-bg); }

/* Product page: colour expectation and a phone-sized gallery. */
.seere-product-assurance { display: flex; align-items: center; gap: 8px; margin: 0 0 1rem; color: #6b5548; font-size: .875rem; }
.seere-product-assurance svg { flex: none; color: #b07a2a; }
@media (max-width: 767px) {
  /* A fixed stage stops the page jumping when a variation's photos have different proportions. */
  .product-gallery .product-images .flickity-viewport { height: 62svh !important; }
  .product-gallery .product-images .image-item { height: 62svh; text-align: center; }
  .product-gallery .product-images .image-item img { display: block; width: auto; max-width: 100%; height: 100%; max-height: 62svh; margin-inline: auto; object-fit: contain; }
  /* Woostify positions thumbnails with Flickity, which already makes the row swipeable. */
  .product-gallery .product-thumbnail-images { margin-top: 10px; }
  .product-gallery .product-thumbnail-images .thumbnail-item { width: 56px; height: 75px; margin-right: 8px; border: 1px solid #e3d8cf; opacity: .7; transition: opacity .2s, border-color .2s; }
  .product-gallery .product-thumbnail-images .thumbnail-item.is-nav-selected { border-color: var(--seere-button-bg); opacity: 1; }
  .product-gallery .product-thumbnail-images .thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .product-gallery .product-thumbnail-images .thumbnail-item { transition: none; }
}

/* Each saree is one of a kind; WooCommerce still enforces the stock limit. */
.mini-cart-quantity:has(input[max="1"]) .mini-cart-product-qty { display: none; }
.mini-cart-quantity:has(input[max="1"]) input.qty { pointer-events: none; border: 0; background: transparent; }

/* Click to Chat 4.46 chip: icon only on phone product pages so it doesn't cover the title. Its inline styles need !important. */
@media (max-width: 767px) {
  .single-product #ht-ctc-chat .ctc_chip { padding: 0 !important; background: transparent !important; }
  .single-product #ht-ctc-chat .ctc_chip .s4_img { margin: 0 !important; }
  .single-product #ht-ctc-chat .ctc_chip .s4_img svg { width: 44px !important; height: 44px !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
  .single-product #ht-ctc-chat .ctc_cta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Store information panel above the footer credit. */
.site-footer { background: #f4ece6; color: #342922; }
.seere-fashion-footer-panel { background: transparent; color: #342922; padding: 64px 0 40px; }
.seere-fashion-footer-columns { max-width: 1170px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 40px; }
.seere-fashion-footer-columns h2 { margin: 0 0 24px; font-size: 19px; line-height: 1.3; }
.seere-fashion-footer-columns .seere-fashion-footer-brand h2 { font-size: 26px; }
.seere-fashion-footer-columns p, .seere-fashion-footer-columns a { color: #59463f; font-size: 14px; line-height: 1.8; }
.seere-fashion-footer-columns ul { margin: 0; padding: 0; list-style: none; }
.seere-fashion-footer-columns li + li { margin-top: 10px; }
.seere-fashion-footer-columns a:focus-visible { outline: 3px solid #6a1f2b; outline-offset: 3px; }
.seere-fashion-footer-columns .seere-fashion-footer-note { margin-top: 8px; font-size: 12px; }
@media (max-width: 767px) {
  .seere-fashion-footer-panel { padding: 48px 0 32px; }
  .seere-fashion-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 24px; }
}
@media (max-width: 380px) {
  .seere-fashion-footer-columns { grid-template-columns: 1fr; }
}

/* Woostify 2.6.1's #view clips overflow; clip preserves that without
   creating a scrolling ancestor that traps the sticky header. */
@supports (overflow: clip) {
  #view { overflow-x: clip; }
  .site-header.header-layout-1 { position: sticky; top: 0; z-index: 99; }
  @media (min-width: 601px) {
    .admin-bar .site-header.header-layout-1 { top: 46px; }
  }
  @media (min-width: 783px) {
    .admin-bar .site-header.header-layout-1 { top: 32px; }
  }
}
.site-header.header-layout-1 .site-header-inner > .woostify-container { min-height: 60px; }
.site-header.header-layout-1 .site-branding { display: flex; align-items: center; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; text-decoration: none; }
.site-branding .seere-brand-name { color: #241f1b; font-size: clamp(18px,1.5vw,22px); font-weight: 600; line-height: 1.15; white-space: nowrap; }
.site-branding .custom-logo-link:focus-visible { outline: 3px solid #6a1f2b; outline-offset: 4px; }
@media (max-width: 991px) {
  .site-header.header-layout-1 .site-header-inner > .woostify-container { padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 992px) {
  .site-header.header-layout-1 .main-navigation .primary-navigation > .menu-item > a { padding-top: 15px; padding-bottom: 15px; line-height: 30px; }
}
.seere-social-login .nsl-container-buttons { width: 100%; }

/* Woostify has no secondary control or block-checkout button palette. */
.seere-secondary-button.button,
.seere-home-collections-nav button,
.woocommerce a.button.product_type_variable {
  color: var(--seere-button-bg); background: transparent; border: 1px solid var(--seere-button-bg); border-radius: var(--seere-button-radius);
}
.seere-secondary-button.button:hover,
.seere-home-collections-nav button:hover,
.woocommerce a.button.product_type_variable:hover {
  color: var(--seere-button-hover-text); background: var(--seere-button-hover-bg); border-color: var(--seere-button-hover-bg);
}
.seere-secondary-button.button:focus-visible,
.seere-home-collections-nav button:focus-visible,
.woocommerce a.button.product_type_variable:focus-visible { outline: 3px solid var(--seere-button-bg); outline-offset: 3px; }
.wc-block-components-button:not(.is-link) {
  color: var(--seere-button-text); background-color: var(--seere-button-bg); border-radius: var(--seere-button-radius);
}
.wc-block-components-button:not(.is-link):hover { color: var(--seere-button-hover-text); background-color: var(--seere-button-hover-bg); }

/* Shop filters retain Woostify's sidebar and WooCommerce widget markup. */
.seere-shop-filters-close { display: none; }
@media (max-width: 767px) {
  .woocommerce .woostify-sorting { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .woocommerce .woostify-sorting .woostify-toolbar-left { flex: 0 0 auto; margin: 0 0 24px; }
  .woocommerce .woostify-sorting .woocommerce-ordering { flex: 1 1 0; min-width: 0; max-width: 250px; margin: 0 0 24px; }
  .woocommerce .woostify-sorting .orderby { width: 100%; min-height: 44px; text-overflow: ellipsis; }
  .woocommerce .woostify-sorting .woostify-toolbar-left #toggle-sidebar-mobile-button { min-height: 44px; margin: 0; }
}
@media (max-width: 991px) {
  .shop-widget { transition-property: transform, opacity; }
  .shop-widget .seere-shop-filters-close { display: inline-flex; }
  body:not(.woocommerce-no-js) .shop-widget { overflow-y: auto; max-height: 100dvh; overscroll-behavior: contain; }
  body.woocommerce-no-js .shop-widget { position: static; max-width: none; width: 100%; visibility: visible; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-widget { transition: none; }
}

/* Variant catalogue filters and stock state. */
.woocommerce .seere-variant-facets fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.woocommerce .seere-variant-facets legend { font-weight: 600; margin-bottom: .5rem; }
.woocommerce .seere-facet-options label { display: flex; align-items: baseline; gap: .4rem; padding: .25rem 0; cursor: pointer; }
.woocommerce .seere-facet-options label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.woocommerce .seere-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.5rem; }
.woocommerce .seere-filter-actions form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.woocommerce .seere-filter-actions :is(.seere-apply-filters, .seere-reset-filters, .seere-shop-filters-close) { align-items: center; justify-content: center; min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--seere-button-bg); border-radius: var(--seere-button-radius); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.woocommerce .seere-filter-actions .seere-apply-filters { color: var(--seere-button-text); background: var(--seere-button-bg); }
.woocommerce .seere-filter-actions :is(.seere-reset-filters, .seere-shop-filters-close) { color: var(--seere-button-bg); background: transparent; }
.woocommerce .seere-filter-actions :is(.seere-apply-filters, .seere-reset-filters, .seere-shop-filters-close):hover { color: var(--seere-button-hover-text); background: var(--seere-button-hover-bg); border-color: var(--seere-button-hover-bg); }
.woocommerce .seere-filter-actions :is(.seere-apply-filters, .seere-reset-filters, .seere-shop-filters-close):focus-visible { outline: 3px solid var(--seere-button-bg); outline-offset: 2px; }
.woocommerce ul.products li.product.seere-variant-out-of-stock .product-loop-image-wrapper { background: #fff; }
.woocommerce ul.products li.product.seere-variant-out-of-stock .product-loop-image { opacity: .38; }
@media (min-width: 992px) {
  .woocommerce .shop-widget { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
}
