/*
Theme Name: TLAČMI Premium
Description: WooCommerce design system for photo products and personalised print.
Version: 2.1.1
Text Domain: tlacmi-premium
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Inter:wght@600;700;800&display=swap');

:root {
  --brand-red: #e30613;
  --brand-red-dark: #c90611;
  --brand-green: #6d9f28;
  --text-primary: #171719;
  --text-secondary: #65656b;
  --border-soft: #e9e9ec;
  --surface: #fff;
  --surface-muted: #f7f7f7;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 28px rgba(21, 22, 23, .07);
  --container-max: 1440px;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: Inter, 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-primary); background: var(--surface); font: 400 16px/1.45 var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(109,159,40,.55); outline-offset: 3px; }
.site-container { width: min(calc(100% - 48px), var(--container-max)); margin-inline: auto; }
.tl-icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

/* Header */
.site-header { position: relative; z-index: 30; background: var(--surface); }
.header-main { display: grid; grid-template-columns: 255px minmax(560px,1fr) auto; align-items: center; min-height: 126px; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand b { color: var(--brand-red); font: 800 40px/.9 var(--font-display); letter-spacing: -.075em; }
.brand span { margin-top: 8px; color: #535359; font-size: 11px; font-weight: 600; }
.header-usps { display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.header-usp { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 0 18px; border-left: 1px solid var(--border-soft); }
.header-usp:first-child { border-left: 0; }
.header-usp .tl-icon { width: 26px; height: 26px; color: var(--brand-green); }
.header-usp span { min-width: 0; }
.header-usp b, .header-usp small { display: block; line-height: 1.2; }
.header-usp b { font: 700 11px var(--font-display); white-space: nowrap; }
.header-usp small { margin-top: 4px; color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
.header-usp--rating strong { color: var(--brand-green); font-size: 9px; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; white-space: nowrap; }
.header-actions a { display: inline-flex; position: relative; align-items: center; gap: 7px; font: 600 12px var(--font-display); transition: color .18s ease; }
.header-actions a:hover { color: var(--brand-red); }
.header-actions .tl-icon { width: 21px; height: 21px; }
.cart-count { position: absolute; top: -9px; left: 14px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border-radius: 999px; background: var(--brand-red); color: #fff; font: 700 9px/1 var(--font-body); }
.mobile-menu-toggle, .mobile-menu-close { display: none; }
.menu-surface { background: var(--brand-red); }
.primary-navigation ul { display: grid; grid-template-columns: repeat(8,1fr); min-height: 46px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: flex; height: 100%; align-items: center; justify-content: center; padding: 0 12px; border-right: 1px solid rgba(255,255,255,.35); color: #fff; font: 700 13px var(--font-display); transition: background .18s ease, color .18s ease; }
.primary-navigation li:last-child a { border-right: 0; color: #fff400; }
.primary-navigation a:hover { background: var(--brand-red-dark); }

/* Hero */
.hero { background: #f8f6f3; }
.hero__inner { position: relative; display: grid; grid-template-columns: 43% 57%; min-height: 455px; overflow: hidden; }
.hero__copy { display: flex; position: relative; z-index: 2; flex-direction: column; justify-content: center; padding: 62px 0 88px 30px; }
.hero h1 { max-width: 520px; margin: 0; font: 800 clamp(52px,4.6vw,68px)/.98 var(--font-display); letter-spacing: -.065em; }
.hero h1 span { display: block; color: var(--brand-red); }
.hero__copy > p { max-width: 420px; margin: 18px 0 22px; font-size: 17px; line-height: 1.42; }
.hero__actions { display: flex; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 25px; border-radius: 999px; font: 700 14px var(--font-display); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--brand-red); color: #fff; box-shadow: 0 8px 18px rgba(227,6,19,.2); }
.button--primary:hover { background: var(--brand-red-dark); }
.button--secondary { border: 1px solid #b9b9bd; background: #fff; }
.hero__image { position: relative; }
.hero__image::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,#f8f6f3 0%,rgba(248,246,243,.86) 10%,rgba(248,246,243,0) 38%); content: ''; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rating-badge { position: absolute; z-index: 2; right: 48px; bottom: 24px; display: flex; width: 118px; height: 118px; flex-direction: column; align-items: center; justify-content: center; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; background: #739c2f; box-shadow: 0 10px 22px rgba(44,70,18,.24); color: #fff; text-align: center; }
.rating-badge b { font: 800 31px/.9 var(--font-display); }
.rating-badge span { margin: 5px 0; font-size: 13px; letter-spacing: .08em; }
.rating-badge small { max-width: 88px; font-size: 9px; font-weight: 700; line-height: 1.1; }
.hero__trust { position: absolute; z-index: 3; bottom: 24px; left: 30px; display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.hero__trust li { display: flex; align-items: center; gap: 9px; }
.hero__trust .tl-icon { color: var(--brand-green); }
.hero__trust b, .hero__trust small { display: block; line-height: 1.2; }
.hero__trust b { font: 700 10px var(--font-display); }
.hero__trust small { max-width: 115px; margin-top: 3px; color: #55555a; font-size: 9px; }

/* Product sections */
.configurator-section { padding: 25px 0 22px; background: linear-gradient(145deg,#fbfbfb,#f4f5f5); }
.configurator-section h2, .how-section h2 { margin: 0 0 20px; font: 800 27px/1.1 var(--font-display); letter-spacing: -.05em; }
.configurator-section h2 em { color: var(--brand-green); font-style: normal; }
.configurator-grid, .promo-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.configurator-card { display: flex; min-height: 304px; flex-direction: column; overflow: hidden; padding: 18px 0 14px; border: 1px solid #ededee; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.configurator-card:hover, .promo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,22,23,.12); }
.configurator-card__copy { padding: 0 16px; }
.configurator-card h3 { margin: 0; font: 700 15px var(--font-display); letter-spacing: -.025em; }
.configurator-card p { min-height: 33px; margin: 5px 0 12px; color: #57575c; font-size: 10px; line-height: 1.35; }
.configurator-card img { width: 100%; height: 168px; margin: 0; object-fit: cover; }
.configurator-card .button { width: calc(100% - 28px); min-height: 40px; margin: auto 14px 0; padding: 0 14px; font-size: 12px; }
.promo-grid { padding: 22px 0 28px; }
.promo-card { position: relative; display: block; min-height: 207px; overflow: hidden; border-radius: var(--radius-md); background: #f5f5f5; transition: transform .18s ease, box-shadow .18s ease; }
.promo-card::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.52) 72%,transparent); content: ''; }
.promo-card img { width: 100%; height: 100%; min-height: 207px; object-fit: cover; }
.promo-card__copy { position: absolute; z-index: 2; inset: 15px; display: flex; flex-direction: column; align-items: flex-start; }
.promo-card__copy small { color: #ffef32; font: 700 10px var(--font-display); }
.promo-card__copy b { max-width: 130px; font: 700 15px/1.15 var(--font-display); letter-spacing: -.03em; }
.promo-card__copy p { max-width: 130px; margin: 5px 0; font-size: 10px; line-height: 1.35; }
.promo-card__copy i { margin-top: auto; padding: 8px 13px; border-radius: 999px; background: #fff; color: var(--text-primary); font: 700 10px var(--font-body); font-style: normal; }
.promo-card--sale { background: var(--brand-red); color: #fff; }
.promo-card--sale::after { background: linear-gradient(90deg,rgba(192,0,10,.98),rgba(227,6,19,.54) 70%,rgba(227,6,19,.12)); }
.promo-card--sale .promo-card__copy b { margin-top: 7px; font-size: 21px; }
.promo-card--sale .promo-card__copy i { color: var(--brand-red); }

/* How it works and benefits */
.how-section { padding: 8px 0 34px; text-align: center; }
.how-section h2 { margin-bottom: 27px; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin: 0; padding: 0; list-style: none; text-align: left; }
.steps li { position: relative; min-height: 120px; padding: 42px 12px 0 70px; }
.step-number { position: absolute; top: 0; left: 0; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #ede4cf; border-radius: 50%; background: #fff2cf; font: 700 15px var(--font-display); font-style: normal; }
.step-icon { position: absolute; top: 4px; left: 56px; color: var(--brand-green); }
.steps h3 { margin: 0; font: 700 14px var(--font-display); }
.steps p { margin: 5px 0; color: var(--text-secondary); font-size: 11px; line-height: 1.35; }
.steps li { min-height: 148px; padding: 0 12px; text-align: center; }
.step-visual { position: relative; display: grid; width: 74px; height: 74px; margin: 0 auto 15px; place-items: center; border: 1px solid #dfe9cb; border-radius: 25px; background: #f5f9ed; color: var(--brand-green); box-shadow: 0 7px 18px rgba(80,120,30,.08); }
.step-visual::after { position: absolute; right: -48px; top: 36px; width: 38px; border-top: 1px dashed #cbd9b6; content: ''; }
.steps li:last-child .step-visual::after { display: none; }
.step-number { top: -10px; left: -10px; z-index: 1; width: 30px; height: 30px; border: 1px solid #eadbb9; background: #fff0c8; font-size: 12px; }
.step-icon { position: static; width: 38px; height: 38px; stroke-width: 1.65; }
.steps h3 { font-size: 15px; }.steps p { max-width: 175px; margin: 6px auto; font-size: 11px; }
.benefit-strip { display: grid; grid-template-columns: repeat(5,1fr); overflow: hidden; margin-bottom: 44px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: 0 3px 10px rgba(23,23,25,.02); }
.benefit-strip > div { display: flex; min-height: 89px; align-items: center; gap: 12px; padding: 15px 18px; border-right: 1px solid var(--border-soft); }
.benefit-strip > div:last-child { border-right: 0; }
.benefit-visual { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 14px; background: #f4f8ed; color: var(--brand-green); }
.benefit-visual .tl-icon { width: 24px; height: 24px; stroke-width: 1.8; }
.benefit-strip b, .benefit-strip small { display: block; line-height: 1.28; }
.benefit-strip b { font: 700 12px var(--font-display); }
.benefit-strip small { margin-top: 4px; color: var(--text-secondary); font-size: 10px; }

/* Footer and WooCommerce */
.site-footer { border-top: 1px solid var(--border-soft); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3,1fr) 1.2fr; gap: 30px; padding: 38px 0 24px; }
.footer-brand p, .footer-grid p { margin: 12px 0; color: var(--text-secondary); font-size: 11px; line-height: 1.45; }
.footer-grid h3 { margin: 2px 0 11px; font: 700 12px var(--font-display); }
.footer-grid > div:not(.footer-brand) > a { display: block; margin: 5px 0; color: #505057; font-size: 11px; }
.footer-grid a:hover { color: var(--brand-red); }
.social-links { display: flex; gap: 8px; }
.social-links a { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--text-primary); color: #fff; font: 700 11px var(--font-display); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0 19px; border-top: 1px solid var(--border-soft); color: #77777b; font-size: 10px; }
.footer-bottom a { margin-left: 18px; }
.tl-shop-wrap { padding: 45px 0 75px; }
.tl-archive-hero { display: grid; grid-template-columns:1.1fr .9fr; overflow:hidden; min-height:260px; margin-bottom:31px; border-radius:var(--radius-lg); background:#f7f2ea; }
.tl-archive-hero__copy { display:flex; flex-direction:column; justify-content:center; padding:45px; }.tl-archive-hero h1 { margin:10px 0; font:800 clamp(39px,4vw,60px)/.96 var(--font-display); letter-spacing:-.06em; }.tl-archive-hero img { width:100%; height:100%; object-fit:cover; }
.tl-product-grid ul.products { display:grid!important; grid-template-columns:repeat(4,1fr); gap:20px; margin:0!important; }.tl-product-grid .product { width:auto!important; margin:0!important; padding:14px!important; border:1px solid var(--border-soft); border-radius:var(--radius-md); background:#fff; }.tl-product-grid .button { background:var(--brand-red)!important; color:#fff!important; border-radius:999px!important; }
