/*
Theme Name: Tài Nguyên Child
Theme URI: https://example.test
Description: Digital-products storefront layer on top of Blocksy.
Author: Tài Nguyên
Template: blocksy
Version: 1.0.0
Text Domain: tainguyen-child
*/

:root {
  --tn-ink: #172033;
  --tn-muted: #68738a;
  --tn-primary: #4f46e5;
  --tn-primary-dark: #3730a3;
  --tn-lilac: #eef0ff;
  --tn-sky: #eef8ff;
  --tn-border: #e8ebf2;
  --tn-card: #ffffff;
  --tn-radius: 20px;
  --tn-shadow: 0 18px 50px rgba(38, 46, 82, .09);
}

body { color: var(--tn-ink); background: #fbfcff; }
.tn-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tn-utility-bar { border-bottom: 1px solid var(--tn-border); background: #fff; }
.tn-utility-inner { display: flex; align-items: center; gap: 22px; min-height: 48px; }
.tn-all-categories { color: var(--tn-ink); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tn-category-links { display: flex; flex: 1; gap: 18px; overflow: hidden; }
.tn-category-links a { color: var(--tn-muted); font-size: .78rem; text-decoration: none; white-space: nowrap; }
.tn-category-links a:hover { color: var(--tn-primary); }
.tn-site-search { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; width: min(280px, 28vw); min-width: 0; height: 42px; overflow: hidden; border: 1px solid var(--tn-border); border-radius: 999px; background: #fbfcff; }
.tn-site-search input { display: block; min-width: 0; width: 100%; height: 40px; padding: 8px 14px; border: 0; outline: 0; background: transparent; color: var(--tn-ink); box-sizing: border-box; }
.tn-site-search button { display: grid; width: 42px; height: 40px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tn-primary); font-size: 1.2rem; cursor: pointer; }
.tn-section { padding: 88px 0; }
.tn-eyebrow { color: var(--tn-primary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tn-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.tn-section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.tn-section-heading p { max-width: 460px; margin: 0; color: var(--tn-muted); line-height: 1.7; }
.tn-link { color: var(--tn-primary); font-weight: 750; text-decoration: none; }
.tn-link:hover { color: var(--tn-primary-dark); }

.tn-hero { overflow: hidden; padding: 86px 0 72px; background: radial-gradient(circle at 85% 18%, #dfe6ff 0, transparent 30%), linear-gradient(135deg, #f7f8ff 0%, #eef5ff 100%); }
.tn-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.tn-hero h1 { max-width: 660px; margin: 14px 0 22px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.tn-hero h1 span { color: var(--tn-primary); }
.tn-hero-copy { max-width: 560px; color: var(--tn-muted); font-size: 1.1rem; line-height: 1.75; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tn-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--tn-primary); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(79, 70, 229, .25); }
.tn-button:hover { background: var(--tn-primary-dark); color: #fff; }
.tn-button--ghost { background: #fff; color: var(--tn-ink); box-shadow: none; border: 1px solid var(--tn-border); }
.tn-button--ghost:hover { background: var(--tn-lilac); color: var(--tn-ink); }
.tn-hero-art { position: relative; min-height: 420px; }
.tn-art-window { position: absolute; inset: 24px 0 0 28px; padding: 18px; border: 8px solid #fff; border-radius: 28px; background: #f8f9ff; box-shadow: var(--tn-shadow); transform: rotate(3deg); }
.tn-art-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.tn-art-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ffb4a2; }
.tn-art-bar i:nth-child(2) { background: #ffd873; }
.tn-art-bar i:nth-child(3) { background: #87ddb1; }
.tn-art-sheet { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; height: 310px; }
.tn-art-chart { display: flex; align-items: end; gap: 10px; padding: 20px; border-radius: 18px; background: linear-gradient(160deg, #dfe2ff, #f5f2ff); }
.tn-art-chart b { flex: 1; height: 35%; border-radius: 8px 8px 2px 2px; background: var(--tn-primary); opacity: .8; }
.tn-art-chart b:nth-child(2) { height: 64%; opacity: .65; }
.tn-art-chart b:nth-child(3) { height: 48%; opacity: .5; }
.tn-art-chart b:nth-child(4) { height: 82%; opacity: .95; }
.tn-art-table { padding: 18px; border-radius: 18px; background: #fff; }
.tn-art-table span { display: block; height: 12px; margin-bottom: 16px; border-radius: 20px; background: #edf0f7; }
.tn-art-table span:nth-child(2) { width: 80%; background: #d6dcff; }
.tn-art-table span:nth-child(3) { width: 62%; }
.tn-art-table span:nth-child(4) { width: 88%; background: #d6dcff; }
.tn-art-badge { position: absolute; right: -22px; bottom: 12px; padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: var(--tn-shadow); font-weight: 800; }
.tn-promise-strip { border-bottom: 1px solid var(--tn-border); background: #fff; }
.tn-promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 26px; padding-bottom: 26px; }
.tn-promise-grid > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.tn-promise-icon { display: grid; grid-row: span 2; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--tn-lilac); color: var(--tn-primary); font-weight: 900; }
.tn-promise-grid strong { font-size: .9rem; }
.tn-promise-grid small { color: var(--tn-muted); font-size: .75rem; }

.tn-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tn-category { min-height: 150px; padding: 24px; border-radius: var(--tn-radius); background: var(--tn-card); border: 1px solid var(--tn-border); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tn-category:hover { color: var(--tn-ink); transform: translateY(-4px); box-shadow: var(--tn-shadow); }
.tn-category-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 22px; border-radius: 14px; background: var(--tn-lilac); color: var(--tn-primary); font-size: 1.25rem; font-weight: 900; }
.tn-category:nth-child(2) .tn-category-icon { background: #fff3dd; color: #d98200; }
.tn-category:nth-child(3) .tn-category-icon { background: #dff8ed; color: #15945a; }
.tn-category:nth-child(4) .tn-category-icon { background: #ffe8ee; color: #db4267; }
.tn-category strong { display: block; font-size: 1.1rem; }
.tn-category small { display: block; margin-top: 7px; color: var(--tn-muted); }

.tn-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tn-product { overflow: hidden; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); background: var(--tn-card); box-shadow: 0 8px 28px rgba(38, 46, 82, .04); }
.tn-product-image { display: block; aspect-ratio: 1.1 / 1; overflow: hidden; background: linear-gradient(135deg, #eef0ff, #f9faff); }
.tn-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tn-product:hover .tn-product-image img { transform: scale(1.04); }
.tn-product-body { padding: 20px; }
.tn-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tn-product-category { color: var(--tn-primary); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tn-product-badge { padding: 4px 8px; border-radius: 999px; background: #e1f7eb; color: #16814b; font-size: .68rem; font-weight: 800; }
.tn-product h3 { margin: 9px 0 14px; font-size: 1.05rem; line-height: 1.35; }
.tn-product h3 a { color: var(--tn-ink); text-decoration: none; }
.tn-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tn-product-price { font-weight: 850; }
.tn-product-buy { display: inline-grid; min-width: 52px; height: 34px; padding: 0 12px; place-items: center; border-radius: 999px; background: var(--tn-ink); color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.tn-product-buy:hover { background: var(--tn-primary); color: #fff; }
.tn-empty { grid-column: 1 / -1; padding: 52px; border: 1px dashed #cdd3e4; border-radius: var(--tn-radius); color: var(--tn-muted); text-align: center; }

.tn-process { background: var(--tn-ink); color: #fff; }
.tn-process .tn-eyebrow { color: #aeb7ff; }
.tn-process .tn-section-heading p { color: #b5bdd0; }
.tn-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tn-step { padding: 20px 0; }
.tn-step-number { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 24px; border: 1px solid #535d79; border-radius: 50%; color: #aeb7ff; font-weight: 850; }
.tn-step h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tn-step p { margin: 0; color: #b5bdd0; font-size: .92rem; line-height: 1.6; }
.tn-promises { background: #f6f7ff; }
.tn-promise-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tn-promise-cards > div { padding: 28px; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); background: #fff; }
.tn-promise-cards span { color: var(--tn-primary); font-size: .8rem; font-weight: 900; }
.tn-promise-cards h3 { margin: 22px 0 9px; }
.tn-promise-cards p { margin: 0; color: var(--tn-muted); line-height: 1.65; }

.tn-cta { padding: 70px 0; }
.tn-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 54px; border-radius: 28px; background: linear-gradient(120deg, #6159ed, #827af5); color: #fff; }
.tn-cta-card h2 { max-width: 600px; margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; }
.tn-cta-card .tn-button { background: #fff; color: var(--tn-primary-dark); box-shadow: none; white-space: nowrap; }
.tn-footer-panel { padding: 64px 0 40px; background: #172033; color: #d7dceb; }
.tn-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.tn-footer-grid h3 { margin: 0 0 15px; color: #fff; font-size: .95rem; }
.tn-footer-grid p { max-width: 280px; margin: 14px 0 0; color: #aeb7c9; line-height: 1.7; }
.tn-footer-brand { color: #fff; font-size: 1.35rem; }
.tn-footer-grid a, .tn-footer-grid span { display: block; margin: 0 0 11px; color: #aeb7c9; font-size: .88rem; text-decoration: none; }
.tn-footer-grid a:hover { color: #fff; }

/* Cart layout inspired by the reference store, adapted for digital products. */
.tn-digital-cart .site-main { padding: 48px 0 90px; background: #f7f8fc; }
.tn-digital-cart .entry-content { width: 100%; max-width: none; }
.tn-digital-cart .entry-content.is-layout-constrained > .woocommerce { width: min(1440px, calc(100vw - 48px)); max-width: none; }
.tn-digital-cart #main-container > .ct-container { width: 100%; max-width: 100%; }
.tn-digital-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; width: min(1440px, calc(100vw - 48px)); max-width: none; margin: 0 auto; padding: 0; }
.tn-digital-cart .tn-cart-flow, .tn-digital-cart .tn-cart-intro { grid-column: 1 / -1; }
.tn-cart-flow { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 76px; padding: 0 24px; border-radius: 18px; background: var(--tn-primary); color: rgba(255,255,255,.7); font-size: 1.1rem; text-transform: uppercase; }
.tn-cart-flow strong { color: #fff; }
.tn-cart-intro { padding: 30px 34px; border: 1px solid #dce4ff; border-radius: 18px; background: linear-gradient(135deg, #fff, #f5f7ff); }
.tn-cart-intro h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.tn-cart-intro p { margin: 0; color: var(--tn-muted); }
.tn-cart-intro > a { display: inline-block; margin-top: 18px; color: var(--tn-primary); font-weight: 800; text-decoration: none; }
.tn-cart-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tn-cart-benefits span { padding: 8px 12px; border-radius: 999px; background: #eaf0ff; color: #46537c; font-size: .82rem; font-weight: 750; }
.tn-digital-cart .woocommerce-cart-form { grid-column: 1; float: none; width: 100%; padding: 28px; border: 1px solid var(--tn-border); border-radius: 18px; background: #fff; }
.tn-digital-cart .cart-collaterals { grid-column: 1; grid-row: auto; float: none; width: 100%; align-self: start; padding: 28px; border: 1px solid var(--tn-border); border-radius: 18px; background: #fff; }
.tn-digital-cart .cart-collaterals h2 { margin-top: 0; font-size: 1.5rem; }
.tn-digital-cart .shop_table { width: 100%; border: 0; table-layout: auto; }
.tn-digital-cart .shop_table th, .tn-digital-cart .shop_table td { padding: 16px 10px; border-color: var(--tn-border); }
.tn-digital-cart .shop_table tbody td { vertical-align: middle; }
.tn-digital-cart .shop_table .product-name { width: auto; min-width: 260px; }
.tn-digital-cart .shop_table .product-thumbnail { width: 88px; min-width: 88px; }
.tn-digital-cart .shop_table .product-quantity { width: 116px; min-width: 116px; }
.tn-digital-cart .shop_table .product-subtotal { width: 126px; min-width: 126px; }
.tn-digital-cart .shop_table .product-remove { width: 36px; min-width: 36px; }
.tn-digital-cart .shop_table .product-remove { padding-right: 0; text-align: center; }
.tn-digital-cart .shop_table .product-remove a { position: relative; left: -14px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--tn-ink); font-size: 0; line-height: 1; text-decoration: none; }
.tn-digital-cart .shop_table .product-name a { display: inline-block; max-width: 100%; }
.tn-digital-cart .shop_table .product-thumbnail img { width: 78px; border-radius: 10px; }
.tn-digital-cart .actions { display: grid; grid-template-columns: max-content; justify-content: start; gap: 10px; }
.tn-digital-cart .coupon { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.tn-digital-cart .coupon input.input-text { min-height: 44px; width: 255px; border: 1px solid var(--tn-border); border-radius: 10px; }
.tn-digital-cart .coupon button, .tn-digital-cart .cart-collaterals .button { min-height: 44px; min-width: 100px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--tn-primary); color: #fff; font-weight: 800; white-space: nowrap; }
.tn-digital-cart .actions > .button { display: none !important; }
.tn-digital-cart .cart-collaterals .checkout-button { display: block; width: 100%; margin-top: 18px; text-align: center; }
.tn-digital-cart .cart_totals { float: none; width: 100%; }

/* Compact checkout for virtual/downloadable products. */
.tn-digital-checkout .site-main { padding-top: 70px; padding-bottom: 90px; }
.tn-digital-checkout .woocommerce { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tn-digital-checkout .woocommerce h1 { margin-bottom: 42px; letter-spacing: -.045em; }
.tn-digital-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 52px; }
.tn-digital-checkout #customer_details { margin: 0; }
.tn-digital-checkout #customer_details h3 { margin: 0 0 22px; font-size: 1.45rem; }
.tn-digital-checkout .woocommerce-billing-fields__field-wrapper { display: grid; gap: 16px; }
.tn-digital-checkout .form-row { float: none; width: 100%; margin: 0; padding: 0; }
.tn-digital-checkout .form-row label { display: block; margin-bottom: 8px; color: var(--tn-ink); font-size: .9rem; font-weight: 700; }
.tn-digital-checkout .form-row .input-text { min-height: 52px; border: 1px solid var(--tn-border); border-radius: 12px; background: #fff; }
.tn-digital-checkout .form-row .input-text:focus { border-color: var(--tn-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.tn-digital-checkout #order_review_heading { margin: 0 0 22px; font-size: 1.45rem; }
.tn-digital-checkout #order_review { padding: 26px; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); background: #fff; }
.tn-digital-checkout .shop_table { border: 0; margin: 0 0 24px; }
.tn-digital-checkout .shop_table th, .tn-digital-checkout .shop_table td { padding: 14px 0; border-color: var(--tn-border); }
.tn-digital-checkout #payment { border-radius: 14px; background: var(--tn-lilac); }
.tn-digital-checkout #payment div.payment_box { background: #fff; }
.tn-digital-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.tn-digital-checkout #place_order { width: 100%; min-height: 52px; border-radius: 999px; background: var(--tn-primary); font-weight: 800; }
.tn-digital-checkout .woocommerce-terms-and-conditions-wrapper { margin-top: 18px; color: var(--tn-muted); font-size: .86rem; }
.tn-digital-checkout .woocommerce-info { border-top-color: var(--tn-primary); }
.single-product .site-main { background: #fbfcff; }
.single-product .woocommerce-product-gallery { overflow: hidden; border: 1px solid var(--tn-border); border-radius: 24px; background: #fff; }
.single-product .woocommerce-product-gallery img { mix-blend-mode: multiply; }
.single-product .summary { padding-top: 8px; }
.tn-product-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tn-product-kicker .tn-eyebrow { margin: 0; }
.tn-product-category-list { color: var(--tn-muted); font-size: .82rem; font-weight: 750; }
.tn-product-category-list a { color: var(--tn-muted); text-decoration: none; }
.single-product .summary .product_title { margin-top: 0; letter-spacing: -.045em; }
.single-product .summary .price { color: var(--tn-ink); font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 850; }
.single-product .summary .woocommerce-product-details__short-description { color: var(--tn-muted); line-height: 1.75; }
.single-product .summary .product_meta { padding-top: 20px; border-top: 1px solid var(--tn-border); color: var(--tn-muted); }
.tn-product-promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.tn-product-promises > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; min-height: 66px; padding: 10px; border: 1px solid var(--tn-border); border-radius: 14px; background: #fff; }
.tn-product-promise-icon { display: grid; grid-row: span 2; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--tn-lilac); color: var(--tn-primary); font-weight: 900; }
.tn-product-promises strong { font-size: .78rem; line-height: 1.2; }
.tn-product-promises small { color: var(--tn-muted); font-size: .68rem; line-height: 1.25; }
.tn-product-guide { margin-top: 76px; padding: 76px 0; border-top: 1px solid var(--tn-border); background: #f6f7ff; }
.single-product .tn-product-guide { display: none; }
.tn-product-guide-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.tn-product-guide-heading { max-width: 680px; }
.tn-product-guide-heading h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; }
.tn-product-guide-heading p { margin: 0; color: var(--tn-muted); line-height: 1.7; }
.tn-product-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tn-product-guide-grid article { padding: 26px; border: 1px solid var(--tn-border); border-radius: 18px; background: #fff; }
.tn-product-guide-grid span { color: var(--tn-primary); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.tn-product-guide-grid h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.tn-product-guide-grid p { margin: 0; color: var(--tn-muted); line-height: 1.65; }
.tn-product-faq { display: grid; gap: 10px; max-width: 820px; margin-top: 28px; }
.tn-product-faq details { padding: 18px 20px; border: 1px solid var(--tn-border); border-radius: 14px; background: #fff; }
.tn-product-faq summary { cursor: pointer; font-weight: 800; }
.tn-product-faq p { margin: 12px 0 0; color: var(--tn-muted); line-height: 1.65; }
.tn-product-description, .tn-product-reviews { padding: 72px 0; border-top: 1px solid var(--tn-border); background: #fff; }
.tn-product-section-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.tn-product-description h2, .tn-product-reviews h2 { margin: 8px 0 18px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.tn-product-description-content { max-width: 820px; color: var(--tn-muted); line-height: 1.8; }
.tn-product-description-content > :first-child { margin-top: 0; }
.tn-product-reviews { background: #f7f8fc; }
.tn-product-reviews-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tn-product-reviews-heading h2 { margin-bottom: 4px; }
.tn-product-reviews-heading p { margin: 0; color: var(--tn-muted); }
.tn-review-write { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; color: var(--tn-ink); font-weight: 800; text-decoration: none; }
.tn-review-write:hover { background: #fff; color: var(--tn-primary); }
.tn-review-summary { display: grid; grid-template-columns: 190px 170px 170px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 28px; padding: 30px; border: 1px solid var(--tn-border); border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(38, 46, 82, .05); }
.tn-review-score { display: grid; justify-items: center; gap: 7px; border-right: 1px solid var(--tn-border); }
.tn-review-score strong { color: #f97316; font-size: 3.2rem; line-height: 1; }
.tn-stars { color: #f59e0b; letter-spacing: 2px; white-space: nowrap; }
.tn-review-score small, .tn-review-stat span { color: var(--tn-muted); }
.tn-review-stat { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--tn-border); border-radius: 14px; background: #f8faff; }
.tn-review-stat strong { font-size: 1.2rem; }
.tn-review-breakdown { display: grid; gap: 10px; }
.tn-review-breakdown > div { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; align-items: center; gap: 10px; color: var(--tn-ink); font-size: .85rem; }
.tn-review-breakdown i { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.tn-review-breakdown b { display: block; height: 100%; border-radius: inherit; background: #f97316; }
.tn-review-breakdown em { color: var(--tn-muted); font-style: normal; text-align: right; }
.tn-review-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 16px; border: 1px solid #fed7aa; border-radius: 16px; background: #fffaf3; color: #9a3412; }
.tn-review-topics span { padding: 8px 14px; border: 1px solid #fdba74; border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 700; }
.tn-review-list { display: grid; gap: 16px; margin-top: 24px; }
.tn-review-card { padding: 24px; border: 1px solid var(--tn-border); border-radius: 18px; background: #fff; }
.tn-review-author { display: flex; align-items: center; gap: 12px; }
.tn-review-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--tn-lilac); color: var(--tn-primary); font-weight: 900; }
.tn-review-author div { display: grid; gap: 2px; }
.tn-review-author small { color: var(--tn-muted); }
.tn-review-card > .tn-stars { margin-top: 14px; }
.tn-review-card p { margin: 12px 0; color: var(--tn-ink); line-height: 1.7; }
.tn-review-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-review-tags span { padding: 4px 9px; border-radius: 999px; background: #e8f8ef; color: #16814b; font-size: .75rem; font-weight: 800; }
.tn-review-empty { color: var(--tn-muted); }
.tn-review-form { max-width: 760px; margin-top: 32px; padding: 26px; border: 1px solid var(--tn-border); border-radius: 18px; background: #fff; }
.tn-review-form .comment-reply-title { margin-top: 0; }
.tn-review-form form { display: grid; gap: 14px; }
.tn-review-form label { display: block; margin-bottom: 7px; font-weight: 700; }
.tn-review-form input, .tn-review-form textarea { width: 100%; border: 1px solid var(--tn-border); border-radius: 10px; background: #fff; box-sizing: border-box; }
.tn-rating-picker { margin: 0; padding: 0; border: 0; }
.tn-rating-picker legend { margin-bottom: 8px; font-weight: 700; }
.tn-rating-options { display: flex; align-items: center; gap: 4px; }
.tn-rating-options label { display: inline-flex; align-items: center; gap: 3px; margin: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.tn-rating-options label:hover { background: #fff7ed; }
.tn-rating-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tn-rating-options span { color: #cbd5e1; font-size: 2rem; line-height: 1; transition: color .15s ease; }
.tn-rating-options label:hover span, .tn-rating-options input:checked + span { color: #f97316; }
.tn-rating-options b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn-review-form textarea { min-height: 120px; }
.tn-review-form .form-submit { margin: 0; }
.tn-review-form #submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--tn-primary); color: #fff; font-weight: 800; }
.tn-review-form .comment-form-cookies-consent { display: none; }
.single-product form.cart .ct-cart-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.single-product form.cart .ct-cart-actions .quantity { grid-column: 1; float: none; }
.single-product .single_add_to_cart_button,
.single-product .tn-buy-now { min-height: 52px; border-radius: 10px; font-weight: 800; }
.single-product .single_add_to_cart_button { border: 0; background: #2875f6; color: #fff; }
.single-product .single_add_to_cart_button:hover { background: #1d64d8; color: #fff; }
.single-product form.cart .ct-cart-actions .single_add_to_cart_button { grid-column: 2; width: 100%; margin: 0; float: none; }
.tn-buy-now { display: flex; grid-column: 3; align-items: center; justify-content: center; width: 100%; margin: 0; padding: 0 22px; border: 0; background: #ef5b5b; color: #fff; font-weight: 800; text-decoration: none; }
.tn-buy-now:hover { background: #d94848; color: #fff; }

@media (max-width: 700px) {
  .single-product form.cart .ct-cart-actions { grid-template-columns: auto 1fr; }
  .single-product form.cart .ct-cart-actions .single_add_to_cart_button { grid-column: 2; }
  .single-product form.cart .ct-cart-actions .tn-buy-now { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .tn-digital-checkout form.checkout { grid-template-columns: 1fr; gap: 42px; }
  .tn-digital-checkout .woocommerce { padding: 0 18px; }
}

@media (max-width: 1600px) {
  .tn-digital-cart .woocommerce { display: block; padding: 0 18px; }
  .tn-digital-cart .tn-cart-flow, .tn-digital-cart .tn-cart-intro, .tn-digital-cart .woocommerce-cart-form, .tn-digital-cart .cart-collaterals { margin-bottom: 20px; }
  .tn-cart-flow { gap: 10px; font-size: .82rem; }
  .tn-cart-flow span:nth-of-type(even) { display: none; }
  .tn-digital-cart .cart-collaterals { margin-top: 0; }
}

@media (max-width: 900px) {
  .tn-category-links { display: none; }
  .tn-site-search { width: 240px; margin-left: auto; }
  .tn-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .tn-hero-art { min-height: 350px; max-width: 650px; width: 100%; margin: 0 auto; }
  .tn-category-grid, .tn-products { grid-template-columns: repeat(2, 1fr); }
  .tn-promise-grid { grid-template-columns: repeat(2, 1fr); }
  .tn-promise-cards { grid-template-columns: 1fr; }
  .tn-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tn-steps { grid-template-columns: repeat(3, 1fr); }
  .tn-product-promises { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tn-section { padding: 62px 0; }
  .tn-shell { padding: 0 18px; }
  .tn-utility-inner { gap: 10px; }
  .tn-all-categories span { display: none; }
  .tn-site-search { width: 100%; }
  .tn-section-heading { display: block; }
  .tn-section-heading p { margin-top: 14px; }
  .tn-category-grid, .tn-products, .tn-steps { grid-template-columns: 1fr; }
  .tn-promise-grid { grid-template-columns: 1fr; }
  .tn-hero { padding-top: 54px; }
  .tn-hero h1 { font-size: 3.2rem; }
  .tn-hero-art { min-height: 285px; }
  .tn-art-window { inset: 12px 0 0; }
  .tn-art-sheet { height: 195px; }
  .tn-art-badge { right: 0; bottom: -8px; }
  .tn-cta-card { display: block; padding: 34px 28px; }
  .tn-cta-card .tn-button { margin-top: 25px; }
  .tn-footer-grid { grid-template-columns: 1fr; }
  .tn-product-guide { margin-top: 52px; padding: 54px 0; }
  .tn-product-guide-inner { width: min(100% - 36px, 1180px); }
  .tn-product-guide-grid { grid-template-columns: 1fr; }
  .tn-product-promises { grid-template-columns: 1fr; }
  .tn-product-description, .tn-product-reviews { padding: 54px 0; }
  .tn-product-section-inner { width: min(100% - 36px, 1180px); }
  .tn-product-reviews-heading { display: block; }
  .tn-review-write { margin-top: 12px; padding-left: 0; }
  .tn-review-summary { grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
  .tn-review-score { border-right: 0; }
  .tn-review-breakdown { grid-column: 1 / -1; }
}
