/*
Theme Name: Odyssey 2026
Description: Custom WooCommerce storefront for Odyssey Collectibles.
Version: 2.0.0
Requires PHP: 8.1
Text Domain: odyssey
*/

/* The design lives in assets/css/styles.css. Only WordPress-specific adjustments go here. */

/* WooCommerce's "View cart" link after an AJAX add: the header badge already shows it. */
.added_to_cart { display: none; }

.footer-social { display: flex; gap: 16px; margin-top: 12px; }

.logo__image { display: block; width: auto; max-width: 180px; max-height: 52px; object-fit: contain; }

/* Fluent Forms on the contact page, matched to the design's form fields. */
.contact-form .ff-el-group { margin-bottom: 16px; }
.contact-form .ff-el-input--label label { font-size: 13px; font-weight: 600; color: var(--red-ink); }
.contact-form .ff-el-is-required.asterisk-right label::after { color: var(--red); }
.contact-form .ff-el-form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
}
.contact-form .ff-el-form-control:focus { border-color: var(--red); box-shadow: none; outline: 3px solid var(--red); outline-offset: 0; }
.contact-form textarea.ff-el-form-control { min-height: 140px; resize: vertical; }
.contact-form .ff-btn-submit {
  min-height: 44px;
  padding: 12px 24px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red) !important;
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form .ff-btn-submit:hover { background: var(--red-dark) !important; border-color: var(--red-dark); opacity: 1; }
.contact-form .error,
.contact-form .text-danger { color: #9b1c1c; font-size: 13px; }
.contact-form .ff-message-success {
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: #e8f6ee;
  color: #1f6b41;
  font-size: 14px;
  box-shadow: none;
}

/* Product cards: the photo links to the product page. */
.card__media-link { display: block; color: inherit; text-decoration: none; }

/* Home hero: three buttons stack on phones, as in the Slab guards design. */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* reCAPTCHA is a fixed 304px box, wider than the form on small phones. */
@media (max-width: 420px) {
  .contact-form { padding: 16px; }
  .contact-form .ff-el-recaptcha,
  .contact-form .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; max-width: 100%; }
}

/* Ordinary pages such as the policies, and the FAQ page. */
.page-content { max-width: 75ch; padding: 20px 0 64px; }
.page-content h2 { margin: 32px 0 12px; font-size: 22px; text-transform: none; color: var(--red-ink); }
.page-content h3 { margin: 24px 0 8px; font-size: 17px; text-transform: none; color: var(--red-ink); }
.page-content p, .page-content li { color: var(--text); }
.page-content p { margin: 0 0 14px; }
.page-content ul, .page-content ol { margin: 0 0 14px; padding-left: 22px; }
.page-content a { color: var(--red); font-weight: 600; }
.faq-page { padding: 20px 0 64px; }

/* Event listing. The design only had the empty state. */
.events__list { display: grid; gap: 20px; }
.event {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.event__media { width: 100%; height: 100%; max-height: 280px; object-fit: cover; }
.event__body { padding: 20px; }
.event__date { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.event__title { margin: 0 0 4px; font-size: 20px; text-transform: none; color: var(--red-ink); }
.event__location { margin: 0 0 12px; font-weight: 600; color: var(--muted); }
.event__body p:not([class]) { margin: 0 0 12px; }
@media (min-width: 720px) {
  .event:has(.event__media) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Extra photos on a product, which the static design did not have. */
.product-gallery { display: grid; gap: 12px; justify-items: center; align-content: start; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.product-gallery__thumb { width: 64px; height: 64px; padding: 0; overflow: hidden; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.product-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
