/*
Theme Name: Texas Peddler
Description: A warm Texas general store for shopping stories, garage-sale finds, and graphic tees. A native WordPress and WooCommerce block theme.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Author: Texas Peddler
Text Domain: texas-peddler
License: GPL-2.0-or-later
*/

:root {
  --tp-ink: #071b34;
  --tp-red: #b52c2b;
  --tp-cream: #f6f0e4;
  --tp-paper: #fffaf2;
  --tp-sand: #e7ddca;
  --tp-muted: #5a625f;
}

html { scroll-behavior: smooth; }
body { margin: 0; }
* { box-sizing: border-box; }
img { max-width: 100%; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.tp-container { width: min(1200px, calc(100% - 64px)); max-width: 1200px; margin-inline: auto; }
.tp-section { padding: 72px 0; margin-block: 0; }
.tp-section > .tp-container { margin-top: 0; }
.tp-home-main { margin: 0; }
.tp-home-main > .wp-block-post-content > * { margin-block-start: 0; }
.tp-eyebrow { margin: 0 0 14px; color: var(--tp-red); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.6; }
.tp-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.tp-section-heading-copy { max-width: 760px; }
.tp-section-heading h2 { margin: 0; font-size: clamp(30px, 3.3vw, 45px); letter-spacing: -.035em; }
.tp-section-description { max-width: 660px; margin: 14px 0 0; color: var(--tp-muted); font-size: 15px; }
.tp-text-link { flex-shrink: 0; margin: 0; font-size: 13px; font-weight: 750; }
.tp-text-link a { display: inline-block; padding: 10px 0; color: var(--tp-ink); text-decoration: none; border-bottom: 1px solid var(--tp-red); }
.tp-text-link a:hover { color: var(--tp-red); }
a:focus-visible, button:focus-visible { outline: 3px solid #c78635; outline-offset: 4px; }

/* One shared, editable block header. */
.tp-header-shell { padding: 14px 0; background: var(--tp-paper); border-top: 5px solid var(--tp-red); border-bottom: 1px solid var(--tp-sand); }
.tp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tp-header-brand { flex: 0 0 auto; margin: 0; }
.tp-header-brand .wp-block-site-logo { margin: 0; }
.tp-header-brand .custom-logo { display: block; width: 176px; height: auto; border-radius: 3px; }
.tp-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0; }
.tp-header-actions > * { margin-block: 0; }
.tp-main-nav { margin: 0; }
.tp-main-nav .wp-block-navigation__container { gap: 4px; }
.tp-main-nav .wp-block-navigation-item__content { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 10px 12px; color: var(--tp-ink); border-radius: 4px; font-size: 17px; line-height: 1.3; font-weight: 700; text-decoration: none; transition: color .18s, background-color .18s; }
.tp-main-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; background: var(--tp-red); transform: scaleX(0); transition: transform .18s; }
.tp-main-nav .wp-block-navigation-item__content:hover,
.tp-main-nav .wp-block-navigation-item__content:focus-visible { color: var(--tp-red); background: #efe1c7; text-decoration: none; }
.tp-main-nav .wp-block-navigation-item__content:hover::after,
.tp-main-nav .wp-block-navigation-item__content:focus-visible::after { transform: scaleX(1); }
.tp-mini-cart { display: flex; align-items: center; margin: 0; }
.tp-header-actions .wp-block-woocommerce-customer-account { display: flex; align-items: center; flex: 0 0 auto; margin: 0; }
.tp-header-actions .wc-block-customer-account__link,
.tp-mini-cart .wc-block-mini-cart__button { display: inline-flex; align-items: center; justify-content: center; width: 52px; min-width: 52px; height: 52px; min-height: 52px; margin: 0; padding: 6px; color: var(--tp-ink); border: 1px solid transparent; border-radius: 50%; line-height: 1; transition: color .18s, background-color .18s, border-color .18s; }
.tp-header-actions .wc-block-customer-account__account-icon,
.tp-mini-cart .wc-block-mini-cart__icon { display: block; flex: 0 0 auto; width: 40px; height: 40px; }
.tp-header-actions .wc-block-customer-account__link:hover,
.tp-mini-cart .wc-block-mini-cart__button:hover { color: var(--tp-red); background: #efe1c7; border-color: #d5bc92; text-decoration: none; }
.tp-mini-cart .wc-block-mini-cart__quantity-badge { display: flex; align-items: center; justify-content: center; }
.tp-mini-cart .wc-block-mini-cart__amount { font-size: 12px; }
.tp-main-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 48px 28px; color: var(--tp-ink); background: var(--tp-cream); }
.tp-main-nav .is-menu-open .wp-block-navigation-item__content { padding: 8px; font-size: 22px; }
.tp-main-nav .wp-block-navigation__responsive-container-close,
.tp-main-nav .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; }

/* The new mark and a printed general-store introduction. */
.tp-hero { padding: 62px 0 58px; }
.tp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.tp-hero-copy, .tp-hero-art { min-width: 0; margin: 0; }
.tp-hero-title { margin: 0 0 22px; font-size: clamp(44px, 4.6vw, 67px); font-weight: 700; line-height: 1.035; letter-spacing: -.045em; }
.tp-hero-description { max-width: 460px; margin: 0 0 26px; color: #4e595d; font-size: 16px; line-height: 1.75; }
.tp-hero .wp-block-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); align-items: stretch; gap: 12px; margin-top: 0; }
.tp-hero .wp-block-button { display: flex; width: 100%; margin: 0; }
.tp-hero .wp-block-buttons .wp-block-button > .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--tp-ink); font-size: 14px; line-height: 1.4; text-align: center; }
.wp-block-button .wp-block-button__link { transition: background-color .15s, color .15s; }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--tp-ink); background: transparent; border: 1px solid var(--tp-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--tp-paper); background: var(--tp-ink); }
/* A decorative frame around the unchanged Austin photograph. */
.tp-hero-photo {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 26px;
  border: 6px solid #392316;
  background:
    linear-gradient(135deg, #c0925840, transparent 35%, #130b0760),
    repeating-linear-gradient(3deg, #634027 0, #634027 2px, #6d482d 3px, #56351f 5px, #704b30 7px, #5e3b25 10px);
  box-shadow: inset 0 0 0 1px #bb8e55, inset 0 0 0 5px #71472a, inset 0 0 0 7px #2e1b10, 3px 4px 0 #bda37e, 0 16px 28px #39231626;
}
.tp-hero-photo::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid #b58b55;
  box-shadow: 0 0 0 2px #2f1c124d, inset 0 0 0 2px #2f1c124d;
  pointer-events: none;
}
.tp-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/western-brass-star.svg'), url('assets/images/western-brass-star.svg'), url('assets/images/western-brass-star.svg'), url('assets/images/western-brass-star.svg');
  background-position: 2px 2px, calc(100% - 2px) 2px, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px);
  background-size: 25px 25px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.tp-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 3px #2f1c12, 0 0 0 4px #c49a60, 0 0 0 6px #412819;
}
.tp-art-caption { margin: 23px 0 0; text-align: center; font-size: 10px; font-weight: 750; letter-spacing: .17em; }
.tp-browse-strip { padding: 22px 0; background: var(--tp-sand); border-top: 1px solid #cfc1a7; border-bottom: 1px solid #cfc1a7; }
.tp-browse-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tp-browse-inner > .tp-eyebrow { flex-shrink: 0; margin: 0; color: var(--tp-ink); font-size: 10px; }
.tp-browse-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.tp-browse-link { margin: 0; font-size: 14px; font-weight: 700; }
.tp-browse-link a { display: inline-block; padding: 6px 0; color: var(--tp-ink); }
.tp-browse-link a:hover { color: var(--tp-red); }

/* Native WooCommerce Product Collection blocks. */
.tp-products { margin-top: 0; }
.tp-products .wp-block-woocommerce-product-template { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; padding: 0; margin: 0; }
.tp-products .wp-block-woocommerce-product-template > li { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--tp-paper); border: 1px solid #d5cbb9; border-radius: 3px; }
.tp-products .wc-block-components-product-image { margin: 0; background: #fff; }
.tp-products .wc-block-components-product-image img { display: block; width: 100%; margin: 0; }
.tp-products .wp-block-post-title { margin: 17px 18px 9px !important; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; line-height: 1.3; font-weight: 700; }
.tp-products .wp-block-post-title a { color: var(--tp-ink); text-decoration: none; }
.tp-products .wp-block-post-title a:hover { color: var(--tp-red); text-decoration: underline; text-underline-offset: 3px; }
.tp-products .wc-block-components-product-price { margin: 0 18px 15px !important; color: var(--tp-red); font-size: 15px; font-weight: 750; line-height: 1.5; }
.tp-products .wc-block-components-product-price del { color: #737773; font-size: 12px; font-weight: 400; }
.tp-products .wc-block-components-product-price ins { text-decoration: none; }
.tp-products .wp-block-woocommerce-product-button { padding: 0 18px 18px; margin-top: auto !important; }
.tp-products .wp-block-button__link { display: inline-flex; justify-content: center; width: 100%; min-height: 43px; padding: 11px 10px; color: var(--tp-paper); background: var(--tp-ink); border: 1px solid var(--tp-ink); border-radius: 2px; font-family: inherit; font-size: 12px; font-weight: 750; line-height: 1.4; text-align: center; text-decoration: none; }
.tp-products .wp-block-button__link:hover { color: #fff; background: var(--tp-red); border-color: var(--tp-red); }
.tp-products .wc-block-components-product-button__button { margin: 0; }
.tp-garage-products .wc-block-components-product-image { aspect-ratio: 4 / 3; }
.tp-garage-products .wc-block-components-product-image img { height: 100%; object-fit: cover; }
.tp-shirt-products .wc-block-components-product-image,
.tp-catalog-products .wc-block-components-product-image { aspect-ratio: 1; padding: 10px; }
.tp-shirt-products .wc-block-components-product-image img,
.tp-catalog-products .wc-block-components-product-image img { height: 100%; object-fit: contain; }
.tp-products .wp-block-query-pagination { gap: 16px; margin: 32px 0 0; font-weight: 700; }

/* Article cards stay connected to the live WordPress posts. */
.tp-stories-section { background: var(--tp-paper); border-top: 1px solid var(--tp-sand); border-bottom: 1px solid var(--tp-sand); }
.tp-stories-query { margin: 0; }
.tp-story-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 26px !important; padding: 0; margin: 0; list-style: none; }
.tp-story-grid > li { min-width: 0; margin: 0; }
.tp-story-card { height: 100%; overflow: hidden; background: var(--tp-cream); border: 1px solid #d5cbb9; border-radius: 3px; }
.tp-story-card .wp-block-post-featured-image { margin: 0; }
.tp-story-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tp-story-content { padding: 23px; margin: 0; }
.tp-story-content .wp-block-post-title { margin: 0 0 14px; font-size: 26px; line-height: 1.15; }
.tp-story-content .wp-block-post-title a { color: var(--tp-ink); }
.tp-story-content .wp-block-post-excerpt { margin: 0; color: #535d60; font-size: 14px; line-height: 1.75; }
.tp-story-content .wp-block-post-excerpt__excerpt { margin: 0; }
.tp-story-content .wp-block-post-excerpt__more-text { margin: 18px 0 0; }
.tp-story-content .wp-block-post-excerpt__more-link { color: var(--tp-red); font-size: 12px; font-weight: 750; }
.tp-tees-section { color: var(--tp-paper); background: var(--tp-ink); }
.tp-tees-section .tp-section-heading h2 { color: var(--tp-paper); }
.tp-tees-section .tp-eyebrow { color: #e7b56d; }
.tp-tees-section .tp-section-description { color: #cbd2db; }
.tp-tees-section .tp-text-link a { color: var(--tp-paper); border-color: #c4775d; }
.tp-last-call { display: flex; align-items: center; min-height: 400px; padding: 64px 0; color: var(--tp-paper); background-color: var(--tp-ink); background-image: linear-gradient(90deg, #071b34f2 0%, #071b34d9 40%, #071b3480 68%, #071b3426 100%), url('assets/images/texas-hill-country-background.jpg'); background-position: center, center 58%; background-size: cover; background-repeat: no-repeat; border-top: 1px solid #ba9563; border-bottom: 3px solid var(--tp-sand); }
.tp-last-call .tp-eyebrow { color: #edc98c; }
.tp-last-call-inner h2 { color: var(--tp-paper); }
.tp-last-call-inner h2::before { content: ""; display: block; width: 36px; height: 36px; margin-bottom: 18px; background: url('assets/images/western-brass-star.svg') center / contain no-repeat; }
.tp-last-call .wp-block-button__link { color: var(--tp-ink); background: #edc98c; border-color: #edc98c; }
.tp-last-call .wp-block-button__link:hover { color: var(--tp-ink); background: #fff0d2; border-color: #fff0d2; }
.tp-section-heading .tp-eyebrow::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -3px; background: url('assets/images/western-brass-star.svg') center / contain no-repeat; }
.tp-last-call-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.tp-last-call-inner h2 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.025em; }
.tp-last-call-inner > div:first-child > p:last-child { max-width: 610px; margin-bottom: 0; color: #e1e7e9; font-size: 14px; }
.tp-last-call-inner > .wp-block-buttons { flex: 0 0 auto; margin: 0; }

/* Shared block footer: no legacy sidebar widgets or affiliate promotions. */
.tp-footer-shell { padding: 62px 0 0; color: #e1e4e8; background: var(--tp-ink); }
.tp-footer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: start; }
.tp-footer-shell .tp-eyebrow { color: #e7b56d; }
.tp-footer-intro h2 { margin: 0 0 18px; color: var(--tp-paper); font-size: clamp(30px, 3.1vw, 44px); font-weight: 400; letter-spacing: -.03em; }
.tp-footer-description { max-width: 390px; margin: 0; color: #b9c2cf; font-size: 14px; }
.tp-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 0; }
.tp-footer-links h3 { margin: 0 0 18px; color: var(--tp-paper); font-family: inherit; font-size: 13px; font-weight: 750; line-height: 1.6; }
.tp-footer-link { margin: 0 0 12px; font-size: 13px; }
.tp-footer-link a { display: inline-block; color: #c8ced8; }
.tp-footer-link a:hover { color: #fff; }
.tp-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 46px; padding: 22px 0; border-top: 1px solid #334357; }
.tp-footer-bottom p { margin: 0; color: #aab5c4; font-size: 11px; }
.tp-footer-tagline { letter-spacing: .03em; }

/* Article, shop, and standard-page templates use the same new theme. */
.tp-page-main, .tp-single-main { padding: 54px 0 64px; }
.tp-page-content > .wp-block-post-title { margin: 0 0 32px; font-size: clamp(36px, 4vw, 56px); }
.tp-page-content > .wp-block-post-content { margin-top: 0; }
.tp-blog-content { padding: 55px 0 72px; }
.tp-blog-content > .wp-block-query-title { margin-bottom: 32px; }
.tp-article-heading { max-width: 1000px; }
.tp-article-heading > .wp-block-post-title { max-width: 860px; margin: 0 0 30px; font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.035em; }
.tp-article-heading > .wp-block-post-featured-image { margin: 0 0 40px; }
.tp-article-body { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.tp-article-body .wp-block-post-content { font-size: 17px; line-height: 1.85; }
.tp-article-body img { height: auto; }
.tp-article-body h2, .tp-article-body h3 { margin-top: 32px; }
.tp-article-back { max-width: 760px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #cfc1a7; }
.tp-catalog-main, .tp-single-product-main { padding: 45px 0 65px; }
.tp-catalog-main > .wp-block-query-title { margin: 15px 0 24px; font-size: clamp(36px, 4vw, 52px); }
.tp-catalog-main > .wp-block-group { margin-bottom: 26px; }
.tp-catalog-main .woocommerce-result-count { font-size: 13px; }
.tp-catalog-main .woocommerce-ordering select { max-width: 100%; padding: 9px; font: inherit; font-size: 13px; border: 1px solid #c3b8a4; background: var(--tp-paper); }
.tp-single-product-main > .wp-block-columns { margin-top: 28px; }
.tp-single-product-main h1 { font-size: clamp(32px, 3.1vw, 46px); letter-spacing: -.025em; }
.tp-single-product-main .wp-block-woocommerce-product-price { color: var(--tp-red); font-size: 24px; font-weight: 700; }
.tp-single-product-main .woocommerce-product-gallery img { background: #fff; }
.tp-single-product-main .variations select { min-height: 44px; padding: 8px; border: 1px solid #b8aa91; background: var(--tp-paper); }
.wp-site-blocks .woocommerce input[type='text'],
.wp-site-blocks .woocommerce input[type='email'],
.wp-site-blocks .woocommerce input[type='tel'],
.wp-site-blocks .woocommerce input[type='number'],
.wp-site-blocks .woocommerce input[type='password'],
.wp-site-blocks .woocommerce select,
.wp-site-blocks .woocommerce textarea { max-width: 100%; min-height: 44px; padding: 10px 12px; color: var(--tp-ink); font: inherit; font-size: 15px; background: var(--tp-paper); border: 1px solid #b8aa91; border-radius: 3px; }
.wp-site-blocks .woocommerce button.button,
.wp-site-blocks .woocommerce a.button,
.wp-site-blocks .woocommerce input.button,
.wp-site-blocks .single_add_to_cart_button { min-height: 44px; padding: 12px 18px; color: var(--tp-paper); background: var(--tp-ink); border: 1px solid var(--tp-ink); border-radius: 3px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; }
.wp-site-blocks .woocommerce button.button:hover,
.wp-site-blocks .woocommerce a.button:hover,
.wp-site-blocks .single_add_to_cart_button:hover { color: #fff; background: var(--tp-red); }
.wp-site-blocks .woocommerce #respond input#submit.alt,
.wp-site-blocks .woocommerce a.button.alt,
.wp-site-blocks .woocommerce button.button.alt,
.wp-site-blocks .woocommerce input.button.alt { color: #fff; background: var(--tp-ink); }
.wp-site-blocks .woocommerce form .form-row label { font-size: 13px; font-weight: 700; }
.wp-site-blocks .woocommerce h2, .wp-site-blocks .woocommerce h3 { font-family: Georgia, 'Times New Roman', serif; }
.wp-site-blocks .woocommerce table.shop_table { border-color: #cfc1a7; background: var(--tp-paper); }
.wp-site-blocks .woocommerce table.shop_table th { font-size: 13px; }
.wp-site-blocks .woocommerce-info { border-top-color: var(--tp-ink); background: var(--tp-paper); }
.wp-site-blocks .woocommerce-message { border-top-color: #416847; background: var(--tp-paper); }
.wp-site-blocks .woocommerce-error { border-top-color: var(--tp-red); background: var(--tp-paper); }
.wc-block-components-drawer__screen-overlay { z-index: 100000; }

@media (max-width: 1000px) {
  .tp-container { width: calc(100% - 48px); }
  .tp-header-actions { gap: 15px; }
  .tp-main-nav .wp-block-navigation__container { gap: 0; }
  .tp-main-nav .wp-block-navigation-item__content { padding-inline: 9px; font-size: 16px; }
  .tp-header-brand .custom-logo { width: 150px; }
  .tp-hero-grid { gap: 36px; }
  .tp-hero-title { font-size: 50px; }
  .tp-art-caption { font-size: 9px; letter-spacing: .1em; }
  .tp-browse-inner { align-items: flex-start; }
  .tp-browse-links { gap: 8px 20px; }
  .tp-products .wp-block-woocommerce-product-template { gap: 18px !important; }
  .tp-products .wp-block-post-title { margin-inline: 13px !important; font-size: 18px; }
  .tp-products .wc-block-components-product-price { margin-inline: 13px !important; font-size: 13px; }
  .tp-products .wp-block-woocommerce-product-button { padding-inline: 13px; }
  .tp-footer-grid { gap: 45px; }
}

@media (max-width: 781px) {
  .tp-container { width: calc(100% - 40px); }
  .tp-section { padding: 48px 0; }
  .tp-header-actions { gap: 8px; }
  .tp-header-brand .custom-logo { width: 145px; }
  .tp-main-nav { order: 2; }
  .tp-mini-cart { order: 1; }
  .tp-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .tp-main-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
  .tp-main-nav .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
  .tp-hero { padding: 40px 0 46px; }
  .tp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .tp-hero-title { font-size: clamp(42px, 7.2vw, 58px); }
  .tp-hero-description { max-width: 560px; font-size: 15px; }
  .tp-hero-art { max-width: 620px; width: 100%; }
  .tp-browse-inner { flex-direction: column; gap: 12px; }
  .tp-browse-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 5px 24px; }
  .tp-browse-link { font-size: 13px; }
  .tp-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .tp-section-heading h2 { font-size: 34px; }
  .tp-section-description { font-size: 14px; }
  .tp-products .wp-block-woocommerce-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; }
  .tp-products .wp-block-post-title { font-size: 20px; }
  .tp-products .wc-block-components-product-price { font-size: 14px; }
  .tp-story-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .tp-story-card .wp-block-post-featured-image img { max-height: 320px; }
  .tp-story-content { padding: 22px; }
  .tp-last-call-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .tp-footer-shell { padding-top: 46px; }
  .tp-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .tp-footer-intro h2 { font-size: 38px; }
  .tp-footer-links { max-width: 520px; }
  .tp-footer-bottom { flex-direction: column; gap: 6px; margin-top: 32px; }
  .tp-page-main, .tp-single-main { padding: 36px 0 48px; }
  .tp-blog-content { padding: 36px 0 48px; }
  .tp-single-product-main .wp-block-columns { flex-direction: column; }
  .tp-single-product-main .wp-block-column { flex-basis: auto !important; }
  .tp-article-body { font-size: 16px; }
}

@media (max-width: 479px) {
  .tp-container { width: calc(100% - 32px); }
  .tp-header-shell { padding: 10px 0; }
  .tp-header-inner { gap: 12px; }
  .tp-header-brand .custom-logo { width: 128px; }
  .tp-header-actions { gap: 8px; }
  .tp-mini-cart .wc-block-mini-cart__amount { display: none; }
  .tp-hero .tp-eyebrow { font-size: 9px; }
  .tp-hero-title { font-size: 43px; }
  .tp-hero-photo { padding: 18px; border-width: 4px; }
  .tp-hero-photo::before { inset: 7px; }
  .tp-hero-photo::after { background-size: 18px 18px; background-position: 0 0, 100% 0, 0 100%, 100% 100%; }
  .tp-art-caption { font-size: 8px; }
  .tp-products .wp-block-woocommerce-product-template { grid-template-columns: 1fr !important; gap: 24px !important; }
  .tp-products .wp-block-post-title { margin: 18px 18px 10px !important; font-size: 23px; }
  .tp-products .wc-block-components-product-price { margin-inline: 18px !important; font-size: 16px; }
  .tp-products .wp-block-woocommerce-product-button { padding: 0 18px 18px; }
  .tp-products .wp-block-button__link { min-height: 44px; font-size: 13px; }
  .tp-story-content .wp-block-post-title { font-size: 26px; }
  .tp-footer-links { gap: 22px; }
  .tp-footer-links h3 { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-button .wp-block-button__link { transition: none; }
}

.tp-footer-links > .wp-block-group { margin-block-start: 0; }
.tp-related-products { margin-top: 48px; }
.tp-related-products > h2 { font-size: 32px; }
.wp-site-blocks .woocommerce .variations select { height: auto; line-height: 1.5; }

.tp-single-product-main .wp-block-woocommerce-product-details table { display: block; width: 100%; overflow-x: auto; }
@media (max-width: 781px) {
  .tp-single-product-main .wp-block-column { width: 100%; min-width: 0; max-width: 100%; }
  .tp-single-product-main .wp-block-woocommerce-product-image-gallery,
  .tp-single-product-main .woocommerce-product-gallery { width: 100% !important; max-width: 100%; }
}

/* Collapse the larger navigation before the header becomes crowded. */
@media (max-width: 900px) {
  .tp-header-actions { gap: 8px; }
  .tp-main-nav { order: 2; }
  .tp-mini-cart { order: 1; }
  .tp-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .tp-main-nav .wp-block-navigation__responsive-container-open { display: flex !important; align-items: center; justify-content: center; }
  .tp-main-nav .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
  .tp-main-nav .is-menu-open .wp-block-navigation-item__content { min-height: 52px; padding: 12px 16px; font-size: 24px; }
  .tp-main-nav .wp-block-navigation__responsive-container-open,
  .tp-main-nav .wp-block-navigation__responsive-container-close { align-items: center; justify-content: center; width: 48px; height: 48px; }
}
@media (max-width: 479px) {
  .tp-header-inner { gap: 8px; }
  .tp-header-actions { gap: 3px; }
  .tp-header-actions .wc-block-customer-account__link,
  .tp-mini-cart .wc-block-mini-cart__button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 4px; }
  .tp-header-actions .wc-block-customer-account__account-icon,
  .tp-mini-cart .wc-block-mini-cart__icon { width: 36px; height: 36px; }
  .tp-main-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; }
  .tp-last-call { min-height: 440px; padding: 48px 0; background-position: center, 70% center; background-image: linear-gradient(90deg, #071b34ed, #071b34bf), url('assets/images/texas-hill-country-background.jpg'); }
}
@media (max-width: 359px) {
  .tp-header-brand .custom-logo { width: 112px; }
  .tp-hero .wp-block-buttons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-main-nav .wp-block-navigation-item__content,
  .tp-main-nav .wp-block-navigation-item__content::after,
  .tp-header-actions .wc-block-customer-account__link,
  .tp-mini-cart .wc-block-mini-cart__button { transition: none; }
}


/* A full-width Texas interlude between the hero and shopping stories. */
.tp-texas-divider { margin-block: 0; padding: 14px 0; color: #ddbf8a; background: var(--tp-ink); border-top: 1px solid #ba955b; border-bottom: 1px solid #ba955b; }
.tp-divider-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.tp-divider-icons { display: flex; align-items: center; justify-content: space-around; gap: 18px; min-width: 0; margin: 0; }
.tp-texas-divider .wp-block-image { flex: 0 0 auto; margin: 0; }
.tp-divider-icon img { display: block; width: 44px; height: 44px; }
.tp-divider-flag img { display: block; width: 72px; height: 48px; border: 2px solid #e7ddca; box-sizing: content-box; box-shadow: 0 3px 9px #0004; }
@media (max-width: 781px) {
  .tp-texas-divider { padding: 14px 0; }
  .tp-divider-inner { gap: 16px; }
  .tp-divider-icons { gap: 10px; }
  .tp-divider-icon img { width: 32px; height: 32px; }
  .tp-divider-flag img { width: 60px; height: 40px; }
}
@media (max-width: 599px) {
  .tp-divider-inner { gap: 10px; }
  .tp-texas-divider .tp-divider-extra { display: none; }
  .tp-divider-icon img { width: 26px; height: 26px; }
  .tp-divider-flag img { width: 48px; height: 32px; }
}
@media (max-width: 359px) {
  .tp-divider-icons { gap: 6px; }
  .tp-divider-icon img { width: 24px; height: 24px; }
}

/* Tan and blue variation framing the final shopping section. */
.tp-texas-divider-tan { color: #16446a; background: var(--tp-sand); border-color: #c9b591; }
.tp-texas-divider-tan .tp-divider-flag img { border-color: #fffaf2; box-shadow: 0 2px 7px #39231626; }
