/*
Theme Name: Art n Cast
Theme URI: https://artncast.studio
Author: Art n Cast Studio
Description: Complete production-ready layout and styling for Art n Cast.
Version: 9.4
*/

/* ==========================================================================
   1. GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #272522;
  --gold: #b89563;
  --gold-dark: #967344;
  --footer-bg: #ede3d1;
  --footer-text: #272522;
  --footer-muted: #71685a;
  /* Header background — kept separate from --white (which also drives the
     body background, mega-menu and mobile drawer) so dark mode can give
     just the header bar its own tone without recolouring those too. */
  --header-bg: var(--white);
  /* Used for "solid ink" UI elements (buttons/panels that are always a
     dark colour with light text on top of them) — kept separate from
     --text (body/heading foreground colour) so dark mode can flip
     --text to a light colour for readability without also flipping
     these elements into a light-background-with-white-text mess. Same
     value as --text in light mode, so nothing changes visually here. */
  --ink: #272522;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background-color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1320px, 94%);
  margin: auto;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   2. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: var(--cream);
  padding: 8px 20px;
  font-size: 11px;
  text-align: center;
  color: #555;
}

.top-bar span {
  margin: 0 15px;
}

/* ==========================================================================
   3. SITE HEADER & LOGO LAYOUT
   ========================================================================== */
header.site-header {
  background: var(--header-bg);
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #e8e8e8;
}

.header-container {
  height: 105px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: static;
}

a.logo,
.site-header a.logo,
.mobile-drawer-logo {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  text-decoration: none !important;
  color: var(--text) !important;
  flex-shrink: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

.logo:hover {
  opacity: 0.88;
}

.logo-svg-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.logo-svg-container svg {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  flex-shrink: 0 !important;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.logo-text .brand-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--text) !important;
  display: block !important;
  margin: 0 !important;
}

.logo-text small,
.logo-text .brand-tagline {
  display: block !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  letter-spacing: 2.2px !important;
  margin-top: 6px !important;
  color: #55524e !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

/* ==========================================================================
   4. DESKTOP NAVIGATION & MEGAMENU
   ========================================================================== */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-links > a {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-links > a:hover {
  color: var(--gold-dark);
}

.nav-icons {
  display: flex;
  gap: 20px;
  font-size: 13px;
  align-items: center;
  flex-shrink: 0;
  font-weight: 500;
}

.nav-item.has-dropdown {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item-title {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
  cursor: pointer;
  font-weight: 500;
}

.nav-item.has-dropdown:hover .nav-item-title {
  color: var(--gold-dark);
}

.nav-item.has-dropdown:hover .nav-item-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text);
}

.subsequent-menu-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1001;
}

.nav-item.has-dropdown:hover .subsequent-menu-box {
  display: block;
}

.mega-grid-container {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 40px 0 45px 0;
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr) 260px;
  gap: 30px;
  text-align: left;
}

.mega-col.title-col h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.col-heading {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.mega-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-col li {
  margin-bottom: 10px !important;
  list-style: none !important;
}

.mega-col a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s ease;
}

.mega-col a:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   5. COMPLETE FOOTER STYLING
   ========================================================================== */
footer {
  background-color: var(--footer-bg, #f7f4ef);
  color: var(--footer-text, #272522);
  padding: 60px 0 30px 0;
  border-top: 1px solid #e8e8e8;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr repeat(3, 1fr) !important;
  gap: 40px !important;
  align-items: start !important;
}

.footer-about .footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex !important;
  gap: 12px !important;
}

.footer-social a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  transition: all 0.2s ease !important;
}

.footer-social a:hover {
  background-color: var(--ink, #272522) !important;
}

.footer-social svg {
  width: 18px !important;
  height: 18px !important;
  fill: #272522 !important;
  transition: fill 0.2s ease !important;
}

.footer-social a:hover svg {
  fill: var(--gold) !important;
}

.footer-grid h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  color: var(--text, #272522);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-grid li {
  margin-bottom: 10px !important;
}

.footer-grid a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #000;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: #777;
}

/* ==========================================================================
   6. WOOCOMMERCE SHOP & GALLERY PRODUCT LAYOUT
   ========================================================================== */
.woocommerce-page-wrap {
  padding: 40px 0 80px;
}

.woocommerce-page-wrap h1.entry-title,
.woocommerce-page-wrap h1.page-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 40px;
  text-align: center;
}

/* Shop Grid */
.woocommerce-page-wrap ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-page-wrap ul.products li.product a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.woocommerce-page-wrap ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream);
  margin-bottom: 14px;
}

/* Sale Badge Positioning */
.woocommerce span.onsale,
.woocommerce-page-wrap span.onsale {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  background-color: var(--gold-dark) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 6px 12px !important;
  border-radius: 2px !important;
  z-index: 10 !important;
  margin: 0 !important;
}

/* SPACED SIDE-BY-SIDE PRODUCT PAGE LAYOUT */
.woocommerce #content div.product, 
.woocommerce div.product, 
.woocommerce-page #content div.product, 
.woocommerce-page div.product,
.woocommerce-page-wrap div.product {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 0 20px !important;
  float: none !important;
  width: 100% !important;
}

/* Left Column: Image wrapper anchor */
.woocommerce #content div.product div.images, 
.woocommerce div.product div.images, 
.woocommerce-page #content div.product div.images, 
.woocommerce-page div.product div.images,
.woocommerce-page-wrap div.product div.images {
  float: none !important;
  width: 44% !important;
  flex: 0 0 44% !important;
  max-width: 44% !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce-page-wrap div.product div.images .woocommerce-product-gallery__wrapper {
  order: 1;
}

/* Strict Square Box for the preview image */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce-page-wrap .woocommerce-product-gallery__image {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  position: relative !important;
  cursor: zoom-in;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce-page-wrap .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px;
  background: var(--cream);
}

/* Precise Custom Preview Arrows Anchored to the Product Image Edges */
.custom-gallery-arrow {
  position: absolute !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #272522 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  z-index: 9999 !important;
  cursor: pointer !important;
  font-size: 15px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: background-color 0.2s, transform 0.2s !important;
}

.custom-gallery-arrow:hover {
  background-color: #ffffff !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.custom-prev-arrow {
  left: 12px !important;
}

.custom-next-arrow {
  right: 12px !important;
  left: auto !important;
}

/* Confine full-screen lightbox zoom trigger strictly to the center */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 20% !important;
  left: 20% !important;
  width: 60% !important;
  height: 60% !important;
  display: block !important;
  opacity: 0 !important;
  z-index: 1000 !important;
  text-indent: -9999px !important;
  cursor: zoom-in !important;
}

/* Flexslider Thumbnails Layout below main square image */
.woocommerce div.product .flex-control-thumbs,
.woocommerce-page-wrap .flex-control-thumbs {
  order: 2;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  position: relative;
  z-index: 13;
}

.woocommerce div.product .flex-control-thumbs li,
.woocommerce-page-wrap .flex-control-thumbs li {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.woocommerce div.product .flex-control-thumbs img,
.woocommerce-page-wrap .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: 0.2s;
}

.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover,
.woocommerce-page-wrap .flex-control-thumbs img.flex-active,
.woocommerce-page-wrap .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--gold);
}

/* Right Column: Summary / Purchase Box (44% width) */
.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary, 
.woocommerce-page #content div.product div.summary, 
.woocommerce-page div.product div.summary,
.woocommerce-page-wrap div.product div.summary {
  float: none !important;
  width: 44% !important;
  flex: 0 0 44% !important;
  max-width: 44% !important;
  padding-top: 0 !important;
}

/* Hide duplicate variation price blocks if they double-render */
.woocommerce div.product.product-type-variable div.summary > p.price:first-of-type {
  display: none !important;
}

.woocommerce div.product h1.product_title,
.woocommerce-page-wrap div.product .summary h1.product_title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 12px;
  text-align: left;
}

.woocommerce div.product p.price,
.woocommerce-page-wrap div.product .summary p.price {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 20px;
}

.woocommerce-page-wrap div.product .summary p.price ins {
  text-decoration: none;
  color: var(--gold-dark);
}

.woocommerce-page-wrap div.product .summary p.price del {
  opacity: 0.55;
  margin-right: 8px;
  font-size: 15px;
}

/* Variations Table / Form Controls Styling */
.woocommerce-page-wrap table.variations {
  width: 100%;
  border: none;
  margin-bottom: 20px;
}

.woocommerce-page-wrap table.variations tr {
  display: block;
  margin-bottom: 14px;
}

.woocommerce-page-wrap table.variations th.label {
  display: block;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--text);
  padding: 0 0 6px;
}

.woocommerce-page-wrap table.variations td.value {
  display: block;
  padding: 0;
}

.woocommerce-page-wrap table.variations select,
.woocommerce-page-wrap .woocommerce-product-details__short-description input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

/* Cart Form & Add to Cart Button styling now lives in
   artncast-wc-styles.css, with correct handling for both simple and
   variable products (variable products wrap the button row differently
   — see that file's comments). The old unconditional
   ".../form.cart { display:flex }" rule that used to be here was
   silently overriding that, since it applied to variation forms too
   with no exclusion, while the newer rule explicitly opts out of
   matching those — a rule that doesn't match anything doesn't "win",
   it just leaves the older one uncontested. Removed here rather than
   patched, so there's only one place this is defined going forward. */

.woocommerce-page-wrap div.product .quantity input.qty {
  width: 60px;
  padding: 14px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  text-align: center;
}

.woocommerce div.product form.cart .button,
.woocommerce-page-wrap div.product .single_add_to_cart_button {
  background-color: var(--ink) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 25px;
  border-radius: 2px;
  font-weight: 600;
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--ink);
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce-page-wrap div.product .single_add_to_cart_button:hover {
  background-color: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: #fff !important;
}

/* Product Tabs and Meta Spacing */
.woocommerce div.product .woocommerce-tabs,
.woocommerce-page-wrap .woocommerce-tabs {
  order: 3 !important;
  flex-basis: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.woocommerce-page-wrap .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border-bottom: 1px solid #eee;
}

.woocommerce-page-wrap .woocommerce-tabs ul.tabs li a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
}

.woocommerce-page-wrap .woocommerce-tabs ul.tabs li.active a {
  color: var(--text);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 14px;
  display: inline-block;
}

/* ==========================================================================
   7. FULLSCREEN LIGHTBOX (PHOTOSWIPE) ARROW POSITIONING
   ========================================================================== */
.pswp__button--arrow--left {
  left: 20px !important;
}

.pswp__button--arrow--right {
  right: 20px !important;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.pswp__button--arrow--left:hover,
.pswp__button--arrow--right:hover {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================================
   8. RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 850px) {
  .woocommerce div.product,
  .woocommerce-page-wrap div.product {
    flex-direction: column !important;
  }
  .woocommerce div.product div.images,
  .woocommerce-page-wrap div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce-page-wrap div.product div.summary {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .custom-gallery-arrow {
    top: 45vw !important;
  }
}

@media (max-width: 900px) {
  .woocommerce-page-wrap ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  /* .container alone only gives a ~3% side margin, which shrinks to
     just 10-12px on a typical phone width — plenty for hero sections
     with their own card/image padding, but not enough breathing room
     for the footer's plain text and link lists, which end up reading
     as flush against the screen edge. */
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-about {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   9. MOBILE HEADER — hamburger button, full-screen drawer, accordions
   ---------------------------------------------------------------------------
   Rebuilt against the actual header.php markup: the hamburger is a single
   <button id="mobile-menu-btn"> wrapping an inline SVG (not 3 <span>
   bars), and there's a separate dedicated <button id="mobile-close-btn">
   inside the drawer for closing it — different pattern than assumed
   last time. This replaces that earlier attempt.
   ========================================================================== */

/* Hamburger button — hidden on desktop */
.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--gold-dark);
  z-index: 1100;
}

/* Left slide-in drawer. .nav-mobile is the full-screen dimmed backdrop
   (click it to close); .mobile-nav-inner is the white panel that slides in
   from the left. Sub-menus are extra panels that slide in over the top. */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 16, 10, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background .35s ease, visibility 0s linear .4s;
}
body.menu-open .nav-mobile {
  background: rgba(20, 16, 10, .5);
  visibility: visible;
  pointer-events: auto;
  transition: background .35s ease, visibility 0s;
}

.mobile-nav-inner {
  position: relative;
  width: min(380px, 88vw);
  height: 100%;
  background: var(--white);
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  transform: translateX(-102%);
  transition: transform .4s cubic-bezier(.22,.8,.26,1);
  box-shadow: 8px 0 40px rgba(0,0,0,.18);
}
body.menu-open .mobile-nav-inner { transform: translateX(0); }

.mobile-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 26px 40px;
  transition: transform .4s cubic-bezier(.22,.8,.26,1), opacity .3s ease;
}
.mobile-panel-main.is-pushed {
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

.mobile-subpanel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 26px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s cubic-bezier(.22,.8,.26,1), visibility 0s linear .4s;
}
.mobile-subpanel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .4s cubic-bezier(.22,.8,.26,1), visibility 0s;
}
.mobile-subpanel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.mobile-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 6px;
  color: var(--text);
}
.mobile-subpanel-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
}

.mobile-drawer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.mobile-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  order: 1;
}
.mobile-drawer-logo { order: 2; }
.mobile-drawer-search { order: 3; flex: 1 0 100%; }
.mobile-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 9px 16px;
}
.mobile-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  font-family: "DM Sans", sans-serif;
}
.mobile-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-shrink: 0;
}

/* Top-level items */
.mobile-nav-item { border-bottom: 1px solid #f0f0f0; }
.mobile-nav-item > a {
  display: block;
  padding: 17px 0;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text);
}
.mobile-drill-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text);
  text-align: left;
}
.mobile-drill-arrow { font-size: 20px; color: var(--gold-dark); }

.mobile-sub-group { padding: 4px 0 18px; }
.mobile-sub-title {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #999;
  margin-bottom: 8px;
}
.mobile-sub-group a {
  display: block;
  padding: 9px 0;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--text);
}

/* Account / Cart row at the bottom of the drawer */
.mobile-nav-utility {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  margin-top: 10px;
}
.mobile-nav-utility a,
.mobile-nav-utility .nav-cart-trigger {
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-icons {
    display: none !important;
  }
  .menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 1;
    justify-self: start;
  }
  a.logo {
    order: 2;
    justify-self: center;
  }
  /* Hamburger on the left, logo centred */
  .header-container {
    height: 78px !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .header-container .menu-btn { grid-column: 1; }
  .header-container a.logo { grid-column: 2; }
}

/* Safety net: never show the drawer on desktop even if body.menu-open
   somehow gets left on (e.g. resized from mobile to desktop while open) */
@media (min-width: 1101px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   10. FLOATING MOBILE MENU BUTTON
   ---------------------------------------------------------------------------
   Hidden by default; JS toggles a .visible class once the page has been
   scrolled past the header's height, so the hamburger stays reachable
   without scrolling back to the top. Only relevant on mobile widths —
   desktop always shows the full nav, no floating button needed.
   ========================================================================== */
.menu-btn-floating {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1150;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  border: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(150,115,68,.35);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .menu-btn-floating {
    display: flex;
  }
}
.menu-btn-floating.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Hide it while the drawer itself is open, so it doesn't sit on top of it */
body.menu-open .menu-btn-floating {
  opacity: 0;
  pointer-events: none;
}
.mobile-drawer-logo .brand-title { color: #272522; }
.mobile-drawer-logo .brand-tagline { color: #55524e; }

/* Small phones: shrink the header logo so it stays centred beside the left hamburger */
@media (max-width: 480px) {
  .header-container a.logo { transform: scale(.78); transform-origin: center; }
}

/* Hover tones: hamburger button + slide-in menu rows */
.menu-btn,
.menu-btn-floating {
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  border-radius: 50%;
}
.menu-btn { width: 44px; height: 44px; padding: 0; }
.menu-btn:hover,
.menu-btn:focus-visible {
  background: rgba(184, 149, 99, .18);
  color: var(--gold-dark);
  outline: none;
}
.menu-btn:active { transform: scale(.94); }
.menu-btn-floating:hover { background: #b08a4f; transform: translateY(0) scale(1.06); }

.mobile-drill-btn,
.mobile-nav-item > a,
.mobile-sub-group a,
.mobile-close-btn,
.mobile-back-btn {
  transition: color .2s ease, background-color .2s ease, padding-left .2s ease;
}
.mobile-drill-btn:hover,
.mobile-nav-item > a:hover,
.mobile-sub-group a:hover {
  color: var(--gold-dark);
  padding-left: 6px;
}
.mobile-close-btn:hover,
.mobile-back-btn:hover { color: var(--gold-dark); }

/* Hamburger icon animation: lines slide on hover, button pops on click */
.menu-btn svg line {
  transition: transform .3s cubic-bezier(.22,.8,.26,1);
  transform-box: fill-box;
  transform-origin: center;
}
.menu-btn:hover svg line:nth-child(2),
.menu-btn:focus-visible svg line:nth-child(2) { transform: translateX(3px) scaleX(.7); }
.menu-btn:hover svg line:nth-child(3),
.menu-btn:focus-visible svg line:nth-child(3) { transform: translateX(-3px) scaleX(.7); }
.menu-btn:hover svg line:nth-child(1),
.menu-btn:focus-visible svg line:nth-child(1) { transform: scaleX(1.1); }
.menu-btn:active { transform: scale(.88) rotate(90deg); }
.menu-btn-floating:active { transform: scale(.88); }
.menu-btn.is-popping { animation: menuBtnPop .35s ease; }
@keyframes menuBtnPop { 0% { transform: scale(1); } 40% { transform: scale(.82) rotate(90deg); } 100% { transform: scale(1) rotate(0); } }

/* Close / back buttons get a small turn on hover */
.mobile-close-btn:hover { transform: rotate(90deg); }
.mobile-close-btn { transition: transform .25s ease, color .2s ease; }
.mobile-back-btn:hover { transform: translateX(-3px); }

/* Keep menu contents clear of the top edge of the screen */
.mobile-panel,
.mobile-subpanel {
  padding-top: calc(44px + env(safe-area-inset-top, 0px));
}

/* Theme / Account / Cart row in the slide-in menu: hover + click animation */
.mobile-nav-utility .theme-toggle-btn,
.mobile-nav-utility .nav-account-link,
.mobile-nav-utility .nav-cart-trigger {
  transition: color .2s ease, transform .2s ease, background-color .2s ease;
  border-radius: 999px;
  cursor: pointer;
}
.mobile-nav-utility .theme-toggle-btn:hover,
.mobile-nav-utility .nav-account-link:hover,
.mobile-nav-utility .nav-cart-trigger:hover {
  color: var(--gold-dark);
  transform: translateY(-2px);
}
.mobile-nav-utility .theme-toggle-btn:active,
.mobile-nav-utility .nav-account-link:active,
.mobile-nav-utility .nav-cart-trigger:active { transform: scale(.92); }
.mobile-nav-utility svg { transition: transform .4s cubic-bezier(.22,.8,.26,1); }
.mobile-nav-utility .theme-toggle-btn:hover svg { transform: rotate(40deg) scale(1.15); }
.mobile-nav-utility .theme-toggle-btn:active svg { transform: rotate(180deg) scale(.9); }
.mobile-nav-utility .nav-cart-trigger:hover svg { animation: cartWiggle .5s ease; }
@keyframes cartWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
.mobile-nav-utility .nav-account-link { position: relative; }
.mobile-nav-utility .nav-account-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--gold-dark); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.mobile-nav-utility .nav-account-link:hover::after { transform: scaleX(1); }

/* Floating hamburger sits on the LEFT, directly over where the header one is */
.menu-btn-floating {
  right: auto;
  left: calc(3vw - 3px);
  top: calc(26px + env(safe-area-inset-top, 0px));
}


/* Dedicated "tap to close" zone: the empty space below the menu items.
   Panels are flex columns so the zone always fills whatever is left. */
.mobile-panel,
.mobile-subpanel { display: flex; flex-direction: column; }
.mobile-panel > *, .mobile-subpanel > * { flex-shrink: 0; }
.mobile-close-zone { flex: 1 1 auto !important; min-height: 90px; cursor: pointer; }

/* Password-protected pages: neutral autofill colour (no olive/yellow) */
.post-password-form input[type="password"],
.post-password-form input[type="text"] {
  background: #fff;
  color: var(--text);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
}
.post-password-form input:-webkit-autofill,
.post-password-form input:-webkit-autofill:hover,
.post-password-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}


/* ==========================================================================
   MOBILE FOOTER: brand + social on top, then tap-to-open rows with a + icon
   ========================================================================== */
@media (max-width: 1100px) {
  footer { padding: 44px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .footer-about { grid-column: span 1; padding-bottom: 28px; }
  .footer-about p { max-width: none; font-size: 14px; line-height: 1.7; }

  .footer-col { border-top: 1px solid var(--wc-border, #ddd3bf); }
  .footer-col:last-of-type { border-bottom: 1px solid var(--wc-border, #ddd3bf); }
  .footer-grid .footer-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 20px 0;
    font-size: 14px;
    letter-spacing: 1.4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-col-title::after {
    content: "+";
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--gold-dark, #967344);
    transition: transform .3s ease;
  }
  .footer-col.open .footer-col-title::after { transform: rotate(45deg); }
  .footer-col-title:hover { color: var(--gold-dark, #967344); }

  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .footer-col.open ul { max-height: 320px; padding-bottom: 12px !important; }
  .footer-grid .footer-col a { font-size: 15px; display: inline-block; padding: 3px 0; }

  .footer-bottom { flex-direction: column; gap: 10px; text-align: left; align-items: flex-start !important; margin-top: 28px; }
}

/* Footer hover tones (links, accordion rows, social icons) */
.footer-grid .footer-col a {
  position: relative;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-grid .footer-col a:hover,
.footer-grid .footer-col a:focus-visible {
  color: var(--gold-dark, #967344);
  padding-left: 6px;
}
@media (max-width: 1100px) {
  .footer-grid .footer-col-title { transition: color .2s ease, background-color .2s ease, padding-left .2s ease; }
  .footer-grid .footer-col-title:hover,
  .footer-grid .footer-col-title:focus-visible {
    color: var(--gold-dark, #967344);
    background: rgba(184, 149, 99, .12);
    padding-left: 10px;
    outline: none;
  }
  .footer-col-title:hover::after { transform: scale(1.15); }
  .footer-col.open .footer-col-title:hover::after { transform: rotate(45deg) scale(1.15); }
  .footer-grid .footer-col a:active { background: rgba(184, 149, 99, .15); }
}

/* Back-to-top arrow (bottom right) */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold-dark, #967344);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(150,115,68,.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: #b08a4f; transform: translateY(-3px); }
.back-to-top:active { transform: scale(.92); }
body.menu-open .back-to-top,
body.cart-drawer-lock .back-to-top { opacity: 0; pointer-events: none; }

/* Footer logo mark: mobile only, sits beside the brand name */
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo-wrap .footer-logo { margin-bottom: 0; }
.footer-logo-mark { display: none; }
@media (max-width: 1100px) {
  .footer-logo-mark { display: block; width: 52px; height: 52px; flex-shrink: 0; color: var(--text, #272522); }
}

/* Password-protected pages: centred card */
.post-password-form {
  max-width: 460px;
  margin: 70px auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--cream, #f7f4ef);
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  box-sizing: border-box;
  width: calc(100% - 32px);
}
.post-password-form p { margin: 0 0 18px; line-height: 1.7; font-size: 15px; }
.post-password-form p:last-child { margin-bottom: 0; }
.post-password-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted, #6f6a62); }
.post-password-form input[type="password"],
.post-password-form input[type="text"] { width: 100%; box-sizing: border-box; font-size: 16px; text-align: center; padding: 12px 14px; }
.post-password-form input[type="submit"] {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--gold-dark, #967344);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.post-password-form input[type="submit"]:hover { background: #b08a4f; }

/* Gold "n" in the Art n Cast name */
.brand-n { color: var(--gold-dark, #967344) !important; }