/*
Theme Name: Calgary Tees
Theme URI: https://calgarytees.com
Author: Calgary Tees
Description: Modern custom t-shirt storefront theme for WooCommerce. Built to work with the Lumise product designer. Charcoal, off-white and electric blue.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: calgarytees
*/

:root {
  --ct-charcoal: #1f2326;
  --ct-charcoal-2: #2b3034;
  --ct-offwhite: #f6f4ef;
  --ct-white: #ffffff;
  --ct-blue: #1e6bff;
  --ct-blue-dark: #1553cc;
  --ct-grey: #6b7075;
  --ct-line: #e2dfd8;
  --ct-radius: 10px;
  --ct-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ct-charcoal);
  background: var(--ct-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ct-blue); text-decoration: none; }
a:hover { color: var(--ct-blue-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ct-charcoal); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.ct-container { max-width: var(--ct-max); margin: 0 auto; padding: 0 20px; }
.ct-section { padding: 64px 0; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.ct-btn,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-block;
  background: var(--ct-blue);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
  line-height: 1.2;
}
.ct-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--ct-blue-dark);
  transform: translateY(-1px);
}
.ct-btn--ghost {
  background: transparent;
  color: var(--ct-charcoal) !important;
  border: 2px solid var(--ct-charcoal);
}
.ct-btn--ghost:hover { background: var(--ct-charcoal); color: #fff !important; }

/* Announcement bar */
.ct-topbar { background: var(--ct-charcoal); color: #fff; font-size: .85rem; text-align: center; padding: 8px 12px; }
.ct-topbar strong { color: #8fb4ff; }

/* Header */
.ct-header { background: var(--ct-white); border-bottom: 1px solid var(--ct-line); position: sticky; top: 0; z-index: 50; }
.ct-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: var(--ct-max); margin: 0 auto; }
.ct-logo { display: flex; align-items: center; }
.ct-logo img { height: 44px; width: auto; }
.ct-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.ct-nav a { color: var(--ct-charcoal); font-weight: 600; font-size: .98rem; }
.ct-nav a:hover { color: var(--ct-blue); }
.ct-nav .sub-menu { display: none; }
.ct-header__actions { display: flex; align-items: center; gap: 16px; }
.ct-cart-link { position: relative; color: var(--ct-charcoal); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ct-cart-count { background: var(--ct-blue); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.ct-menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ct-charcoal); }

@media (max-width: 860px) {
  .ct-menu-toggle { display: block; }
  .ct-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ct-line); padding: 12px 20px 20px; }
  .ct-nav.is-open { display: block; }
  .ct-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Hero */
.ct-hero { background: var(--ct-charcoal); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.ct-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(30,107,255,.55), transparent 65%); }
.ct-hero .ct-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.ct-hero h1 { color: #fff; }
.ct-hero h1 span { color: #6f9eff; }
.ct-hero p { color: #cfd3d6; font-size: 1.15rem; max-width: 520px; }
.ct-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.ct-hero .ct-btn--ghost { color: #fff !important; border-color: #fff; }
.ct-hero .ct-btn--ghost:hover { background: #fff; color: var(--ct-charcoal) !important; }
.ct-hero__art { display: flex; justify-content: center; }
.ct-hero__art img { max-width: 320px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
@media (max-width: 860px) { .ct-hero .ct-container { grid-template-columns: 1fr; } .ct-hero__art { display: none; } }

/* Category tiles */
.ct-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-cat { background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); overflow: hidden; display: block; color: var(--ct-charcoal); transition: transform .15s, box-shadow .15s; }
.ct-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); color: var(--ct-charcoal); }
.ct-cat__img { aspect-ratio: 4/3; background: var(--ct-charcoal-2); display: flex; align-items: center; justify-content: center; }
.ct-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.ct-cat__img svg { width: 90px; height: 90px; }
.ct-cat__body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.ct-cat__body h3 { margin: 0; }
.ct-cat__arrow { color: var(--ct-blue); font-weight: 800; }
@media (max-width: 760px) { .ct-cats { grid-template-columns: 1fr; } }

/* How it works */
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.ct-step { background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 28px; counter-increment: step; }
.ct-step::before { content: counter(step); display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--ct-blue); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
@media (max-width: 760px) { .ct-steps { grid-template-columns: 1fr; } }

.ct-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.ct-section-head h2 { margin: 0; }

/* CTA band */
.ct-band { background: var(--ct-blue); color: #fff; text-align: center; padding: 56px 20px; }
.ct-band h2 { color: #fff; }
.ct-band .ct-btn { background: #fff; color: var(--ct-blue) !important; }
.ct-band .ct-btn:hover { background: var(--ct-charcoal); color: #fff !important; }

/* Generic pages */
.ct-page-title { background: var(--ct-charcoal); color: #fff; padding: 48px 0; }
.ct-page-title h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ct-content { padding: 48px 0 72px; }
.ct-content .entry { background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 32px; }
.ct-content--wide .entry { background: transparent; border: 0; padding: 0; }

/* FAQ */
.ct-faq { max-width: 820px; margin: 0 auto; }
.ct-faq details { background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); margin-bottom: 12px; padding: 0 22px; }
.ct-faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; color: var(--ct-blue); font-size: 1.4rem; line-height: 1; }
.ct-faq details[open] summary::after { content: "\2212"; }
.ct-faq details p { padding-bottom: 18px; color: var(--ct-grey); margin: 0; }

/* Footer */
.ct-footer { background: var(--ct-charcoal); color: #c6cacd; padding: 56px 0 24px; }
.ct-footer a { color: #c6cacd; }
.ct-footer a:hover { color: #fff; }
.ct-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.ct-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ct-footer ul { list-style: none; margin: 0; padding: 0; }
.ct-footer li { margin-bottom: 8px; }
.ct-footer__logo img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.ct-footer__bottom { border-top: 1px solid #3a4046; margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .ct-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ct-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WooCommerce ---------- */
.woocommerce-breadcrumb { color: var(--ct-grey); font-size: .9rem; margin-bottom: 20px !important; }
.woocommerce-breadcrumb a { color: var(--ct-grey); }

.ct-shop-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.ct-shop-nav a { padding: 9px 18px; border-radius: 999px; background: var(--ct-white); border: 1px solid var(--ct-line); color: var(--ct-charcoal); font-weight: 600; font-size: .93rem; }
.ct-shop-nav a:hover, .ct-shop-nav a.is-active { background: var(--ct-blue); border-color: var(--ct-blue); color: #fff; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0 0 40px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 14px; transition: box-shadow .15s, transform .15s; position: relative; }
.woocommerce ul.products li.product:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.woocommerce ul.products li.product img { border-radius: 8px; margin: 0 0 12px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; font-weight: 700; padding: 0; color: var(--ct-charcoal); }
.woocommerce ul.products li.product .price { color: var(--ct-blue); font-weight: 700; display: block; margin-bottom: 10px; }
.woocommerce ul.products li.product .button { width: 100%; text-align: center; padding: 11px 14px; font-size: .92rem; }
.woocommerce span.onsale { background: var(--ct-blue); color: #fff; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; top: 22px; left: 22px; right: auto; }
@media (max-width: 1000px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 20px; }
.woocommerce-ordering select, .woocommerce select, .woocommerce input[type="text"], .woocommerce input[type="email"],
.woocommerce input[type="tel"], .woocommerce input[type="number"], .woocommerce input[type="password"], .woocommerce textarea {
  border: 1px solid var(--ct-line); border-radius: 8px; padding: 10px 12px; background: #fff; font: inherit; color: var(--ct-charcoal);
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--ct-radius); }
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ct-blue); font-size: 1.6rem; font-weight: 800; }
.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 4px 0; text-align: left; }
.woocommerce div.product form.cart .variations label { font-weight: 700; }
.woocommerce div.product form.cart .qty { width: 70px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--ct-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0 18px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 700; color: var(--ct-grey); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--ct-blue); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ct-charcoal); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; } }

/* Lumise designer button */
.lumise-button, a.lumise-button, .lumise-product-design, button.lumise-button, .lumise-btn-start {
  background: var(--ct-blue) !important; color: #fff !important; border-radius: 999px !important; padding: 14px 28px !important; font-weight: 700 !important; border: 0 !important;
}

/* "From" label before prices */
.ct-price-from { font-weight: 600; font-size: .78em; color: var(--ct-grey); margin-right: 3px; text-transform: uppercase; letter-spacing: .03em; }
.woocommerce div.product p.price .ct-price-from, .woocommerce div.product span.price .ct-price-from { font-size: .5em; vertical-align: middle; }

/* Cart & checkout */
.woocommerce table.shop_table { border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: #fff; border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: #faf9f6; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--ct-line); padding: 14px; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 6px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout .col2-set { background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 24px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ct-blue); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ct-blue); }
.woocommerce-checkout #payment { background: #faf9f6; border-radius: var(--ct-radius); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ct-charcoal); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--ct-blue); color: #fff; }
