/* =========================================================================
   The Freelance Suite — WooCommerce styles (Phase 6)
   Enqueued on shop / single product / cart / checkout / account contexts
   (depends on sections.css). Uses the theme tokens from :root (--teal, --pink,
   --navy, --light, --ink, --font-heading, --font-body) injected by
   inc/options-css.php, plus the non-colour tokens in main.css. Do NOT redefine
   tokens here.
   ========================================================================= */

/* ---- Shared WooCommerce shell ---------------------------------------- */

.fls-woo {
  width: 100%;
}

/* Breadcrumb (branded via woocommerce_breadcrumb_defaults). */
.fls-breadcrumb,
.woocommerce-breadcrumb {
  font-family: var(--font-body);
  font-size: .85rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  margin-bottom: 28px;
}
.fls-breadcrumb a,
.woocommerce-breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.fls-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover { color: var(--pink); }
.fls-breadcrumb__sep { margin: 0 .5em; opacity: .4; }

/* Sale flash badge. */
.woocommerce span.onsale,
.fls-woo span.onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  min-height: auto;
  min-width: auto;
  line-height: 1.2;
  margin: 0;
}

/* Prices everywhere.
   WooCommerce's own stylesheet ships `.price{color:#958e09}` and a higher-specificity
   `div.product span.price` rule — both outrank a plain `.fls-woo .price` override, so we
   match the same element+class pattern to guarantee brand navy wins. */
.fls-woo .price,
.fls-woo .price ins,
.fls-woo div.product span.price,
.fls-woo .summary .price {
  color: var(--navy) !important;
  font-weight: 800;
  font-family: var(--font-heading);
  text-decoration: none;
}
.fls-woo .price del {
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  font-weight: 600;
  opacity: .8;
  margin-right: .4em;
}
.fls-woo .price .woocommerce-Price-currencySymbol { font-weight: 700; }

/* WooCommerce default buttons -> brand pill buttons (covers add-ons we don't override). */
.fls-woo a.button,
.fls-woo button.button,
.fls-woo input.button,
.fls-woo .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--navy);
  color: #fff;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.fls-woo a.button:hover,
.fls-woo button.button:hover,
.fls-woo input.button:hover,
.fls-woo .button:hover { background: #000; color: #fff; }
.fls-woo a.button.alt,
.fls-woo button.button.alt,
.fls-woo .button.alt { background: var(--pink); color: #fff; }
.fls-woo a.button.alt:hover,
.fls-woo button.button.alt:hover,
.fls-woo .button.alt:hover { background: color-mix(in srgb, var(--pink) 86%, #000); }

/* When the brand .fls-btn classes are present they take precedence (sections.css). */
.fls-woo .fls-btn { padding: 14px 32px; }

/* =========================================================================
   1. Shop archive
   ========================================================================= */

.fls-shop-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.fls-shop-hero__title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: .35em;
}
.fls-shop-hero__sub {
  font-size: 1.075rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  margin: 0;
}

/* Product showcase list — direct markup, no ul.products WC interference */
.fls-shop-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---- Full-width product showcase card ----
   Grid: [image panel spanning both rows | title+price+desc / CTA].
   All three children (.fls-shop-card__media, __body, __cta) are direct
   grid items — no display:contents hacks needed. */
.fls-shop-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: 520px;
}
.fls-shop-card:hover { box-shadow: var(--shadow); }

/* Image panel — fills left column, both rows */
.fls-shop-card__media {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.fls-shop-card__media a {
  display: contents; /* img becomes the flex child */
}
.fls-shop-card__media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}

/* Content panel — right column, row 1 */
.fls-shop-card__body {
  grid-column: 2;
  grid-row: 1;
  padding: 52px 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fls-shop-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.15;
}
.fls-shop-card__title a {
  color: inherit;
  text-decoration: none;
}
.fls-shop-card__title a:hover { color: var(--pink); }
.fls-shop-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 22px;
}
.fls-shop-card__price .woocommerce-Price-amount { color: var(--navy); }
.fls-shop-card__desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  margin: 0;
  max-width: 52ch;
}

/* CTA panel — right column, row 2 */
.fls-shop-card__cta {
  grid-column: 2;
  grid-row: 2;
  padding: 0 56px 52px;
  align-self: end;
}
.fls-shop-card__btn { display: inline-block; }

/* Alternate: even cards flip image to right */
.fls-shop-card:nth-child(even) .fls-shop-card__media {
  grid-column: 2;
  grid-row: 1 / 3;
}
.fls-shop-card:nth-child(even) .fls-shop-card__body {
  grid-column: 1;
}
.fls-shop-card:nth-child(even) .fls-shop-card__cta {
  grid-column: 1;
}

/* Loop rating stars. */
.fls-woo .star-rating { color: var(--pink); margin: 0 0 12px; }

/* ---- Mobile: stack vertically ---- */
@media (max-width: 700px) {
  .fls-shop-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 0;
    border-radius: 22px;
  }
  .fls-shop-card__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 32px;
  }
  .fls-shop-card__media img { max-height: 260px; }
  .fls-shop-card__body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 28px 28px 16px;
    justify-content: flex-start;
  }
  .fls-shop-card__cta {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 0 28px 28px;
  }
  .fls-shop-card__btn { width: 100%; text-align: center; }
}

/* =========================================================================
   2. Single product
   ========================================================================= */

.fls-product-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 80px);
}

/* Gallery (left). */
.fls-product-single .woocommerce-product-gallery {
  position: relative;
  margin: 0;
  width: 100% !important;
}
.fls-product-single .woocommerce-product-gallery__wrapper { margin: 0; }
.fls-product-single .woocommerce-product-gallery__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.fls-product-single .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.fls-product-single .flex-control-thumbs li {
  width: 72px;
  margin: 0;
  list-style: none;
}
.fls-product-single .flex-control-thumbs img {
  border-radius: 10px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s;
}
.fls-product-single .flex-control-thumbs img.flex-active,
.fls-product-single .flex-control-thumbs img:hover { opacity: 1; }
.fls-product-single .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* Summary (right). */
.fls-product-single .summary.entry-summary { margin: 0; }
.fls-product-single .product_title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: .25em;
}
.fls-product-single .summary .price {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 18px;
}
.fls-product-single .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.fls-product-single .woocommerce-product-details__short-description {
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 1.05rem;
  margin-bottom: 26px;
}
.fls-product-single .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Quantity input. */
.fls-woo .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}
.fls-woo .quantity input.qty {
  width: 58px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  padding: 10px 6px;
  -moz-appearance: textfield;
}
.fls-woo .quantity input.qty::-webkit-outer-spin-button,
.fls-woo .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add-to-cart form (single). */
.fls-product-single form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.fls-product-single form.cart .quantity {
  margin: 0; /* remove any WC default margins so gap is the only spacing */
  flex-shrink: 0;
}
.fls-product-single form.cart .single_add_to_cart_button {
  background: var(--pink);
  color: #fff;
  flex: 1 1 auto;
  min-width: 180px;
  margin: 0;
}
.fls-product-single form.cart .single_add_to_cart_button:hover {
  background: color-mix(in srgb, var(--pink) 86%, #000);
}

/* Variations table (variable product — Pink/Aqua/White). Keep WC structure intact. */
.fls-product-single .variations {
  width: 100%;
  border: 0;
  margin: 0 0 18px;
}
.fls-product-single .variations td,
.fls-product-single .variations th {
  border: 0;
  padding: 6px 0;
  vertical-align: middle;
}
.fls-product-single .variations th.label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  padding-right: 16px;
  width: 120px;
}
.fls-product-single .variations select {
  width: 100%;
  max-width: 280px;
  padding: 11px 14px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.fls-product-single .variations select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}
.fls-product-single .reset_variations {
  display: inline-block;
  margin-left: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pink);
}
.fls-product-single .single_variation .price { font-size: 1.4rem; display: block; margin-bottom: 12px; }
.fls-product-single .woocommerce-variation-availability { margin-bottom: 10px; }

/* Product meta (SKU / categories). */
.fls-product-single .product_meta {
  font-size: .85rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-top: 18px;
}
.fls-product-single .product_meta > span { display: block; margin-bottom: 4px; }
.fls-product-single .product_meta a { color: var(--navy); font-weight: 600; }
.fls-product-single .product_meta a:hover { color: var(--pink); }

/* Stock status. */
.fls-woo .stock.in-stock { color: var(--teal); font-weight: 700; }
.fls-woo .stock.out-of-stock { color: var(--pink); font-weight: 700; }

/* Tabs (description / additional information / reviews). */
.fls-woo .woocommerce-tabs {
  margin: 0 0 clamp(48px, 7vw, 80px);
}
/* Reset WC default tab chrome (borders, backgrounds, negative margins). */
.fls-woo .wc-tabs-wrapper,
.fls-woo .woocommerce-tabs { border: 0; }
.fls-woo .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid rgba(0, 0, 0, .08);
  background: none;
}
.fls-woo .woocommerce-tabs ul.tabs::before,
.fls-woo .woocommerce-tabs ul.tabs li::before,
.fls-woo .woocommerce-tabs ul.tabs li::after { display: none; }
.fls-woo .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  position: static;
}
.fls-woo .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  background: none;
}
.fls-woo .woocommerce-tabs ul.tabs li a:hover { color: var(--navy); }
.fls-woo .woocommerce-tabs ul.tabs li.active a {
  color: var(--navy);
  border-bottom-color: var(--teal);
  background: none;
}
.fls-woo .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 32px 0 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  line-height: 1.75;
}
.fls-woo .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-size: 1.4rem;
  margin-bottom: .6em;
}
.fls-woo .shop_attributes {
  width: 100%;
  border-collapse: collapse;
}
.fls-woo .shop_attributes th,
.fls-woo .shop_attributes td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, .08);
}
.fls-woo .shop_attributes th {
  font-family: var(--font-heading);
  background: var(--light);
  color: var(--navy);
  width: 220px;
}

/* Related / up-sells reuse the loop card via content-product.php. */
.fls-woo .related,
.fls-woo .up-sells {
  margin-top: clamp(40px, 6vw, 64px);
}
.fls-woo .related > h2,
.fls-woo .up-sells > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 32px;
}

/* =========================================================================
   3. Cart
   ========================================================================= */

.fls-cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.fls-cart-form { min-width: 0; }

.fls-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  overflow: hidden;
}
.fls-cart-table thead th {
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  text-align: left;
  padding: 16px 18px;
  background: var(--light);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.fls-cart-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  vertical-align: middle;
}
.fls-cart-table tr:last-child td { border-bottom: 0; }
.fls-cart-table .product-thumbnail img {
  width: 72px;
  height: auto;
  border-radius: 10px;
  display: block;
}
.fls-cart-table .product-name a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.fls-cart-table .product-name a:hover { color: var(--pink); }
.fls-cart-table .product-name .variation {
  margin: 6px 0 0;
  font-size: .85rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.fls-cart-table .product-name .variation dt,
.fls-cart-table .product-name .variation dd { display: inline; margin: 0; }
.fls-cart-table .product-price,
.fls-cart-table .product-subtotal {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.fls-cart-table a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light);
  color: var(--navy) !important;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.fls-cart-table a.remove:hover { background: var(--pink); color: #fff !important; }

/* Cart actions row (coupon + update). */
.fls-cart-table td.actions {
  background: var(--light);
  padding: 18px;
}
.fls-cart-table td.actions .coupon {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.fls-cart-table td.actions .coupon #coupon_code {
  padding: 11px 16px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  min-width: 180px;
}
.fls-cart-table td.actions button[name="update_cart"] { float: right; }

/* Cart totals (sidebar). */
.fls-cart-collaterals { min-width: 0; }
.fls-cart-collaterals .cart_totals {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.fls-cart-collaterals .cart_totals h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.fls-cart-collaterals .cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}
.fls-cart-collaterals .cart_totals th,
.fls-cart-collaterals .cart_totals td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  font-size: .95rem;
}
.fls-cart-collaterals .cart_totals th {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
}
.fls-cart-collaterals .cart_totals td { text-align: right; }
.fls-cart-collaterals .cart_totals .order-total th,
.fls-cart-collaterals .cart_totals .order-total td {
  font-size: 1.15rem;
  border-bottom: 0;
  padding-top: 16px;
}
.fls-cart-collaterals .cart_totals .order-total .amount { color: var(--navy); }
.fls-cart-collaterals .wc-proceed-to-checkout { display: flex; }
.fls-cart-collaterals .wc-proceed-to-checkout .checkout-button { width: 100%; }

/* Cross-sells under the cart reuse the product card grid. */
.fls-woo .cross-sells { grid-column: 1 / -1; margin-top: 8px; }
.fls-woo .cross-sells > h2 { font-size: 1.4rem; margin-bottom: 24px; }

/* Empty cart. */
.fls-woo .cart-empty,
.fls-woo .wc-empty-cart-message {
  font-size: 1.15rem;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  margin-bottom: 24px;
}
.fls-woo .return-to-shop { text-align: center; }

/* =========================================================================
   4. Checkout
   ========================================================================= */

.fls-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.fls-checkout__details { min-width: 0; }
.fls-checkout__review {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.fls-checkout #order_review_heading { font-size: 1.3rem; margin-bottom: 18px; }

/* Headings inside checkout (Billing details / Additional information). */
.fls-checkout h3,
.fls-checkout .woocommerce-billing-fields h3,
.fls-checkout .woocommerce-shipping-fields h3,
.fls-checkout .woocommerce-additional-fields h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

/* Form fields. */
.fls-woo .form-row { margin: 0 0 16px; padding: 0; }
.fls-woo .form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.fls-woo .form-row .required { color: var(--pink); border: 0; }
.fls-woo input.input-text,
.fls-woo textarea,
.fls-woo .woocommerce-Input,
.fls-woo select,
.fls-woo .select2-selection {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}
.fls-woo textarea { min-height: 120px; }
.fls-woo input.input-text:focus,
.fls-woo textarea:focus,
.fls-woo select:focus,
.fls-woo .woocommerce-Input:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: transparent;
}
/* Select2 (country / state dropdowns) brand alignment. */
.fls-woo .select2-container--default .select2-selection--single {
  height: auto;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  padding: 9px 6px;
}
.fls-woo .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  color: var(--ink);
  padding-left: 8px;
}

/* Order review table inside checkout. */
.fls-checkout__review .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.fls-checkout__review .shop_table th,
.fls-checkout__review .shop_table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  font-size: .95rem;
}
.fls-checkout__review .shop_table td { text-align: right; }
.fls-checkout__review .shop_table .product-name { text-align: left; font-weight: 600; }
.fls-checkout__review .order-total th,
.fls-checkout__review .order-total td {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  border-bottom: 0;
  padding-top: 16px;
}

/* Payment block (Stripe lives here — style the chrome, never the iframe). */
.fls-checkout #payment,
.fls-woo #payment {
  background: var(--light);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 4px;
}
.fls-woo #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.fls-woo #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.fls-woo #payment ul.payment_methods li label {
  display: inline;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin-left: 6px;
}
.fls-woo #payment .payment_box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  font-size: .92rem;
}
.fls-woo #payment .payment_box::before { display: none; }
.fls-woo #payment .place-order { padding: 0; margin-top: 8px; border: 0; }
.fls-woo #payment #place_order {
  width: 100%;
  background: var(--pink);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 28px;
}
.fls-woo #payment #place_order:hover { background: color-mix(in srgb, var(--pink) 86%, #000); }
.fls-woo .woocommerce-terms-and-conditions-wrapper { margin: 16px 0; font-size: .9rem; }

/* Login / coupon toggles at top of checkout. */
.fls-woo .woocommerce-form-login-toggle,
.fls-woo .woocommerce-form-coupon-toggle { margin-bottom: 18px; }

/* =========================================================================
   5. My Account
   ========================================================================= */

.fls-account {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.fls-account__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.fls-account__nav li { margin: 0; }
.fls-account__nav li a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.fls-account__nav li a:hover { background: var(--light); }
.fls-account__nav li.is-active a {
  background: var(--navy);
  color: #fff;
}
.fls-account__content { min-width: 0; }
.fls-account__content > h1,
.fls-account__content > h2 { font-size: 1.5rem; margin-bottom: 18px; }
.fls-account__welcome { margin-bottom: 24px; font-size: 1.05rem; }
.fls-account__welcome a { color: var(--pink); font-weight: 700; }

/* Account order tables. */
.fls-woo .woocommerce-orders-table,
.fls-woo .woocommerce-table--order-details,
.fls-woo .my_account_orders,
.fls-woo table.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  overflow: hidden;
}
.fls-woo .woocommerce-orders-table th,
.fls-woo .woocommerce-table--order-details th {
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  background: var(--light);
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.fls-woo .woocommerce-orders-table td,
.fls-woo .woocommerce-table--order-details td {
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: .95rem;
}
.fls-woo .woocommerce-orders-table .button { padding: 9px 18px; font-size: .85rem; }

/* Account address blocks. */
.fls-woo .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.fls-woo .woocommerce-Address {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  padding: 24px;
}
.fls-woo .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fls-woo .woocommerce-Address-title h3 { margin: 0; font-size: 1.15rem; }

/* =========================================================================
   6. Login form (standalone, when logged out)
   ========================================================================= */

.fls-login { max-width: 940px; margin: 0 auto; }
.fls-login__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.fls-login__form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.fls-login h2 { font-size: 1.4rem; margin-bottom: 20px; }
.fls-login .lost_password a { color: var(--pink); font-weight: 600; }
.fls-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.fls-login .woocommerce-form-login__rememberme input { width: auto; }

/* =========================================================================
   7. Notices
   ========================================================================= */

.fls-notice {
  border-radius: 14px;
  padding: 16px 20px 16px 52px;
  position: relative;
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: .98rem;
  line-height: 1.55;
  border: 1px solid transparent;
  list-style: none;
}
.fls-notice::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.fls-notice .button {
  margin-left: 14px;
  padding: 8px 18px;
  font-size: .82rem;
  vertical-align: middle;
}
.fls-notice--success {
  background: color-mix(in srgb, var(--teal) 14%, #fff);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--navy);
}
.fls-notice--success::before { background-color: var(--teal); }
.fls-notice--info {
  background: var(--light);
  border-color: rgba(0, 0, 0, .08);
  color: var(--navy);
}
.fls-notice--info::before { background-color: var(--navy); }
.fls-notice--error {
  background: color-mix(in srgb, var(--pink) 12%, #fff);
  border-color: color-mix(in srgb, var(--pink) 40%, transparent);
  color: var(--navy);
  margin: 0 0 22px;
  padding-left: 52px;
}
.fls-notice--error li { list-style: none; margin: 0; }
.fls-notice--error::before { background-color: var(--pink); }

/* =========================================================================
   8. Responsive
   ========================================================================= */

@media (max-width: 980px) {
  .fls-product-single { grid-template-columns: 1fr; }
  .fls-cart-page { grid-template-columns: 1fr; }
  .fls-checkout { grid-template-columns: 1fr; }
  .fls-checkout__review { position: static; }
  .fls-account { grid-template-columns: 1fr; }
  .fls-account__nav ul { flex-direction: row; flex-wrap: wrap; }
  .fls-login__cols { grid-template-columns: 1fr; }
  .fls-woo .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .fls-woo ul.products { grid-template-columns: 1fr; max-width: 420px; }

  /* Responsive cart table -> stacked rows (WooCommerce shop_table_responsive). */
  .fls-cart-table thead { display: none; }
  .fls-cart-table,
  .fls-cart-table tbody,
  .fls-cart-table tr,
  .fls-cart-table td { display: block; width: 100%; }
  .fls-cart-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 8px 0;
  }
  .fls-cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 0;
    padding: 10px 16px;
    text-align: right;
  }
  .fls-cart-table td::before {
    content: attr(data-title);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ink) 55%, transparent);
  }
  .fls-cart-table td.product-remove,
  .fls-cart-table td.product-thumbnail { justify-content: flex-start; }
  .fls-cart-table td.product-remove::before,
  .fls-cart-table td.product-thumbnail::before { display: none; }
  .fls-cart-table td.actions { display: block; }
  .fls-cart-table td.actions::before { display: none; }
  .fls-cart-table td.actions button[name="update_cart"] { float: none; width: 100%; margin-top: 10px; }
  .fls-cart-table td.actions .coupon { width: 100%; }
  .fls-cart-table td.actions .coupon #coupon_code { flex: 1 1 auto; min-width: 0; }

  .fls-product-single form.cart { flex-direction: column; align-items: stretch; }
  .fls-product-single form.cart .quantity { align-self: flex-start; }
  .fls-login__form { padding: 24px; }
}

/* =========================================================================
   9. Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  .fls-shop-card,
  .fls-woo a.button,
  .fls-woo button.button,
  .fls-woo .button { transition: none; }
  .fls-shop-card:hover { transform: none; }
}
