:root {
  --brand-primary: rgb(94, 91, 176);   /* adjust */
  --brand-primary-rgb: 94, 91, 176;   /* adjust */
  --brand-secondary: #6F6DBD; /* adjust */
  --brand-highlight: #e7e7ff;; /* adjust */
  --brand-dark: #111827;
  --brand-light: #F7F7FB;
  --color-muted: #6b7280;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}
.site-main { min-height: 60vh; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
body {
  color: var(--brand-dark);
  background-color: var(--brand-light);
  font-family: var(--font-body);
}
h1 {
  color: var(--brand-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  font-style: normal;
}

.brand-primary {
  background-color: var(--brand-primary);
}
.brand-secondary {
  background-color: var(--brand-secondary);
}
.brand-light {
  background-color: var(--brand-light);
}
.brand-highlight {
  background-color: var(--brand-highlight);
}
.text-brand-light {
  color: var(--brand-light);
}
.text-brand-primary {
  color: var(--brand-primary);
}
.text-brand-secondary {
  color: var(--brand-secondary);
}
.text-brand-dark {
  color: var(--brand-dark);
}
.text-muted {
  color: var(--color-muted);
}
.navbar-dark {
  background-color: var(--brand-primary) !important;
}
.navbar-dark .navbar-brand:hover {
    text-decoration: none;
}
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-light);
}
.btn-primary:hover {
  background-color: var(--brand-highlight);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}
.navbar-dark .navbar-nav .nav-link:hover {
    text-decoration: none;
}
/* Woo products grid polish */
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--brand-primary);
  padding: .25rem;
  border-radius: 5px;
  color: var(--brand-primary);
}

.woocommerce ul.products {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2rem;
}

.woocommerce ul.products li.product {
  /* border: 1px solid rgba(0,0,0,0.08); */
  border: 1px solid rgba(var(--brand-primary-rgb), 0.45);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products::before {
  content: none !important;
  display: none !important;
}

.woocommerce ul.products li.product a img {
  border-radius: 10px;
  margin-bottom: 10px;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.woocommerce ul.products li.product .price {
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: auto;
}

.woocommerce ul.products li.product .button {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  border-radius: 10px;
  text-align: center;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--brand-highlight);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* --- Woo single product layout polish --- */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* single product desktop layout */
@media(min-width: 992px) {
  body.single-product div.product.type-product {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    grid-template-areas: 
      "gallery summary"
      "gallery description"
      "related related";
    column-gap: 10rem !important;
    align-items: start;
  }
  body.single-product .woocommerce-product-gallery {
    grid-area: gallery;
  }
  body.single-product .summary {
    grid-area: summary;
  }
  body.single-product .woocommerce-tabs {
    grid-area: description;
  }
  body.single-product .related.products {
    grid-area: related;
  }
  /* body.single-product.woocommerce div.product div.images img {
    max-height: 60vh !important;
    object-fit: contain !important;
    border-radius: 12px; */
  body.single-product .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: var(--brand-light);
    max-height: 520px;
  }
  body.single-product .woocommerce-product-gallery__image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block
  }
  /* fixing tabs font size */
  body.single-product div.product .woocommerce-tabs ul.tabs {
    font-size: 1em;
    margin-bottom: 0;
  }
  .woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.5em;
    text-align: center;
  }
  body.single-product .woocommerce-Tabs-panel {
    padding: 0 1em !important;
  }
  body.single-product .product_meta {
    font-size: 1em !important;
    text-align: center;
  }
  body.single-product.woocommerce div.product .product_title {
    color: var(--brand-primary);
    font-weight: 700;
  }
  body.single-product.woocommerce div.product p.price, .woocommerce div.product span.price{
    color: var(--brand-dark)
  }
}

/* @media (min-width: 991px) {
  body.single-product div.product.type-product {
    display: block;
  }
} */

@media (max-width: 991px) {
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }
}

/* Constrain image area */
.woocommerce div.product div.images {
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Make summary read like a boutique */
.woocommerce div.product div.summary {
  width: 100% !important;
}

.woocommerce div.product .product_title {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Button styling */
.woocommerce div.product form.cart .button {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
}

.woocommerce div.product form.cart .button:hover {
  background: var(--brand-highlight);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Woocommerce single product */
body.single-product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  column-gap: .5rem;
  row-gap: .5rem;
  margin-top: 1rem !important;
  justify-content: center;
}
body.single-product div.product{
  gap: 0rem !important;
}
body.single-product div.product .product_title{
  font-size: 1.5em;
}
body.single-product p.price{
  margin: 0;
}
body.single-product div.product form.cart .button{
  padding: 0.8rem 3rem;
} 
body.single-product div.product form.cart {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
} 
body.single-product .product_meta {
  font-size: 0.8em;
}
/* additional product details */
body.single-product div.product .woocommerce-tabs ul.tabs li {
  width: 100%;
  align-content: center;
  text-align: center;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
  display: flex;
  padding: 0;
  font-size: .8em;
  justify-content: flex-start;
  border-radius: 5px;
}

body.single-product div.product .woocommerce-tabs {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--brand-primary-rgb),0.4);
  border-radius: 5px;
}

body.single-product .woocommerce-Tabs-panel {
  padding: 1em !important;
  color: var(--brand-dark);
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

body.single-product section.related.products {
  margin-top: 1em;
}

/*  Fluent CSS Form Customizations*/
/* label titles */
.ff-default .ff-el-input--label label {
  color: var(--brand-primary);
}
/* field border color */
.ff-default .ff-el-form-control{
  border: 1px solid var(--brand-primary);
}
/* gap between firstname and lastname */
.frm-fluent-form .ff-t-container {
  gap: 50px;
}
/* submit button background color */
form.fluent_form_3 .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--brand-primary) !important;
}
/* button bottom margin reset */
.ff-el-group.ff-text-left.ff_submit_btn_wrapper {
  margin-bottom: -10px;
}
.small-lead {
  font-size: 1.0rem;
}

/* about css */
.wp-block-heading {
  color: var(--brand-primary);
}


@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}