/*
Theme Name: Capital Bullion Market
Description: A lightweight, responsive WooCommerce theme for Capital Bullion.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: capital-bullion-market
License: GPL-2.0-or-later
*/
:root {
  --ink: #16232a;
  --navy: #101e26;
  --navy-2: #1a2a33;
  --paper: #f9f8f4;
  --white: #fff;
  --line: #dedbd3;
  --subtle: #f0ede5;
  --muted: #52616a;
  --gold: #e3bd76;
  --link: #60451c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.62 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #a36a20; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.027em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { line-height: 1.24; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.cb-container { width: min(1220px, calc(100% - 56px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cb-skip:focus { z-index: 9; clip-path: none; width: auto; height: auto; padding: 12px 18px; background: white; }
.cb-header { background: #fbfaf6; }
.cb-header-row { min-height: 88px; display: grid; grid-template-columns: minmax(140px, 205px) minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 3vw, 38px); }
.cb-brand { display: inline-flex; gap: 12px; align-items: center; width: fit-content; color: var(--ink); text-decoration: none; font: 1.26rem/1 var(--serif); letter-spacing: -.025em; }
.cb-brand b { font-weight: 500; }
.cb-monogram { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #a2824a; font: 1.05rem/1 var(--serif); letter-spacing: -.06em; transform: rotate(-4deg); }
.custom-logo { max-width: min(190px, 100%); max-height: 58px; width: auto; object-fit: contain; }
.cb-search { display: flex; min-width: 0; min-height: 48px; border: 1px solid #cfcac0; border-radius: 7px; overflow: hidden; background: var(--white); }
.cb-search input[type=search] { width: 100%; min-width: 0; padding: 10px 14px; border: 0; background: transparent; }
.cb-search button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: var(--subtle); padding: 8px 14px; cursor: pointer; font-weight: 670; }
.cb-search:focus-within { outline: 2px solid #a36a20; outline-offset: 2px; }
.cb-header-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.cb-header-actions a, .cb-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; min-width: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font-size: max(16px, 1rem); font-weight: 650; text-decoration: none; }
.cb-header-actions a:hover, .cb-menu-toggle:hover, .cb-menu-toggle[aria-expanded=true] { background: var(--subtle); }
.cb-header-actions .cb-cart { border-color: var(--line); }
.cb-menu-toggle { cursor: pointer; }
.cb-icon { position: relative; display: inline-block; flex: none; width: 22px; height: 22px; }
.cb-icon::before, .cb-icon::after { content: ''; position: absolute; box-sizing: border-box; }
.cb-icon--menu::before { top: 10px; left: 1px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
.cb-icon--account::before { left: 7px; top: 1px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.cb-icon--account::after { left: 2px; bottom: 1px; width: 18px; height: 10px; border: 2px solid currentColor; border-radius: 10px 10px 4px 4px; }
.cb-icon--cart { background: linear-gradient(currentColor, currentColor) 1px 3px / 5px 2px no-repeat; }
.cb-icon--cart::before { left: 5px; top: 4px; width: 15px; height: 11px; border: 2px solid currentColor; border-radius: 2px 3px 4px 3px; transform: skewX(-9deg); }
.cb-icon--cart::after { left: 6px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: 10px 0 currentColor; }
.cb-icon--search::before { top: 2px; left: 2px; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; }
.cb-icon--search::after { top: 14px; left: 13px; width: 8px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.cb-navigation { position: relative; z-index: 5; border-bottom: 1px solid #32434d; background: var(--navy); }
.cb-navigation :focus-visible { outline-color: #d6a958; }
.cb-navigation > .cb-container { position: relative; }
.cb-menu, .cb-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.cb-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding-block: 3px; }
.cb-menu > li { display: flex; align-items: center; flex-wrap: wrap; }
.cb-menu a { min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
.cb-menu > li > a { display: flex; align-items: center; min-height: 48px; padding: 7px 4px; color: #f6f1e6; font-size: max(16px, 1.025rem); font-weight: 650; }
.cb-menu > li > a:hover, .cb-menu > .current-menu-item > a, .cb-menu > .current-menu-ancestor > a { color: #f1cf93; text-decoration: underline; }
.cb-menu > .cb-menu-shop > a { min-height: 40px; padding-inline: 14px; border-radius: 6px; background: var(--gold); color: #231a0b; }
.cb-menu > .cb-menu-shop > a:hover { background: #f1d29b; color: #231a0b; }
.cb-submenu-toggle { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.cb-menu > li > .cb-submenu-toggle { color: #f1cf93; }
.cb-menu > li > .cb-submenu-toggle:hover, .cb-menu > li > .cb-submenu-toggle[aria-expanded=true] { background: #283943; }
.cb-submenu-toggle::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.cb-submenu-toggle[aria-expanded=true]::before { transform: translateY(2px) rotate(225deg); }
.cb-menu .sub-menu a { display: flex; align-items: center; min-height: 40px; padding: 7px 8px; color: var(--ink); font-size: max(15px, .98rem); line-height: 1.35; border-radius: 5px; }
.cb-menu .sub-menu a:hover, .cb-menu .sub-menu .current-menu-item > a { background: var(--subtle); color: var(--link); text-decoration: underline; }
.cb-menu > li > .sub-menu { flex-basis: 100%; background: #fbfaf6; color: var(--ink); }
.cb-menu > li > .sub-menu > li > a { font-weight: 680; }
.cb-menu .sub-menu .sub-menu { margin-inline-start: 12px; padding-inline-start: 7px; border-inline-start: 1px solid var(--line); }
@media (min-width: 901px) {
  .cb-navigation--enhanced .cb-menu > li > .sub-menu { position: absolute; inset-inline: 0; top: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; max-height: 65vh; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 16px 28px #16232a23; }
}
.cb-hero { color: white; background: radial-gradient(ellipse at 85% 62%, #344148, var(--navy) 63%); }
.cb-hero-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 6vw, 84px); align-items: center; min-height: 510px; padding-block: 48px; }
.cb-hero-layout > .wp-block-group, .cb-hero-layout > .wp-block-image { margin: 0; min-width: 0; }
.cb-hero h1 { max-width: 12ch; font-size: clamp(3rem, 6.3vw, 5.85rem); letter-spacing: -.065em; }
.cb-eyebrow { font-size: .73rem; line-height: 1.4; letter-spacing: .14em; font-weight: 720; text-transform: uppercase; color: var(--link); margin-bottom: 11px; }
.cb-hero .cb-eyebrow { color: #edce94; }
.cb-lede { color: #e2e5e4; max-width: 46ch; font-size: clamp(1rem, 2vw, 1.18rem); margin: 18px 0 25px; }
.cb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cb-button, .cb-actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; min-height: 44px; border-radius: 6px; border: 1px solid transparent; font-family: var(--sans); font-size: .9rem; font-weight: 690; text-decoration: none; }
.cb-button.cb-button--gold, .cb-button--gold .wp-block-button__link { background: var(--gold); color: #231a0b; }
.cb-button.cb-button--gold:hover, .cb-button--gold .wp-block-button__link:hover { background: #f1d29b; }
.cb-button.cb-button--light, .cb-button--light .wp-block-button__link { color: white; border-color: #839198; background: transparent; }
.cb-button--outline { border-color: #ad9771; color: var(--link); }
.cb-hero-image { padding: 9px; border: 1px solid #958361; border-radius: 14px; background: #25343b; box-shadow: 0 14px 45px #07101555; }
.cb-hero-image img { width: 100%; height: clamp(255px, 35vw, 418px); border-radius: 8px; object-fit: contain; background: #f7f5ee; }
.cb-hero-image figcaption { color: #ede7dc; font-size: .81rem; padding: 8px 7px 1px; margin: 0; }
.cb-section { padding-block: clamp(37px, 6.5vw, 83px); }
.cb-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.cb-text-link { font-size: .9rem; font-weight: 650; }
.cb-collection-grid, .cb-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-product-grid, .cb-home-products > ul.wc-block-product-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cb-home-products > ul.wc-block-product-template { margin: 0; padding: 0; list-style: none; }
/* WooCommerce sizes flex items as a percentage of the row. In this grid each item fills its track. */
#content .cb-home-products > ul.wc-block-product-template > li.wc-block-product { width: auto; }
.cb-collection-card, .cb-product-card, .cb-home-products .wc-block-product { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.cb-collection-card > figure.cb-collection-media { margin: 0; display: grid; }
.cb-collection-media a { width: 100%; height: 100%; min-width: 0; }
.cb-collection-media, .cb-product-photo { display: grid; place-items: center; background: #efede6; padding: 10px; aspect-ratio: 5 / 3; }
.cb-collection-media img, .cb-product-photo img { height: 100%; width: 100%; object-fit: contain; border-radius: 5px; }
.cb-product-photo { aspect-ratio: 1; }
.cb-home-products .wc-block-components-product-image { margin: 0; padding: 10px; background: #efede6; }
.cb-home-products .wc-block-components-product-image a { display: block; aspect-ratio: 1; }
.cb-home-products .wc-block-components-product-image img { width: 100%; height: 100%; object-fit: contain !important; border-radius: 5px; }
.cb-home-products .wp-block-post-title { font: 650 1rem/1.24 var(--sans); margin: 16px 16px 8px; }
.cb-home-products .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.cb-home-products .wp-block-post-title a:hover { text-decoration: underline; }
.cb-home-products .wp-block-woocommerce-product-price { margin: 0 16px 16px; color: var(--ink); font-size: .92rem; font-weight: 700; }
.cb-collection-info, .cb-product-info { padding: 17px; }
.cb-collection-info h3 { font: 1.56rem/1.14 var(--serif); }
.cb-collection-info h3 a, .cb-product-info h3 a { color: var(--ink); text-decoration: none; }
.cb-collection-info h3 a:hover, .cb-product-info h3 a:hover { text-decoration: underline; }
.cb-collection-info p { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.cb-catalog-band { background: #eeebe3; }
.cb-product-info h3 { font-size: 1rem; }
.cb-product-price { margin: 9px 0 5px; color: var(--ink); font-weight: 700; }
.cb-product-price del { color: var(--muted); font-weight: 450; font-size: .86em; }
.cb-product-price ins, .woocommerce ins { text-decoration: none; }
.cb-reading { max-width: 920px; }
.cb-home-guide p, .cb-entry p { margin: .7em 0 1em; }
.cb-home-guide h3, .cb-entry h2, .cb-entry h3 { margin: 1.45em 0 .45em; }
.cb-home-guide h3 { font-size: 1.15rem; }
.cb-home-guide a { font-weight: 620; }
.cb-page, .cb-woo { padding-block: 35px 72px; min-height: 38vh; }
.cb-page-title { margin: 10px 0 24px; }
.cb-entry { overflow-wrap: anywhere; }
.cb-entry > table, .cb-entry .wp-block-table { overflow-x: auto; max-width: 100%; }
.cb-list-entry { padding-block: 18px; border-bottom: 1px solid var(--line); }
.cb-list-entry h2 { font-size: 1.6rem; }
.cb-footer { background: var(--navy); color: #e1e5e5; }
.cb-footer-grid { padding-block: 46px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 25px; }
.cb-brand--footer, .cb-footer a { color: #f5f0e6; }
.cb-footer-grid p { color: #bfc7c9; max-width: 28ch; margin-top: 16px; }
.cb-footer h2 { font: 700 .92rem/1.3 var(--sans); color: white; }
.cb-footer ul { list-style: none; margin: 10px 0 0; padding: 0; }
.cb-footer li { padding-block: 3px; }
.cb-footer li a { font-size: .91rem; }
.cb-footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 14px 23px; border-top: 1px solid #425058; color: #cbd1d1; font-size: .81rem; }
/* Use WooCommerce templates and controls with the store's typography and layout. */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); margin-bottom: 14px; }
.woocommerce .woocommerce-products-header { margin-bottom: 18px; }
.woocommerce .term-description, .woocommerce .page-description { max-width: 78ch; margin-top: 13px; }
.woocommerce .term-description p, .woocommerce .page-description p { margin-block: 10px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); background: white; padding: 6px 9px; max-width: 100%; }
#content ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin: 0 0 24px; padding: 0; }
#content ul.products::before, #content ul.products::after { display: none; }
#content ul.products > li.product { display: flex; flex-direction: column; float: none; clear: none; width: auto; min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: clamp(8px, 1.1vw, 13px); }
#content ul.products > li.product .woocommerce-loop-product__link { min-width: 0; }
#content ul.products > li.product .woocommerce-loop-product__title, #content ul.products > li.product .price { overflow-wrap: anywhere; }
#content ul.products > li.product .button { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 8px 9px; font-size: .9rem; line-height: 1.3; text-align: center; white-space: normal; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: #f6f4ed; border-radius: 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font: 650 1rem/1.25 var(--sans); }
.woocommerce .price { color: #54401f; }
.woocommerce span.onsale { background: #65491c; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link) { color: white; background: #253841; border-radius: 6px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #3c505a; color: white; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 84ch; }
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce-product-details__short-description p { margin-block: .6em 1em; }
.woocommerce .quantity .qty { min-width: 4em; }
.woocommerce table.variations select { max-width: 100%; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: 8px; border: 1px solid #bdbbb2; border-radius: 4px; }
.cb-entry iframe { max-width: 100%; }
@media (max-width: 1050px) {
  .cb-product-grid, .cb-home-products > ul.wc-block-product-template, #content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cb-header-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding-block: 10px; gap: 10px; }
  .cb-search { grid-row: 2; grid-column: 1 / -1; }
  .cb-header-actions { gap: 3px; }
  .cb-header-actions a, .cb-menu-toggle { flex-direction: column; gap: 4px; min-height: 54px; padding: 5px 6px; font-size: max(15px, .93rem); line-height: 1.1; }
  .cb-navigation--enhanced { max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; }
  .cb-menu { display: block; padding-block: 6px; }
  .cb-menu > li, .cb-menu .sub-menu > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cb-menu > li + li { border-top: 1px solid #32434d; }
  .cb-menu > li > a { min-height: 48px; padding-inline: 10px; }
  .cb-menu > .cb-menu-shop > a { min-height: 44px; width: fit-content; margin-block: 5px; }
  .cb-menu .sub-menu a { min-height: 44px; padding-inline: 10px; }
  .cb-menu > li > .sub-menu { margin-bottom: 7px; padding: 6px; border-radius: 7px; }
  .cb-menu li > .sub-menu { grid-column: 1 / -1; }
  .cb-menu .sub-menu .cb-submenu-toggle:hover, .cb-menu .sub-menu .cb-submenu-toggle[aria-expanded=true] { background: var(--subtle); }
  .cb-hero-layout { min-height: 425px; gap: 24px; }
}
@media (max-width: 720px) {
  .cb-container { width: calc(100% - 32px); }
  .cb-product-grid, .cb-home-products > ul.wc-block-product-template, #content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cb-home-products .wp-block-post-title { margin-inline: 10px; font-size: .94rem; overflow-wrap: anywhere; }
  .cb-home-products .wp-block-woocommerce-product-price { margin-inline: 10px; overflow-wrap: anywhere; }
  .cb-hero-layout { grid-template-columns: 1fr; min-height: 0; padding-block: 34px; gap: 25px; }
  .cb-hero-image { width: min(100%, 470px); margin-inline: auto; }
  .cb-hero-image img { height: 270px; }
  .cb-collection-grid { grid-template-columns: 1fr; gap: 12px; }
  .cb-collection-card { display: grid; grid-template-columns: minmax(100px, .85fr) 1fr; align-items: stretch; }
  .cb-collection-media { aspect-ratio: auto; min-height: 130px; }
  .cb-collection-info { align-self: center; }
  .cb-footer-grid { grid-template-columns: 1fr 1fr; }
  .cb-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .cb-brand { gap: 6px; font-size: 1.08rem; }
  .cb-monogram { width: 35px; height: 35px; }
  .cb-product-info { padding: 11px; }
  .cb-hero h1 { font-size: 2.68rem; }
}
