/* Tremark 1.8.0 — systematic polish over the approved 1.7 storefront. */
:root {
  --tm-radius-sm: 8px;
  --tm-radius: 12px;
  --tm-space: 18px;
}

.shop-header { min-height: 80px; height: 80px; gap: 24px; }
.brand { width: 200px; }
.brand img { height: 48px; }
.nav { gap: 24px; }
.nav > a, .category-trigger { min-height: 44px; display: inline-flex; align-items: center; }

.topbar-messages { min-width: 290px; }
.topbar-messages > span { font-weight: 600; letter-spacing: .01em; }
.search-results .search-view-all { min-height: 44px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); color: var(--navy); font-size: 12px; font-weight: 750; }
.search-results .search-view-all:hover { background: #f7f6f2; color: var(--coral); }

.hero-slider { height: clamp(350px, 31vw, 490px); border-bottom: 1px solid var(--line); }
.hero-slide picture img { object-position: center; }

.mega-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; overflow: visible; gap: 18px; }
.mega-menu-grid section { padding: 14px; border: 1px solid #e9ebef; border-radius: var(--tm-radius); background: #fafaf8; }
.mega-menu-grid .mega-heading { margin: 0; font-size: 13px; }
.mega-menu-grid section > a:not(.mega-heading) { min-height: 32px; padding-block: 4px; }
.mega-menu-grid .mega-view-all { margin-top: 4px; color: var(--navy); font-weight: 700; }

.category-section { padding-top: 48px; }
.category-section .cat-row { gap: 12px; padding: 22px 0; }
.category-section .cat-row a,
.category-section .cat-row a:nth-child(n),
.category-section .cat-row a:last-child { height: 142px; padding: 16px; border-radius: var(--tm-radius); }
.category-section .cat-row a > i { width: 42px; height: 42px; }
.category-section .cat-row strong { font-size: 14px; }

.page-section { padding-block: 46px; }
.p-grid, .catalog-main > .p-grid { gap: 14px; }
.catalog-main > .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-card { min-height: 0; border-color: #eaebee; border-radius: var(--tm-radius); box-shadow: none; }
.p-card:hover { transform: translateY(-2px); border-color: #d7dae0; box-shadow: 0 10px 24px rgba(13,27,61,.07); }
.p-card .pic { height: 210px; padding: 15px; background: #f7f8f9; }
.p-card-body { padding: 15px !important; }
.p-card h3 { min-height: 42px; font-size: 13.5px; }
.p-card .product-meta { margin: 7px 0 11px; }
.p-card .price { padding-top: 11px; gap: 8px; }
.card-cart { width: auto; min-width: 112px; height: 42px; padding: 0 13px; display: inline-flex; gap: 7px; border-radius: var(--tm-radius-sm); font-size: 11px; font-weight: 750; white-space: nowrap; }
.card-cart-label { display: inline; }
.bestseller-cart { width: auto; min-width: 112px; padding-inline: 13px; display: inline-flex; gap: 7px; font-size: 11px; font-weight: 750; }

.catalog { display: block; padding-bottom: 52px; }
.catalog-main { width: 100%; }
.filter-trigger { display: inline-flex !important; }
.catalog .filter-panel { position: fixed !important; z-index: 120; top: 0 !important; right: 0; left: auto; width: min(390px, 92vw); max-height: 100vh !important; height: 100vh; padding-bottom: 28px; overflow-y: auto !important; border: 0 !important; border-radius: 0 !important; background: #fff; box-shadow: -18px 0 42px rgba(7,22,48,.16) !important; transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
.catalog .filter-panel.open { transform: translateX(0); visibility: visible; }
.filter-backdrop { position: fixed; z-index: 119; inset: 0; display: block; border: 0; background: rgba(7,22,48,.38); }
.filter-backdrop[hidden] { display: none; }
.toolbar { margin-bottom: 22px; }

.tm-pagination { margin-top: 36px; }
.tm-page-controls { padding: 6px; border: 1px solid #e5e8ed; border-radius: 28px; background: #fafaf8; }
.tm-page-list .page-numbers, .tm-page-direction { border: 0; background: transparent; box-shadow: none; }
.tm-page-list .current { background: var(--navy); color: #fff; box-shadow: none; }

.coffee-products { padding-block: 52px; background: #f7f6f2; }
.coffee-products .coffee-products-inner { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.8fr); gap: 34px; align-items: start; }
.coffee-products-copy { padding-top: 18px; }
.coffee-products-copy small { color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.coffee-products-copy h2 { margin: 10px 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.coffee-products-copy p { color: var(--muted); line-height: 1.65; }
.coffee-products-copy a { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--navy); font-weight: 750; }
.coffee-products .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.support-callout { margin-top: 34px; margin-bottom: 34px; padding: 20px 24px; }
.support-callout i { width: 42px; height: 42px; }
.support-callout h3 { font-size: 17px; }
.support-callout-actions a { min-height: 42px; padding-inline: 16px; }

footer { padding-top: 38px; }
.footer-grid { grid-template-columns: 1.35fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { margin-bottom: 12px; }
.footer-grid a { margin-block: 4px; min-height: 22px; }
.copy { margin-top: 20px; padding-top: 16px; }

.single-product-shell .stock { display: inline-flex; align-items: center; gap: 7px; }
.single-product-shell .stock:not(.out)::before { width: 7px; height: 7px; border-radius: 50%; background: #2f855a; content: ""; }

@media (max-width: 1100px) {
  .brand { width: 178px; }
  .catalog-main > .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-cart { min-width: 44px; padding-inline: 12px; }
  .card-cart-label { display: none; }
  .bestseller-cart { min-width: 44px; padding-inline: 12px; }
  .bestseller-cart span { display: none; }
  .mega-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shop-header { height: 74px; min-height: 74px; }
  .hero-slider { height: clamp(330px, 48vw, 460px); }
  .coffee-products .coffee-products-inner { grid-template-columns: 1fr; gap: 18px; }
  .coffee-products .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .brand { width: 148px; }
  .hero-slider { height: clamp(300px, 82vw, 390px); }
  .category-section { padding-top: 34px; }
  .category-section .cat-row { grid-auto-columns: minmax(205px, 72vw); }
  .category-section .cat-row a,
  .category-section .cat-row a:nth-child(n),
  .category-section .cat-row a:last-child { height: 136px; }
  .catalog-main > .p-grid, .coffee-products .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card .pic { height: 155px; padding: 10px; }
  .p-card-body { padding: 12px !important; }
  .p-card h3 { min-height: 38px; font-size: 12px; }
  .card-cart { min-width: 42px; width: 42px; padding: 0; }
  .card-cart-label { display: none; }
  .tm-page-controls { max-width: 100%; }
  .tm-page-list { gap: 2px; }
  .tm-page-list .page-numbers, .tm-page-direction { min-width: 44px; width: 44px; height: 44px; }
  .support-callout { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
}

@media (max-width: 430px) {
  .catalog-main > .p-grid, .coffee-products .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-card .pic { height: 138px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog .filter-panel, .hero-slide { transition: none; }
}

/* Audit refinements: clear focus/contrast, readable mobile type and compact controls. */
.hero-dots { gap: 0; }
.hero-dots button { position: relative; width: 44px; height: 44px; border: 0; background: transparent; }
.hero-dots button::after { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.68); content: ""; transform: translate(-50%,-50%); }
.hero-dots button[aria-selected="true"]::after { width: 24px; height: 8px; background: var(--coral); }
.hero-pause { position: absolute; z-index: 6; right: 24px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(7,22,45,.68); color: #fff; font-size: 12px; }
.p-card > em { background: #b74940; color: #fff; }
.p-card .product-meta b, .p-card .product-meta span { font-size: 10.5px; }
.category-heading small, .bestseller-heading small, .coffee-products-copy small { color: #596273; }
.search-result-item strong { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-main > .p-grid.single { max-width: 360px; grid-template-columns: minmax(0, 1fr); }
.feature-list { gap: 10px; }
.description > div { max-width: 72ch; }
.woocommerce-cart .order-total th, .woocommerce-cart .order-total td,
.tm-checkout-summary .order-total th, .tm-checkout-summary .order-total td { font-size: 18px; font-weight: 800; }
.woocommerce-checkout .form-row label { font-size: 13px; line-height: 1.45; }
.woocommerce-checkout textarea { min-height: 96px; border-radius: var(--tm-radius-sm); }
#ship-to-different-address label { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.tremark-upcoming-payment { margin-top: 12px; padding: 12px; }

@media (min-width: 701px) and (max-width: 1100px) {
  .card-cart { width: auto; min-width: 100px; padding-inline: 11px; }
  .card-cart-label { display: inline; }
  .bestseller-cart { width: auto; min-width: 100px; }
  .bestseller-cart span { display: inline; }
}

@media (max-width: 700px) {
  .category-section .cat-row { grid-auto-columns: minmax(205px, 62vw); }
  .p-card h3 { min-height: 40px; font-size: 13px; }
}

/* Preserve every part of the supplied advertising artwork instead of cropping it. */
.hero-slider { width: min(1300px, calc(100% - 36px)); height: auto; aspect-ratio: 1983 / 793; margin: 18px auto 0; border: 0; border-radius: 14px; }
.hero-slide picture img { object-fit: cover; object-position: center; }

@media (max-width: 900px) {
  .hero-slider { height: auto; }
}

@media (max-width: 700px) {
  .hero-slider { width: calc(100% - 24px); height: auto; aspect-ratio: 1374 / 1145; margin-top: 12px; border-radius: 12px; }
}
