/* =========================
   BASE RESET / GLOBALS
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: 200%;
}

/* plain outside the wrapper */
body {
  min-height: 100vh;
  background: #807d7d;
  color: #fff;
}

/* =========================
   WRAPPER
========================= */

:root {
  --wrap-max: 1200px;
  --text-max: 900px;
  --content-pad: 2rem;
  /* your inner padding for normal blocks */
}

.site-wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(to bottom, #fa1807 0%, #000 100%);
}

/* =========================
   GLOBAL TYPOGRAPHY
========================= */

.wp-block-post-content,
.entry-content,
.site-content {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-nav a,
.nav-menu a,
.site-title {
  font-family: 'Jolly Lodger', cursive;
  font-weight: 400;
}

.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
 font-family: 'Jolly Lodger', cursive !important;
  letter-spacing: 0.04em;
}

h1 {
  font-size: 220%;
  margin-top: 1%;
  text-align: center;
  font-family: 'Jolly Lodger', cursive !important;
}

h2 {
  font-size: 180%;
  margin-top: 1%;
  text-align: center;
  font-family: 'Jolly Lodger', cursive !important;
}


h3 {
  font-size: 120%;
  margin-top: 1%;
  font-family: 'Jolly Lodger', cursive !important;
}

/* =========================
   HEADER (preserved)
========================= */

.site-header {
  background-color: #000;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Inner layout */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 1rem 2rem;
  /* header padding lives here */
}

/* Branding group */
.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.skull-icon,
.skull-wordmark {
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

.skull-icon {
  max-height: 80px;
}

.skull-wordmark {
  max-height: 80px;
}

/* =========================
   NAV (desktop + mobile)
========================= */

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.main-nav ul,
.main-nav .nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  text-decoration: none;
  font-family: 'Jolly Lodger', cursive;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #f00aa4;
  text-decoration: none;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav .nav-menu {
    flex-direction: column;
  }

  .skull-icon {
    max-height: 48px;
    width: auto;
  }

  .header-inner {
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .branding {
    max-width: calc(100vw - 60px);
    overflow: hidden;
  }

  .skull-wordmark {
    flex-shrink: 1;
    min-width: 0;
    max-height: 48px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .skull-icon {
    max-height: 44px;
  }

  .skull-wordmark {
    max-height: 44px;
    max-width: 62vw;
  }
}

@media (max-width: 390px) {
  .skull-wordmark {
    max-width: 70vw;
  }
}

/* =========================
   SITE CONTENT
========================= */

/* IMPORTANT:
   No padding here — so "full width inside site-wrap" is possible.
   We will add padding back only to NORMAL blocks (not hero).
*/
.site-content {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0;
}

/* Your template wraps ALL content in .page-text.
   So .page-text must NOT constrain width anymore.
*/
.page-text {
  margin: 0;
  padding: 0;
  max-width: none;
  font-size: 110%;
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: 200%;
}

.intro-text {
  font-size: 20px;
  line-height: 1.6;
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
}

/* Default styling for most Gutenberg blocks inside .page-text:
   centered, readable width, with inner padding.
*/
.page-text>* {
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
}

.page-text>.wp-block-image figcaption {
  font-size: 14pt;
  font-style: italic;
  text-align: center;
  color: #fff;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
}

.intro-header {
  text-align: center;
  font-family: 'Jolly Lodger', cursive !important;
  font-weight: 400;
  font-size: 180%;
  /* optional but nice for readability */
}

#metaslider-id-145 {
  margin-bottom: 3rem !important;
}

.page-text h2,
.wp-block-post-content h2,
.entry-content h2 {
  font-family: 'Jolly Lodger', cursive !important;
}


.page-text h1 {
  margin-top: 1.5rem;
}

.wp-block-group:has(h1) {
  padding: 0 !important;
  gap: 0 !important;
}

.wp-block-heading{
    padding:  0 !important;
 }

/* =========================
   HERO IMAGE (THE FIX)
========================= */

/* When you add class "hero-image" to an Image block,
   Gutenberg outputs: <figure class="wp-block-image ... hero-image">
*/
.page-text>.wp-block-image.hero-image {
  max-width: none;
  /* stop the 900px clamp */
  width: 100%;
  padding-left: 0;
  /* kill inner padding */
  padding-right: 0;
  margin: 0 0 2% 0;
  /* top 0, bottom 2% */
}

.page-text>.wp-block-image.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* If you ever use alignfull/alignwide, keep them from getting clamped too */
.page-text>.alignfull,
.page-text>.alignwide {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   GALLERY GRID (your existing)
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================
   FOOTER (preserved)
   ============================ */

.site-footer {
  width: 100%;
  padding: 0;
  background-color: #000;
  margin: 0;
}

.footer-inner {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 2rem;
}

/* New footer content */

.site-footer {
  width: 100%;
  padding: 10px 0;
  background-color: #000;
  margin: 0;
}

.skull-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.skull-footer-inner h3 {
  color: #ffffff;
  font-family: 'Jolly Lodger', cursive;
  font-size: 1.4em;
  margin-bottom: 16px;
}

.skull-social a {
  color: #cccccc;
  font-size: 16px;
  text-decoration: none;
}

.skull-social a:hover {
  color: #ffffff;
}

.skull-social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

@media (max-width: 600px) {
  .skull-social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
}

.skull-social {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}


/* =========================
   WOOCOMMERCE SHOP
========================= */

.woocommerce ul.products {
  padding: 0 5%;
}

.woocommerce ul.products li.product {
  text-align: center;
}

/* Padding above shop grid */
.woocommerce ul.products {
  padding: 2% 5% 0 5%;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.5em;
  color: #ffffff;
  line-height: .7;
  margin-bottom: 0.2em;
}

/* Product price */
.woocommerce ul.products li.product .price {
  font-size: 1em;
  color: #FFD700;
  line-height: .7;
  margin-bottom: 0.2em;
}


/* =========================
   WOOCOMMERCE SINGLE PRODUCT FORM
========================= */

/* Overall product area padding */
.woocommerce div.product {
  padding: 2% 5%;
}

/* Variation labels (Hat sizes, AS Color colors) */
.woocommerce div.product .variations label {
  font-size: 1.2em;
  color: #d3d3d3;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}

/* Dropdown selects */
.woocommerce div.product .variations select {
  font-size: 1.2em;
  color: #d3d3d3;
  background-color: #8b0000;
  border: 1px solid #d3d3d3;
  padding: 0.3em 0.5em;
}

/* SKU and Category text */
.woocommerce div.product .product_meta {
  font-size: 1em;
  color: #d3d3d3;
  margin-top: 1em;
}

/* Category link */
.woocommerce div.product .product_meta a {
  color: #FFD700;
}

/* Add to cart button */
.woocommerce div.product .single_add_to_cart_button {
  background-color: #8b0000;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1.2em;
}


/* Single product page price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #FFD700;
  font-size: 2em;
}


/* Size Guide Table - readability fixes */
#size-guide td,
#size-guide th {
  color: #cccccc !important;
  font-size: 16px !important;
}

/* Header row (XS, S, M, L, XL, 2XL) - white */
#size-guide thead th,
#size-guide thead td {
  color: #ffffff !important;
}

/* Responsive width */
#size-guide {
  min-width: unset !important;
  width: 100% !important;
}

/* Clear variations link */
a.reset_variations {
  color: #cccccc !important;
  font-size: 16px !important;
}

a.reset_variations:hover {
  color: #ffffff !important;
}

/* =============================================
   WOOCOMMERCE CART & CHECKOUT
   All rules consolidated — do not add piecemeal
   below this section.
   ============================================= */

/* --- 5% side padding on desktop --- */
@media (min-width: 768px) {
  main.site-content .wp-block-woocommerce-checkout,
  main.site-content .wp-block-woocommerce-cart {
    padding-left: 5% !important;
    padding-right: 5% !important;
    box-sizing: border-box;
  }
  .wc-block-components-sidebar-layout {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* --- Base: all text Roboto 14px --- */
body.woocommerce-cart *,
body.woocommerce-checkout * {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #ffffff;
}

/* --- Headings & column headers: Jolly Lodger 24px --- */
body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-cart h4,
body.woocommerce-cart th,
body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout h4,
body.woocommerce-checkout th,
body.woocommerce-cart .wc-block-cart__items-header,
body.woocommerce-cart .wc-block-cart__items-header span,
body.woocommerce-checkout .wc-block-components-order-summary__title,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax-value,
body.woocommerce-cart [class*="__title"],
body.woocommerce-cart [class*="__header"],
body.woocommerce-checkout [class*="__title"],
body.woocommerce-checkout [class*="__header"] {
  font-family: 'Jolly Lodger', cursive !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

/* --- Subtotal / Standard / Estimated total labels: Roboto, NOT Jolly Lodger --- */
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-footer-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item__value,
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item__value {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  color: #ffffff !important;
}

/* --- Links: light gray 18px, white on hover --- */
body.woocommerce-cart a,
body.woocommerce-checkout a {
  color: #cccccc !important;
  font-size: 18px !important;
  text-decoration: none !important;
}
body.woocommerce-cart a:hover,
body.woocommerce-checkout a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* --- Form field text: dark inside white boxes --- */
body.woocommerce-cart input,
body.woocommerce-checkout input,
body.woocommerce-cart select,
body.woocommerce-checkout select,
body.woocommerce-cart textarea,
body.woocommerce-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-text-input input::placeholder,
.wc-block-components-text-input label,
.wc-block-components-country-input input,
.wc-block-components-country-input label,
.wc-block-components-select select,
.wc-block-components-select label {
  color: #333333 !important;
  font-size: 14px !important;
}

/* --- Country/state floating label: small, above value --- */
.wc-block-components-country-input,
.wc-block-components-select {
  position: relative;
}
.wc-block-components-country-input.has-value label,
.wc-block-components-select.has-value label {
  display: none !important;
}
.wc-block-components-country-input select,
.wc-block-components-select select {
  color: #333333 !important;
  background-color: #ffffff !important;
}

/* --- Validation errors: white --- */
.wc-block-components-validation-error,
.wc-block-components-validation-error p {
  color: #ffffff !important;
  font-size: 14px !important;
}

/* --- "Or continue below" divider --- */
.wc-block-components-express-payment__title,
.wc-block-components-express-payment-continue-rule__rule,
.wc-block-components-express-payment-continue-rule span,
[class*="continue-rule"] {
  color: #ffffff !important;
  font-size: 14px !important;
}

/* --- View Cart button: gold --- */
.woocommerce a.button.wc-forward,
.woocommerce-notices-wrapper a.button,
a.button.wc-forward,
.added_to_cart.wc-forward {
  background-color: #FFD700 !important;
  color: #000000 !important;
  font-size: 16px !important;
  padding: 12px 28px !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.woocommerce a.button.wc-forward:hover,
.added_to_cart.wc-forward:hover {
  background-color: #e6c200 !important;
  color: #000000 !important;
}

/* --- Place Order button: gray, bold --- */
.wc-block-components-checkout-place-order-button {
  background-color: #cccccc !important;
  color: #000000 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  border: none !important;
}
.wc-block-components-checkout-place-order-button:hover {
  background-color: #bbbbbb !important;
  color: #000000 !important;
}


/* The Book page - columns block margins and padding */
.page-the-book .wp-block-columns,
body.page-id-22 .wp-block-columns {
  padding-left: 5% !important;
  padding-right: 5% !important;
  padding-top: 5% !important;
  box-sizing: border-box;
}

/* Separator / white rule - padding above and below */
.page-the-book .wp-block-separator,
body.page-id-22 .wp-block-separator {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}