/*
Theme Name: Rock Creek Memorabilia for Themify Ultra
Theme URI: https://rockcreekmemorabilia.com
Description: Themify Ultra child theme with the complete Rock Creek Memorabilia visual design and affiliate catalog features.
Author: William Line
Template: themify-ultra
Version: 4.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rock-creek-memorabilia
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/
:root{--blue:#001489;--navy:#071348;--gold:#fbb726;--red:#d9232e;--ink:#101828;--muted:#667085;--bg:#eef2f8;--line:#e4e8f2;--rad:22px;--shadow:0 18px 42px rgba(0,20,137,.12)}*{box-sizing:border-box}html,body{overflow-x:hidden}body{margin:0;padding:20px;background:var(--bg);font-family:Arial,sans-serif;color:var(--ink);line-height:1.6}a{text-decoration:none;color:var(--blue)}.container{width:min(1240px,100%);margin:auto}.bar{background:var(--gold);color:var(--blue);padding:9px;text-align:center;font-weight:900;border-radius:18px 18px 0 0}.header{background:#fff;position:sticky;top:20px;z-index:20;border-radius:0 0 var(--rad) var(--rad);box-shadow:var(--shadow)}.head{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:950}.badge{background:var(--gold);border:4px solid var(--blue);padding:5px 9px}.nav ul{display:flex;gap:18px;list-style:none;padding:0;font-weight:800}.btn,.button,.woocommerce a.button,.woocommerce button.button{display:inline-flex;border:0;border-radius:999px;padding:13px 19px;background:var(--gold)!important;color:var(--blue)!important;font-weight:900}.blue{background:var(--blue)!important;color:#fff!important}.hero{margin-top:20px;border-radius:32px;background:radial-gradient(circle at 78% 25%,rgba(251,183,38,.4),transparent 25%),linear-gradient(130deg,var(--navy),var(--blue),#020617);color:#fff;overflow:hidden}.hero-grid{min-height:590px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px;padding:55px}.eyebrow{color:var(--gold);font-weight:900;text-transform:uppercase;letter-spacing:.09em}.hero h1,.title{font-size:clamp(42px,6vw,78px);line-height:.95;margin:10px 0 20px}.hero p{font-size:20px;color:#e3e9ff}.hero-art{min-height:360px;border:1px solid rgba(255,255,255,.25);border-radius:30px;display:grid;place-items:center;font-size:58px;font-weight:950;color:var(--gold);background:rgba(255,255,255,.08)}.section{padding:65px 0}.grid,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,1fr);gap:22px}.card,.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:var(--rad);padding:22px;box-shadow:var(--shadow)}.card{min-height:180px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(140deg,#fff 58%,rgba(251,183,38,.43))}.pill{width:max-content;background:var(--blue);color:#fff;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900}.content{background:#fff;border-radius:var(--rad);padding:clamp(24px,5vw,52px);box-shadow:var(--shadow)}.disclosure{background:#fff8df;border-left:5px solid var(--gold);padding:14px 18px;border-radius:10px;margin:18px 0}.spec{width:100%;border-collapse:collapse}.spec th,.spec td{padding:11px;border-bottom:1px solid var(--line);text-align:left}.spec th{width:38%;color:var(--blue)}.footer{background:var(--navy);color:#fff;border-radius:var(--rad);padding:48px 30px 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer a{color:#dfe7ff}.footer ul{list-style:none;padding:0}.copy{border-top:1px solid rgba(255,255,255,.15);margin-top:25px;padding-top:20px}.woocommerce div.product{background:#fff;padding:28px;border-radius:var(--rad);box-shadow:var(--shadow)}.woocommerce-cart-form,.cart_totals{display:none}@media(max-width:850px){.hero-grid{grid-template-columns:1fr;padding:35px}.grid,.woocommerce ul.products,.footer-grid{grid-template-columns:1fr 1fr!important}.nav{display:none}}@media(max-width:600px){body{padding:12px}.grid,.woocommerce ul.products,.footer-grid{grid-template-columns:1fr!important}.hero-art{min-height:240px}}


/* Themify Ultra integration: mirror the Rock Creek palette and surfaces on
   Ultra-managed header, navigation, content, widgets, footer, and Builder. */
#pagewrap{width:min(1440px,100%);margin:auto;background:transparent}
#headerwrap{background:#fff;position:sticky;top:20px;z-index:999;border-radius:0 0 var(--rad) var(--rad);box-shadow:var(--shadow)}
#header{width:min(1240px,100%);min-height:78px;padding:0 20px;display:flex;align-items:center}
#site-logo a{color:var(--ink);font-weight:950}
#main-nav a{color:var(--blue);font-weight:800}
#main-nav a:hover,#main-nav .current_page_item>a{color:var(--red)}
#main-nav .highlight-link>a,.header-button a{border-radius:999px;background:var(--blue);color:#fff!important;padding:13px 19px}
#body{width:min(1240px,100%);margin:auto}
#content{padding-top:40px}
.module_row{border-radius:var(--rad)}
.module-buttons a,.module .ui.builder_button{border-radius:999px;background:var(--gold);color:var(--blue);font-weight:900}
.widgettitle{color:var(--gold);font-weight:900;text-transform:uppercase;letter-spacing:.06em}
#footerwrap{width:min(1240px,100%);margin:40px auto 0;background:var(--navy);color:#fff;border-radius:var(--rad)}
#footerwrap a{color:#dfe7ff}
#footer{padding:48px 30px 25px}
#footer-logo a{color:#fff}
.footer-text{border-top:1px solid rgba(255,255,255,.15);padding-top:20px}
@media(max-width:850px){#headerwrap{top:12px}#header{min-height:64px}.mobile_menu_active #headerwrap{border-radius:var(--rad)}}


/* Version 4.2: preserve the original Rock Creek appearance across every
   Ultra-controlled template while keeping content editable with Themify Builder. */
body,
body.page,
body.single,
body.archive,
body.blog,
body.search,
body.error404,
body.woocommerce,
body.woocommerce-page {
  background: var(--bg);
  color: var(--ink);
}

/* Ultra page structure */
#pagewrap,
#body,
#layout,
#content,
.sidebar-none #content {
  background: transparent;
}

#layout {
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Page, post, archive, search, and 404 content surfaces */
.page-content,
.entry-content,
.post-content,
.author-box,
.commentwrap,
#comments,
#respond,
.loops-wrapper > article,
.search-results .post,
.error404 #content,
.woocommerce-page #content {
  border-radius: var(--rad);
}

body:not(.home) .page-content,
body:not(.home) .entry-content,
.single .post-content,
.error404 #content {
  background: #fff;
  padding: clamp(24px,5vw,52px);
  box-shadow: var(--shadow);
}

.page-title,
.entry-title,
.post-title,
.product_title,
.woocommerce-products-header__title {
  color: var(--navy);
}

.page-title a,
.entry-title a,
.post-title a {
  color: var(--blue);
}

/* Themify Builder: original palette remains the default, while every row and
   module is still selectable and editable in Builder. */
.themify_builder_content,
.themify_builder_content .module_row,
.themify_builder_content .module_column,
.themify_builder_content .module {
  color: var(--ink);
}

.themify_builder_content .module_row {
  overflow: hidden;
}

.themify_builder_content .module_row.fullwidth,
.themify_builder_content .module_row:first-child {
  border-radius: 32px;
}

.themify_builder_content h1,
.themify_builder_content h2,
.themify_builder_content h3,
.module-title {
  color: var(--navy);
}

.themify_builder_content a:not(.ui):not(.button) {
  color: var(--blue);
}

/* Optional Builder classes for recreating the original sections visually:
   rcm-hero, rcm-card, rcm-eyebrow, rcm-pill, rcm-content, rcm-section. */
.rcm-section { padding: 65px 0; }
.rcm-content { background:#fff;border-radius:var(--rad);padding:clamp(24px,5vw,52px);box-shadow:var(--shadow); }
.rcm-hero { min-height:590px;padding:55px;background:radial-gradient(circle at 78% 25%,rgba(251,183,38,.4),transparent 25%),linear-gradient(130deg,var(--navy),var(--blue),#020617);color:#fff;border-radius:32px; }
.rcm-hero h1,.rcm-hero h2,.rcm-hero h3 { color:#fff; }
.rcm-hero p { color:#e3e9ff;font-size:20px; }
.rcm-eyebrow { color:var(--gold);font-weight:900;text-transform:uppercase;letter-spacing:.09em; }
.rcm-card { min-height:180px;padding:22px;background:linear-gradient(140deg,#fff 58%,rgba(251,183,38,.43));border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--shadow); }
.rcm-pill { display:inline-block;background:var(--blue);color:#fff;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900; }

/* Forms, widgets, tables, notices */
input[type=text],input[type=email],input[type=url],input[type=password],input[type=search],input[type=number],input[type=tel],textarea,select {
  border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);
}
button,input[type=submit],.ui.builder_button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button {
  border:0;border-radius:999px;background:var(--gold)!important;color:var(--blue)!important;font-weight:900;
}
.widget { background:#fff;border-radius:var(--rad);padding:22px;box-shadow:var(--shadow); }
table { border-color:var(--line); }

/* Complete WooCommerce catalog and product-page treatment */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce-page div.product,
.woocommerce .cart-collaterals,
.woocommerce form.checkout,
.woocommerce-account .woocommerce-MyAccount-content {
  background:#fff;border:1px solid var(--line);border-radius:var(--rad);padding:22px;box-shadow:var(--shadow);
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color:var(--blue);font-weight:900; }
.woocommerce span.onsale { background:var(--red);color:#fff; }
.woocommerce-message,.woocommerce-info { border-top-color:var(--gold);background:#fff8df; }
.woocommerce-message:before,.woocommerce-info:before { color:var(--blue); }

/* Ultra mobile menu and responsive continuity */
.mobile_menu_active #main-nav-wrap { background:#fff; }
.mobile_menu_active #main-nav a { color:var(--blue); }
@media(max-width:850px){
  body{padding:12px}
  #layout{width:100%}
  .rcm-hero{min-height:420px;padding:35px}
}
@media(max-width:600px){
  .rcm-hero{min-height:320px;padding:28px}
  body:not(.home) .page-content,body:not(.home) .entry-content,.single .post-content{padding:24px}
}


/* Version 4.3: force the Ultra desktop, sticky, transparent, overlay, and
   mobile headers to use the blue/yellow automotive-parts palette. */
:root{--napa-blue:#001489;--napa-yellow:#fbb726;--napa-white:#fff}
#headerwrap,
#headerwrap.fixed-header,
.fixed-header-on #headerwrap,
.transparent-header #headerwrap,
.header-overlay #headerwrap,
.header-minbar #headerwrap,
.header-leftpane #headerwrap,
.header-rightpane #headerwrap,
.header-slide-out #headerwrap,
.mobile_menu_active #headerwrap,
.mobile_menu_active #main-nav-wrap,
#mobile-menu,
.sidemenu {
  background-color:var(--napa-blue)!important;
  background-image:none!important;
  color:var(--napa-white)!important;
  border-color:var(--napa-yellow)!important;
}
#headerwrap {border-top:8px solid var(--napa-yellow)!important;border-radius:0 0 var(--rad) var(--rad)!important}
#header,
.fixed-header #header {background:transparent!important;color:var(--napa-white)!important}
#site-logo,
#site-logo a,
#site-description,
#main-nav>li>a,
#main-nav a,
#menu-icon,
#menu-icon-close,
.mobile_menu_active #main-nav a,
.header-icons a {color:var(--napa-white)!important}
#main-nav>li>a:hover,
#main-nav>.current_page_item>a,
#main-nav>.current-menu-item>a,
#main-nav>.current-menu-ancestor>a,
#main-nav .current_page_item>a,
#main-nav .current-menu-item>a {color:var(--napa-yellow)!important}
#main-nav ul {background:var(--napa-blue)!important;border-top:4px solid var(--napa-yellow)!important}
#main-nav ul a {color:var(--napa-white)!important}
#main-nav ul a:hover {background:rgba(255,255,255,.1)!important;color:var(--napa-yellow)!important}
#menu-icon:before,
#menu-icon:after,
#menu-icon {border-color:var(--napa-yellow)!important}
.header-button a,
#main-nav .highlight-link>a {background:var(--napa-yellow)!important;color:var(--napa-blue)!important}


/* Version 4.4: affiliate-only catalog. Hide all Ultra/WooCommerce cart,
   checkout, account-order, and shipping interface elements. */
.cart-icon-link,.cart-wrap,.icon-shopping-cart,.header-minbar .cart-wrap,
#cart-wrap,#shopdock,.woocommerce-mini-cart,.widget_shopping_cart,
.woocommerce-cart-form,.cart_totals,.wc-proceed-to-checkout,
.shipping-calculator-form,.shipping-calculator-button,
.woocommerce-shipping-fields,.woocommerce-shipping-totals,
.woocommerce-checkout-review-order,.woocommerce-form-coupon-toggle,
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders,
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads {
  display:none!important;
}
.rcm-merchant-note {
  margin:18px 0;padding:14px 18px;border-left:5px solid var(--napa-yellow);
  border-radius:10px;background:#fff8df;color:var(--ink);font-weight:700;
}
