/*
Theme Name: WoodmenLife Portal
Description: Storefront child theme for the WoodmenLife Chapter Ordering Portal.
Author: Flags USA
Template: storefront
Version: 0.2.0
Text Domain: woodmenlife-portal
*/

/* Adapted from the Flags USA Shopify export. See docs/THEME_AND_ACCESS.md. */
:root {
  --wl-ink: #1e343d;
  --wl-red: #a62b25;
  --wl-red-hover: #82221d;
  --wl-cream: #f8f5ef;
  --wl-blue: #227395;
  --wl-line: #d8ddde;
  --wl-font: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
}
body, button, input, textarea, select {
  font-family: var(--wl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wl-ink);
}
body { background: #fff; }
body #page { min-height: 100vh; display: flex; flex-direction: column; }
body #content { flex: 1; padding-top: 42px; }
body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--wl-ink); font-family: var(--wl-font); font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
}
body h1 { font-size: clamp(32px, 4vw, 48px); }
body h2 { font-size: 28px; }
body a { color: var(--wl-red); text-underline-offset: .22em; }
body a:hover { color: var(--wl-red-hover); }
body a:focus-visible, body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible {
  outline: 3px solid var(--wl-blue); outline-offset: 4px;
}
.wl-shell, body .col-full { max-width: 1560px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
body .content-area { width: 100%; float: none; margin-right: 0; }
body .site-main { margin-bottom: 48px; }
body #masthead.site-header { background: #fff; padding: 0; border: 0; margin-bottom: 0; }
.wl-announcement { background: var(--wl-ink); color: #fff; text-align: center; padding: 10px 24px; font-size: 13px; letter-spacing: .035em; }
.wl-announcement span { margin-left: 24px; opacity: .8; }
.wl-header-main { display: flex; justify-content: space-between; align-items: center; min-height: 132px; gap: 32px; }
.wl-brand { display: inline-block; padding: 24px 0; }
.wl-brand img { width: 265px; height: auto; }
.wl-operator { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wl-operator span { color: #52636b; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.wl-operator img { width: 185px; height: auto; }
.wl-nav-bar { border-top: 1px solid var(--wl-line); border-bottom: 1px solid var(--wl-line); }
.wl-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.wl-nav-inner nav { display: flex; flex-wrap: wrap; gap: 26px; }
.wl-nav-inner nav a { color: var(--wl-ink); font-weight: 700; font-size: 15px; }
.wl-nav-inner form { margin: 0; width: min(100%, 320px); }
.wl-nav-inner .woocommerce-product-search { position: relative; }
.wl-nav-inner .search-field { width: 100%; padding-right: 78px; }
.wl-nav-inner .woocommerce-product-search button { position: absolute; right: 5px; top: 5px; min-height: 38px; padding: 8px 15px; font-size: 12px; }
body .storefront-breadcrumb { margin-bottom: 24px; padding: 0; }
body .woocommerce-breadcrumb { font-size: 13px; }
body .woocommerce-breadcrumb a { color: var(--wl-ink); }
body .site-footer { background: var(--wl-ink); color: #fff; padding: 42px 0; }
.wl-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wl-footer-inner p { margin: 0; color: #fff; font-size: 14px; }
.wl-footer-inner .wl-footer-title { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.wl-footer-links { display: flex; gap: 26px; }
body #colophon.site-footer .wl-footer-links a { color: #fff; }

/* Shopify's rounded primary buttons and outlined inputs. */
body .button, body button, body input[type="submit"], body .wp-element-button, body .wc-block-components-button:not(.is-link) {
  background: var(--wl-red); color: #fff; border: 1px solid var(--wl-red); border-radius: 26px;
  padding: 12px 26px; min-height: 48px; font-size: 14px; line-height: 1.3; font-weight: 700;
  text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
body .button:hover, body button:hover, body input[type="submit"]:hover, body .wp-element-button:hover {
  background: var(--wl-red-hover); border-color: var(--wl-red-hover); color: #fff;
}
body .button.alt, body button.alt { background: var(--wl-ink); border-color: var(--wl-ink); color: #fff; }
body button:disabled, body .button:disabled { opacity: .5; cursor: not-allowed; }
body input.input-text, body input[type="text"], body input[type="email"], body input[type="password"], body input[type="search"], body input[type="tel"], body input[type="number"], body textarea, body select,
body .wc-block-components-text-input input, body .wc-block-components-combobox-control input {
  background: #fff; color: var(--wl-ink); border: 1px solid #849299; border-radius: 26px; box-shadow: none;
  min-height: 48px; padding: 11px 18px; font-family: var(--wl-font);
}
body textarea { border-radius: 16px; }
body input[type="checkbox"], body input[type="radio"] { accent-color: var(--wl-red); width: 18px; height: 18px; vertical-align: middle; }
body label { font-weight: 700; font-size: 14px; }
body .required { color: var(--wl-red); }
body .woocommerce-error, body .woocommerce-info, body .woocommerce-message { border-radius: 4px; background: var(--wl-cream); color: var(--wl-ink); border-left: 4px solid var(--wl-blue); }
body .woocommerce-error { border-left-color: var(--wl-red); }
body .woocommerce-error a, body .woocommerce-info a, body .woocommerce-message a { color: var(--wl-red); }

/* Dedicated branded login, retaining WooCommerce authentication and reset forms. */
.wl-guest #content { background: var(--wl-cream); padding-top: 0; }
.wl-guest.woocommerce-account .entry-header, .wl-guest.woocommerce-account .storefront-breadcrumb { display: none; }
.wl-guest.woocommerce-account .hentry, .wl-guest.woocommerce-account .site-main, .wl-guest.woocommerce-account .content-area { margin-bottom: 0; }
.wl-login-layout { display: grid; grid-template-columns: 1fr minmax(340px, 460px); gap: clamp(40px, 7vw, 120px); align-items: center; max-width: 1190px; margin: 0 auto; padding: 64px 0 72px; }
.wl-eyebrow { color: var(--wl-red); font-size: 11px; letter-spacing: .17em; font-weight: 700; margin-bottom: 20px; }
.wl-login-intro h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.12; margin-bottom: 26px; }
.wl-lead { max-width: 450px; font-size: 18px; line-height: 1.7; color: #465b65; }
.wl-intro-note { display: flex; align-items: center; gap: 22px; margin-top: 42px; }
.wl-intro-note p { margin: 0; font-size: 14px; }
.wl-note-line { width: 44px; height: 3px; background: var(--wl-red); }
.wl-login-card { background: #fff; padding: 36px 40px; border: 1px solid #e4e1dc; border-radius: 4px; box-shadow: 0 12px 40px #1e343d08; }
.wl-login-card > .wl-eyebrow { margin-bottom: 12px; }
.wl-login-card h2 { margin: 0 0 28px; font-size: 30px; }
.wl-login-card form { margin: 0; }
.wl-login-card .form-row { margin-bottom: 20px; }
.wl-login-card .input-text { width: 100%; margin-top: 8px; }
.wl-login-card .woocommerce-form-login__rememberme { display: block; font-weight: 400; font-size: 14px; margin-bottom: 20px; }
.wl-login-card .woocommerce-form-login__submit { width: 100%; margin: 0; }
.wl-login-card .lost_password { font-size: 14px; margin: 0; text-align: center; }
.wl-login-card .wl-login-help { padding-top: 24px; border-top: 1px solid var(--wl-line); color: #52636b; font-size: 12px; margin: 24px 0 0; text-align: center; }
body .show-password-input { background: transparent; border: 0; color: var(--wl-ink); min-height: 24px; padding: 0; }
.wl-login-card .password-input { position: relative; }
.wl-login-card .show-password-input { right: 14px; top: 50%; transform: translateY(-50%); margin-top: 4px; }
.wl-guest .woocommerce-ResetPassword { max-width: 560px; margin: 56px auto; padding: 32px; background: #fff; border: 1px solid var(--wl-line); border-radius: 4px; }

/* Main WooCommerce elements: catalog cards, detail, quantities, account and tables. */
.wl-catalog-intro { color: #52636b; margin-bottom: 28px; }
body ul.products li.product { border: 1px solid #e8e6e1; border-radius: 4px; overflow: hidden; padding: 18px; text-align: left; }
body ul.products li.product img { border-radius: 2px; margin-bottom: 20px; }
body ul.products li.product .woocommerce-loop-product__title { font-size: 19px; font-weight: 700; }
body ul.products li.product .price { color: var(--wl-ink); font-size: 17px; font-weight: 700; }
body .onsale { background: var(--wl-red); color: #fff; border: 0; border-radius: 20px; padding: 5px 12px; }
body .quantity .qty { width: 82px; padding: 10px; }
body table { border-collapse: collapse; border: 1px solid var(--wl-line); border-radius: 4px; }
body table th { background: var(--wl-cream); font-weight: 700; }
body table td { background: #fff; border-bottom: 1px solid var(--wl-line); }
body table tbody tr:nth-child(2n) td { background: #fcfbf9; }
body .woocommerce-MyAccount-navigation { border: 1px solid var(--wl-line); border-radius: 4px; padding: 12px 20px; }
body .woocommerce-MyAccount-navigation ul li a { padding: 15px 0; }
body .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--wl-red); }
body .woocommerce-tabs ul.tabs li.active a { color: var(--wl-red); }
body .wc-block-components-sidebar, body .cart_totals { background: var(--wl-cream); padding: 24px; border-radius: 4px; }

@media (max-width: 900px) {
  .wl-shell, body .col-full { padding-left: 24px; padding-right: 24px; }
  .wl-login-layout { gap: 32px; grid-template-columns: 1fr 1fr; padding: 48px 0; }
  .wl-login-card { padding: 28px; }
  .wl-nav-inner { align-items: flex-start; flex-direction: column; }
  .wl-nav-inner form { width: 100%; max-width: none; }
}
@media (max-width: 650px) {
  .wl-shell, body .col-full { padding-left: 20px; padding-right: 20px; margin-left: 0; margin-right: 0; }
  .wl-announcement { font-size: 11px; padding: 9px 16px; }
  .wl-announcement span { display: none; }
  .wl-header-main { min-height: 100px; gap: 22px; }
  .wl-brand img { width: 180px; }
  .wl-operator img { width: 110px; }
  .wl-operator span { font-size: 8px; letter-spacing: .08em; }
  .wl-login-layout { grid-template-columns: 1fr; padding: 36px 0 44px; gap: 28px; }
  .wl-login-intro h1 { font-size: 34px; margin-bottom: 18px; }
  .wl-lead { font-size: 16px; margin-bottom: 0; }
  .wl-intro-note { display: none; }
  .wl-login-card { padding: 28px 24px; }
  .wl-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .wl-footer-inner { flex-direction: column; align-items: flex-start; }
  .wl-nav-inner nav { gap: 20px; }
  .wl-nav-inner nav a { font-size: 13px; }
  body .site-footer { padding: 32px 0; }
  body .woocommerce-cart table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { transition: none !important; scroll-behavior: auto !important; }
}
