/*
Theme Name: The Bags Store
Template: blocksy
Description: Child theme for The Bags Store (Blocksy + WooCommerce).
Version: 2.0.0
Text Domain: tbs
*/

:root {
	--tbs-night: #0F1E36;       /* dark sections */
	--tbs-navy: #1E3A64;        /* logo navy, buttons */
	--tbs-gold: #D4A24C;        /* accent */
	--tbs-gold-deep: #B8862F;
	--tbs-cream: #FBF6EC;       /* light sections */
	--tbs-line: #ECE4D4;
	--tbs-ink: #1B2330;
	--tbs-text: #555E6B;
	--tbs-on-dark: #C5CEDB;
	--tbs-white: #FFFFFF;
	--tbs-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tbs-gutter: clamp(16px, 4vw, 48px);
	--tbs-max: 1180px;
	--tbs-radius: 14px;

	/* Blocksy palette */
	--theme-palette-color-1: #1E3A64;
	--theme-palette-color-2: #0F1E36;
	--theme-palette-color-3: #555E6B;
	--theme-palette-color-4: #1B2330;
	--theme-palette-color-5: #ECE4D4;
	--theme-palette-color-6: #FBF6EC;
	--theme-palette-color-7: #FFFFFF;
	--theme-palette-color-8: #FFFFFF;
	--theme-button-background-initial-color: #1E3A64;
	--theme-button-background-hover-color: #0F1E36;
	--theme-link-hover-color: #0F1E36;
}

/* ---------- Base ---------- */
body {
	font-family: var(--tbs-font);
	color: var(--tbs-text);
	background: var(--tbs-white);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .entry-title, .page-title, .product_title, .site-title {
	font-family: var(--tbs-font);
	font-weight: 600;
	color: var(--tbs-ink);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
a { color: var(--tbs-navy); }
:focus-visible { outline: 2px solid var(--tbs-gold); outline-offset: 3px; }
.tbs-accent { color: var(--tbs-gold); }

/* Buttons */
.woocommerce .button, .woocommerce button.button, .wp-element-button,
.single_add_to_cart_button, .checkout-button, #place_order {
	font-family: var(--tbs-font); font-weight: 500; border-radius: 8px !important;
}
.tbs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 28px; border-radius: 8px;
	background: var(--tbs-gold); color: var(--tbs-night);
	font: 600 14px/1 var(--tbs-font); text-decoration: none;
	transition: background-color .2s ease;
}
.tbs-btn:hover { background: #E3B45E; color: var(--tbs-night); }
.tbs-btn--ghost { background: transparent; color: var(--tbs-white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.tbs-btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--tbs-white); }

/* ---------- Header ---------- */
[data-row="top"] { background: var(--tbs-night) !important; }
[data-row="top"] .ct-header-text, [data-row="top"] .ct-header-text p {
	font-family: var(--tbs-font); color: var(--tbs-on-dark); font-size: 12.5px; margin: 0; text-align: center;
}
[data-row="middle"] { border-bottom: 1px solid var(--tbs-line); }
.site-branding .site-title, .site-branding .site-title a { font-size: 19px; font-weight: 600; color: var(--tbs-navy); letter-spacing: 0; }
.site-logo-container img { max-height: 40px; width: auto; }
.site-branding[data-logo="left"] { gap: 10px; }
[data-id="menu"] > ul > li > a { font-family: var(--tbs-font); font-size: 14px; font-weight: 500; color: var(--tbs-ink); text-transform: none; letter-spacing: 0; }
[data-id="menu"] > ul > li.current-menu-item > a, [data-id="menu"] > ul > li > a:hover { color: var(--tbs-gold-deep); }

/* ---------- Home layout ---------- */
.tbs-home .hero-section { display: none; }
.tbs-home [data-vertical-spacing] { padding-top: 0 !important; padding-bottom: 0 !important; }
.tbs-home .entry-content > * { margin-top: 0; margin-bottom: 0; }
.tbs-sec { padding: clamp(64px, 8vw, 104px) var(--tbs-gutter); position: relative; overflow: hidden; }
.tbs-sec--dark { background: var(--tbs-night); color: var(--tbs-on-dark); }
.tbs-sec--dark h1, .tbs-sec--dark h2, .tbs-sec--dark h3 { color: var(--tbs-white); }
.tbs-sec--cream { background: var(--tbs-cream); }
.tbs-wrap { max-width: var(--tbs-max); margin: 0 auto; position: relative; }
.tbs-title { text-align: center; margin: 0 0 44px; }

/* Decorative diagonal lines behind cut-out bags */
.tbs-lines { position: absolute; pointer-events: none; }
.tbs-lines line { stroke: var(--tbs-gold); stroke-width: 3; stroke-linecap: round; }

/* ---------- Hero ---------- */
.tbs-hero { padding-top: clamp(48px, 6vw, 88px); padding-bottom: 56px; }
.tbs-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.tbs-hero .tbs-hero__title { margin: 0 0 20px; max-width: 13ch; }
.tbs-hero__lead { max-width: 46ch; margin: 0 0 32px; font-size: 16px; }
.tbs-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tbs-hero__art { position: relative; min-height: 420px; display: grid; place-items: center; }
.tbs-hero__art .tbs-lines { right: -40px; top: -10px; width: 340px; height: 300px; opacity: .9; }
.tbs-hero__art img { position: relative; width: min(100%, 470px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.tbs-badge { position: absolute; left: 4%; bottom: 8%; width: 118px; height: 118px; display: grid; place-items: center; text-decoration: none; }
.tbs-badge__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--tbs-gold); }
.tbs-badge__ring { position: absolute; inset: 0; animation: tbs-spin 18s linear infinite; }
.tbs-badge__ring text { fill: var(--tbs-night); font: 600 10.5px var(--tbs-font); letter-spacing: 2px; }
.tbs-badge__label { position: relative; color: var(--tbs-night); font: 700 13px/1.15 var(--tbs-font); text-align: center; }
@keyframes tbs-spin { to { transform: rotate(360deg); } }

.tbs-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 56px 0 0; padding: 0; }
.tbs-pills li { border: 1px solid rgba(212,162,76,.55); color: #E9E1CF; border-radius: 999px; padding: 8px 20px; font-size: 14px; font-weight: 500; }

/* ---------- Product tiles (home) ---------- */
.tbs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tbs-tile {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--tbs-white); border: 1px solid var(--tbs-line); border-radius: var(--tbs-radius);
	padding: 28px 20px 22px; text-decoration: none; color: var(--tbs-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.tbs-tile:hover { border-color: var(--tbs-gold); box-shadow: 0 14px 30px -18px rgba(15,30,54,.35); color: var(--tbs-ink); }
.tbs-tile__img { height: 190px; width: 100%; display: grid; place-items: center; margin-bottom: 18px; }
.tbs-tile__img img { max-height: 100%; max-width: 88%; width: auto; height: auto; object-fit: contain; }
.tbs-tile h3 { font-size: 16px; font-weight: 500; margin: 0 0 4px; }
.tbs-tile__meta { font-size: 13.5px; color: var(--tbs-text); }
.tbs-tile__meta strong { color: var(--tbs-navy); font-weight: 600; margin-right: 6px; }
.tbs-more { text-align: center; margin-top: 40px; }
.tbs-more a { font-weight: 600; color: var(--tbs-navy); }

/* ---------- Quality / split sections ---------- */
.tbs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tbs-split__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.tbs-split__art .tbs-lines { left: -30px; top: -20px; width: 260px; height: 220px; }
.tbs-split__art img { position: relative; width: min(100%, 400px); height: auto; filter: drop-shadow(0 26px 34px rgba(0,0,0,.3)); }
.tbs-split h2 { margin: 0 0 18px; }
.tbs-split p { max-width: 50ch; }
.tbs-facts { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.tbs-facts li { padding-left: 26px; position: relative; }
.tbs-facts li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--tbs-gold); }
.tbs-sec--dark .tbs-facts li { color: #E3E8EF; }

/* ---------- Testimonials ---------- */
.tbs-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tbs-quote { border: 1px solid rgba(212,162,76,.45); border-radius: var(--tbs-radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tbs-quote:nth-child(2) { background: var(--tbs-cream); border-color: var(--tbs-cream); }
.tbs-quote__stars { color: var(--tbs-gold); letter-spacing: 3px; font-size: 15px; }
.tbs-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 14.5px; color: #E3E8EF; font-style: normal; }
.tbs-quote:nth-child(2) blockquote { color: var(--tbs-ink); }
.tbs-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tbs-quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tbs-gold); color: var(--tbs-night); display: grid; place-items: center; font-weight: 600; }
.tbs-quote__name { font-weight: 600; color: var(--tbs-white); font-size: 14px; line-height: 1.3; }
.tbs-quote__name small { display: block; font-weight: 400; color: #97A3B5; font-size: 12.5px; }
.tbs-quote:nth-child(2) .tbs-quote__name { color: var(--tbs-ink); }
.tbs-quote:nth-child(2) .tbs-quote__name small { color: var(--tbs-text); }

/* ---------- Newsletter ---------- */
.tbs-news p { margin: 0 0 22px; }
.tbs-news .wpcf7 { max-width: 460px; }
.tbs-news .wpcf7-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.tbs-news .wpcf7-form > p { display: contents; }
.tbs-news .wpcf7-form-control-wrap { flex: 1 1 220px; }
.tbs-news input[type=email] { width: 100%; height: 48px; border: 1px solid var(--tbs-line); border-radius: 8px; padding: 0 16px; background: var(--tbs-white); font: inherit; margin: 0; }
.tbs-news input[type=submit] { height: 48px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--tbs-gold); color: var(--tbs-night); font: 600 14px var(--tbs-font); cursor: pointer; }
.tbs-news .wpcf7-response-output { flex-basis: 100%; margin: 6px 0 0 !important; font-size: 13px; }
.tbs-news .wpcf7-spinner { display: none; }

/* ---------- Product cards (shop, categories, related) ---------- */
ul.products { row-gap: 40px !important; }
ul.products li.tbs-card { display: flex !important; flex-direction: column; background: none; border: 0; padding: 0 !important; text-align: left; }
.tbs-card__media { position: relative; border-radius: var(--tbs-radius); overflow: hidden; background: #F4F1EB; aspect-ratio: 4 / 3.4; }
.tbs-card__img, .tbs-card__img img { display: block; width: 100%; height: 100%; }
.tbs-card__img img { object-fit: cover; transition: opacity .35s ease; border-radius: 0 !important; }
.tbs-card__alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .tbs-card__media:hover .tbs-card__alt { opacity: 1; } }
.tbs-card__flag { position: absolute; top: 12px; left: 12px; background: var(--tbs-night); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.tbs-card__body { padding: 16px 2px 0; display: flex; flex-direction: column; flex: 1; }
.tbs-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tbs-card__name { margin: 0 !important; font-size: 16px !important; font-weight: 500 !important; line-height: 1.35; }
.tbs-card__name a { color: var(--tbs-ink); text-decoration: none; }
.tbs-card__name a:hover { color: var(--tbs-navy); }
.tbs-card__price { font-weight: 600; color: var(--tbs-ink); white-space: nowrap; font-size: 15px; }
.tbs-card__price .woocommerce-Price-currencySymbol { font-size: .8em; font-weight: 500; margin-right: 2px; }
.tbs-card__sub { margin: 4px 0 0; font-size: 13px; color: var(--tbs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbs-card__meta { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; font-size: 12.5px; color: var(--tbs-text); min-height: 18px; }
.tbs-card__stack { display: inline-flex; }
.tbs-card__stack i { width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(0,0,0,.12); margin-right: -4px; }
.tbs-card__stack i:last-child { margin-right: 2px; }
.tbs-card__add, ul.products li.tbs-card .button {
	align-self: flex-start; margin-top: auto; background: transparent !important; color: var(--tbs-ink) !important;
	border: 1px solid var(--tbs-ink) !important; border-radius: 999px !important; min-height: 40px; padding: 0 22px !important;
	font: 500 14px var(--tbs-font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
	transition: background-color .2s ease, color .2s ease;
}
.tbs-card__add:hover, .tbs-card__add[aria-expanded="true"] { background: var(--tbs-night) !important; color: #fff !important; border-color: var(--tbs-night) !important; }

/* Colour picker that slides up over the photo */
.tbs-card__picker {
	position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 14px 14px 12px;
	background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 12px;
	box-shadow: 0 12px 30px -12px rgba(15,30,54,.35);
	transform: translateY(12px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.tbs-card__picker:not([hidden]) { display: block; }
.tbs-card__picker.is-open { transform: none; opacity: 1; }
.tbs-card__picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tbs-card__picker-title { font-size: 13px; font-weight: 600; color: var(--tbs-ink); }
.tbs-card__close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--tbs-text); cursor: pointer; padding: 0 2px; }
.tbs-card__colours { display: flex; flex-wrap: wrap; gap: 8px; }
.tbs-card__colour { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s ease; }
.tbs-card__colour:hover { transform: scale(1.12); }
.tbs-card__colour:disabled { opacity: .3; cursor: not-allowed; }
.tbs-card__status { margin: 8px 0 0; font-size: 12.5px; color: var(--tbs-navy); min-height: 0; }
.tbs-card__status:empty { display: none; }

/* Stars (shared) */
.tbs-stars { --rating: 0; display: inline-block; font-size: 14px; letter-spacing: 2px; line-height: 1;
	background: linear-gradient(90deg, var(--tbs-gold) calc(var(--rating) / 5 * 100%), #D9D4CA calc(var(--rating) / 5 * 100%));
	-webkit-background-clip: text; background-clip: text; color: transparent; }
.tbs-stars::before { content: "★★★★★"; }

/* ---------- Single product ---------- */
.single-product .product-entry-wrapper { gap: clamp(32px, 5vw, 72px); }
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .woocommerce-product-gallery .flexy-items img,
.single-product .woocommerce-product-gallery figure { border-radius: 16px; overflow: hidden; }
.single-product .woocommerce-product-gallery .flexy-pills img,
.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container { border-radius: 10px; }
.single-product .flexy-pills [data-active] .ct-media-container,
.single-product .flexy-pills .active .ct-media-container { box-shadow: 0 0 0 2px var(--tbs-navy); }
.single-product .entry-summary .product_title { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 700; margin-bottom: 10px; }
.single-product .entry-summary .woocommerce-product-details__short-description p { margin: 0; max-width: 48ch; color: var(--tbs-text); }
.single-product .entry-summary .woocommerce-product-rating,
.tbs-rating-empty { margin: 12px 0 0 !important; padding-bottom: 24px; border-bottom: 1px solid var(--tbs-line); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.tbs-review-link, .woocommerce-review-link { color: var(--tbs-text); text-decoration: underline; text-underline-offset: 3px; }
.single-product .entry-summary .price { margin: 24px 0 4px !important; font-size: 1.9rem !important; font-weight: 700; color: var(--tbs-ink) !important; }
.tbs-price-note { margin: 0 0 24px !important; padding-bottom: 24px; border-bottom: 1px solid var(--tbs-line); font-size: 13.5px; color: var(--tbs-text); }

/* Colour choice */
.single-product form.variations_form table.variations { margin: 0 0 20px; border: 0; }
.single-product table.variations th.label, .single-product table.variations td.label { display: block; padding: 0 0 12px; text-align: left; }
.single-product table.variations th.label label, .single-product table.variations .label label { font-size: 16px; font-weight: 600; color: var(--tbs-ink); text-transform: none; letter-spacing: 0; }
.single-product table.variations td.value { display: block; padding: 0; }
.single-product table.variations tr { display: block; }
.single-product .woo-variation-swatches .variable-items-wrapper { gap: 12px; margin: 0; }
.single-product .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item { width: 40px !important; height: 40px !important; border-radius: 50% !important; padding: 3px !important; box-shadow: 0 0 0 1px var(--tbs-line) !important; margin: 0 !important; }
.single-product .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-span-color { border-radius: 50% !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.single-product .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item.selected { box-shadow: 0 0 0 2px var(--tbs-navy) !important; }
.single-product .woo-variation-swatches .variable-item .variable-item-contents::before { display: none; }
.single-product .reset_variations { display: none !important; }

/* Quantity, stock, buttons */
.single-product .single_variation_wrap { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "qty stock" "add buy"; gap: 18px 16px; align-items: center; padding-top: 22px; border-top: 1px solid var(--tbs-line); }
.single-product .single_variation_wrap .woocommerce-variation { grid-area: stock; min-height: 0; }
.single-product .single_variation_wrap .woocommerce-variation-price { display: none; }
.single-product .woocommerce-variation-availability p.stock { margin: 0; font-size: 13.5px; color: var(--tbs-text); }
.single-product .woocommerce-variation-availability p.stock strong { color: var(--tbs-gold-deep); }
.single-product .woocommerce-variation-add-to-cart, .single-product .woocommerce-variation-add-to-cart .ct-cart-actions { display: contents; }
.single-product .single_variation_wrap .quantity { grid-area: qty; margin: 0 !important; }
.single-product .quantity { background: #F4F1EB; border-radius: 999px !important; border: 0 !important; height: 50px; --quantity-height: 50px; width: 140px !important; }
.single-product .quantity input.qty { background: transparent !important; border: 0 !important; font-weight: 600; font-size: 16px; }
.single-product .quantity .ct-increase, .single-product .quantity .ct-decrease { border: 0 !important; background: transparent !important; }
.single-product .single_add_to_cart_button, .single-product .tbs-buy-now {
	height: 52px; border-radius: 999px !important; font-size: 15px !important; font-weight: 600 !important; width: 100%; margin: 0 !important;
}
.single-product .single_add_to_cart_button { grid-area: add; background: transparent !important; color: var(--tbs-night) !important; border: 1.5px solid var(--tbs-night) !important; }
.single-product .single_add_to_cart_button:hover { background: var(--tbs-cream) !important; }
.single-product .tbs-buy-now { grid-area: buy; background: var(--tbs-night) !important; color: #fff !important; border: 1.5px solid var(--tbs-night) !important; cursor: pointer; }
.single-product .tbs-buy-now:hover { background: var(--tbs-navy) !important; }
.single-product .tbs-buy-now.disabled, .single-product .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.single-product .single_variation_wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "qty stock" "buy add"; }
.single-product .single_variation_wrap .quantity { justify-self: start; }

/* Delivery and returns box */
.tbs-info { margin-top: 26px; border: 1px solid var(--tbs-line); border-radius: 12px; }
.tbs-info__row { display: flex; gap: 14px; padding: 18px 20px; }
.tbs-info__row + .tbs-info__row { border-top: 1px solid var(--tbs-line); }
.tbs-info__row svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--tbs-gold-deep); stroke-width: 1.6; stroke-linejoin: round; margin-top: 2px; }
.tbs-info__row strong { display: block; color: var(--tbs-ink); font-size: 15px; font-weight: 600; }
.tbs-info__row span { font-size: 13.5px; color: var(--tbs-text); }
.tbs-info__row a { color: var(--tbs-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Details tabs below */
.single-product .woocommerce-tabs { margin-top: clamp(48px, 6vw, 80px); }
.single-product .woocommerce-tabs ul.tabs { justify-content: flex-start; border-bottom: 1px solid var(--tbs-line); gap: 28px; }
.single-product .woocommerce-tabs ul.tabs li a { font-size: 15px; font-weight: 500; color: var(--tbs-text); text-transform: none; letter-spacing: 0; padding: 14px 0; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--tbs-ink); box-shadow: inset 0 -2px 0 var(--tbs-navy); }
.single-product .woocommerce-Tabs-panel { max-width: 760px; padding-top: 28px; }
.single-product .woocommerce-Tabs-panel h4 { font-size: 15px; margin: 24px 0 8px; }
.single-product .woocommerce-product-attributes { border: 0; }
.single-product .woocommerce-product-attributes th { text-transform: none; font-weight: 600; color: var(--tbs-ink); letter-spacing: 0; }
.single-product .related > h2, .single-product .up-sells > h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 28px; }
.single-product .ct-breadcrumbs { font-size: 13px; }

/* ---------- Footer ---------- */
.tbs-footer { background: var(--tbs-night); color: var(--tbs-on-dark); padding: 72px var(--tbs-gutter) 32px; }
.tbs-footer__grid { max-width: var(--tbs-max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.tbs-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tbs-footer__brand img { width: 34px; height: auto; filter: brightness(0) invert(1); }
.tbs-footer__brand span { color: var(--tbs-white); font-weight: 600; font-size: 18px; }
.tbs-footer p { max-width: 32ch; font-size: 14px; }
.tbs-footer h4 { color: var(--tbs-white); font-size: 14px; font-weight: 600; margin: 4px 0 16px; }
.tbs-footer ul { list-style: none; margin: 0; padding: 0; }
.tbs-footer li { margin: 0 0 9px; font-size: 14px; }
.tbs-footer a { color: var(--tbs-on-dark); text-decoration: none; }
.tbs-footer a:hover { color: var(--tbs-gold); }
.tbs-footer__pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tbs-footer__pay span { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.ct-footer { background: var(--tbs-night) !important; border-top: 1px solid rgba(255,255,255,.1); }
.ct-footer, .ct-footer p, .ct-footer a { color: #8E9AAD !important; font-size: 13px; }

/* ---------- Pages ---------- */
.tbs-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; max-width: var(--tbs-max); margin: 0 auto; }
.tbs-contact dt { font-weight: 600; color: var(--tbs-ink); margin-top: 18px; }
.tbs-contact dd { margin: 2px 0 0; }
.tbs-contact .wpcf7 input:not([type=submit]), .tbs-contact .wpcf7 textarea { width: 100%; border: 1px solid var(--tbs-line); border-radius: 8px; padding: 12px 14px; font: inherit; }
.tbs-contact .wpcf7 label { display: block; font-weight: 500; color: var(--tbs-ink); margin-bottom: 14px; }
.tbs-contact .wpcf7 label br { display: none; }
.tbs-contact .wpcf7 label input, .tbs-contact .wpcf7 label textarea { margin-top: 6px; }
.tbs-contact .wpcf7 form p { margin: 0 0 6px; }
.tbs-contact .wpcf7 input[type=submit] { background: var(--tbs-navy); color: #fff; border: 0; border-radius: 8px; padding: 14px 32px; font: 600 14px var(--tbs-font); cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.tbs-hero__grid, .tbs-split { grid-template-columns: 1fr; }
	.tbs-hero__art { min-height: 0; order: -1; }
	.tbs-hero__art img { width: min(78%, 380px); }
	.tbs-hero .tbs-hero__title { max-width: none; }
	.tbs-split__art { min-height: 0; }
	.tbs-split__art img { width: min(72%, 340px); }
	.tbs-quotes { grid-template-columns: 1fr; }
	.tbs-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 689px) {
	.tbs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tbs-tile { padding: 18px 10px 14px; }
	.tbs-tile__img { height: 120px; }
	.tbs-tile h3 { font-size: 14px; }
	.tbs-pills { gap: 8px; margin-top: 40px; }
	.tbs-pills li { font-size: 12.5px; padding: 6px 14px; }
	.tbs-badge { width: 92px; height: 92px; left: 0; bottom: 0; }
	.tbs-badge__ring text { font-size: 8.5px; }
	.tbs-badge__label { font-size: 11px; }
	.tbs-hero__art .tbs-lines { width: 220px; right: -30px; }
	.tbs-contact { grid-template-columns: 1fr; }
	[data-row="top"] .ct-header-text p { font-size: 11.5px; line-height: 1.4; }
	.site-branding .site-title, .site-branding .site-title a { font-size: 16px; }
	.site-logo-container img { max-height: 30px; }
	.site-branding[data-logo="left"] { gap: 8px; }
	[data-id="cart"] .ct-label { display: none !important; }
}
@media (max-width: 520px) {
	.tbs-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Menu: sentence case (Blocksy defaults to uppercase) */
.ct-header .menu > li > a, .ct-header [data-id="menu"] .ct-menu-link, #header .menu > li > a { text-transform: none !important; letter-spacing: 0 !important; font-size: 14px; font-weight: 500; }

/* Cut-out image sizing (explicit caps; Blocksy resets img heights) */
.tbs-tile__img img { max-height: 190px !important; width: auto !important; max-width: 88% !important; }
.tbs-split__art img { max-height: 400px !important; width: auto !important; max-width: 100% !important; }
.tbs-hero__art img { max-height: 440px !important; width: auto !important; max-width: 100% !important; }
@media (max-width: 960px) {
	.tbs-split__art img { max-height: 300px !important; }
	.tbs-hero__art img { max-height: 320px !important; }
}
@media (max-width: 689px) {
	.tbs-tile__img img { max-height: 120px !important; }
	.tbs-split__art img { max-height: 240px !important; }
	.tbs-hero__art img { max-height: 260px !important; }
}

/* Shop and category page header: navy band like the homepage */
.woocommerce-shop .hero-section[data-type="type-2"],
.tax-product_cat .hero-section[data-type="type-2"] { background: var(--tbs-night) !important; }
.woocommerce-shop .hero-section[data-type="type-2"] .ct-container,
.tax-product_cat .hero-section[data-type="type-2"] .ct-container { padding-top: 56px; padding-bottom: 56px; min-height: 0 !important; }
.woocommerce-shop .hero-section .page-title,
.tax-product_cat .hero-section .page-title { color: var(--tbs-white) !important; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.woocommerce-shop .hero-section .page-description,
.tax-product_cat .hero-section .page-description,
.woocommerce-shop .hero-section .page-description p,
.tax-product_cat .hero-section .page-description p { color: var(--tbs-on-dark) !important; max-width: 56ch; margin-left: auto; margin-right: auto; }
.woocommerce-shop .hero-section .ct-breadcrumbs, .tax-product_cat .hero-section .ct-breadcrumbs,
.woocommerce-shop .hero-section .ct-breadcrumbs a, .tax-product_cat .hero-section .ct-breadcrumbs a { color: #97A3B5 !important; }
.woocommerce-shop .hero-section figure, .tax-product_cat .hero-section figure { display: none; }
.woocommerce-result-count { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px; }
.tbs-tile__img { height: 210px; }
.tbs-tile__img img { max-height: 210px !important; }
@media (max-width: 689px) { .tbs-tile__img { height: 120px; } .tbs-tile__img img { max-height: 120px !important; } }
@media (max-width: 689px) { .tbs-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Cards and product page on phones */
@media (max-width: 689px) {
	ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 12px !important; row-gap: 28px !important; }
	.tbs-card__row { flex-direction: column; gap: 2px; }
	.tbs-card__name { font-size: 14px !important; }
	.tbs-card__price { font-size: 14px; }
	.tbs-card__sub { font-size: 12px; }
	.tbs-card__add, ul.products li.tbs-card .button { min-height: 36px; padding: 0 16px !important; font-size: 13px; }
	.tbs-card__picker { left: 6px; right: 6px; bottom: 6px; padding: 10px; }
	.tbs-card__colours { gap: 6px; }
	.tbs-card__colour { width: 22px; height: 22px; }
	.single-product .single_variation_wrap { grid-template-columns: 1fr 1fr; }
}

/* Product page refinements */
.single-product .entry-summary .single_add_to_cart_button,
.single-product .entry-summary .tbs-buy-now { border-radius: 999px !important; height: 54px; }
.single-product .woocommerce-variation-availability { justify-self: start; }
.single-product .single_variation_wrap .woocommerce-variation { justify-self: start; }
.single-product .quantity { height: 52px; }
.ct-breadcrumbs, .ct-breadcrumbs * { text-transform: none !important; letter-spacing: 0 !important; }
.ct-breadcrumbs .last-item, .ct-breadcrumbs span:last-child { color: var(--tbs-ink); font-weight: 600; }
.single-product .woocommerce-product-gallery .flexy-pills { gap: 10px; }
.single-product .product-entry-wrapper { --product-gallery-width: 54%; }
.single-product .woocommerce-tabs ul.tabs { justify-content: center; }
.single-product .woocommerce-Tabs-panel { margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 689px) {
	.single-product .flexy-pills > ol, .single-product .flexy-pills > ul { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; grid-template-columns: none !important; }
	.single-product .flexy-pills > ol > li, .single-product .flexy-pills > ul > li { flex: 0 0 22% !important; scroll-snap-align: start; max-width: none !important; }
}

/* ---------- Sticky header (delivery bar + main row stay on screen) ---------- */
#header.ct-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; background: #fff; transition: box-shadow .25s ease; }
#header.ct-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(15,30,54,.35); }
#header.ct-header.is-stuck [data-row="middle"] { border-bottom-color: transparent; }
@media (max-width: 782px) { #header.ct-header { top: 0; } }

/* Full logo (icon + THE BAGS STORE), as on the-bags-store */
.site-logo-container img, .ct-header .site-logo-container img { max-height: 52px !important; height: 52px; width: auto; }
@media (max-width: 689px) { .site-logo-container img, .ct-header .site-logo-container img { max-height: 40px !important; height: 40px; } }
.tbs-footer__brand img { width: auto; height: 54px; filter: brightness(0) invert(1); }

/* Account icon next to the cart */
.ct-header [data-id="account"] .ct-label { font-size: 13px; font-weight: 500; text-transform: none; }

/* Cards: name, then price on its own line */
.tbs-card__name { margin: 0 0 4px !important; }
.tbs-card__price { display: block; font-size: 15px; font-weight: 600; color: var(--tbs-navy); }
.tbs-card__meta { margin-top: 10px; }
@media (max-width: 689px) { .tbs-card__price { font-size: 14px; } }

/* Product page: rating row only appears with reviews; keep spacing tidy without it */
.single-product .entry-summary .woocommerce-product-details__short-description { padding-bottom: 22px; border-bottom: 1px solid var(--tbs-line); }
.single-product .entry-summary .woocommerce-product-rating { border-bottom: 0; padding-bottom: 0; margin: 14px 0 0 !important; }

/* Phone buy bar on product pages */
.tbs-buybar { display: none; }
@media (max-width: 689px) {
	.tbs-buybar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: 0 -8px 24px -16px rgba(15,30,54,.4);
		transform: translateY(110%); transition: transform .25s ease;
	}
	.tbs-buybar.is-visible { transform: none; }
	.tbs-buybar__info { display: flex; flex-direction: column; min-width: 0; }
	.tbs-buybar__name { font-size: 13px; font-weight: 500; color: var(--tbs-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tbs-buybar__price { font-size: 15px; font-weight: 700; color: var(--tbs-navy); }
	.tbs-buybar__btn { flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--tbs-night); color: #fff; font: 600 14px var(--tbs-font); }
	.single-product .joinchat { bottom: 76px !important; }
	[data-row="top"] .ct-header-text p { font-size: 11.5px; white-space: nowrap; }
}

/* Hero without feature pills: same height as before, content centred */
.tbs-hero { padding-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 961px) {
	.tbs-hero { min-height: 720px; display: flex; align-items: center; }
	.tbs-hero > .tbs-wrap { width: 100%; }
	.tbs-hero__art img { max-height: 500px !important; }
	.tbs-hero__art .tbs-lines { width: 380px; height: 340px; }
}

/* ================= UX / QA pass ================= */

/* Anchors land below the sticky header */
html { scroll-padding-top: 120px; }

/* Accent text on light backgrounds: darker gold for readable contrast */
.tbs-sec--cream .tbs-accent, .tbs-news .tbs-accent { color: #A5741C; }

/* Larger tap areas for header icons */
.ct-header [data-id="search"], .ct-header [data-id="cart"] .ct-cart-item, .ct-header [data-id="trigger"] { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
[data-row="top"] .ct-header-text p { font-size: 12px; }
.tbs-card__price .woocommerce-Price-currencySymbol { font-size: .85em; }

/* Phone: comfortable link spacing in footer and contact details */
@media (max-width: 689px) {
	.tbs-footer li { margin: 0; }
	.tbs-footer li a { display: inline-block; padding: 7px 0; }
	.tbs-footer__grid { gap: 28px; }
	.tbs-contact dd a { display: inline-block; padding: 6px 0; }
	.single-product .ct-breadcrumbs a { padding: 6px 0; display: inline-block; }
	.tbs-more a { display: inline-block; padding: 10px 0; }
	[data-row="top"] .ct-header-text p { font-size: 12px; }
}

/* Phone menu: navy panel in brand type */
#offcanvas .ct-panel-inner { background: var(--tbs-night) !important; }
#offcanvas .mobile-menu a, #offcanvas [data-id="mobile-menu"] a { font-family: var(--tbs-font); font-size: 18px !important; font-weight: 500 !important; color: #fff !important; text-transform: none; padding-top: 12px !important; padding-bottom: 12px !important; border-bottom: 1px solid rgba(255,255,255,.08); }
#offcanvas .mobile-menu .current-menu-item > a { color: var(--tbs-gold) !important; }

/* Cart page */
.woocommerce-cart .joinchat, .woocommerce-checkout .joinchat { display: none !important; }
.woocommerce-cart-form [name="update_cart"] { display: none !important; }
.tbs-coupon-toggle { background: none; border: 0; padding: 8px 0; color: var(--tbs-navy); font: 500 14px var(--tbs-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.woocommerce-cart-form .actions { text-align: left; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.woocommerce-cart-form .coupon[hidden] { display: none; }
.woocommerce-cart-form .coupon input { flex: 1 1 160px; height: 46px; border-radius: 8px; }
.woocommerce-cart-form .coupon .button { height: 46px; border-radius: 8px !important; }
.cart_totals { border: 1px solid var(--tbs-line) !important; border-radius: 14px; }
.cart_totals h2 { font-size: 18px; }
.wc-proceed-to-checkout .checkout-button, #place_order {
	height: 54px; border-radius: 999px !important; background: var(--tbs-night) !important; color: #fff !important;
	font-size: 15px !important; font-weight: 600 !important; display: flex !important; align-items: center; justify-content: center; width: 100%;
}
.wc-proceed-to-checkout .checkout-button:hover, #place_order:hover { background: var(--tbs-navy) !important; }

/* Checkout */
.tbs-hidden { display: none !important; }
.woocommerce-checkout h3 { font-size: 18px; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea, .woocommerce-checkout .form-row select { border-radius: 8px; min-height: 48px; }
.woocommerce-checkout #order_review { border-radius: 14px; }
.woocommerce-checkout .wc_payment_method label { font-weight: 500; }
@media (max-width: 999px) {
	#header [data-row="top"] { --height: 30px; }
	#header [data-row="middle"] { --height: 58px; }
	.single-product .woocommerce-tabs ul.tabs li a { padding: 12px 0; display: block; }
}
.tbs-404 { text-align: center; }
.tbs-404 h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); max-width: 20ch; margin: 0 auto 14px; }
.tbs-404 p { max-width: 46ch; margin: 0 auto 24px; }
.tbs-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tbs-btn--outline { background: transparent; color: var(--tbs-night); box-shadow: inset 0 0 0 1.5px var(--tbs-night); }
.tbs-btn--outline:hover { background: var(--tbs-night); color: #fff; }
.tbs-404 .woocommerce-product-search { max-width: 420px; margin: 8px auto 0; }
.tbs-404 .woocommerce-product-search { display: flex; gap: 8px; }
.tbs-404 .woocommerce-product-search .search-field { flex: 1; height: 48px; border-radius: 8px; }
.tbs-404 .woocommerce-product-search button { height: 48px; padding: 0 20px; border-radius: 8px !important; margin: 0 !important; }

/* ================= Round 5: logo, type scale, drawer ================= */

/* Logo: one consistent size per screen class */
.ct-header .site-logo-container img { height: 46px !important; max-height: 46px !important; width: auto !important; }
@media (max-width: 999px) { .ct-header .site-logo-container img { height: 38px !important; max-height: 38px !important; } }
@media (max-width: 689px) { .ct-header .site-logo-container img { height: 34px !important; max-height: 34px !important; } }
.tbs-footer__brand img { filter: none !important; height: 50px !important; width: auto !important; }

/* Product page: price sits under the name */
.single-product .entry-summary .product_title { margin-bottom: 6px !important; }
.single-product .entry-summary .price { margin: 0 0 18px !important; font-size: 1.6rem !important; font-weight: 700; }

/* Tablet type scale */
@media (max-width: 999px) {
	.page-title, .hero-section .page-title, h1.page-title { font-size: 28px !important; }
	h2, .tbs-title { font-size: 22px; }
}

/* Phone type scale */
@media (max-width: 689px) {
	body { font-size: 14px; line-height: 1.65; }
	.page-title, .hero-section .page-title, h1.page-title, .entry-header h1 { font-size: 24px !important; line-height: 1.25; }
	.tbs-hero .tbs-hero__title { font-size: 28px !important; line-height: 1.18; }
	.tbs-hero__lead { font-size: 14.5px; margin-bottom: 24px; }
	h2, .tbs-title, .entry-content h2, .wp-block-heading, .related > h2 { font-size: 20px !important; }
	h3 { font-size: 16px; }
	.tbs-title { margin-bottom: 28px; }
	.entry-content p, .entry-content li, .tbs-split p, .tbs-facts li, .tbs-quote blockquote { font-size: 14px; }
	.has-large-font-size { font-size: 17px !important; line-height: 1.5 !important; }
	.tbs-btn { min-height: 46px; padding: 0 22px; font-size: 14px; }
	.tbs-sec { padding-top: 52px; padding-bottom: 52px; }
	.single-product .entry-summary .product_title { font-size: 22px !important; }
	.single-product .entry-summary .price { font-size: 20px !important; }
	.single-product .entry-summary .woocommerce-product-details__short-description p { font-size: 14px; }
	.single-product table.variations .label label { font-size: 15px; }
	.single-product .single_add_to_cart_button, .single-product .tbs-buy-now { height: 48px; font-size: 14px !important; }
	.single-product .quantity { height: 46px; width: 124px !important; }
	.tbs-info__row { padding: 14px 16px; }
	.tbs-info__row strong { font-size: 14px; }
	.tbs-info__row span { font-size: 13px; }
	.single-product .woocommerce-Tabs-panel, .single-product .woocommerce-Tabs-panel p, .single-product .woocommerce-Tabs-panel li { font-size: 14px; }
	.woocommerce-cart h2, .woocommerce-checkout h3, .cart_totals h2 { font-size: 17px !important; }
	.woocommerce table.shop_table, .woocommerce-checkout .form-row label { font-size: 14px; }
	.tbs-footer h4 { font-size: 13.5px; }
	.tbs-footer li, .tbs-footer p { font-size: 13.5px; }
	.tbs-contact dt { font-size: 14px; }
}

/* Category and shop pages on phones: one product per row */
@media (max-width: 689px) {
	ul.products, .woocommerce ul.products { grid-template-columns: 1fr !important; row-gap: 36px !important; }
	.tbs-card__name { font-size: 16px !important; }
	.tbs-card__price { font-size: 15px; }
	.tbs-card__add, ul.products li.tbs-card .button { min-height: 42px; padding: 0 22px !important; font-size: 14px; }
	.tbs-card__picker { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
	.tbs-card__colour { width: 28px; height: 28px; }
	.tbs-card__colours { gap: 9px; }
}

/* Phone menu drawer */
#offcanvas .ct-panel-inner { background: var(--tbs-night) !important; width: min(86vw, 360px) !important; }
#offcanvas .ct-panel-actions { position: absolute; top: 18px; right: 12px; padding: 0; z-index: 2; }
#offcanvas .ct-toggle-close { color: #fff; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
#offcanvas .ct-panel-content { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)) !important; }
#offcanvas .ct-panel-content[data-device="mobile"] .ct-panel-content-inner { display: flex; flex-direction: column; min-height: 100%; }
.tbs-drawer__top { padding-bottom: 18px; margin-bottom: 8px; }
.tbs-drawer__logo img { height: 42px; width: auto; display: block; }
.tbs-drawer__search { display: flex; align-items: center; gap: 10px; margin-top: 20px; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tbs-drawer__search svg { width: 18px; height: 18px; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2; flex: none; }
.tbs-drawer__search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; color: #fff !important; font: 400 14px var(--tbs-font); padding: 0 !important; box-shadow: none !important; }
.tbs-drawer__search input::placeholder { color: rgba(255,255,255,.55); }
#offcanvas [data-id="mobile-menu"] ul { margin: 0; }
#offcanvas [data-id="mobile-menu"] a { display: flex !important; justify-content: space-between; align-items: center; font-size: 17px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
#offcanvas [data-id="mobile-menu"] > ul > li > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid rgba(255,255,255,.5); border-top: 1.5px solid rgba(255,255,255,.5); transform: rotate(45deg); margin-right: 4px; }
.tbs-drawer__bottom { margin-top: auto; padding-top: 28px; }
.tbs-drawer__wa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px; background: var(--tbs-gold); color: var(--tbs-night) !important; font: 600 14px var(--tbs-font); text-decoration: none; }
.tbs-drawer__wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tbs-drawer__links { display: flex; justify-content: center; gap: 18px; list-style: none; margin: 16px 0 0; padding: 0; }
.tbs-drawer__links a { color: rgba(255,255,255,.8) !important; font-size: 13px; text-decoration: none; padding: 6px 0; display: inline-block; }
.tbs-drawer__note { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; margin: 10px 0 0; }
.tbs-drawer__top, .tbs-drawer__search, .tbs-drawer__bottom { width: 100%; box-sizing: border-box; }
.tbs-drawer__links { gap: 14px; flex-wrap: nowrap; }
.tbs-drawer__links a { white-space: nowrap; }
#offcanvas.active ~ .joinchat, body:has(#offcanvas.active) .joinchat, body[data-panel*="in"] .joinchat { display: none !important; }

/* Logo: centre the image vertically in its row (Blocksy's logo box keeps its old 50px height) */
.ct-header .site-branding { display: flex; align-items: center; align-self: center; }
.ct-header .site-logo-container { display: flex !important; align-items: center; height: auto !important; line-height: 0; }
.ct-header .site-logo-container img { display: block; }

/* ================= Phones: two compact cards per row + colour bottom sheet ================= */
.tbs-card__picker-product, .tbs-card__colour-name { display: none; }
.tbs-sheet-backdrop { display: none; }
@media (max-width: 689px) {
	ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 12px !important; row-gap: 28px !important; }
	.tbs-card__media { aspect-ratio: 1 / 1; border-radius: 12px; }
	.tbs-card__body { padding-top: 10px; }
	.tbs-card__name { font-size: 14px !important; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
	.tbs-card__price { font-size: 14px; }
	.tbs-card__meta { margin: 6px 0 10px; font-size: 12px; }
	.tbs-card__stack i { width: 12px; height: 12px; }
	.tbs-card__add, ul.products li.tbs-card .button { width: 100%; justify-content: center; min-height: 38px; padding: 0 10px !important; font-size: 13px; }

	/* Colour picker becomes a bottom sheet */
	.tbs-card__picker {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90;
		border-radius: 18px 18px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
		background: #fff; backdrop-filter: none; box-shadow: 0 -12px 40px -12px rgba(15,30,54,.35);
		transform: translateY(100%); opacity: 1; transition: transform .28s ease;
	}
	.tbs-card__picker.is-open { transform: none; }
	.tbs-card__picker::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--tbs-line); margin: -6px auto 14px; }
	.tbs-card__picker-title { font-size: 16px; }
	.tbs-card__close { width: 36px; height: 36px; border-radius: 50%; background: var(--tbs-cream); font-size: 22px; }
	.tbs-card__picker-product { display: flex; justify-content: space-between; margin: 0 0 16px; font-size: 14px; color: var(--tbs-text); }
	.tbs-card__picker-product span { color: var(--tbs-navy); font-weight: 600; }
	.tbs-card__colours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 8px; }
	.tbs-card__colour { width: 44px; height: 44px; justify-self: center; position: relative; margin-bottom: 18px; }
	.tbs-card__colour:hover { transform: none; }
	.tbs-card__colour:active { transform: scale(.94); }
	.tbs-card__colour-name { display: block; position: absolute; top: 50px; left: 50%; transform: translateX(-50%); width: 64px; font-size: 11.5px; line-height: 1.2; color: var(--tbs-text); text-align: center; }
	.tbs-card__status { font-size: 13.5px; text-align: center; margin-top: 4px; font-weight: 500; }
	.tbs-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(15,30,54,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	.tbs-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
	body.tbs-sheet-open { overflow: hidden; }
	body.tbs-sheet-open .joinchat { display: none !important; }
}

/* ================= Round 7 fixes ================= */

/* Add-to-cart confirmation toast */
.tbs-toast {
	position: fixed; z-index: 95; right: 24px; top: 140px; max-width: 360px;
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
	background: var(--tbs-night); color: #fff; font-size: 13.5px; line-height: 1.4;
	box-shadow: 0 16px 40px -16px rgba(15,30,54,.55);
	opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.tbs-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tbs-toast.is-error { background: #7A2331; }
.tbs-toast svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tbs-gold); fill: none; stroke: var(--tbs-night); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tbs-toast span { flex: 1; }
.tbs-toast strong { font-weight: 600; }
.tbs-toast a { flex: none; color: var(--tbs-gold); font-weight: 600; text-decoration: none; white-space: nowrap; padding: 4px 0; }
@media (max-width: 689px) {
	.tbs-toast { left: 12px; right: 12px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: none; transform: translateY(8px); }
}

/* Bottom sheet: room for two-line colour names */
@media (max-width: 689px) {
	.tbs-card__colours { row-gap: 22px; }
	.tbs-card__colour { margin-bottom: 30px; }
	.tbs-card__colour-name { top: 49px; }
	/* Card: no reserved second line under short names */
	.tbs-card__name { min-height: 0; margin-bottom: 2px !important; }
}

/* Header cart dropdown: light panel, readable items, clear buttons */
.ct-header-cart .ct-cart-content {
	background: #fff !important; color: var(--tbs-ink) !important; border-radius: 14px; padding: 18px 18px 16px !important;
	box-shadow: 0 24px 50px -20px rgba(15,30,54,.45), 0 0 0 1px var(--tbs-line) !important; min-width: 330px;
}
.ct-header-cart .ct-cart-content::before { border-bottom-color: #fff !important; }
.ct-cart-content .woocommerce-mini-cart { max-height: 320px; overflow-y: auto; margin: 0; padding: 0 4px 0 0; }
.ct-cart-content .woocommerce-mini-cart-item { border-bottom: 1px solid var(--tbs-line) !important; padding: 12px 0 !important; align-items: center; }
.ct-cart-content .woocommerce-mini-cart-item:first-child { padding-top: 0 !important; }
.ct-cart-content .woocommerce-mini-cart-item .ct-media-container { border-radius: 8px; overflow: hidden; background: var(--tbs-cream); }
.ct-cart-content .woocommerce-mini-cart-item a:not(.remove):not(.ct-media-container),
.ct-cart-content .product-title { color: var(--tbs-ink) !important; font-size: 13.5px !important; font-weight: 500 !important; line-height: 1.35; text-transform: none; }
.ct-cart-content .quantity, .ct-cart-content .quantity .amount { color: var(--tbs-text) !important; font-size: 13px; }
.ct-cart-content .remove { color: #9AA3AF !important; }
.ct-cart-content .remove:hover { color: #7A2331 !important; }
.ct-cart-content .woocommerce-mini-cart__total { border-top: 0 !important; padding: 14px 0 12px !important; margin: 0 !important; color: var(--tbs-ink) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px; display: flex; justify-content: space-between; }
.ct-cart-content .woocommerce-mini-cart__total strong { font-weight: 600; }
.ct-cart-content .woocommerce-mini-cart__total .amount { color: var(--tbs-navy); font-weight: 700; }
.ct-cart-content .woocommerce-mini-cart__buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 !important; }
.ct-cart-content .woocommerce-mini-cart__buttons .button {
	margin: 0 !important; height: 44px; border-radius: 999px !important; font-size: 13.5px !important; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: 0 !important; display: flex !important; align-items: center; justify-content: center;
	background: transparent !important; color: var(--tbs-night) !important; border: 1.5px solid var(--tbs-night) !important;
}
.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout { background: var(--tbs-night) !important; color: #fff !important; }
.ct-cart-content .woocommerce-mini-cart__buttons .button:hover { background: var(--tbs-cream) !important; color: var(--tbs-night) !important; }
.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout:hover { background: var(--tbs-navy) !important; color: #fff !important; }
.ct-cart-content .woocommerce-mini-cart__empty-message { color: var(--tbs-text); text-align: center; margin: 8px 0; }
[data-id="cart"] .ct-label { text-transform: none !important; letter-spacing: 0 !important; }
.ct-header-cart .ct-cart-content { left: auto !important; right: -12px !important; inset-inline-start: auto !important; inset-inline-end: -12px !important; width: 340px; min-width: 0; }
.ct-header-cart .ct-cart-content::before { left: auto !important; right: 22px !important; }
@media (max-width: 689px) { body.tbs-toast-on .joinchat { opacity: 0; pointer-events: none; transition: opacity .2s ease; } }

/* ================= Customer gallery ================= */
.tbs-gallery-page .hero-section[data-type="type-1"], .tbs-gallery-page .hero-section { background: var(--tbs-night); padding: 56px var(--tbs-gutter); margin-bottom: 0 !important; text-align: center; }
.tbs-gallery-page .hero-section .page-title { color: #fff !important; }
.tbs-gallery-page .hero-section .ct-breadcrumbs, .tbs-gallery-page .hero-section .ct-breadcrumbs a { color: #97A3B5 !important; }
.tbs-gallery-intro { text-align: center; max-width: 52ch; margin: 40px auto 32px !important; color: var(--tbs-text); }

.tbs-gallery.wp-block-gallery { display: block !important; columns: 3 260px; column-gap: 16px; margin: 0 auto 56px !important; max-width: var(--tbs-max); }
.tbs-gallery.wp-block-gallery figure.wp-block-image {
	break-inside: avoid; display: block; width: 100% !important; margin: 0 0 16px !important; position: relative;
	border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--tbs-cream);
}
.tbs-gallery.wp-block-gallery figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: initial !important; display: block; transition: transform .5s ease; }
@media (hover: hover) { .tbs-gallery.wp-block-gallery figure.wp-block-image:hover img { transform: scale(1.03); } }
.tbs-gallery.wp-block-gallery figure.wp-block-image figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 28px 14px 12px !important; text-align: left !important;
	background: linear-gradient(transparent, rgba(15,30,54,.75)) !important; color: #fff !important; font-size: 13px !important; font-weight: 500;
	max-height: none !important; overflow: visible !important;
}
.tbs-gallery.wp-block-gallery figure.wp-block-image:focus-visible { outline: 3px solid var(--tbs-gold); outline-offset: 3px; }
.tbs-gallery-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--tbs-line); border-radius: 14px; margin: 0 auto 56px; max-width: 640px; color: var(--tbs-text); }

.tbs-share { max-width: var(--tbs-max); margin: 0 auto 72px; padding: 36px 40px; border-radius: 18px; background: var(--tbs-cream); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tbs-share h2 { margin: 0 0 8px; font-size: 22px; }
.tbs-share p { margin: 0; max-width: 52ch; }
.tbs-share .tbs-accent { color: #A5741C; }
.tbs-share__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.tbs-more--dark a { color: var(--tbs-gold) !important; }

/* Lightbox */
.tbs-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,18,32,.94); display: grid; place-items: center; padding: 56px 72px; opacity: 0; transition: opacity .2s ease; }
.tbs-lightbox.is-open { opacity: 1; }
.tbs-lightbox__figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.tbs-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; object-fit: contain; }
.tbs-lightbox__figure figcaption { color: #fff; font-size: 14px; margin-top: 14px; text-align: center; }
.tbs-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.tbs-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); cursor: pointer; display: grid; place-items: center; }
.tbs-lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbs-lightbox__nav:hover, .tbs-lightbox__close:hover { background: rgba(255,255,255,.22); }
.tbs-lightbox__prev { left: 16px; }
.tbs-lightbox__next { right: 16px; }
.tbs-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.65); font-size: 13px; margin: 0; }
body.tbs-lightbox-open { overflow: hidden; }
body.tbs-lightbox-open .joinchat { display: none !important; }

@media (max-width: 689px) {
	.tbs-gallery-intro { margin: 28px auto 22px !important; font-size: 14px; padding: 0 8px; }
	.tbs-gallery.wp-block-gallery { columns: 2; column-gap: 10px; }
	.tbs-gallery.wp-block-gallery figure.wp-block-image { margin-bottom: 10px !important; border-radius: 10px; }
	.tbs-gallery.wp-block-gallery figure.wp-block-image figcaption { font-size: 11.5px !important; padding: 22px 10px 8px !important; }
	.tbs-share { flex-direction: column; align-items: flex-start; padding: 26px 22px; margin-bottom: 48px; }
	.tbs-share h2 { font-size: 19px !important; }
	.tbs-share__actions { width: 100%; }
	.tbs-share__actions .tbs-btn { flex: 1 1 100%; }
	.tbs-lightbox { padding: 64px 12px 56px; }
	.tbs-lightbox__nav { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
	.tbs-lightbox__prev { left: 16px; }
	.tbs-lightbox__next { right: 16px; }
	.tbs-lightbox__count { bottom: 20px; }
}
.tbs-gallery-page .hero-section[data-type="type-2"] { background: var(--tbs-night) !important; padding: 0; text-align: center; }
.tbs-gallery-page .hero-section[data-type="type-2"] .ct-container { padding-top: 56px; padding-bottom: 56px; min-height: 0 !important; }
.tbs-gallery-page .hero-section[data-type="type-2"] figure { display: none; }
.tbs-gallery-page .hero-section .page-title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.tbs-gallery-page .hero-section .page-description, .tbs-gallery-page .hero-section .page-description p { color: var(--tbs-on-dark) !important; }
.tbs-gallery-page [data-vertical-spacing] { padding-top: 0 !important; }
.tbs-gallery-page .tbs-gallery-intro { margin-top: 36px !important; font-size: 13.5px; }

/* Closed lightbox must not cover the page (display:grid above overrides the hidden attribute) */
.tbs-lightbox[hidden] { display: none !important; }
.tbs-lightbox:not(.is-open) { pointer-events: none; }

/* Extra banner ([tbs_banner]): picture on the right with flip="yes"; a single column when there is no picture */
.tbs-split--flip > .tbs-split__art { order: 2; }
.tbs-banner .tbs-split:not(:has(.tbs-split__art)) { grid-template-columns: 1fr; text-align: center; }
.tbs-banner .tbs-split:not(:has(.tbs-split__art)) p { margin-inline: auto; }
@media (max-width: 960px) { .tbs-split--flip > .tbs-split__art { order: 0; } }

/* Hero carousel ([tbs_slide] inside [tbs_hero]): swipeable track, auto-advance in tbs.js */
.tbs-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 700; }
.tbs-hero { position: relative; }
.tbs-hero__track { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tbs-hero__track::-webkit-scrollbar { display: none; }
.tbs-hero__slide { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; overflow: hidden; }
.tbs-hero--slider { padding-bottom: 96px; }
.tbs-hero__nav { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.tbs-hero__dots { display: flex; gap: 4px; }
.tbs-hero__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.tbs-hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.tbs-hero__dot[aria-current="true"]::before { width: 24px; background: var(--tbs-gold); }
.tbs-hero__arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.tbs-hero__arrow:hover { background: rgba(255,255,255,.18); }
.tbs-hero__arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbs-hero__dot:focus-visible, .tbs-hero__arrow:focus-visible { outline: 2px solid var(--tbs-gold); outline-offset: 2px; }
@media (max-width: 689px) {
	.tbs-hero--slider { padding-bottom: 76px; }
	.tbs-hero__nav { bottom: 18px; }
	.tbs-hero__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tbs-hero__track { scroll-behavior: auto; } }
/* Slides run edge to edge so the gold lines are not cut at the gutter; each slide keeps the gutter inside. */
.tbs-hero--slider { padding-left: 0; padding-right: 0; }
.tbs-hero--slider .tbs-hero__slide { padding-left: var(--tbs-gutter); padding-right: var(--tbs-gutter); }
