/*
Theme Name: READY TRADING
Theme URI: https://thereadytrading.com
Author: READY TRADING, LLC
Description: Custom editorial WooCommerce theme for READY TRADING.
Version: 1.0.0
Text Domain: readytrading
*/

:root {
  --rt-ink: #181818;
  --rt-paper: #ffffff;
  --rt-soft: #f4f3f0;
  --rt-line: #d8d5cf;
  --rt-muted: #66645f;
  --rt-accent: #606b3c;
  --rt-max: 1320px;
  --rt-serif: Georgia, 'Times New Roman', serif;
  --rt-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--rt-ink); background: var(--rt-paper); font-family: var(--rt-sans); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rt-accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: 3px; }
.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; }
.skip-link:focus { top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; background: #fff; z-index: 9999; }
.rt-container { width: min(calc(100% - 48px), var(--rt-max)); margin-inline: auto; }
.rt-eyebrow { margin: 0 0 14px; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.rt-title { margin: 0 0 24px; font-family: var(--rt-serif); font-size: clamp(2rem, 4vw, 4.1rem); font-weight: 400; line-height: 1.08; letter-spacing: .025em; }
.rt-button, .button, button.button, input.button, .wp-element-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 28px; border: 1px solid var(--rt-ink); border-radius: 0; color: #fff; background: var(--rt-ink); font-size: .77rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.rt-button:hover, .button:hover, button.button:hover, input.button:hover, .wp-element-button:hover { color: var(--rt-ink); background: #fff; }
.rt-button:active, .button:active { transform: scale(.98); }
.rt-button--light { border-color: #fff; color: var(--rt-ink); background: rgba(255,255,255,.9); }

.rt-announcement { padding: 12px 20px; color: #fff; background: var(--rt-ink); text-align: center; font-family: var(--rt-serif); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.rt-header { position: relative; z-index: 50; border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.97); }
.rt-header__inner { display: grid; grid-template-columns: 280px 1fr auto; min-height: 104px; align-items: center; gap: 32px; }
.rt-logo img { width: 280px; }
.rt-nav > .rt-menu { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.rt-nav a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--rt-serif); font-size: .96rem; letter-spacing: .09em; text-transform: uppercase; }
.rt-menu__shop { position: static; }
.rt-menu__shop-row { display: flex; align-items: center; }
.rt-menu__shop-link { position: relative; }
.rt-menu__shop-link::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--rt-ink); transform: scaleX(0); transition: transform .2s ease; }
.rt-menu__shop:hover .rt-menu__shop-link::after, .rt-menu__shop:focus-within .rt-menu__shop-link::after, .rt-menu__shop.is-mega-open .rt-menu__shop-link::after { transform: scaleX(1); }
.rt-mega-toggle { display: inline-grid; width: 34px; height: 44px; place-items: center; padding: 0; border: 0; color: var(--rt-ink); background: transparent; cursor: pointer; }
.rt-mega-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s ease; }
.rt-menu__shop.is-mega-open .rt-mega-toggle svg { transform: rotate(180deg); }
.rt-mega { position: absolute; z-index: 20; top: 100%; right: 0; left: 0; visibility: hidden; padding: 0 max(24px, calc((100vw - var(--rt-max)) / 2)); border-top: 1px solid var(--rt-line); background: #f8f7f5; box-shadow: 0 18px 32px rgba(0,0,0,.1); opacity: 0; transform: translateY(-8px); transition: visibility .2s ease, opacity .2s ease, transform .2s ease; }
.rt-menu__shop:hover .rt-mega, .rt-menu__shop:focus-within .rt-mega, .rt-menu__shop.is-mega-open .rt-mega { visibility: visible; opacity: 1; transform: translateY(0); }
.rt-mega__inner { display: grid; grid-template-columns: .9fr 1.2fr 1fr 320px; gap: clamp(30px, 4vw, 70px); max-width: var(--rt-max); min-height: 390px; margin: 0 auto; padding: 44px 0; }
.rt-mega__group h2 { margin: 0 0 22px; font-family: var(--rt-serif); font-size: 1rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.rt-mega__group ul { display: block; margin: 0; padding: 0; list-style: none; }
.rt-mega__group li { margin: 0 0 13px; }
.rt-mega__group a { min-height: 34px; color: var(--rt-muted); font-family: var(--rt-sans); font-size: .86rem; letter-spacing: .015em; }
.rt-mega__group a:hover { color: var(--rt-ink); }
.rt-mega__image { display: block !important; min-height: 300px !important; overflow: hidden; }
.rt-mega__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .35s ease; }
.rt-mega__image:hover img { transform: scale(1.025); }
.rt-header__actions { display: flex; gap: 8px; }
.rt-icon { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; color: var(--rt-ink); background: transparent; cursor: pointer; }
.rt-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.rt-cart-count { position: absolute; top: 2px; right: 0; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 10px; color: #fff; background: var(--rt-ink); font: 700 10px/1 var(--rt-sans); }
.rt-menu-toggle { display: none; }

.rt-hero { position: relative; min-height: min(780px, calc(100vh - 145px)); overflow: hidden; background: #e8e8e6; }
.rt-slides, .rt-slide { position: absolute; inset: 0; }
.rt-slide { visibility: hidden; opacity: 0; transition: opacity .55s ease, visibility .55s ease; }
.rt-slide.is-active { visibility: visible; opacity: 1; z-index: 1; }
.rt-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.07), transparent 45%, rgba(0,0,0,.07)); }
.rt-slide > img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.rt-slide__content { position: absolute; z-index: 2; left: 50%; bottom: 16%; transform: translateX(-50%); text-align: center; }
.rt-slider__arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 48px; height: 56px; place-items: center; border: 0; color: var(--rt-ink); background: rgba(255,255,255,.78); cursor: pointer; transform: translateY(-50%); transition: background .2s ease; }
.rt-slider__arrow:hover { background: #fff; }
.rt-slider__arrow svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rt-slider__arrow--prev { left: 20px; }
.rt-slider__arrow--next { right: 20px; }
.rt-slider__dots { position: absolute; z-index: 3; right: 0; bottom: 28px; left: 0; display: flex; justify-content: center; gap: 10px; }
.rt-slider__dot { width: 11px; height: 11px; min-height: 0; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(24,24,24,.36); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; }
.rt-slider__dot.is-active { background: #fff; }
.rt-section { padding: clamp(72px, 8vw, 120px) 0; }
.rt-section--soft { background: var(--rt-soft); }
.rt-section__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rt-section__header h2 { margin: 0; font-family: var(--rt-serif); font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.rt-text-link { padding-bottom: 3px; border-bottom: 1px solid; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.rt-products ul.products, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); clear: both; gap: 42px 20px; margin: 0 !important; padding: 0 !important; }
.rt-products ul.products::before, .rt-products ul.products::after, .woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.rt-products ul.products li.product, .woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; text-align: left; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 9/16; object-fit: cover; margin: 0 0 17px; background: #efefed; transition: opacity .25s ease; }
.woocommerce ul.products li.product a:hover img { opacity: .92; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.2em; padding: 0; font-family: var(--rt-serif); font-size: 1rem; font-weight: 400; line-height: 1.55; letter-spacing: .02em; }
.woocommerce ul.products li.product .price { color: var(--rt-ink); font-size: .92rem; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 12px; min-height: 44px; padding: 9px 14px; }

.rt-collections-page { padding: clamp(58px, 7vw, 104px) 0 clamp(80px, 9vw, 130px); background: #f7f7f6; }
.rt-collections-page__header { margin-bottom: clamp(36px, 5vw, 60px); text-align: center; }
.rt-collections-page__header h1 { margin: 0; font-family: var(--rt-serif); font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 400; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; }
.rt-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.rt-collection-card { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; color: #fff; background: #d9d8d5; }
.rt-collection-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.42), rgba(0,0,0,.02) 58%); transition: background .25s ease; }
.rt-collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rt-collection-card span { position: absolute; z-index: 1; right: 28px; bottom: 25px; left: 28px; font-family: var(--rt-serif); font-size: clamp(1.2rem, 2vw, 2rem); line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.rt-collection-card:hover { color: #fff; }
.rt-collection-card:hover::after { background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.04) 62%); }
.rt-collection-card:hover img { transform: scale(1.025); }

.rt-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rt-line); }
.rt-story__card { min-height: 370px; padding: clamp(34px, 5vw, 64px); background: #fff; }
.rt-story__card h3 { margin: 0 0 16px; font-family: var(--rt-serif); font-size: 1.7rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.rt-story__card p { color: var(--rt-muted); }
.rt-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rt-collection { position: relative; min-height: 520px; overflow: hidden; color: #fff; background: #333; }
.rt-collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.rt-collection::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.58), transparent 58%); }
.rt-collection__label { position: absolute; z-index: 1; left: 34px; bottom: 26px; font-family: var(--rt-serif); font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: .08em; text-transform: uppercase; }
.rt-collection:hover img { transform: scale(1.025); }
.rt-testimonial { max-width: 920px; margin: 0 auto; text-align: center; }
.rt-testimonial blockquote { margin: 0 0 20px; font-family: var(--rt-serif); font-size: clamp(1.35rem, 2.5vw, 2.2rem); font-style: italic; line-height: 1.55; }

.rt-services { color: #fff; background: var(--rt-ink); }
.rt-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rt-service { padding: 38px clamp(24px, 4vw, 58px); border-right: 1px solid #3d3d3d; text-align: center; }
.rt-service:last-child { border: 0; }
.rt-service strong { display: block; margin-bottom: 8px; font-family: var(--rt-serif); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.rt-service span { color: #c8c8c8; font-size: .9rem; }
.rt-footer { padding: 74px 0 28px; background: #f1f0ed; }
.rt-footer__grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 60px; }
.rt-footer h2 { margin: 0 0 18px; font-family: var(--rt-serif); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.rt-footer ul { margin: 0; padding: 0; list-style: none; }
.rt-footer li { margin: 8px 0; }
.rt-footer input[type=email] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #777; background: transparent; }
.rt-footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rt-line); color: var(--rt-muted); font-size: .82rem; }
.rt-social { display: flex; gap: 10px; margin-top: 22px; }
.rt-social a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #aaa8a2; border-radius: 50%; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.rt-social a:hover { border-color: var(--rt-ink); color: #fff; background: var(--rt-ink); }
.rt-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rt-social a:first-child svg, .rt-social__fill { fill: currentColor; stroke: none; }

.rt-page { padding: clamp(64px, 8vw, 110px) 0; }
.rt-page__header { max-width: 920px; margin: 0 auto 52px; text-align: center; }
.rt-page__content { max-width: 880px; margin: 0 auto; }
.rt-page__content h2, .rt-page__content h3 { font-family: var(--rt-serif); font-weight: 400; }
.rt-page__content a { text-decoration: underline; text-underline-offset: 3px; }
.rt-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.rt-contact-card { padding: 36px; background: var(--rt-soft); }
.rt-contact-card h2 { margin-top: 0; }

.woocommerce .woocommerce-breadcrumb { color: var(--rt-muted); font-size: .82rem; }
.rt-shop-page { padding-top: clamp(54px, 6vw, 84px); }
.rt-shop-page .woocommerce-products-header { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.rt-shop-page .woocommerce-products-header__title.page-title, .rt-shop-page h1.page-title { margin: 0 0 clamp(36px, 5vw, 58px); font-family: var(--rt-serif); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 400; line-height: 1.1; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.rt-shop-page .term-description { max-width: 680px; margin: 18px auto 0; color: var(--rt-muted); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 30px; }
.rt-shop-page .woocommerce-result-count { padding-top: 10px; color: var(--rt-muted); }
.rt-shop-page .woocommerce-ordering select { min-width: 220px; background: #fff; }
.woocommerce div.product { padding-bottom: 80px; }
.woocommerce div.product .product_title { font-family: var(--rt-serif); font-weight: 400; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rt-ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { min-height: 48px; padding: 10px 12px; border: 1px solid #8a8985; border-radius: 0; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--rt-accent); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--rt-accent); }

@media (max-width: 980px) {
  .rt-header__inner { grid-template-columns: auto 1fr auto; min-height: 84px; }
  .rt-logo img { width: 230px; }
  .rt-menu-toggle { display: inline-flex; }
  .rt-nav { position: absolute; top: 100%; left: 0; width: 100%; max-height: 0; overflow: auto; background: #fff; transition: max-height .25s ease; }
  .rt-nav.is-open { max-height: calc(100vh - 120px); border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); }
  .rt-nav > .rt-menu { display: block; padding: 16px 24px 24px; }
  .rt-nav a { width: 100%; }
  .rt-menu__shop-row { justify-content: space-between; }
  .rt-mega-toggle { width: 44px; }
  .rt-mega { position: static; max-height: 0; visibility: visible; padding: 0; overflow: hidden; border: 0; box-shadow: none; opacity: 1; transform: none; transition: max-height .3s ease; }
  .rt-menu__shop:hover .rt-mega, .rt-menu__shop:focus-within .rt-mega { max-height: 0; }
  .rt-menu__shop.is-mega-open .rt-mega { max-height: 1200px; border-top: 1px solid var(--rt-line); }
  .rt-mega__inner { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 0; padding: 28px 0; }
  .rt-mega__image { display: none !important; }
  .rt-products ul.products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-story { grid-template-columns: 1fr; }
  .rt-story__card { min-height: 0; }
  .rt-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .rt-container { width: min(calc(100% - 30px), var(--rt-max)); }
  .rt-announcement { font-size: .7rem; }
  .rt-header__inner { gap: 7px; }
  .rt-logo img { width: 176px; }
  .rt-header__actions .rt-account, .rt-header__actions .rt-search { display: none; }
  .rt-mega__inner { grid-template-columns: 1fr; gap: 24px; }
  .rt-mega__group h2 { margin-bottom: 10px; }
  .rt-mega__group li { margin-bottom: 4px; }
  .rt-hero { min-height: 68vh; }
  .rt-slide > img { object-position: center center; }
  .rt-slide__content { bottom: 12%; width: calc(100% - 80px); }
  .rt-slider__arrow { width: 42px; height: 48px; }
  .rt-slider__arrow--prev { left: 8px; }
  .rt-slider__arrow--next { right: 8px; }
  .rt-slider__dots { bottom: 18px; }
  .rt-section__header { display: block; }
  .rt-section__header .rt-text-link { display: inline-block; margin-top: 14px; }
  .rt-products ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 0; font-size: .92rem; }
  .woocommerce ul.products li.product .button { font-size: .66rem; letter-spacing: .1em; }
  .rt-collection-grid { grid-template-columns: 1fr; gap: 16px; }
  .rt-collection-card span { right: 20px; bottom: 18px; left: 20px; }
  .rt-shop-page .woocommerce-result-count, .rt-shop-page .woocommerce-ordering { float: none; width: 100%; }
  .rt-shop-page .woocommerce-ordering select { width: 100%; }
  .rt-collections { grid-template-columns: 1fr; }
  .rt-collection { min-height: 390px; }
  .rt-services__grid { grid-template-columns: 1fr; }
  .rt-service { border-right: 0; border-bottom: 1px solid #3d3d3d; }
  .rt-footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .rt-footer__bottom { display: block; }
  .rt-contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
