/*
Theme Name: Tailrific
Theme URI: https://www.tailrific.com/
Author: Tailrific
Description: A polished WooCommerce storefront for pets and their people.
Version: 1.0.0
Text Domain: tailrific
Requires at least: 6.5
Requires PHP: 8.0
*/

:root {
  --ink: #173042;
  --ink-soft: #49606e;
  --cream: #fff9f2;
  --paper: #ffffff;
  --coral: #f56f55;
  --coral-dark: #db553d;
  --mint: #c9ecdf;
  --mint-dark: #75bda5;
  --sky: #dceef4;
  --line: #e8e2da;
  --shadow: 0 18px 50px rgba(23, 48, 66, .10);
  --radius: 24px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--coral-dark); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }

.announcement { padding: 9px 20px; background: var(--ink); color: #fff; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .045em; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,249,242,.92); border-bottom: 1px solid rgba(232,226,218,.8); backdrop-filter: blur(16px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 78px; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; transform: rotate(-7deg); }
.brand-mark svg { width: 23px; }
.primary-nav ul, .footer-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.primary-nav ul { gap: 30px; }
.primary-nav a { font-size: .9rem; font-weight: 700; }
.primary-nav a:hover { color: var(--coral-dark); }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.icon-link { display: grid; position: relative; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.icon-link:hover { border-color: var(--coral); transform: translateY(-1px); }
.icon-link svg { width: 20px; }
.cart-count { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .65rem; font-weight: 800; line-height: 18px; text-align: center; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); }

.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; min-height: 50px; padding: 0 24px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 800 .9rem/1 inherit; box-shadow: none; transition: .2s ease;
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.button.secondary { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }

.hero { overflow: hidden; position: relative; padding: clamp(64px, 9vw, 118px) 0 80px; }
.hero::before { position: absolute; inset: 0 0 auto auto; width: 44vw; height: 44vw; border-radius: 50%; background: var(--mint); content: ""; filter: blur(1px); opacity: .45; transform: translate(22%, -25%); }
.hero-grid { display: grid; position: relative; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 7vw, 96px); }
.hero-copy .lede { max-width: 590px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; margin-top: 30px; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; margin-top: 32px; padding: 0; gap: 24px; color: var(--ink-soft); list-style: none; font-size: .82rem; font-weight: 700; flex-wrap: wrap; }
.trust-row li::before { margin-right: 7px; color: var(--mint-dark); content: "✓"; font-weight: 900; }
.hero-art { position: relative; min-height: 520px; }
.hero-blob { position: absolute; inset: 2% 1% 2% 5%; overflow: hidden; border-radius: 49% 51% 44% 56% / 47% 41% 59% 53%; background: #fff; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-blob img { width: 100%; height: 100%; object-fit: contain; padding: 28px; transform: rotate(-2deg); }
.floating-card { position: absolute; padding: 15px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 750; }
.floating-card.one { top: 10%; left: -5%; }
.floating-card.two { right: -2%; bottom: 8%; }

.benefit-strip { padding: 26px 0; background: var(--paper); border-block: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit-icon { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--mint); font-size: 1.15rem; }
.benefit strong { display: block; font-size: .9rem; }
.benefit span { color: var(--ink-soft); font-size: .78rem; }

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section.white { background: var(--paper); }
.section-heading { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading > div { max-width: 690px; }
.section-heading p { margin-bottom: 0; color: var(--ink-soft); }
.text-link { border-bottom: 2px solid var(--coral); font-size: .86rem; font-weight: 800; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { display: flex; overflow: hidden; position: relative; min-height: 310px; padding: 26px; align-items: flex-end; border-radius: var(--radius); background: var(--sky); }
.category-card:nth-child(2) { background: var(--mint); }
.category-card:nth-child(3) { background: #f5d9ce; }
.category-card:nth-child(4) { background: #eadff3; }
.category-card::after { position: absolute; width: 180px; height: 180px; top: -45px; right: -50px; border: 32px solid rgba(255,255,255,.45); border-radius: 50%; content: ""; }
.category-card h3 { position: relative; z-index: 1; margin: 0; }
.category-card span { display: block; position: relative; z-index: 1; margin-top: 8px; font-size: .8rem; font-weight: 750; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 12px 12px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: .25s ease; }
.woocommerce ul.products li.product:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; margin: 0 0 18px; border-radius: 14px; background: #f7f5f1; object-fit: contain; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 46px; padding: 0 4px; color: var(--ink); font-family: inherit; font-size: .94rem; font-weight: 750; line-height: 1.45; }
.woocommerce ul.products li.product .price { padding: 0 4px; color: var(--coral-dark); font-size: 1rem; font-weight: 850; }
.woocommerce ul.products li.product .button { min-height: 42px; margin: 8px 4px 0; padding: 0 18px; font-size: .78rem; }
.onsale, .woocommerce span.onsale { min-width: auto; min-height: auto; margin: 10px!important; padding: 7px 11px; border-radius: 999px; background: var(--ink); font: 800 .65rem/1 inherit; }

.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 72px; }
.story-art { display: grid; min-height: 490px; place-items: center; border-radius: 42% 58% 52% 48% / 54% 42% 58% 46%; background: var(--mint); }
.story-paw { font-size: clamp(8rem, 17vw, 14rem); filter: drop-shadow(0 18px 20px rgba(23,48,66,.10)); transform: rotate(-12deg); }
.story-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.quote-card { margin-top: 26px; padding: 24px; border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; background: #fff; }

.newsletter { padding: 0 0 clamp(72px, 9vw, 116px); }
.newsletter-card { display: grid; padding: clamp(36px, 6vw, 68px); grid-template-columns: 1fr auto; align-items: center; gap: 32px; border-radius: 32px; background: var(--ink); color: #fff; }
.newsletter-card p { margin: 0; color: #cbd6dc; }
.newsletter-form { display: flex; width: min(100%, 470px); padding: 5px; border-radius: 999px; background: #fff; }
.newsletter-form input { width: 100%; padding: 0 18px; border: 0; border-radius: 999px; outline: 0; }
.newsletter-form .button { flex: 0 0 auto; }

.site-main { min-height: 60vh; }
.content-shell { padding: 72px 0 110px; }
.content-shell article { max-width: 840px; margin: 0 auto; }
.page-header { margin-bottom: 36px; }
.entry-content { color: var(--ink-soft); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; color: var(--ink); }
.entry-content a { color: var(--coral-dark); text-decoration: underline; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 30px; color: var(--ink-soft); font-size: .8rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ink); }
.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: 20px; background: #fff; }
.woocommerce div.product .product_title { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--coral-dark); font-size: 1.55rem; font-weight: 850; }
.woocommerce div.product form.cart .quantity input { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; }
.product-facts { clear: both; margin: 42px 0 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.product-facts h2 { margin: 0 0 20px; font-size: 1.55rem; }
.product-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 32px; }
.product-facts dl > div { display: grid; grid-template-columns: minmax(110px, .55fr) 1fr; padding: 12px 0; border-top: 1px solid var(--line); gap: 14px; }
.product-facts dt { color: var(--ink-soft); font-weight: 750; }
.product-facts dd { margin: 0; font-weight: 650; }
.woocommerce table.shop_table { overflow: hidden; border-color: var(--line); border-radius: 16px; background: #fff; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mint-dark); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mint-dark); }
.tailrific-return-note { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f7fbf8; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.tailrific-return-note strong { color: var(--ink); }
.tailrific-return-note a { font-weight: 700; }

.site-footer { padding: 70px 0 30px; background: #112634; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 42px; }
.footer-brand p { max-width: 320px; margin-top: 18px; color: #b9c7ce; font-size: .9rem; }
.site-footer h4 { font-family: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav ul { flex-direction: column; gap: 10px; color: #cbd6dc; font-size: .86rem; }
.footer-nav a:hover { color: #fff; }
.footer-note { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #91a6b1; font-size: .76rem; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-items: center; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 16px; }
  .header-tools .account-link { display: none; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; }
  .category-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.admin-bar .site-header { top: 46px; }
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .announcement { font-size: .7rem; }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1.45rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 56px; }
  .hero-art { min-height: 350px; }
  .floating-card.one { left: 0; }
  .benefit-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .product-facts dl { grid-template-columns: 1fr; }
  .category-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card { min-height: 220px; padding: 20px; }
  .woocommerce ul.products li.product { padding: 8px 8px 14px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 60px; font-size: .82rem; }
  .woocommerce ul.products li.product .button { width: calc(100% - 8px); padding: 0 10px; }
  .story-grid { gap: 42px; }
  .story-art { min-height: 330px; }
  .newsletter-form { align-items: stretch; border-radius: 18px; flex-direction: column; background: transparent; gap: 10px; }
  .newsletter-form input { min-height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
}
