/*
Theme Name: Tee Store
Theme URI: https://example.com/tee-store
Description: Custom full-width WooCommerce theme for Tee Store — custom T-shirts and hoodies with a no-login design studio and cash on delivery. No sidebar anywhere: every page is full-width with a custom header, menu and footer, so the shop never looks like a default WordPress site.
Author: Tee Store
Version: 4.8.0
Text Domain: tee-storefront
Requires Plugins: woocommerce
*/

/* Brand: near-black + warm orange accent. System fonts only — no webfonts, keeps it fast. */
:root {
    --tee-ink: #111111;
    --tee-accent: #e4572e;
    --tee-accent-dark: #c7441f;
    --tee-soft: #f6f4f1;
    --tee-line: #e8e8e8;
    --tee-green: #1a7f37;
    --tee-max: 1280px;
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    background: #fff;
    color: #1a1a1a;
    margin: 0;
}
h1, h2, h3, h4 { line-height: 1.25; color: #111; }
a { color: #111; }
img { max-width: 100%; height: auto; }

/* Small, neat buttons everywhere — compact, not chunky. */
.button, button.button, a.button, input[type="submit"].button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--tee-ink);
    color: #fff;
    border: 1px solid var(--tee-ink);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.button:hover, button.button:hover, a.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}
.button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce button.button.alt.single_add_to_cart_button {
    background: var(--tee-accent);
    border-color: var(--tee-accent);
}
.button.alt:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--tee-accent-dark);
    border-color: var(--tee-accent-dark);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], select, textarea {
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #fff;
    max-width: 100%;
}

/* --- Layout: full width, no sidebar anywhere ------------------------ */
.tee-container {
    max-width: var(--tee-max);
    margin: 0 auto;
    padding: 0 20px;
}
.tee-page { padding: 28px 0 48px; min-height: 55vh; }
.tee-page > .entry-title, .tee-page h1.page-title { margin-top: 0; }

/* --- Header ---------------------------------------------------------- */
.tee-header {
    background: #fff;
    border-bottom: 1px solid var(--tee-line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.tee-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
}
.tee-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #111;
    white-space: nowrap;
}
.tee-logo span { color: var(--tee-accent); }
.tee-tagline { font-size: 12px; color: #666; display: none; }
@media (min-width: 900px) { .tee-tagline { display: inline; } }
.tee-nav { margin-left: auto; }
.tee-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.tee-nav a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
}
.tee-nav a:hover, .tee-nav .current-menu-item a { background: var(--tee-soft); color: #111; }
.tee-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--tee-line);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}
.tee-cart-count {
    background: var(--tee-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    padding: 0 5px;
}
.tee-menu-toggle {
    display: none;
    border: 1px solid var(--tee-line);
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 820px) {
    .tee-menu-toggle { display: block; margin-left: auto; }
    .tee-nav { display: none; width: 100%; order: 3; }
    .tee-nav.is-open { display: block; }
    .tee-nav ul { flex-direction: column; padding: 8px 0 12px; }
    .tee-header-inner { flex-wrap: wrap; }
    .tee-cart-link { margin-left: auto; }
}

/* --- Footer ---------------------------------------------------------- */
.tee-footer {
    background: var(--tee-ink);
    color: #ddd;
    margin-top: 0;
}
.tee-footer a { color: #fff; }
.tee-footer-inner {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 36px 20px 28px;
}
@media (min-width: 768px) { .tee-footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.tee-footer h3 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.tee-footer p { margin: 0 0 8px; font-size: 13px; color: #bbb; }
.tee-footer ul { list-style: none; margin: 0; padding: 0; }
.tee-footer li { margin-bottom: 6px; font-size: 13px; }
.tee-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}
.tee-footer-bottom p { margin: 0; }

/* --- Homepage -------------------------------------------------------- */
.tee-hero {
    background: var(--tee-ink);
    color: #fff;
    padding: 48px 0;
}
.tee-hero-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .tee-hero-inner { grid-template-columns: 1.1fr 1fr; } }
.tee-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 12px; }
.tee-hero p { font-size: 1.05rem; opacity: 0.92; max-width: 620px; margin: 0 0 20px; }
.tee-hero .button { background: var(--tee-accent); border-color: var(--tee-accent); font-size: 14px; padding: 10px 22px; }
.tee-hero .button:hover { background: var(--tee-accent-dark); border-color: var(--tee-accent-dark); }
/* v4.6: hero carousel — the four on-model photos. Without JavaScript
   only the first slide shows (it carries .is-active in the markup);
   theme.js adds .is-js, which reveals the arrows/dots and starts the
   auto-advance. The slides are 2:3 portraits shown at 4:5 so the hero
   stays a reasonable height; object-position keeps the faces in frame. */
.tee-hero-slider { position: relative; border-radius: 14px; overflow: hidden; }
.tee-hero-slides { aspect-ratio: 4 / 5; max-height: 560px; }
.tee-hero-slide { display: none; margin: 0; height: 100%; }
.tee-hero-slide.is-active { display: block; }
.tee-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.tee-hero-arrow {
    display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
    background: rgba(17,17,17,.55); color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer; padding: 0 0 2px;
}
.tee-hero-slider.is-js .tee-hero-arrow { display: block; }
.tee-hero-prev { left: 10px; }
.tee-hero-next { right: 10px; }
.tee-hero-dots { display: none; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); gap: 6px; z-index: 2; }
.tee-hero-slider.is-js .tee-hero-dots { display: flex; }
.tee-hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.tee-hero-dot.is-active { background: #fff; }
.tee-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tee-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
}
.tee-section { padding: 40px 0 8px; }
.tee-section h2 { text-align: center; margin: 0 0 8px; font-size: 1.5em; }
.tee-section .tee-lead { text-align: center; color: #555; max-width: 620px; margin: 0 auto 24px; font-size: 14px; }
.tee-colours { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tee-colour-chip { text-align: center; text-decoration: none; }
.tee-colour-chip .tee-dot {
    display: block;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin: 0 auto 6px;
}
.tee-colour-chip:hover .tee-dot { border-color: #111; }
.tee-colour-chip span { font-size: 13px; font-weight: 600; color: #333; }
.tee-steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tee-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tee-steps { grid-template-columns: repeat(4, 1fr); } }
.tee-step-card {
    background: var(--tee-soft);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.tee-step-card .tee-num {
    display: inline-block;
    width: 36px; height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--tee-ink);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}
.tee-step-card h3 { margin: 0 0 6px; font-size: 15px; }
.tee-step-card p { margin: 0; font-size: 13px; color: #555; }
.tee-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0 4px;
}
.tee-trust span {
    border: 1px solid var(--tee-line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}
.tee-models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .tee-models { grid-template-columns: repeat(4, 1fr); } }
.tee-models figure { margin: 0; }
/* v4.6: square crops so all eight photos make even rows — the four
   on-model photos are 2:3 portraits, the four worn photos are square. */
.tee-models img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 15%; border-radius: 12px; display: block; }
.tee-models figcaption { text-align: center; color: #666; font-size: 12px; margin-top: 6px; }
.tee-photo-note { text-align: center; color: #888; font-size: 12px; }
/* v4.6: "Start from a design" is a slider now — product-sized cards in
   a scroll-snap track, scrollable by touch/drag with no JavaScript;
   theme.js adds .is-js, which reveals the arrows that scroll one card
   at a time. */
.tee-templates-slider { position: relative; }
.tee-templates-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.tee-templates-track a { display: block; flex: 0 0 220px; scroll-snap-align: start; text-align: center; text-decoration: none; }
.tee-templates-track img { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--tee-line); border-radius: 10px; background: #fff; }
.tee-templates-track span { font-size: 12px; color: #333; display: block; margin-top: 4px; }
.tee-slider-arrow {
    display: none; position: absolute; top: 110px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tee-line);
    background: #fff; color: #111; font-size: 22px; line-height: 1;
    cursor: pointer; padding: 0 0 2px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tee-templates-slider.is-js .tee-slider-arrow { display: block; }
.tee-templates-prev { left: 6px; }
.tee-templates-next { right: 6px; }

/* v4.8: template gallery viewer — lightbox with the printed-shirt
   mockup large, view buttons, arrows, and a "Use this design" button.
   Built by theme.js on first open; hidden until then, so no-JS pages
   never see it. */
.tee-template-viewer { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.75); padding: 16px; }
.tee-template-viewer.is-open { display: flex; }
.tee-template-viewer-dialog { position: relative; background: #fff; border-radius: 12px; max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; padding: 20px; text-align: center; }
.tee-template-viewer-dialog h3 { margin: 0 0 4px; padding-right: 36px; }
.tee-template-viewer-now { color: #666; font-size: 13px; margin: 0 0 10px; }
.tee-template-viewer-stage { position: relative; }
.tee-template-viewer-stage img { width: 100%; max-height: 58vh; object-fit: contain; border: 1px solid var(--tee-line); border-radius: 10px; background: #fff; touch-action: pan-y; cursor: grab; }
.tee-template-viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tee-line); background: #fff; color: #111; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 2px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tee-template-viewer-prev { left: 8px; }
.tee-template-viewer-next { right: 8px; }
.tee-template-viewer-views { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.tee-template-viewer-views button { border: 1px solid var(--tee-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.tee-template-viewer-views button.is-active { background: #111; color: #fff; border-color: #111; }
.tee-template-viewer-use { display: inline-block; background: var(--tee-accent); color: #fff; border-radius: 8px; padding: 10px 20px; text-decoration: none; font-weight: 600; }
.tee-template-viewer-use:hover { background: var(--tee-accent-dark); color: #fff; }
.tee-template-viewer-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tee-line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.tee-cta {
    background: var(--tee-soft);
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    margin: 40px 0;
}
.tee-cta h2 { margin: 0 0 8px; }
.tee-cta p { color: #555; }

/* --- Shop grid: even rows, equal-height cards ----------------------- */
/* v4: exactly 2 columns on phones (4 rows of 2) and exactly 4 columns
   on desktop (2 rows of 4) for the 8 bestsellers — NO 3-column
   breakpoint, because 8 products in 3 columns wraps 3/3/2 and looks
   uneven. Cards are flex columns with a square image box, a fixed
   title height and the price pinned to the bottom, so every card in a
   row is the same height no matter how long its name is. */
ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* v4.6: the bestsellers empty-slot bug, root cause. WooCommerce's own
   CSS puts a clearfix on ul.products (::before/::after with
   content:" " and display:table — woocommerce.css and
   woocommerce-layout.css, both loaded on every page). On a
   display:grid list those pseudos become real grid items: ::before
   takes cell 1 (the empty first slot) and ::after takes the last
   cell, so 8 products rendered as empty+3 / 4 / 1. The markup was
   always 8 complete cards with images, titles and prices — which is
   why a curl check of the page looked correct and only a rendered
   browser showed the gap. A grid needs no clearfix, so neutralise
   both pseudos. Same specificity as WooCommerce's rule, but this
   file loads after it, so this wins. The shop page uses the same
   ul.products, so it is fixed too. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none; display: none; }
ul.products li.product {
    background: #fff;
    border: 1px solid var(--tee-line);
    border-radius: 12px;
    padding: 10px 10px 14px;
    text-align: center;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}
ul.products li.product a.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
}
ul.products li.product a.woocommerce-loop-product__link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0 2px;
    min-height: 2.7em; /* two lines, so one-line names do not lift the price */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
ul.products li.product .price { font-size: 14px; font-weight: 700; color: #111; margin-top: auto; }
ul.products li.product .button { margin-top: 10px; align-self: center; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 13px; }
.tee-shop-intro { color: #555; font-size: 14px; max-width: 720px; }

/* --- Single product: big photo left, compact steps right ------------- */
.single-product div.product { display: block; }
@media (min-width: 900px) {
    .single-product div.product {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 32px;
        align-items: start;
    }
    .single-product div.product .woocommerce-product-gallery { grid-column: 1; position: sticky; top: 76px; }
    .single-product div.product .summary { grid-column: 2; }
    .single-product div.product .woocommerce-tabs,
    .single-product div.product .related,
    .single-product div.product .up-sells { grid-column: 1 / -1; }
}
/* --- v4: designer products use the WHOLE page, no gallery column ---- */
/* The plugin removes the WooCommerce gallery and adds the
   .tee-designer-product body class (see tee-designer.php). Without
   these overrides the summary would sit in the right-hand grid column
   next to an empty left column — exactly the "empty columns" Umar
   reported. The container is wider here too: the design studio uses
   the full page width. */
body.single-product .tee-container { max-width: 1440px; padding: 0 16px; }
.single-product.tee-designer-product div.product { display: block; }
.single-product.tee-designer-product .woocommerce-product-gallery { display: none !important; }
.single-product.tee-designer-product div.product .summary { width: 100%; float: none; grid-column: auto; }
.single-product.tee-designer-product div.product .woocommerce-tabs,
.single-product.tee-designer-product div.product .related,
.single-product.tee-designer-product div.product .up-sells { grid-column: auto; }
/* v4.1: on designer products the title and price live UNDER the shirt
   in the sticky preview panel (rendered by the plugin from the
   product), so they travel with the shirt while the steps scroll.
   Hide WooCommerce's copies at the top of the summary — otherwise the
   name sits "disturbingly" above the shirt and appears twice. v4.2:
   the short description is hidden here too — it lives under the price
   in the sticky panel instead. This rule is scoped to
   .tee-designer-product only: non-designer products keep their normal
   title, price and description. */
.single-product.tee-designer-product div.product .summary h1.product_title,
.single-product.tee-designer-product div.product .summary p.price,
.single-product.tee-designer-product div.product .summary .woocommerce-product-details__short-description { display: none; }
.woocommerce-product-gallery img { border-radius: 12px; }
.summary .price { font-size: 1.4em; font-weight: 700; color: #111; }
.summary .product_title { font-size: 1.5em; margin: 0 0 6px; }
.woocommerce-tabs { margin-top: 32px; }
.woocommerce-tabs .tabs { font-size: 13px; }

/* --- Cart + checkout progress bar ------------------------------------ */
.tee-progress {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
}
.tee-progress-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f8f8f8;
    color: #666;
}
.tee-progress-step.is-current { background: #111; color: #fff; border-color: #111; }
.tee-progress-step.is-done { background: #eef7f0; color: var(--tee-green); border-color: var(--tee-green); }
.tee-cod-note { background: #eef7f0; border: 1px solid #c8e6c9; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.tee-thankyou { background: #eef7f0; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
/* v4.6: the order-confirmation line naming the WhatsApp number and
   email the order will be confirmed on (added by the plugin). */
.tee-confirm-line { background: #eef7f0; border: 1px solid #c8e6c9; border-radius: 8px; padding: 12px 14px; font-size: 14px; }

/* --- WooCommerce tables / forms, kept tidy --------------------------- */
.woocommerce table.shop_table { font-size: 14px; border-radius: 10px; overflow: hidden; }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; max-width: 420px; }
.woocommerce form.checkout .col2-set { display: grid; gap: 24px; }
@media (min-width: 900px) { .woocommerce form.checkout .col2-set { grid-template-columns: 1fr 1fr; } }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin-bottom: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* --- Notices ---------------------------------------------------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    font-size: 14px;
    border-radius: 8px;
}
