/*
Theme Name: Dragon Machinery
Theme URI: https://dragon-machinery.local
Description: Custom Blocksy child theme for Dragon Machinery — industrial heavy-machinery eshop. Hazard-stripe / concrete design system (Anton · Oswald · Barlow · Archivo, orange #FF6A00 + near-black + warm off-white).
Author: Dragon Machinery
Template: blocksy
Version: 2.2.2
Text Domain: tmc-child
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --accent:      #FF6A00;
  --accent-2:    #EA580C;
  --ink:         #0E0E0E;   /* header/footer/dark bands */
  --ink-2:       #141210;   /* body text */
  --bg:          #F4F1EA;   /* page background */
  --bg-2:        #EDE8DE;   /* hero band */
  --card:        #FFFFFF;
  --muted:       #8a8378;
  --muted-2:     #4a463f;
  --border:      #e3dccd;
  --border-2:    #e0d8c8;
  --chip-bg:     #fbf3e8;
  --chip-bd:     #f0dcc2;

  /* Blocksy palette hooks — recolor theme-wide accents/links/buttons */
  --theme-palette-color-1: #FF6A00;
  --theme-palette-color-2: #EA580C;
  --theme-palette-color-3: #141210;
  --theme-palette-color-4: #4a463f;
  --theme-palette-color-5: #8a8378;
  --theme-palette-color-6: #e3dccd;
  --theme-palette-color-7: #F4F1EA;
  --theme-palette-color-8: #FFFFFF;
  --theme-link-initial-color: #FF6A00;
  --theme-link-hover-color: #EA580C;
  --theme-text-color: #141210;
  --theme-headings-color: #141210;
}

/* Hazard-stripe helper (construction tape) */
.tmc-hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--accent) 0 20px, var(--ink) 20px 40px); }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 17px;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink-2); }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

/* Display / heading fonts */
.tmc-anton   { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; }
.tmc-oswald  { font-family: 'Oswald', sans-serif; }
.tmc-cond    { font-family: 'Barlow Condensed', sans-serif; }
.tmc-archivo { font-family: 'Archivo', sans-serif; }

/* ==========================================================================
   Hide Blocksy's own header & footer — we render custom ones (see functions.php)
   ========================================================================== */
header#header, .ct-header,
footer#footer, .ct-footer { display: none !important; }

/* Home: full-bleed so the design sections (which self-center) span edge to edge */
.home #main, .home #main > .ct-container, .home .entry-content,
.home article, .home article > .entry-content, .home .ct-container[class*="content"] {
  max-width: 100% !important; padding: 0 !important; margin: 0 !important;
}
.home .ct-hero-section, .home .hero-section, .home .site-main > .hero-section,
.home .entry-header, .home .page-title,
.home .woocommerce-breadcrumb { display: none !important; }
#main { background: var(--bg); }
/* Shop / single: keep a centered container, a touch wider like the design */
body.woocommerce .ct-container, body.woocommerce-page .ct-container { --container-width: 1300px; }

/* shared inner width */
.tmc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px){ .tmc-wrap { padding: 0 20px; } }

/* ==========================================================================
   Custom header
   ========================================================================== */
.tmc-header { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; border-bottom: 1px solid #1e1e1e; }
.tmc-headwrap { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; }
.tmc-header img.tmc-logo { height: 40px; width: auto; cursor: pointer; flex-shrink: 0; }
.tmc-nav { display: flex; align-items: center; gap: 26px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.tmc-nav a { color: #d8d8d8; text-decoration: none; }
.tmc-nav a:hover, .tmc-nav a.tmc-active { color: var(--accent); }
.tmc-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tmc-phone-btn { text-decoration: none; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; border: 1px solid #333; padding: 9px 16px; border-radius: 3px; white-space: nowrap; }
.tmc-phone-btn:hover { color: var(--accent); border-color: var(--accent); }
.tmc-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink); padding: 9px 13px; border-radius: 3px; text-decoration: none; flex-shrink: 0; }
.tmc-cart-btn:hover { filter: brightness(1.07); color: var(--ink); }
.tmc-cart-btn svg { width: 20px; height: 20px; display: block; }
.tmc-cart-count { background: var(--ink); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; line-height: 1; }
.tmc-nav-phone { display: none; }
/* hamburger */
.tmc-burger { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.tmc-burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.tmc-header.tmc-open .tmc-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tmc-header.tmc-open .tmc-burger span:nth-child(2) { opacity: 0; }
.tmc-header.tmc-open .tmc-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .tmc-headwrap { padding-left: 20px; padding-right: 20px; }
  .tmc-nav { gap: 18px; font-size: 14px; }
  .tmc-nav-hide { display: none; }
}
@media (max-width: 720px) {
  .tmc-headwrap { padding-top: 12px; padding-bottom: 12px; }
  .tmc-burger { display: flex; }
  .tmc-header-cta .tmc-phone-btn { display: none; }      /* phone lives in the menu on mobile */
  .tmc-nav { display: none; }
  .tmc-header.tmc-open .tmc-nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid #1e1e1e; padding: 4px 20px 14px; z-index: 60;
    box-shadow: 0 16px 30px rgba(0,0,0,.4);
  }
  .tmc-header.tmc-open .tmc-nav a { padding: 14px 2px; border-bottom: 1px solid #1e1e1e; font-size: 16px; }
  .tmc-header.tmc-open .tmc-nav a:last-child { border-bottom: 0; }
  .tmc-header.tmc-open .tmc-nav .tmc-nav-hide { display: block; }
  .tmc-header.tmc-open .tmc-nav .tmc-nav-phone { display: block; color: var(--accent); }
}

/* ---- Mobile layout adjustments ---- */
@media (max-width: 900px) {
  .tmc-hero-inner > * { min-width: 0; }
  .tmc-hero-media img { max-width: 100%; min-width: 0; height: auto; }
}
@media (max-width: 600px) {
  .tmc-hero .tmc-hero-inner { padding: 34px 20px 30px; }
  .tmc-h1 { font-size: 36px; line-height: 1.03; overflow-wrap: break-word; }
  .tmc-hero p.lead { font-size: 16px; }
  .tmc-stats { gap: 14px 22px; flex-wrap: wrap; }
  .tmc-stats > div { flex: 1 1 40%; min-width: 0; }
  .tmc-stats .n { font-size: 22px; }
  .tmc-stats .l { overflow-wrap: break-word; }
  .tmc-hero-actions { flex-direction: column; align-items: stretch; }
  .tmc-hero-actions a { font-size: 16px; padding: 14px 20px; text-align: center; }
  .tmc-section { padding: 40px 20px 16px; }
  .tmc-band-wrap { padding: 0 20px; }
  .tmc-info { padding: 30px 20px; }
  .tmc-h2, .tmc-shop-title { font-size: 30px; }
  .tmc-band { padding: 26px 22px; }
  .tmc-band h2 { font-size: 30px; }
  .tmc-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* product grid: 2 across on phones */
  .woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; }
  .woocommerce ul.products li.product .price { font-size: 17px !important; }
  .tmc-shop-hero .tmc-wrap { padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 430px) {
  .tmc-h1 { font-size: 31px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
}

/* shop: collapsible filters on mobile (desktop shows them open, no toggle) */
.tmc-filters-toggle { display: none; }
@media (max-width: 900px) {
  .tmc-shop-sidebar { position: static !important; padding: 0 !important; border: 0 !important; background: transparent !important; margin-bottom: 18px; }
  .tmc-filters-toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px;
    font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    font-size: 15px; color: var(--ink-2); cursor: pointer;
  }
  .tmc-filters-toggle .tmc-fx { transition: transform .2s ease; color: var(--accent); }
  .tmc-shop-sidebar.tmc-filters-open .tmc-filters-toggle .tmc-fx { transform: rotate(180deg); }
  .tmc-filters-body { display: none; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px; margin-top: 10px; }
  .tmc-shop-sidebar.tmc-filters-open .tmc-filters-body { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tmc-btn, .tmc-btn-ghost, .tmc-btn-dark {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 19px; padding: 16px 30px; border-radius: 3px; border: 1px solid transparent;
  transition: filter .15s ease, background .15s ease, color .15s ease;
}
.tmc-btn { background: var(--accent); color: var(--ink); }
.tmc-btn:hover { filter: brightness(1.06); color: var(--ink); }
.tmc-btn-ghost { background: #fff; color: var(--ink-2); border-color: #d9d1c1; }
.tmc-btn-ghost:hover { border-color: var(--accent); color: var(--ink-2); }
.tmc-btn-dark { background: var(--ink); color: #fff; }
.tmc-btn-sm { font-size: 14px; padding: 9px 16px; }

/* WooCommerce buttons → design buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt,
.woocommerce ul.products li.product .button,
.wp-block-button__link {
  background: var(--accent) !important; color: var(--ink) !important; border: none !important;
  font-family: 'Barlow Condensed', sans-serif !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.04em !important; border-radius: 3px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button.alt:hover { filter: brightness(1.06); color: var(--ink) !important; }

/* ==========================================================================
   Headings / section titles
   ========================================================================== */
.tmc-h1 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 74px; line-height: 0.94; margin: 0 0 22px; }
.tmc-h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 40px; margin: 0; }
.tmc-eyebrow { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--accent); border: 1px solid #e2cdb2; background: var(--chip-bg); padding: 6px 14px; border-radius: 2px; margin-bottom: 22px; }
.tmc-accent { color: var(--accent); }

/* ==========================================================================
   Homepage sections
   ========================================================================== */
.tmc-hero { background: var(--bg-2); }
.tmc-hero .tmc-hero-inner { max-width: 1280px; margin: 0 auto; padding: 60px 32px 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tmc-hero p.lead { font-size: 20px; line-height: 1.5; color: var(--muted-2); max-width: 520px; margin: 0 0 32px; }
.tmc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tmc-stats { display: flex; gap: 34px; margin-top: 40px; }
.tmc-stats .n { font-family: 'Anton', sans-serif; font-size: 34px; color: var(--ink-2); line-height: 1; }
.tmc-stats .l { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tmc-hero-media { position: relative; height: 420px; border: 1px solid var(--border-2); border-radius: 4px; overflow: hidden; background: var(--card); display: flex; align-items: flex-end; }
.tmc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .tmc-hero .tmc-hero-inner { grid-template-columns: 1fr; } .tmc-h1 { font-size: 52px; } .tmc-hero-media { height: 280px; } }

.tmc-filterstrip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tmc-filterstrip-inner { max-width: 1280px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tmc-filterstrip .lbl { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; color: var(--muted); }
.tmc-pill { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-2); border: 1px solid #ddd6c8; padding: 8px 14px; border-radius: 20px; text-decoration: none; }
.tmc-pill:hover { border-color: var(--accent); color: var(--ink-2); }

.tmc-section { max-width: 1280px; margin: 0 auto; padding: 56px 32px 20px; }
.tmc-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.tmc-link-strong { color: var(--accent); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; text-decoration: none; }

/* category tiles */
.tmc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tmc-cats { grid-template-columns: 1fr; } }
.tmc-cat { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; transition: box-shadow .2s ease, transform .2s ease; }
.tmc-cat:hover { box-shadow: 0 14px 30px rgba(20,18,16,.10); transform: translateY(-3px); }
.tmc-cat-media { position: relative; height: 180px; background: repeating-linear-gradient(45deg,#e9e3d6 0 12px,#efeae0 12px 24px); display: flex; align-items: center; justify-content: center; }
.tmc-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.tmc-cat-spec { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 2px; }
.tmc-cat-body { padding: 18px 20px 20px; }
.tmc-cat-body h3 { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 22px; margin: 0 0 6px; }
.tmc-cat-count { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.tmc-cat-more { display: inline-block; color: var(--ink-2); border: 1px solid #d9d1c1; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; padding: 9px 16px; border-radius: 3px; }
.tmc-cat-cta { border: 1px dashed #cabfa8; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #efeae0; padding: 24px; text-decoration: none; color: inherit; text-align: center; }
.tmc-cat-cta .big { font-family: 'Anton', sans-serif; font-size: 30px; color: var(--accent); }

/* financing band */
.tmc-band-wrap { max-width: 1280px; margin: 40px auto 0; padding: 0 32px; }
.tmc-band { background: var(--ink); color: #fff; border-radius: 6px; padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.tmc-band h2 { color: #fff; font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 44px; margin: 8px 0 12px; line-height: 0.98; }
.tmc-band .kicker { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--accent); }
.tmc-band p { font-size: 18px; line-height: 1.5; margin: 0; max-width: 520px; color: #c4c1bb; }
.tmc-band-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 4px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.tmc-band-card span:first-child { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 15px; }
.tmc-band-card span:last-child { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--accent); }
@media (max-width: 900px) { .tmc-band { grid-template-columns: 1fr; } }

/* service / delivery cards */
.tmc-info { max-width: 1280px; margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .tmc-info { grid-template-columns: 1fr; } }
.tmc-info-card { border: 1px solid var(--border); border-radius: 6px; padding: 32px; background: #fff; }
.tmc-info-ico { width: 44px; height: 44px; border-radius: 3px; background: var(--chip-bg); border: 1px solid var(--chip-bd); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-family: 'Anton', sans-serif; color: var(--accent); font-size: 22px; }
.tmc-info-card h3 { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 24px; margin: 0 0 10px; }
.tmc-info-card p { font-size: 17px; line-height: 1.5; color: var(--muted-2); margin: 0 0 16px; }

/* ==========================================================================
   WooCommerce shop / listing
   ========================================================================== */
/* hide Blocksy's own product-archive title hero — we render our own band */
.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header,
.post-type-archive-product > .hero-section,
.post-type-archive-product .site-main > .hero-section,
.tax-product_cat .site-main > .hero-section { display: none !important; }

/* design title band (full-bleed) */
.tmc-shop-hero { background: var(--bg-2); border-bottom: 1px solid var(--border); width: 100vw; position: relative; left: 50%; transform: translateX(-50%); margin-bottom: 24px; }
.tmc-shop-hero .tmc-wrap { padding-top: 34px; padding-bottom: 34px; }
.tmc-crumb { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.tmc-crumb a { color: var(--muted); text-decoration: none; }
.tmc-crumb a:hover { color: var(--accent); }
.tmc-crumb span { color: var(--ink-2); }
.tmc-shop-title { font-size: 46px; margin: 0; color: var(--ink-2); }
.woocommerce .term-description, .woocommerce-result-count, .woocommerce-ordering { font-family: 'Barlow', sans-serif; }

/* two-column layout */
.tmc-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .tmc-shop-layout { grid-template-columns: 1fr; } .tmc-shop-sidebar { position: static !important; } }
.tmc-shop-results { min-width: 0; }
.tmc-shop-results .woo-listing-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.tmc-resultline { font-family: 'Barlow', sans-serif; font-size: 16px; color: var(--muted-2); margin: 0 !important; }
.tmc-resultline b { color: var(--ink-2); font-weight: 600; }

/* sidebar */
.tmc-shop-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; position: sticky; top: 90px; }
.tmc-side-title { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 16px; letter-spacing: 0.04em; margin: 0 0 14px; }
.tmc-side-list { display: flex; flex-direction: column; gap: 8px; }
.tmc-side-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 4px; border: 1px solid #eee6d6; background: #faf8f2; color: var(--muted-2); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 16px; text-decoration: none; }
.tmc-side-row .c { opacity: 0.7; font-size: 13px; }
.tmc-side-row:hover { border-color: var(--accent); }
.tmc-side-row.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tmc-side-div { height: 1px; background: #eee6d6; margin: 20px 0; }
.tmc-check { display: flex; align-items: center; gap: 9px; font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--muted-2); text-decoration: none; padding: 3px 0; }
.tmc-check .box { width: 16px; height: 16px; border: 1px solid #cabfa8; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.tmc-check.active .box { background: var(--accent); border-color: var(--accent); }
.tmc-check:hover { color: var(--ink-2); }
.tmc-price-note { font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--muted-2); }
.tmc-price-bar { height: 6px; background: #eee6d6; border-radius: 4px; margin-top: 10px; position: relative; }
.tmc-price-bar span { position: absolute; left: 0; top: 0; height: 6px; width: 62%; background: var(--accent); border-radius: 4px; }

.woocommerce ul.products, .woocommerce-page ul.products { gap: 18px !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; padding: 0 !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 14px 30px rgba(20,18,16,.10); transform: translateY(-3px); }
.woocommerce ul.products li.product { padding: 0 0 18px !important; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.woocommerce ul.products li.product a img {
  display: block; margin: 0 0 14px 0 !important; border-radius: 0 !important;
  width: 100% !important; height: auto !important;
  aspect-ratio: 4 / 3;            /* uniform card image box for any source ratio */
  object-fit: contain;            /* never crop/stretch — square images fit whole */
  object-position: center;
  background: repeating-linear-gradient(45deg,#e9e3d6 0 12px,#efeae0 12px 24px);
}
/* pad every text child (image stays full-bleed) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .tmc-meta,
.woocommerce ul.products li.product .tmc-sub,
.woocommerce ul.products li.product .button { margin-left: 18px !important; margin-right: 18px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Archivo', sans-serif !important; font-weight: 800 !important; font-size: 20px !important;
  padding: 0 !important; margin-top: 0 !important; margin-bottom: 4px !important; color: var(--ink-2); min-height: 0 !important;
}
.woocommerce ul.products li.product .price {
  font-family: 'Archivo', sans-serif !important; font-weight: 900 !important; font-size: 20px !important; color: var(--ink-2) !important; display: block; margin-bottom: 0 !important;
}
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 15px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--accent); }
.woocommerce ul.products li.product .tmc-meta { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: #9a948a; margin-bottom: 4px; }
.woocommerce ul.products li.product .tmc-sub { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--muted); margin: 0 18px 12px !important; }
.woocommerce ul.products li.product .button { display: block !important; text-align: center; margin-top: 12px !important; float: none !important; }
/* "Δες →" view link — compact button, not full-width */
.woocommerce ul.products li.product a.button.tmc-view {
  display: inline-block !important; width: auto; margin: 14px 18px 0 !important;
  font-family: 'Oswald', sans-serif !important; font-weight: 700 !important; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 13px !important; padding: 9px 16px !important;
}

/* condition badge on cards + single */
.tmc-cond-badge { position: absolute; top: 12px; left: 12px; z-index: 3; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 2px; }
.tmc-cond-new  { background: var(--ink); color: #fff; }
.tmc-cond-used { background: #efeae0; color: var(--muted-2); }
.woocommerce ul.products li.product { position: relative; }
.woocommerce span.onsale { background: var(--accent); color: var(--ink); border-radius: 2px; font-family: 'Oswald', sans-serif; font-weight: 700; min-height: 0; min-width: 0; padding: 5px 10px; top: 12px; right: 12px; left: auto; }

/* ==========================================================================
   Single product (detail)
   ========================================================================== */
.single-product div.product .product_title { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 40px; line-height: 1.03; margin: 6px 0 14px; }
.single-product div.product p.price, .single-product div.product span.price { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 40px; color: var(--ink-2); }
.single-product .woocommerce-product-gallery { border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(45deg,#e9e3d6 0 14px,#efeae0 14px 28px); }
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
  width: 100% !important; height: auto !important;
  aspect-ratio: 4 / 3; object-fit: contain; object-position: center;
  background: repeating-linear-gradient(45deg,#e9e3d6 0 14px,#efeae0 14px 28px);
}
.tmc-chips { display: flex; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; }
.tmc-chip { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; padding: 6px 12px; border-radius: 3px; background: #efeae0; color: var(--muted-2); }
.tmc-chip.new { background: var(--ink); color: #fff; }
.tmc-chip.tmc-chip-ready { background: #e4f0e4; color: #2e7d32; }
.tmc-chip.tmc-chip-demand { background: #f6e6c9; color: #8a5a12; }

/* availability line on shop cards */
.woocommerce ul.products li.product .tmc-avail {
  display: flex; align-items: center; gap: 6px; margin: 0 18px 10px !important;
  font-family: 'Barlow', sans-serif; font-size: 13px;
}
.woocommerce ul.products li.product .tmc-avail .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.woocommerce ul.products li.product .tmc-avail.ready { color: #2e7d32; }
.woocommerce ul.products li.product .tmc-avail.ready .dot { background: #43a047; }
.woocommerce ul.products li.product .tmc-avail.demand { color: #8a5a12; }
.woocommerce ul.products li.product .tmc-avail.demand .dot { background: #e0a020; }
.tmc-finance { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 22px; margin: 14px 0 6px; display: flex; align-items: center; justify-content: space-between; }
.tmc-finance .l { font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--muted-2); }
.tmc-finance .v { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 22px; color: var(--accent); }
.tmc-finance .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tmc-finance.tmc-finance-note { display: block; }
.tmc-finance.tmc-finance-note .l { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* "χωρίς ΦΠΑ" price suffix — small, muted, not the bold Archivo price font */
.woocommerce-price-suffix {
  font-family: 'Barlow', sans-serif !important; font-weight: 400 !important;
  font-size: 0.6em !important; color: var(--muted) !important;
  text-transform: none; letter-spacing: 0; margin-left: 6px; white-space: nowrap;
}
.tmc-tax-note { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.tmc-usps { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 0; font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--muted-2); }
.tmc-usps div { display: flex; gap: 10px; align-items: center; }
.tmc-usps .ic { color: var(--accent); font-family: 'Anton', sans-serif; }
.single-product .tmc-callrow { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 4px; }
.single-product .tmc-callrow a { text-align: center; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--accent); }
.woocommerce-Tabs-panel h2, .woocommerce div.product .woocommerce-tabs h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; }
.woocommerce table.shop_attributes th { font-family: 'Barlow', sans-serif; color: var(--muted); background: #faf8f2; font-weight: 400; }
.woocommerce table.shop_attributes td { font-family: 'Barlow', sans-serif; font-weight: 600; color: var(--ink-2); font-style: normal; }

/* ==========================================================================
   Custom footer
   ========================================================================== */
.tmc-footer { background: var(--ink); color: #fff; }
.tmc-footer-inner { max-width: 1280px; margin: 0 auto; padding: 44px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .tmc-footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.tmc-footer img { height: 34px; width: auto; margin-bottom: 14px; }
.tmc-footer p { font-size: 15px; color: #9a9a9a; line-height: 1.6; margin: 0 0 16px; max-width: 340px; }
.tmc-footer .col-title { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.tmc-footer-col { font-size: 15px; color: #9a9a9a; line-height: 2; }
.tmc-footer-col a { color: #9a9a9a; text-decoration: none; }
.tmc-footer-col a:hover { color: var(--accent); }
.tmc-footer-legal { border-top: 1px solid #1e1e1e; }
.tmc-footer-legal .in { max-width: 1280px; margin: 0 auto; padding: 18px 32px; font-size: 13px; color: #6a6a6a; font-family: 'Barlow', sans-serif; }
.tmc-footer-phone { text-decoration: none; background: var(--accent); color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 3px; }

/* ==========================================================================
   Product add-ons — "Πρόσθετα παρελκόμενα"
   ========================================================================== */
.tmc-addons { margin: 18px 0 20px; border: 1px solid var(--border); border-radius: 8px; padding: 18px; background: #fff; }
.tmc-addons-title { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 18px; color: var(--ink-2); }
.tmc-addons-sub { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--muted); margin: 2px 0 14px; }
.tmc-addons-list { display: flex; flex-direction: column; gap: 10px; }
.tmc-addon { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.tmc-addon:hover { border-color: var(--accent); }
.tmc-addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tmc-addon-img { width: 54px; height: 54px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: repeating-linear-gradient(45deg,#e9e3d6 0 8px,#efeae0 8px 16px); }
.tmc-addon-img img { width: 100%; height: 100%; object-fit: contain; }
.tmc-addon-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.tmc-addon-name { font-family: 'Barlow', sans-serif; font-weight: 600; color: var(--ink-2); font-size: 15px; line-height: 1.2; }
.tmc-addon-price { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--accent); font-size: 15px; }
.tmc-addon-price .woocommerce-price-suffix { color: var(--muted); }
.tmc-addon-check { width: 22px; height: 22px; border: 2px solid #cabfa8; border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tmc-addon input:checked ~ .tmc-addon-check { background: var(--accent); border-color: var(--accent); }
.tmc-addon input:checked ~ .tmc-addon-check::after { content: "✓"; color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1; }
.tmc-addon:has(input:checked) { border-color: var(--accent); background: #fff8f1; }

/* ==========================================================================
   Checkout: company-invoice fields (shown via JS when "Έκδοση τιμολογίου" ticked)
   ========================================================================== */
.woocommerce-checkout .tmc-invoice-field { display: none; }
.woocommerce-checkout .tmc-invoice-toggle { background: #faf8f2; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; }
.woocommerce-checkout .tmc-invoice-toggle label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
