/* CLASSIC WOO PRODUCT GRID */
.woocommerce ul.products li.product,
ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    margin-top: auto;
}

/* WOO BLOCK PRODUCT GRID (Most likely what you're using) */
.wc-block-grid__products .wc-block-grid__product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-add-to-cart,
.wc-block-grid__products .wc-block-grid__product .wp-block-button {
    margin-top: auto;        /* push button to bottom */
}

.wc-block-grid__products .wc-block-grid__product .wp-block-button__link {
    width: 100%;             /* make button full width (optional) */
}
/* 1. Stop words from breaking in the middle */
.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    word-break: normal;
    hyphens: auto;
}

/* 2. Keep "ADD TO CART" on one line */
.wc-block-grid__products .wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
    white-space: nowrap;
}
/* WooCommerce BLOCK product grid */
.wc-block-grid__products .wc-block-grid__product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Space between content and button inside card */
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    margin-top: auto;
}

/* (Optional) Make buttons full width inside cards */
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link {
    width: 100%;
    text-align: center;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
/* Make sure nothing can stretch past the screen width */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Common culprits: images and product grids */
img {
    max-width: 100%;
    height: auto;
}

.wc-block-grid__products {
    overflow-x: hidden;
}
/* Limit text width on mobile ONLY inside main content */
@media (max-width: 768px) {

  /* Paragraphs & headings in main content areas */
  .entry-content p,
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6,
  .wp-block-post-content p,
  .wp-block-post-content h1,
  .wp-block-post-content h2,
  .wp-block-post-content h3,
  .wp-block-post-content h4,
  .wp-block-post-content h5,
  .wp-block-post-content h6 {
    max-width: 36rem;      /* try 32rem if you want it narrower */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* Full-page background for the password page */
.page .jo-password-page {
    min-height: 100vh;
    background-color: #E3DFCE; /* your cream */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Card layout */
.jo-password-page {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    background: #E3DFCE; /* same cream, can change to white if you want a card look */
}

/* Logo */
.jo-password-page img {
    max-width: 150px;
    height: auto;
    margin: 0 auto 24px auto;
    display: block;
}

/* Headline + subhead */
.jo-password-page h1 {
    font-size: 28px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #1A0905; /* warm black */
}

.jo-password-page h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1A0905;
}

/* Body copy */
.jo-password-page p {
    font-size: 15px;
    line-height: 1.6;
    color: #1A0905;
    margin-bottom: 24px;
}

/* Password input & button – adjust selectors once plugin is chosen */
.jo-password-page input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid #1A0905;
    margin-bottom: 12px;
    background: #fff;
}

.jo-password-page input[type="submit"],
.jo-password-page button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    background-color: #94B1C8; /* dusty blue */
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.jo-password-page input[type="submit"]:hover,
.jo-password-page button:hover {
    opacity: 0.9;
}