/*
Theme Name: TJ Shop
Description: Print-shop storefront layout for tjshop.gerardchen.com. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.7
Text Domain: tjshop
*/

/* ---------- header ---------- */
.tj-topbar { background: #f8f8f8; font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
.tj-topbar p { margin: 0; }
.tj-topbar a, .tj-header a, .tj-footer li a, .tj-tile a, .tj-card a { text-decoration: none; }
.tj-topbar a:hover, .tj-footer a:hover, .tj-tile a:hover { text-decoration: underline; }

.tj-header { padding-top: 18px; padding-bottom: 14px; }
.tj-header .tj-header-row { gap: 28px; }
.tj-header .wp-block-site-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0; white-space: nowrap; }
.tj-header .wp-block-site-title a { color: var(--wp--preset--color--accent-3); }
.tj-header .wp-block-search { flex: 1 1 320px; max-width: 620px; }
.tj-header .wp-block-search__inside-wrapper { border: 1px solid #111; border-radius: 6px; padding: 2px 4px 2px 18px; background: #fff; }
.tj-header .wp-block-search__inside-wrapper:focus-within { border-color: #111; box-shadow: 0 0 0 1px #111; }
.tj-header .wp-block-search__input { border: 0; outline: 0; background: transparent; font-size: 15px; padding: 9px 0; min-width: 0; }
.tj-header .wp-block-search__button { background: transparent; color: #111; border: 0; padding: 6px 10px; margin: 0; }
.tj-header .tj-header-links { gap: 22px; font-size: 14px; font-weight: 600; margin-left: auto; }
.tj-header .tj-header-links p { margin: 0; white-space: nowrap; }
.tj-header .wc-block-mini-cart__button, .tj-header .wp-block-woocommerce-customer-account a { font-size: 14px; font-weight: 600; color: #111; }

.tj-nav { border-bottom: 1px solid #e3e3e3; padding-top: 2px; padding-bottom: 2px; }
.tj-nav .wp-block-navigation { font-size: 14px; font-weight: 500; gap: 4px 22px; justify-content: space-between; }
.tj-nav .wp-block-navigation__container { justify-content: space-between; flex: 1; gap: 4px 22px; }
.tj-nav .wp-block-navigation-item__content { padding: 12px 0; border-bottom: 3px solid transparent; }
.tj-nav .wp-block-navigation-item__content:hover { border-bottom-color: #111; text-decoration: none; }
.tj-nav .tj-nav-deals .wp-block-navigation-item__content { color: #c5221f; }

/* ---------- home ---------- */
.tj-home > * { margin-block-start: 0; }
.tj-section { padding-top: 40px; padding-bottom: 10px; }
.tj-section > h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 22px; }

/* hero: full-width navy band, text in the middle, picture tiles running off both edges */
.tj-hero { background: var(--wp--preset--color--accent-3); color: #fff; gap: 16px; padding: 16px 0; overflow: hidden; }
.tj-hero > * { margin: 0; }
.tj-hero .tj-hero-side { flex: 1 1 0; gap: 16px; min-width: 0; }
.tj-hero .tj-hero-left { justify-content: flex-end; }
.tj-hero .tj-hero-side .wp-block-image { margin: 0; flex: 0 0 250px; }
.tj-hero .tj-hero-side img { width: 250px; height: 270px; object-fit: cover; border-radius: 14px; display: block; }
.tj-hero .tj-hero-text { flex: 0 1 720px; padding: 26px 18px; align-self: center; }
.tj-hero h1 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 14px; }
.tj-hero p { font-size: 16px; margin: 0 auto 22px; max-width: 40em; }
.tj-hero .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 6px; font-weight: 600; padding: 11px 18px; }
.tj-hero .wp-block-button__link:hover { background: #fff; color: #111; }

/* horizontal rows that scroll sideways when they do not fit, like the reference carousels */
.tj-scroller { gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; align-items: flex-start; scrollbar-width: thin; }
.tj-scroller > * { scroll-snap-align: start; flex: 0 0 auto; margin: 0; }
.tj-tile { width: 148px; }
.tj-tile .wp-block-image, .tj-card .wp-block-image { margin: 0 0 12px; border-radius: 12px; overflow: hidden; }
.tj-home .wp-block-image a { display: block; }
.tj-tile .wp-block-image img { width: 148px; height: 184px; object-fit: cover; display: block; transition: transform .2s ease; }
.tj-tile:hover .wp-block-image img, .tj-card:hover .wp-block-image img, .tj-service:hover .wp-block-image img { transform: scale(1.04); }
.tj-tile p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }

.tj-cards .tj-card { width: calc((100% - 72px) / 4); min-width: 230px; }
.tj-card .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .2s ease; }
.tj-card p { margin: 0; font-size: 15px; font-weight: 600; }

/* two promo panels side by side, each a picture with a text card over it */
.tj-panels { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.tj-panel { position: relative; min-height: 480px; margin: 0; overflow: hidden; display: flex; align-items: center; }
.tj-panel > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.tj-panel > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tj-panel-card { position: relative; margin: 40px 24px; max-width: 330px; padding: 26px 24px; border-radius: 8px; }
.tj-panel-a .tj-panel-card { background: #efe3cf; }
.tj-panel-b .tj-panel-card { background: var(--wp--preset--color--accent-3); color: #fff; }
.tj-panel-card .tj-eyebrow { font-size: 14px; margin: 0 0 8px; }
.tj-panel-card h2 { font-size: 26px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; color: inherit; }
.tj-panel-card p { font-size: 14px; margin: 0 0 18px; }
.tj-panel-card .wp-block-button__link { border-radius: 6px; padding: 10px 16px; font-size: 14px; }
.tj-panel-b .wp-block-button__link { background: #fff; color: #111; }

.tj-services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.tj-service { margin: 0; }
.tj-service .wp-block-image { margin: 0 0 12px; border-radius: 12px; overflow: hidden; }
.tj-service .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .2s ease; }
.tj-service h3 { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.tj-service h3 a { text-decoration: none; }
.tj-service p { font-size: 13px; margin: 0; color: #333; }

.tj-about { background: #f8f8f8; margin-top: 50px; padding-top: 56px; padding-bottom: 60px; }
.tj-about .wp-block-columns { gap: 80px; }
.tj-about h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.tj-about p { font-size: 15px; color: #222; margin: 0 0 30px; max-width: 30em; }

/* ---------- footer ---------- */
.tj-footer { background: var(--wp--preset--color--accent-3); color: #fff; padding-top: 48px; padding-bottom: 26px; font-size: 14px; }
.tj-footer a { color: #fff; }
.tj-footer h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: #fff; }
.tj-footer .tj-footer-promise h3 { font-size: 17px; line-height: 1.3; border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; max-width: 16em; }
.tj-footer .tj-footer-promise a { text-decoration: underline; }
.tj-footer ul { list-style: none; padding: 0; margin: 0; }
.tj-footer li { margin: 0 0 10px; }
.tj-footer .tj-legal { border-top: 1px solid rgba(255,255,255,.25); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #d5d8df; gap: 8px 22px; }
.tj-footer .tj-legal p { margin: 0; }

@media (max-width: 1100px) {
	.tj-services { grid-template-columns: repeat(3, 1fr); }
	.tj-hero .tj-hero-side .wp-block-image:first-child { display: none; }
	.tj-hero .tj-hero-right .wp-block-image:first-child { display: block; }
	.tj-hero .tj-hero-right .wp-block-image:last-child { display: none; }
}
@media (max-width: 900px) {
	.tj-panels { grid-template-columns: 1fr; }
	.tj-header .tj-header-row { flex-wrap: wrap; gap: 12px 18px; }
	.tj-header .wp-block-search { order: 3; flex-basis: 100%; max-width: none; }
	.tj-topbar .tj-topbar-links { display: none; }
}
@media (max-width: 781px) {
	.tj-hero .tj-hero-side { display: none; }
	.tj-about .wp-block-columns { gap: 10px; }
	.tj-panel { min-height: 380px; }
}
@media (max-width: 600px) {
	.tj-services { grid-template-columns: repeat(2, 1fr); }
	.tj-header .tj-header-links .tj-hide-sm { display: none; }
}
