/* Store customizations carried over from the Big Cartel head code. */

/* SITEWIDE BACKGROUND */

body {
  background: #f1faed url("background.jpg") center center / cover no-repeat fixed !important;
}

main#main.content {
  background: transparent !important;
}

@media screen and (max-width: 1024px) {
  body {
    isolation: isolate;
    background-image: none !important;
  }

  body::before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #f1faed url("background.jpg") center center / cover no-repeat;
  }
}

/* WHITE CONTACT FIELDS */

body#contact main input[type="text"],
body#contact main input[type="email"],
body#contact main input:not([type]),
body#contact main textarea,
body#contact main select {
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
  caret-color: #111;
  border: 1px solid #111 !important;
  opacity: 1;
}

body#contact main input::placeholder,
body#contact main textarea::placeholder {
  color: #666 !important;
  opacity: 1;
}

body#contact main input:focus-visible,
body#contact main textarea:focus-visible,
body#contact main select:focus-visible {
  outline: 2px solid #146b2a !important;
  outline-offset: 3px;
}

/* BOOKMARK COLLECTIONS */

.bookmark-collections {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
}

.bookmark-collections h2 {
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.bookmark-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.bookmark-tile {
  display: block !important;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 45px 15px;
  background: #fff;
  color: #111 !important;
  text-decoration: none !important;
  text-align: center;
  transition: 0.2s ease;
}

.bookmark-tile:hover {
  background: #3ccd3c;
  transform: translateY(-4px);
}

.bookmark-tile h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 12px;
  letter-spacing: 2px;
  color: #111;
}

.bookmark-tile p {
  font-size: 14px;
  margin: 0;
  color: #111;
}

/* ROUNDED ORIGINAL LOGO */
header.header .logo img.store-logo {
  border-radius: 10px !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
/* SHARED HEADER */

html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

header.header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: none !important;
  align-items: center !important;
  gap: 0 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 16px 24px 0 !important;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  overflow: visible !important;
  background: #008d26 !important;
}

header.header .logo {
  grid-area: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0;
  margin: 0 !important;
}

header.header .logo a {
  max-width: 100% !important;
}

header.header .logo img.store-logo {
  display: block !important;
  width: 250px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain;
}

header.header nav.utility {
  grid-area: auto !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  position: static !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: end !important;
}

header.header nav.utility ul {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

header.header nav.utility a,
header.header nav.utility button {
  color: #fff !important;
  font-size: 14px !important;
}

header.header nav.utility .cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

header.header .open-mobile-navigation {
  display: none !important;
}

header.header nav.sections {
  grid-area: auto !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-self: center !important;
  display: block !important;
  position: static !important;
  width: calc(100% + 48px) !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 16px -24px 0 !important;
  padding: 14px 20px !important;
  background: #fff !important;
  transform: none !important;
}

header.header nav.sections ul.navigation {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 24px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

header.header nav.sections ul.navigation li {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}

header.header nav.sections ul.navigation a {
  display: inline-block !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  padding: 8px 0 !important;
}

header.header nav.sections ul.navigation a:hover {
  text-decoration: underline !important;
  text-underline-offset: 6px;
}

header.header a:focus-visible,
header.header button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* DESKTOP: ONE ROW FROM 1100px */

@media screen and (min-width: 1100px) {
  header.header {
    grid-template-columns:
      minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 16px !important;
    padding: 16px 20px !important;
  }

  header.header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  header.header .logo img.store-logo {
    width: 190px !important;
  }

  header.header nav.sections {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  header.header nav.utility {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  header.header nav.sections ul.navigation {
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  header.header nav.sections ul.navigation a {
    font-size: 13px !important;
    color: #fff !important;
    white-space: nowrap !important;
  }

  header.header nav.sections ul.navigation a:after {
    background-color: transparent !important;
  }

  header.header nav.sections ul.navigation a:hover:after,
  header.header nav.sections ul.navigation a:focus:after {
    background-color: #fff !important;
  }
}

/* LARGER DESKTOP */

@media screen and (min-width: 1280px) {
  header.header {
    grid-template-columns:
      minmax(250px, 1fr) auto minmax(250px, 1fr) !important;
    gap: 24px !important;
    padding: 16px 28px !important;
  }

  header.header .logo img.store-logo {
    width: 250px !important;
  }

  header.header nav.sections ul.navigation {
    gap: 24px !important;
  }

  header.header nav.sections ul.navigation a {
    font-size: 14px !important;
  }
}

/* MOBILE: KEEP LOGO, ICONS AND WHITE NAVIGATION */

@media screen and (max-width: 600px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
  }

  header.header {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 0 !important;
    padding: 14px 10px 0 !important;
    background: #3ccd3c !important;
  }

  header.header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  header.header .logo a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  header.header .logo img.store-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  header.header nav.utility {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    margin: 12px 0 18px !important;
  }

  header.header nav.utility ul {
    justify-content: flex-start !important;
    gap: 14px !important;
  }

  header.header nav.utility a,
  header.header nav.utility button {
    min-height: 36px;
    font-size: 18px !important;
    color: #fff !important;
  }

  header.header nav.utility .header-divider,
  header.header nav.utility .header-subtotal-amount {
    display: none !important;
  }

  header.header .open-mobile-navigation {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  header.header nav.sections {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: calc(100% + 20px) !important;
    margin: 0 -10px !important;
    padding: 18px 12px !important;
    background: #fff !important;
  }

  header.header nav.sections ul.navigation {
    gap: 16px 14px !important;
  }

  header.header nav.sections ul.navigation a {
    font-size: 12px !important;
    padding: 7px 0 !important;
    white-space: normal !important;
    color: #111 !important;
  }

  .bookmark-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .bookmark-tile {
    padding: 35px 15px;
  }
}

@media screen and (max-width: 380px) {
  header.header nav.sections ul.navigation {
    column-gap: 12px !important;
  }
}

/* HIDE PRODUCT CATEGORY TREE */

body.product nav.categories,
body.product .category-navigation,
body.product .category-list,
body.product .product-categories,
body.product-page nav.categories,
body.product-page .category-navigation,
body.product-page .category-list,
body.product-page .product-categories,
.product-detail nav.categories,
.product-detail .category-navigation,
.product-detail .category-list,
.product-detail .product-categories {
  display: none !important;
}
/* THIN GREEN BORDERS AROUND PRODUCT CARDS */
.product-list .product-list-link[href^="/product/"] {
  display: block;
  box-sizing: border-box;
  border: 1px solid #008d26;
  border-radius: 8px;
  overflow: hidden;
}

.product-list .product-list-link[href^="/product/"] .product-list-thumb-info {
  padding-left: 10px;
  padding-right: 10px;
}
/* MATCH PRODUCT CARD HEIGHTS WITHIN EACH ROW */
.product-list {
  align-items: stretch;
}

.product-list > .product-list-thumb {
  display: flex;
  flex-direction: column;
}

.product-list .product-list-link[href^="/product/"] {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.product-list .product-list-link[href^="/product/"] .product-list-thumb-info {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.product-list .product-list-link[href^="/product/"] .product-list-thumb-name {
  flex-grow: 1;
}
/* SOLID WHITE PRODUCT INFORMATION PANELS */
.product-list .product-list-link[href^="/product/"] .product-list-thumb-info {
  background-color: #fff;
  padding: 18px 12px;
}

.product-list .product-list-link[href^="/product/"] .product-list-thumb-name,
.product-list .product-list-link[href^="/product/"] .product-list-thumb-price {
  color: #111;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
/* COMPACT PRODUCT TEXT ON PHONES */
@media screen and (max-width: 600px) {
  .product-list .product-list-link[href^="/product/"] .product-list-thumb-info {
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .product-list .product-list-link[href^="/product/"] .product-list-thumb-name {
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
    -webkit-text-stroke: 0;
  }

  .product-list .product-list-link[href^="/product/"] .product-list-thumb-price {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 10px;
    text-shadow: none;
    -webkit-text-stroke: 0;
  }

  .product-list .product-list-link[href^="/product/"] .product-list-thumb-status,
  .product-list .product-list-link[href^="/product/"] .product-list-thumb-options-description {
    font-size: 12px;
    line-height: 1.35;
  }
}
/* BLACK, BOLD FOOTER TEXT ON ALL SCREEN SIZES */
footer,
footer * {
  color: #111 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

footer a:hover,
footer a:focus-visible {
  color: #111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:focus-visible {
  outline: 2px solid #008d26;
  outline-offset: 4px;
}
/* FOOTER: MAIN NAVIGATION PLUS POLICY LINKS */
footer nav.footernav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
}

footer nav.footernav > ul {
  display: contents;
}

footer nav.footernav > ul > li {
  display: block;
  order: 7;
}

/* Hide duplicate category and coming-soon links.
   Required policy links remain visible. */
footer nav.footernav > ul > li:has(> a[href="/"]),
footer nav.footernav > ul > li:has(> a[href="/cart"]),
footer nav.footernav > ul > li:has(> a[href^="/category/"]:not([href="/category/anime-deck-boxes"])),
footer nav.footernav > ul > li:has(> a[href="/pokemon-bookmarks"]),
footer nav.footernav > ul > li:has(> a[href="/kingdom-hearts-bookmarks"]) {
  display: none;
}

footer nav.footernav > ul > li:has(> a[href="/products"]) {
  order: 1;
}
footer nav.footernav > ul > li:has(> a[href="/category/anime-deck-boxes"]) {
  order: 2;
}
footer nav.footernav > ul > li:has(> a[href="/bookmark-collections"]) {
  order: 3;
}
footer nav.footernav > ul > li:has(> a[href="/custom-deck-box-request"]) {
  order: 4;
}
footer nav.footernav > ul > li:has(> a[href="/contact"]) {
  order: 5;
}

/* Start the policy links on a separate row. */
footer nav.footernav::before {
  content: "";
  flex-basis: 100%;
  height: 0;
  order: 6;
}
/* DESKTOP AND TABLET: 16.8px BOLD NAVIGATION */
@media screen and (min-width: 601px) {
  header.header nav.sections ul.navigation a {
    font-size: 16.8px !important;
    font-weight: 700 !important;
  }

  footer {
    font-size: 16.8px !important;
  }
}

/* Keep navigation centered beside the logo.
   Allow links to wrap inside their own column if needed. */
@media screen and (min-width: 1100px) {
  header.header {
    grid-template-columns: minmax(190px, 1fr) minmax(0, 3fr) minmax(190px, 1fr) !important;
  }

  header.header nav.sections {
    width: 100% !important;
  }

  header.header nav.sections ul.navigation {
    flex-wrap: wrap !important;
    gap: 8px 18px !important;
  }
}

@media screen and (min-width: 1400px) {
  header.header {
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr) !important;
  }

  header.header nav.sections ul.navigation {
    gap: 8px 24px !important;
  }
}
/* MOBILE FOOTER: CONTACT, POLICIES AND COPYRIGHT */
@media screen and (max-width: 600px) {
  footer nav.footernav > ul > li:has(> a[href="/products"]),
  footer nav.footernav > ul > li:has(> a[href="/category/anime-deck-boxes"]),
  footer nav.footernav > ul > li:has(> a[href="/bookmark-collections"]),
  footer nav.footernav > ul > li:has(> a[href="/custom-deck-box-request"]) {
    display: none;
  }

  footer nav.footernav {
    gap: 12px 20px;
  }
}
/* LARGER LOGO ON TABLET AND DESKTOP ONLY */
@media screen and (min-width: 601px) {
  header.header .logo img.store-logo {
    width: 300px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 140px !important;
  }
}

/* Reserve space beside centered navigation on smaller desktops. */
@media screen and (min-width: 1100px) and (max-width: 1399px) {
  header.header {
    grid-template-columns: 230px minmax(0, 1fr) 230px !important;
  }

  header.header .logo img.store-logo {
    width: 230px !important;
  }
}

/* Wider desktops have room for the full 300px logo. */
@media screen and (min-width: 1400px) {
  header.header {
    grid-template-columns: 300px minmax(0, 1fr) 300px !important;
  }
}
/* MOBILE ONLY: MORE COMPACT NAVIGATION BAR */
@media screen and (max-width: 600px) {
  header.header nav.sections {
    padding: 8px 12px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  header.header nav.sections ul.navigation {
    row-gap: 2px !important;
    column-gap: 12px !important;
    align-content: center !important;
    min-height: 0 !important;
    height: auto !important;
  }

  header.header nav.sections ul.navigation li {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  header.header nav.sections ul.navigation a {
    padding: 6px 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
  }
}
/* HOMEPAGE VIEW ALL PRODUCTS: VERIFIED NEAT BUTTON */
body#home main a.button.view-all-products {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 220px !important;
  min-width: 0 !important;
  max-width: calc(100% - 32px) !important;
  height: auto !important;
  min-height: 46px !important;
  margin: 32px auto !important;
  padding: 10px 20px !important;
  float: none !important;
  align-self: center !important;
  justify-self: center !important;
  flex: 0 0 auto !important;
  background: #008d26 !important;
  color: #fff !important;
  border: 2px solid #008d26 !important;
  border-radius: 10px !important;
  font-size: 16.8px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 80, 25, 0.22);
}

body#home main a.button.view-all-products:hover {
  background: #006d1d !important;
  border-color: #006d1d !important;
}

body#home main a.button.view-all-products:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

@media screen and (max-width: 600px) {
  body#home main a.button.view-all-products {
    width: 180px !important;
    min-height: 44px !important;
    margin: 24px auto !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
}


/* CENTER PRODUCT NAME AND PRICE TOGETHER */

.product-list .product-list-link[href^="/product/"]
.product-list-thumb-info {
  justify-content: center !important;
}

.product-list .product-list-link[href^="/product/"]
.product-list-thumb-name {
  flex-grow: 0 !important;
}

.product-list .product-list-link[href^="/product/"]
.product-list-thumb-price {
  margin-top: 10px !important;
}


/* PRODUCT DESCRIPTION ALIGNMENT AND SPACING */

.product-description .ql-align-center {
  text-align: center !important;
}

.product-description .ql-align-justify {
  text-align: justify !important;
}

.product-description p {
  margin: 0 0 8px !important;
}

.product-description h3.ql-align-center {
  margin: 0 0 10px !important;
}


/* NATURAL WORD SPACING IN PRODUCT DESCRIPTIONS */
.product-description p,
.product-description .ql-align-justify {
  text-align: left !important;
}


/* RESTORE 3D PRINTED DECK BOXES IN THE FOOTER */
footer nav.footernav > ul > li {
  order: 8;
}
footer nav.footernav > ul > li:has(> a[href="/products"]) {
  order: 1;
}
footer nav.footernav > ul > li[data-deck-box-category="true"] {
  order: 2;
}
footer nav.footernav > ul > li:has(> a[href="/category/anime-deck-boxes"]) {
  order: 3;
}
footer nav.footernav > ul > li:has(> a[href="/bookmark-collections"]) {
  order: 4;
}
footer nav.footernav > ul > li:has(> a[href="/custom-deck-box-request"]) {
  order: 5;
}
footer nav.footernav > ul > li:has(> a[href="/contact"]) {
  order: 6;
}
footer nav.footernav::before {
  order: 7;
}
@media screen and (min-width: 601px) {
  footer nav.footernav > ul > li[data-deck-box-category="true"] {
    display: block !important;
  }
}
@media screen and (max-width: 600px) {
  footer nav.footernav > ul > li[data-deck-box-category="true"] {
    display: none !important;
  }
}


/* HIDE PRODUCTS AND DREAMS COME TRUE IN THE FOOTER ONLY */
footer nav.footernav > ul > li:has(> a[href="/products"]),
footer nav.footernav > ul > li:has(> a[href="/products/"]),
footer nav.footernav > ul > li:has(> a[href="/dreams-come-true"]),
footer nav.footernav > ul > li:has(> a[href="/dreams-come-true/"]) {
  display: none !important;
}


/* MOBILE: REMOVE THE EXTRA BREAK ABOVE POLICY LINKS */
@media screen and (max-width: 600px) {
  footer nav.footernav::before {
    display: none !important;
    content: none !important;
  }
}


/* DESKTOP AND TABLET: LARGER SEARCH AND CART CONTROLS */
@media screen and (min-width: 601px) {
  header.header nav.utility a,
  header.header nav.utility button {
    font-size: 18px !important;
    font-weight: 700 !important;
    min-height: 44px;
  }

  header.header nav.utility .cart-link span {
    font-size: inherit !important;
    font-weight: inherit !important;
  }

  header.header nav.utility .open-search-button svg,
  header.header nav.utility .cart-link svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }

  header.header nav.utility .open-search-button {
    min-width: 44px;
    justify-content: center;
  }

  header.header nav.utility ul {
    gap: 12px !important;
  }
}


/* MOBILE ONLY: SMALLER LOGO AND CATEGORY PAGE HEADINGS */
@media screen and (max-width: 600px) {
  header.header .logo {
    display: flex !important;
    justify-content: center !important;
  }

  header.header .logo a {
    width: 260px !important;
    max-width: 100% !important;
  }

  header.header .logo img.store-logo {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  body.products main#main h1,
  body#products main#main h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    letter-spacing: 2px !important;
    overflow-wrap: break-word;
  }
}


/* MOBILE ONLY: CUSTOM PAGE AND CONTACT HEADINGS */
@media screen and (max-width: 600px) {
  body#bookmark-collections main#main h1,
  body#custom-deck-box-request main#main h1,
  body#contact main#main h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    letter-spacing: 2px !important;
    overflow-wrap: break-word;
  }
}


/* DESKTOP/TABLET: HIDE PRODUCTS IN THE TOP NAVIGATION ONLY */
@media screen and (min-width: 601px) {
  header.header nav.sections ul.navigation > li:has(> a[href="/products"]),
  header.header nav.sections ul.navigation > li:has(> a[href="/products/"]) {
    display: none !important;
  }
}


/* MOBILE ONLY: HAMBURGER BEFORE SEARCH AND CART */
@media screen and (max-width: 600px) {
  header.header nav.utility ul > li:has(.open-mobile-navigation) {
    order: -1;
  }
}


/* MOBILE ONLY: COMPACT INDIVIDUAL PRODUCT TITLE AND PRICE */
@media screen and (max-width: 600px) {
  main#main .product-container > h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    letter-spacing: 1px !important;
    margin: 0 0 12px !important;
    overflow-wrap: break-word;
  }

  main#main .product-container > .product-subheader {
    font-size: 20px !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    margin: 0 0 24px !important;
  }

  main#main .product-container > .product-subheader .product-detail__price,
  main#main .product-container > .product-subheader .price,
  main#main .product-container > .product-subheader .currency_sign {
    font-size: inherit !important;
    letter-spacing: inherit !important;
  }
}


/* MOBILE: HIDE PRODUCTS IN THE VISIBLE HEADER NAVIGATION */
@media screen and (max-width: 600px) {
  header.header nav.sections ul.navigation > li:has(> a[href="/products"]),
  header.header nav.sections ul.navigation > li:has(> a[href="/products/"]) {
    display: none !important;
  }
}


/* BACK LINKS: ABOVE THE PAGE TITLE, ALIGNED LEFT */
main#main > .store-back-navigation {
  display: block;
  margin: 0 0 20px;
  padding: 0 28px;
  text-align: left;
}
main#main > .store-back-navigation a {
  display: inline-block;
  padding: 6px 0;
  color: #000 !important;
  font-size: 15px;
  font-weight: 700 !important;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
main#main > .store-back-navigation a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
@media screen and (max-width: 600px) {
  main#main > .store-back-navigation {
    margin-bottom: 16px;
    padding: 0 16px;
  }
  main#main > .store-back-navigation a {
    font-size: 14px;
  }
}


/* CONTACT AND CUSTOM REQUEST: BACK LINK NEAR PAGE LEFT EDGE */
@media screen and (min-width: 601px) {
  body#contact main#main > .store-back-navigation,
  body#custom-deck-box-request main#main > .store-back-navigation {
    box-sizing: border-box;
    width: calc(100vw - 192px);
    max-width: none;
    margin-left: calc(50% - 50vw + 96px);
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
}


/* BACK-LINK PLACEMENT MATCHING YOUR EXAMPLES */

@media screen and (min-width: 601px) {
  body#bookmark-collections .store-back-navigation {
    --back-width: 1200px;
    --back-half: 600px;
  }

  body#custom-deck-box-request .store-back-navigation {
    --back-width: 1140px;
    --back-half: 570px;
  }

  body#contact .store-back-navigation {
    --back-width: 1050px;
    --back-half: 525px;
  }

  body#bookmark-collections main#main > .store-back-navigation,
  body#custom-deck-box-request main#main > .store-back-navigation,
  body#contact main#main > .store-back-navigation {
    box-sizing: border-box;
    width: min(var(--back-width), calc(100vw - 32px)) !important;
    max-width: none !important;
    margin-left: calc(
      50% - min(var(--back-half), calc(50vw - 16px))
    ) !important;
    margin-right: 0 !important;
    padding: 0 20px !important;
    text-align: left !important;
  }
}


.sph-homepage{--sph-green:#008d26;--sph-dark:#10472b;color:#111;font-family:inherit;padding:0 20px}
.sph-home-announcement{background:#06482b;color:#fff;text-align:center;padding:10px 16px;font:600 14px/1.4 Arial,sans-serif}
.sph-homepage *{box-sizing:border-box}
.sph-homepage .sph-section{max-width:1200px;margin:0 auto 48px}
.sph-homepage .sph-hero,.sph-homepage .sph-custom{display:grid;grid-template-columns:1fr 1fr;border-radius:16px;overflow:hidden;background:#fff;border:1px solid rgba(0,141,38,.2)}
.sph-homepage .sph-copy{padding:clamp(24px,4vw,52px);align-self:center}
.sph-homepage .sph-eyebrow{font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--sph-dark);margin:0 0 12px}
.sph-homepage h2{font-family:inherit;font-size:30px;line-height:1.2;letter-spacing:0;text-transform:none;color:var(--sph-dark);margin:0 0 16px}
.sph-homepage .sph-hero h2{font-size:clamp(28px,3.2vw,44px)}
.sph-homepage p{font-size:16px;line-height:1.65;margin:0 0 20px}
.sph-homepage .sph-actions{display:flex;flex-wrap:wrap;gap:12px}
.sph-homepage a.sph-cta{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:12px 20px;border:2px solid var(--sph-green);border-radius:9px;background:var(--sph-green);color:#fff;font-size:15px;font-weight:700;text-align:center;text-decoration:none;line-height:1.4}
.sph-homepage a.sph-cta.sph-secondary{background:#fff;color:var(--sph-dark)}
.sph-homepage a.sph-cta:hover{background:#006d1d;color:#fff;border-color:#006d1d}
.sph-homepage a:focus-visible{outline:3px solid #111;outline-offset:4px}
.sph-homepage .sph-hero-media{min-height:340px;background:#e8f6e5;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:24px;align-items:center}
.sph-homepage .sph-hero-media img{width:100%;height:280px;object-fit:contain;background:#fff;border-radius:12px;box-shadow:0 6px 16px rgba(0,70,20,.12)}
.sph-homepage .sph-section-title{text-align:center;margin-bottom:24px}
.sph-homepage .sph-section-title p{margin-bottom:0}
.sph-homepage .sph-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sph-homepage .sph-collection{display:flex;flex-direction:column;border:1px solid var(--sph-green);border-radius:12px;overflow:hidden;background:#fff;color:#111;text-decoration:none}
.sph-homepage .sph-collection img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f3f8ef}
.sph-homepage .sph-collection:has(img[hidden]){display:block}.sph-homepage .sph-custom:has(img[hidden]){grid-template-columns:1fr}.sph-homepage .sph-collection-copy{padding:20px;text-align:center}
.sph-homepage .sph-collection h3{font-family:inherit;font-size:20px;line-height:1.3;letter-spacing:0;text-transform:none;margin:0 0 12px;color:#111}
.sph-homepage .sph-browse{font-size:14px;font-weight:700;color:var(--sph-dark);text-decoration:underline;text-underline-offset:3px}
.sph-homepage .sph-custom-photo{width:100%;height:100%;min-height:320px;max-height:440px;object-fit:contain;background:#eef6ea}
.sph-homepage .sph-soon{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid var(--sph-green);border-radius:14px;padding:28px}
.sph-homepage .sph-soon h2{font-size:26px;margin-bottom:8px}
.sph-homepage .sph-soon p{margin:0}
.sph-homepage img[hidden]{display:none!important}
.sph-homepage .sph-hero-media:has(img[hidden]){background:linear-gradient(140deg,#e4f6d9,#f7fcf4)}
.sph-homepage .sph-photo-note{font-size:16px;font-weight:600;color:var(--sph-dark);text-align:center;padding:24px;grid-column:1/-1}
.sph-homepage .sph-hero-media:has(img:not([hidden])) .sph-photo-note{display:none}
.sph-homepage .sph-hero-media:has(img[hidden]) img:not([hidden]){grid-column:1/-1}
.sph-homepage .sph-existing-products{margin:0 auto;max-width:1264px}
@media(max-width:800px){
.sph-homepage{padding:0 16px}
.sph-homepage .sph-hero,.sph-homepage .sph-custom{grid-template-columns:1fr}
.sph-homepage .sph-hero-media{min-height:0;padding:16px}
.sph-homepage .sph-hero-media img{height:220px}
.sph-homepage .sph-collection-grid{gap:12px}
.sph-homepage .sph-collection:has(img[hidden]){display:block}.sph-homepage .sph-custom:has(img[hidden]){grid-template-columns:1fr}.sph-homepage .sph-collection-copy{padding:14px 10px}
.sph-homepage .sph-collection h3{font-size:16px}
.sph-homepage .sph-custom-photo{min-height:0;height:280px;grid-row:2}
.sph-homepage .sph-custom .sph-copy{grid-row:1}
.sph-homepage .sph-soon{flex-direction:column;text-align:center}
}
@media(max-width:600px){
.sph-homepage .sph-section{margin-bottom:32px}
.sph-homepage .sph-copy{padding:24px 20px}
.sph-homepage h2{font-size:25px}
.sph-homepage p{font-size:14px}
.sph-homepage .sph-hero h2{font-size:30px}
.sph-homepage .sph-actions a.sph-cta{flex:1 1 150px;font-size:14px}
.sph-homepage .sph-hero-media img{height:180px}
.sph-homepage .sph-collection-grid{grid-template-columns:1fr}
.sph-homepage .sph-collection{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center}
.sph-homepage .sph-collection img{height:130px;aspect-ratio:auto}
.sph-homepage .sph-collection:has(img[hidden]){display:block}.sph-homepage .sph-custom:has(img[hidden]){grid-template-columns:1fr}.sph-homepage .sph-collection-copy{text-align:left;padding:16px}
.sph-homepage .sph-soon{padding:24px 20px}
}


/* HOME NAVIGATION LINK */
header.header nav.sections ul.navigation > li[data-home-navigation="true"] {
  display: block !important;
}
@media screen and (min-width: 601px) {
  footer nav.footernav > ul > li[data-home-navigation="true"] {
    display: block !important;
    order: 0;
  }
}
@media screen and (max-width: 600px) {
  footer nav.footernav > ul > li[data-home-navigation="true"] {
    display: none !important;
  }
}


/* LARGER HOMEPAGE SHIPPING ANNOUNCEMENT */
@media screen and (min-width: 601px) {
  .sph-home-announcement {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 16px;
  }
}


/* ALIGN EVERY LINE OF THE WELCOME HEADING */
.sph-homepage .sph-hero #sph-welcome-title {
  text-align: left !important;
  text-indent: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* DESKTOP/TABLET HOMEPAGE: REDUCE SPACE BEFORE THE FOOTER */
@media screen and (min-width: 601px) {
  body#home main#main.content:has(.sph-homepage) {
    padding-bottom: 0 !important;
  }

  body#home .sph-homepage > .sph-soon:last-child {
    margin-bottom: 24px !important;
  }

  body#home:has(main#main .sph-homepage) footer {
    margin-top: 8px !important;
    padding-top: 28px !important;
  }
}


/* Keep the custom request heading flush with its paragraph and button. */
@media (min-width: 601px) {
  .sph-homepage .sph-custom #sph-custom-title {
    text-align: left !important;
    text-indent: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* CARDVAULT LINK IN THE HEADER (logo + button above search and cart) */
.sph-cardvault-link,.sph-cardvault-link *{box-sizing:border-box}
.sph-cardvault-link{display:flex;flex-direction:column;align-items:center;gap:8px}
.sph-cardvault-logo{display:block;line-height:0}
.sph-cardvault-logo img{display:block;width:200px;max-width:100%;height:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
a.sph-cardvault-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:11px 17px;border:1px solid #176443;border-radius:12px;background:#176443;color:#fff!important;font-size:15px!important;font-weight:700!important;line-height:1.25;text-decoration:none!important;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.18);transition:background .15s,border-color .15s}
a.sph-cardvault-btn:hover{background:#123c2c;border-color:#123c2c}
a.sph-cardvault-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.sph-cardvault-btn svg{display:block;flex:none}
.sph-cardvault-btn .sph-cv-mobile{display:none}
/* Hide the theme's underline line on header links */
.sph-cardvault-link a::before,.sph-cardvault-link a::after{content:none !important;display:none !important;background:none !important}

/* Tablet (601-1099px): logo on the left, CardVault + search/cart stacked on the right */
@media screen and (min-width:601px) and (max-width:1099px){
  html body header.header{grid-template-rows:auto auto auto !important}
  html body header.header .logo{grid-row:1 / 3 !important}
  html body header.header .sph-cardvault-link{grid-column:2;grid-row:1;justify-self:end;align-self:end;margin-bottom:6px}
  html body header.header nav.utility{grid-row:2 !important;align-self:start !important}
  html body header.header nav.sections{grid-row:3 !important}
}
/* Desktop (1100px+): same stack in the right-hand column */
@media screen and (min-width:1100px){
  html body header.header{grid-template-rows:auto auto !important;row-gap:10px !important}
  html body header.header .logo,
  html body header.header nav.sections{grid-row:1 / 3 !important}
  html body header.header .sph-cardvault-link{grid-column:3;grid-row:1;justify-self:end;align-self:end}
  html body header.header nav.utility{grid-row:2 !important;align-self:start !important}
}
/* Phones: no CardVault logo; "Shop our CardVault" button on the search/cart row */
@media screen and (max-width:600px){
  .sph-cardvault-logo{display:none !important}
  html body header.header .sph-cardvault-link{grid-column:1;grid-row:2;justify-self:end;align-self:center;margin:12px 0 18px}
  .sph-cardvault-btn .sph-cv-desktop{display:none}
  .sph-cardvault-btn .sph-cv-mobile{display:inline}
  a.sph-cardvault-btn{font-size:14px!important;min-height:42px;padding:9px 13px;gap:7px}
  .sph-cardvault-btn .sph-cv-store{width:18px;height:18px}
}
@media screen and (max-width:380px){
  a.sph-cardvault-btn{font-size:13px!important;padding:8px 10px;gap:5px}
  .sph-cardvault-btn .sph-cv-store{display:none}
}
