/*
Theme Name: 23 Magical Things
Theme URI: https://23magicalthings.com/
Author: 23 Magical Things
Description: A custom WooCommerce storefront for personalized cruise door magnets and decor.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: twenty-three-magical-things
*/

@font-face { font-family: 'Cormorant Garamond'; src: url('assets/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/cormorant-garamond-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/manrope-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/manrope-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/manrope-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tmt-navy: #092c45;
  --tmt-beige: #f5efe4;
  --tmt-white: #fffefd;
  --tmt-gold: #bd8b3f;
  --tmt-ink: #0d2e49;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--tmt-ink); background: var(--tmt-white); font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 10; color: #fff; background: var(--tmt-navy); }
.header-top { min-height: 86px; display: grid; grid-template-columns: minmax(300px, 420px) minmax(320px, 1fr) auto; align-items: center; gap: 28px; padding: 0 18px; }
.brand-link { display: flex; align-items: center; text-decoration: none; }
.brand-link img { display: block; width: min(100%, 384px); height: auto; max-height: 72px; object-fit: contain; object-position: left center; }
.product-search { height: 48px; border-radius: 26px; background: #fff; color: var(--tmt-navy); display: flex; align-items: center; padding: 0 20px; box-shadow: inset 0 0 0 1px rgba(8, 47, 77, .08); }
.product-search .dashicons { flex: 0 0 auto; width: 23px; height: 23px; font-size: 23px; }
.product-search input[type='search'] { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 12px; color: var(--tmt-navy); background: transparent; font-size: 14px; }
.product-search input::placeholder { color: #697785; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-action { position: relative; min-width: 54px; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: #fff; text-decoration: none; font-size: 11px; }
.header-action .dashicons { width: 29px; height: 29px; font-size: 29px; }
.cart-count { position: absolute; top: -2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--tmt-navy); background: var(--tmt-beige); font-size: 10px; font-weight: 700; }

.main-nav { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.5vw, 40px); padding: 0 20px; overflow-x: auto; }
.main-nav a { display: flex; align-items: center; gap: 5px; padding: 16px 0; color: #fff; text-decoration: none; white-space: nowrap; font-size: 13px; }
.main-nav a:hover, .main-nav a:focus-visible { color: #edd19f; outline: none; }
.main-nav .dashicons { width: 16px; height: 16px; font-size: 16px; }

.hero { position: relative; min-height: 198px; display: grid; place-items: center; padding: 28px 80px 22px; overflow: hidden; text-align: center; background: var(--tmt-beige) url('assets/hero-background.png') center / cover no-repeat; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .3em; font-weight: 700; text-transform: uppercase; }
.hero h1 { max-width: 1200px; margin: 5px auto 12px; color: var(--tmt-navy); font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 4vw, 59px); line-height: .98; letter-spacing: -.025em; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; gap: 14px; padding: 0 34px; color: #fff; background: var(--tmt-navy); text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700; }
.primary-button:hover, .primary-button:focus-visible { color: #fff; background: #12486c; outline: 3px solid rgba(8, 47, 77, .18); }
.hero-mark { position: absolute; right: 7%; top: 42px; display: grid; place-items: center; gap: 3px; color: var(--tmt-gold); text-transform: uppercase; letter-spacing: .15em; font-size: 8px; line-height: 1.6; }
.hero-mark .dashicons { width: 25px; height: 25px; font-size: 25px; }

.collection-gallery { padding: 0 14px 14px; }
.gallery-grid { display: grid; grid-template-columns: 1.03fr .48fr .48fr; grid-template-rows: 236px 236px; gap: 7px; }
.collection-card { position: relative; min-height: 0; overflow: hidden; background: #ddd5c9; }
.collection-card.featured { grid-row: 1 / span 2; }
.collection-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.collection-card:hover img { transform: scale(1.025); }
.card-shade { position: absolute; inset: 58% 0 0; background: rgba(2, 20, 33, .68); pointer-events: none; }
.collection-link { position: absolute; inset: auto 0 0; min-height: 80px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #fff; text-decoration: none; }
.collection-copy { display: grid; gap: 3px; }
.collection-copy strong { font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: .95; }
.featured .collection-copy strong { font-size: 31px; }
.collection-copy small { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; }
.collection-link .dashicons { flex: 0 0 auto; width: 24px; height: 24px; font-size: 24px; }

.site-footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 6vw; color: #fff; background: var(--tmt-navy); font-size: 11px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: #fff; text-decoration: none; }

.woocommerce-page main, .woocommerce main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 0; color: #fff; background: var(--tmt-navy); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: #fff; background: #12486c; }

@media (max-width: 1080px) {
  .header-top { grid-template-columns: 300px 1fr auto; padding: 0 24px; gap: 18px; }
  .header-actions { gap: 8px; }
  .main-nav { justify-content: flex-start; }
  .hero { padding-inline: 100px; }
  .hero-mark { display: none; }
}

@media (max-width: 760px) {
  .header-top { min-height: 0; grid-template-columns: 1fr auto; padding: 14px 17px 12px; }
  .brand-link img { width: 265px; height: auto; max-height: 57px; }
  .product-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .header-action:first-child, .header-action span:not(.dashicons):not(.cart-count) { display: none; }
  .header-actions { align-self: start; }
  .main-nav { min-height: 44px; justify-content: flex-start; gap: 22px; }
  .main-nav a { padding-block: 13px; }
  .hero { min-height: 238px; padding: 36px 21px 30px; }
  .hero h1 { max-width: 500px; font-size: 42px; }
  .collection-gallery { padding-inline: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 390px repeat(2, 225px); gap: 5px; }
  .collection-card.featured { grid-column: 1 / -1; grid-row: 1; }
  .collection-link { padding: 14px; }
  .collection-copy strong, .featured .collection-copy strong { font-size: 23px; }
  .collection-copy small { font-size: 8px; letter-spacing: .12em; }
  .site-footer { min-height: 92px; flex-direction: column; justify-content: center; gap: 12px; }
}

@media (max-width: 440px) {
  .brand-link img { width: 220px; height: auto; max-height: 49px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 320px repeat(4, 245px); }
  .collection-card.featured { grid-column: 1; }
}
