:root {
  --tmc-green: #4f664c;
  --tmc-green-dark: #31462f;
  --tmc-green-soft: #eef2eb;
  --tmc-cream: #f7f4ee;
  --tmc-paper: #fcfbf8;
  --tmc-border: #e5e3dd;
  --tmc-text: #222820;
  --tmc-muted: #73786f;
  --tmc-radius: 14px;
  --tmc-shadow: 0 8px 28px rgba(40, 47, 37, .07);
}

.tmc-private-catalogue #content,
.tmc-private-catalogue .page-wrapper { background: #fff; }
.home.tmc-private-catalogue .row-main { max-width: 1440px; width: calc(100% - 32px); }

/* Use the available desktop width so all five category links stay on one line. */
@media (min-width: 850px) {
  #masthead .header-inner.container { max-width: 1440px; width: calc(100% - 32px); }
  #masthead .header-nav-main { flex-wrap: nowrap; white-space: nowrap; }
  #masthead .header-nav-main > li { flex: 0 0 auto; }
}
@media (min-width: 850px) and (max-width: 1100px) {
  #masthead .header-nav-main > li > a { font-size: 11px; padding-left: 5px; padding-right: 5px; }
}

.tmc-hero,
.tmc-collection-nav-wrap,
.tmc-product-section {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
}

.tmc-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f7f3eb 0%, #f1ede5 100%);
  border: 1px solid var(--tmc-border);
  border-radius: 20px;
  box-shadow: var(--tmc-shadow);
}

.tmc-hero-copy { padding: clamp(38px, 5vw, 78px); align-self: center; }
.tmc-eyebrow { color: var(--tmc-green); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.tmc-hero h1 { color: var(--tmc-text); font-size: clamp(36px, 4.1vw, 64px); line-height: 1.02; margin: 0 0 20px; max-width: 700px; }
.tmc-hero p { max-width: 580px; color: #50564e; font-size: 17px; line-height: 1.6; margin-bottom: 26px; }
.tmc-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tmc-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--tmc-green); color: #fff !important; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: none; transition: .2s ease; }
.tmc-btn:hover { background: var(--tmc-green-dark); transform: translateY(-1px); }
.tmc-btn-small { min-height: 38px; padding: 0 16px; white-space: nowrap; }
.tmc-btn-full { width: 100%; }
.tmc-text-link { color: var(--tmc-green-dark); font-weight: 650; }

.tmc-hero-media { min-height: 390px; background: #eadfd1; position: relative; overflow: hidden; }
.tmc-hero-image { width: 100%; height: 100%; object-fit: contain; display: block; background: #f7f4ee; }
.tmc-hero-art { position: absolute; inset: 0; background: radial-gradient(circle at 42% 42%, #fff 0 18%, transparent 18.4%), linear-gradient(135deg, #e9d3c4, #f0e4d6 54%, #d7ddcf); }
.tmc-art-petal { position: absolute; width: 120px; height: 58px; background: #db6f72; border-radius: 80% 12% 80% 12%; box-shadow: inset 0 0 0 7px rgba(255,255,255,.22); }
.tmc-art-petal.p1 { left: 30%; top: 28%; transform: rotate(18deg); }
.tmc-art-petal.p2 { left: 48%; top: 38%; transform: rotate(94deg); background: #efac8f; }
.tmc-art-petal.p3 { left: 35%; top: 55%; transform: rotate(-24deg); background: #c94f58; }
.tmc-art-leaf { position: absolute; width: 110px; height: 42px; border-radius: 100% 0 100% 0; background: #637b55; }
.tmc-art-leaf.l1 { left: 58%; top: 25%; transform: rotate(28deg); }
.tmc-art-leaf.l2 { left: 55%; top: 62%; transform: rotate(-18deg); }

.tmc-collection-nav-wrap { margin-top: 28px; margin-bottom: 38px; }
.tmc-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 18px; }
.tmc-section-heading h2 { font-size: clamp(27px, 2.2vw, 38px); line-height: 1.12; color: var(--tmc-text); margin: 0; }
.tmc-section-heading p { margin: 7px 0 0; color: var(--tmc-muted); font-size: 14px; }
.tmc-title-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tmc-product-count { color: #92978f; font-size: 12px; }
.tmc-collection-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tmc-collection-tile { position: relative; display: block; overflow: hidden; border: 1px solid var(--tmc-border); border-radius: var(--tmc-radius); background: #fff; color: var(--tmc-text); box-shadow: 0 4px 18px rgba(32,37,29,.045); text-decoration: none; }
.tmc-collection-thumb { aspect-ratio: 1.2 / 1; background: var(--tmc-cream); overflow: hidden; }
.tmc-collection-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.tmc-collection-tile:hover .tmc-collection-thumb img { transform: scale(1.03); }
.tmc-collection-meta { padding: 12px 40px 13px 13px; min-height: 66px; }
.tmc-collection-meta strong { display: block; font-size: 14px; line-height: 1.25; }
.tmc-collection-meta span { color: #8b8f87; font-size: 11px; }
.tmc-circle-arrow { position: absolute; right: 10px; bottom: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f2f3f0; color: var(--tmc-green-dark); }

.tmc-product-section { padding: 28px 22px 26px; margin-bottom: 16px; background: var(--tmc-paper); border: 1px solid #eeeae2; border-radius: 18px; }
.tmc-product-grid { display: grid; gap: 12px; }
.tmc-product-grid.tmc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmc-product-grid.tmc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tmc-product-grid.tmc-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tmc-product-grid.tmc-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tmc-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--tmc-border); border-radius: 12px; box-shadow: 0 2px 11px rgba(36,43,32,.035); }
.tmc-product-image { display: block; aspect-ratio: 1 / 1; background: #f4f1eb; overflow: hidden; }
.tmc-product-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .22s ease; }
.tmc-product-card:hover .tmc-product-image img { transform: scale(1.025); }
.tmc-product-info { min-width: 0; min-height: 105px; padding: 12px; display: flex; flex-direction: column; flex: 1; }
.tmc-product-name { color: var(--tmc-text); font-size: 13px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmc-sku { color: #989c94; font-size: 10px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmc-price { color: var(--tmc-text); font-size: 14px; font-weight: 750; margin-top: 9px; }
.tmc-price del { color: #999; font-weight: 400; font-size: 11px; }
.tmc-qty-control { margin-top: auto; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; height: 38px; border: 1px solid #d4ded2; border-radius: 10px; overflow: hidden; background: #fff; }
.tmc-qty-control.is-loading { border-color: #aec3aa; }
.tmc-qty-btn { display: grid !important; place-items: center; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: 100% !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; background: #eef3ec !important; color: #314d32 !important; box-shadow: none !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1 !important; cursor: pointer; transition: background .15s ease; }
.tmc-qty-btn:hover { background: #dce9d8 !important; }
.tmc-qty-btn:first-child { border-right: 1px solid #d4ded2 !important; }
.tmc-qty-btn:last-child { border-left: 1px solid #d4ded2 !important; }
.tmc-qty-value { display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tmc-options-link { margin-top: auto; min-height: 34px; display: flex; align-items: center; color: var(--tmc-green); font-size: 12px; font-weight: 700; }
.tmc-empty-state { padding: 28px; text-align: center; background: #fff; border: 1px dashed #d8dbd3; border-radius: 12px; color: var(--tmc-muted); }
.tmc-empty-state strong, .tmc-empty-state span { display: block; }
.tmc-demo-note { color: var(--tmc-muted); font-size: 12px; margin: 0 0 12px; }
.tmc-qty-preview { opacity: .55; }
.tmc-qty-preview button { cursor: not-allowed; }

.tmc-floating-cart { position: fixed; right: 22px; bottom: 20px; z-index: 9998; min-height: 54px; padding: 7px 8px 7px 15px; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.96); border: 1px solid #dedfd9; border-radius: 999px; box-shadow: 0 12px 35px rgba(26,36,24,.18); backdrop-filter: blur(10px); color: var(--tmc-text); text-decoration: none; }
.tmc-cart-icon { font-size: 18px; }
.tmc-cart-count { font-size: 12px; white-space: nowrap; }
.tmc-cart-divider { width: 1px; height: 24px; background: #ddd; }
.tmc-cart-total { font-size: 12px; font-weight: 700; white-space: nowrap; }
.tmc-cart-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tmc-green); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

.tmc-customer-nav { padding: 8px 18px; background: var(--tmc-green-dark); color: rgba(255,255,255,.9); display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 12px; }
.tmc-customer-nav a { color: #fff; }
.tmc-welcome { margin-right: auto; }

/* Private login */
.tmc-login-page #header,
.tmc-login-page #footer,
.tmc-login-page .absolute-footer { display: none !important; }
.tmc-login-page #main,
.tmc-login-page #content,
.tmc-login-page .page-wrapper { padding: 0 !important; margin: 0 !important; min-height: 100vh; background: #f2eee7; }
.tmc-login-page .row-main { max-width: none !important; }
.tmc-login-page .large-12 { padding: 0 !important; }
.tmc-login-shell { width: 100%; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr); background: #f2eee7; }
.tmc-login-visual { position: relative; overflow: hidden; padding: 62px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #e7ddcf, #cfd8c9); }
.tmc-login-brand { position: relative; z-index: 2; }
.tmc-login-brand img { width: 145px; height: 145px; object-fit: contain; }
.tmc-login-tagline { position: relative; z-index: 2; letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: #40513d; margin-top: 22px; }
.tmc-paper-flower { position: absolute; border-radius: 50%; background: repeating-radial-gradient(circle at center, #c85d63 0 5px, #f1a7a2 6px 10px, #fff1e7 11px 15px); box-shadow: 0 24px 48px rgba(67,52,43,.16); }
.tmc-paper-flower-a { width: 330px; height: 330px; top: 10%; right: 10%; }
.tmc-paper-flower-b { width: 180px; height: 180px; top: 35%; left: 13%; background: repeating-radial-gradient(circle at center, #d38d64 0 5px, #f4c4a8 6px 10px, #fff4e7 11px 15px); }
.tmc-login-card { align-self: center; width: min(470px, calc(100% - 54px)); margin: 28px auto; padding: clamp(34px, 5vw, 58px); background: #fff; border-radius: 20px; box-shadow: 0 18px 60px rgba(47,52,44,.13); }
.tmc-login-logo { margin-bottom: 28px; }
.tmc-login-logo img { width: 85px; height: 85px; object-fit: contain; }
.tmc-login-card h1 { font-size: 34px; margin: 0 0 10px; color: var(--tmc-text); }
.tmc-muted { color: var(--tmc-muted); line-height: 1.55; }
.tmc-login-form { margin-top: 27px; }
.tmc-login-form label:not(.tmc-remember) { display: block; margin: 15px 0 7px; color: #3f463d; font-size: 12px; font-weight: 700; }
.tmc-login-form input[type="text"], .tmc-login-form input[type="password"] { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #d9ddd5; border-radius: 8px; background: #fff; box-shadow: none; }
.tmc-remember { display: flex; align-items: center; gap: 8px; margin: 15px 0 18px; font-size: 12px; color: #61675e; }
.tmc-remember input { margin: 0; }
.tmc-forgot { display: block; margin-top: 18px; text-align: center; color: var(--tmc-green); font-size: 12px; font-weight: 650; }
.tmc-login-error { margin: 18px 0; padding: 10px 12px; border-radius: 8px; background: #fff2f1; border: 1px solid #efcbc7; color: #8e3f38; font-size: 12px; }

/* WooCommerce refinements */
.woocommerce-cart .shop_table,
.woocommerce-checkout .shop_table,
.woocommerce-account .woocommerce-MyAccount-content { border-radius: 12px; overflow: hidden; }
.woocommerce-checkout #place_order { background: var(--tmc-green) !important; border-radius: 999px !important; }

/* No public price is quoted in the PO catalogue or its cart header. */
.header-cart-link .cart-price,
.header-cart-link .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-mini-cart__total,
.woocommerce-order-received .woocommerce-order-overview__total,
.woocommerce-order-received .woocommerce-order-overview__payment-method { display: none !important; }
.payment-icons { display: none !important; }
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }
.tmc-po-account { padding: 12px 15px; background: #f4f6f1; border-radius: 9px; }
.woocommerce-checkout label[data-automation-id="woo-commerce-subscription-opt-in"] { display: none !important; }
.woocommerce-checkout form.checkout > .row > .large-7.col { display: none; }
.woocommerce-checkout form.checkout > .row > .large-5.col { flex: 0 0 100%; max-width: 680px; margin: 0 auto; }

@media (max-width: 1180px) {
  .tmc-collection-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tmc-product-grid.tmc-cols-4,
  .tmc-product-grid.tmc-cols-5,
  .tmc-product-grid.tmc-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 849px) {
  .home.tmc-private-catalogue .row-main { width: 100%; }
  .home.tmc-private-catalogue .row-main > .col { padding-left: 0; padding-right: 0; }
  .home.tmc-private-catalogue .tmc-product-section { width: calc(100% - 16px); padding: 14px 6px; }
  .tmc-hero,
  .tmc-collection-nav-wrap,
  .tmc-product-section { width: min(100% - 24px, 760px); }
  .tmc-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 12px; border-radius: 15px; }
  .tmc-hero-copy { padding: 30px 25px 28px; }
  .tmc-hero h1 { font-size: 38px; }
  .tmc-hero p { font-size: 14px; margin-bottom: 20px; }
  .tmc-hero-media { min-height: 220px; grid-row: 1; }
  .tmc-collection-nav-wrap { margin-top: 20px; margin-bottom: 25px; }
  .tmc-section-heading { align-items: center; }
  .tmc-product-section { padding: 20px 12px; border-radius: 14px; }
  .tmc-product-grid.tmc-cols-3,
  .tmc-product-grid.tmc-cols-4,
  .tmc-product-grid.tmc-cols-5,
  .tmc-product-grid.tmc-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tmc-product-card { border-radius: 10px; }
  .tmc-product-image { min-height: 0; aspect-ratio: 1 / 1; }
  .tmc-product-image img { aspect-ratio: 1 / 1; }
  .tmc-product-info { min-height: 108px; padding: 6px; }
  .tmc-product-name { font-size: 12px; }
  .tmc-sku { font-size: 9px; }
  .tmc-price { font-size: 13px; margin-top: 7px; }
  .tmc-floating-cart { left: 12px; right: 12px; bottom: 10px; justify-content: space-between; min-height: 50px; }
  .tmc-cart-total { display: none; }
  .tmc-login-shell { grid-template-columns: 1fr; min-height: 100svh; }
  .tmc-login-visual { display: none; }
  .tmc-login-card { width: min(460px, calc(100% - 28px)); padding: 34px 24px; }
}

@media (max-width: 520px) {
  .tmc-collection-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tmc-collection-thumb { aspect-ratio: 1 / .82; }
  .tmc-collection-meta { min-height: 50px; padding: 8px 6px 9px; text-align: center; }
  .tmc-collection-meta strong { font-size: 10px; }
  .tmc-collection-meta span, .tmc-circle-arrow { display: none; }
  .tmc-section-heading { gap: 10px; margin-bottom: 12px; }
  .tmc-section-heading h2 { font-size: 22px; }
  .tmc-section-heading p { font-size: 11px; line-height: 1.4; }
  .tmc-product-count { font-size: 10px; }
  .tmc-btn-small { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .tmc-product-section { margin-bottom: 10px; }
  .tmc-floating-cart { gap: 7px; padding-left: 11px; }
  .tmc-cart-cta { min-height: 37px; padding: 0 12px; }
  .tmc-cart-icon { display: none; }
}

/* Category/shop ordering shares the homepage cart and quantity interaction. */
@media (max-width: 849px) {
  .tmc-private-catalogue .shop-container > .products > .product { flex: 0 0 33.333333%; max-width: 33.333333%; padding-left: 4px; padding-right: 4px; }
  .tmc-private-catalogue .tmc-qty-control { grid-template-columns: minmax(24px, 1fr) minmax(20px, 1fr) minmax(24px, 1fr); height: 38px; }
  .tmc-private-catalogue .tmc-qty-btn { font-size: 19px; }
  .tmc-private-catalogue .tmc-qty-value { font-size: 12px; }
  .tmc-private-catalogue .product-title { font-size: 12px; }
}
.tmc-archive-order { margin-top: 10px; text-align: left; }
.tmc-archive-order .tmc-sku { margin-bottom: 8px; }
.tmc-private-catalogue .category-page-row { max-width: 1440px; width: calc(100% - 32px); }
.tmc-private-catalogue .shop-container > .products > .product .box-image img { aspect-ratio: 1; object-fit: contain; }
@media (min-width: 850px) {
  .tmc-private-catalogue .shop-container > .products { display: flex; flex-wrap: wrap; }
  .tmc-private-catalogue .shop-container > .products > .product { flex: 0 0 20%; max-width: 20%; }
}
