/*
Theme Name: TechSklep
Template: storefront
Description: Premium Storefront child theme for the TechSklep electronics store.
Version: 0.5.0
Text Domain: techsklep
*/

:root {
    --ink: #0f172a;
    --ink-2: #1e293b;
    --text: #3f4a5a;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --line: #e7eaf0;
    --soft: #f7f9fc;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    background: #fff;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

a { color: var(--accent); }

/* ── Announcement bar ───────────────────────────────────────── */
.ts-annc {
    background: var(--ink);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
}
.ts-annc-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6em;
    flex-wrap: wrap;
    padding: 0.6em 1em;
}
.ts-annc-row span { display: inline-flex; align-items: center; }
.ts-annc-row span + span::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 1.6em;
    margin-left: -0.8em;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    padding-top: 1.1em;
    padding-bottom: 1.1em;
}
.ts-logo { display: inline-block; line-height: 0; }
.ts-logo-svg { height: 38px; width: auto; display: block; }

.main-navigation ul li a,
.secondary-navigation ul li a {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95em;
}
.main-navigation ul li a:hover,
.secondary-navigation ul li a:hover { color: var(--accent); }
.secondary-navigation ul li a { color: var(--muted); font-weight: 500; }

.site-header .site-header-cart .cart-contents,
button.menu-toggle { color: var(--ink); font-weight: 700; }

.site-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    background: #f3f5f9;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
}

/* ── Buttons ────────────────────────────────────────────────── */
.button, button, input[type="submit"],
.wp-block-button__link, .single_add_to_cart_button {
    border-radius: 10px;
    font-weight: 700;
    transition: background .15s, color .15s, box-shadow .15s, border-color .15s, transform .15s;
}
.button.alt, .button.checkout, .single_add_to_cart_button, .wp-block-button__link {
    background: var(--accent) !important;
    color: #fff !important;
    border: 0;
}
.button.alt:hover, .single_add_to_cart_button:hover, .wp-block-button__link:hover {
    background: var(--accent-dark) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
    transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.page-template-template-homepage .entry-title,
.page-template-template-homepage .entry-header { display: none; }
.page-template-template-homepage .site-content,
.page-template-template-homepage .site-main,
.page-template-template-homepage .type-page { padding-top: 0 !important; margin-top: 0 !important; }
.page-template-template-homepage { overflow-x: hidden; }

.ts-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 6em 2em 5em;
    text-align: center;
    background:
        radial-gradient(900px 380px at 50% -8%, #eaf0ff 0%, transparent 70%),
        var(--soft);
    border-bottom: 1px solid var(--line);
}
.ts-hero > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.ts-hero a, .ts-cta a { text-decoration: none !important; }
.ts-eyebrow {
    display: inline-block; margin-bottom: 1.5em;
    padding: .5em 1.1em; border-radius: 999px;
    background: #fff; border: 1px solid #d7e0f5;
    color: var(--accent); font-size: .74rem; font-weight: 800;
    letter-spacing: .2em; text-transform: uppercase;
}
.ts-hero h1 { margin: 0 auto .35em; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
.ts-hero h1 .ts-grad-text { color: var(--accent); }
.ts-lead { margin: 0 auto 2.2em; max-width: 560px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.ts-cta { display: flex; gap: 1em; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 2.6em; }
.ts-cta .ts-btn-primary { padding: .95em 2.1em; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.ts-cta .ts-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.ts-cta .ts-btn-ghost { color: var(--ink); font-weight: 700; }
.ts-cta .ts-btn-ghost::after { content: " →"; color: var(--accent); }
.ts-usp { display: flex; gap: .6em 2.2em; justify-content: center; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: .92rem; }
.ts-usp span::before { content: "✓"; margin-right: .5em; color: var(--accent); font-weight: 800; }

/* ── Feature strip ──────────────────────────────────────────── */
.ts-features { padding: 3em 0 1em; }
.ts-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1em; }
.ts-feature {
    display: flex; gap: .9em; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2em 1.3em;
}
.ts-feature-ic {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
    background: #eef3ff; color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.ts-feature-ic svg { width: 22px; height: 22px; }
.ts-feature strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .15em; }
.ts-feature p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ── Section titles ─────────────────────────────────────────── */
.storefront-product-section { padding-top: 3em; }
.storefront-product-section .section-title,
.related.products > h2, .up-sells > h2 {
    text-align: center; font-size: 1.55em; margin-bottom: .2em;
}
.storefront-product-section .section-title::after {
    content: ""; display: block; width: 52px; height: 4px; margin: .5em auto 1.6em;
    border-radius: 2px; background: var(--accent);
}

/* ── Section head + carousel ────────────────────────────────── */
.ts-carousel-section { padding-top: 3em; }
.ts-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.4em; }
.ts-section-head h2 { font-size: 1.55em; margin: .1em 0 0; }
.ts-eyebrow-sm { display: inline-block; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ts-carousel-nav { display: flex; gap: .5em; flex: 0 0 auto; }
.ts-carousel-nav button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font-size: 1.3em; line-height: 1; cursor: pointer; transition: all .15s;
}
.ts-carousel-nav button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
ul.products.ts-carousel {
    display: flex !important; gap: 1.1em; margin: 0 !important; padding: 0 .2em 1em; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
ul.products.ts-carousel::-webkit-scrollbar { display: none; }
ul.products.ts-carousel li.product {
    flex: 0 0 250px; width: 250px !important; margin: 0 !important;
    scroll-snap-align: start; float: none !important; clear: none !important;
}
ul.products.ts-carousel li.product::before { display: none !important; }

/* ── Promo banner ───────────────────────────────────────────── */
.ts-promo { margin-top: 3.5em; }
.ts-promo-inner {
    display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 2em;
    background: linear-gradient(120deg, #0f172a, #1e3a8a); border-radius: 18px; padding: 2.6em 2.8em; overflow: hidden;
}
.ts-promo-text h2 { color: #fff; font-size: 1.85em; margin: .25em 0 .4em; }
.ts-promo-text .ts-eyebrow-sm { color: #93c5fd; }
.ts-promo-text p { color: #cbd5e1; margin: 0 0 1.5em; max-width: 44ch; }
.ts-promo-text .ts-btn-primary { display: inline-block; padding: .85em 1.9em; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.ts-promo-text .ts-btn-primary:hover { background: #fff; color: var(--ink); }
.ts-promo-art { display: flex; justify-content: center; color: rgba(255,255,255,.9); }
.ts-promo-art svg { width: 150px; height: 150px; }

/* ── Product cards ──────────────────────────────────────────── */
ul.products li.product {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1em 1em 1.3em; transition: box-shadow .18s, transform .18s, border-color .18s;
}
ul.products li.product:hover { border-color: #c9d6f5; box-shadow: var(--shadow); transform: translateY(-4px); }
ul.products li.product a img {
    border-radius: 10px; margin-bottom: 1em; aspect-ratio: 1 / 1;
    object-fit: contain; background: #fff; transition: transform .25s;
}
ul.products li.product:hover a img { transform: scale(1.04); }
ul.products li.product .woocommerce-loop-product__title {
    font-size: .96em; font-weight: 600; color: var(--ink); line-height: 1.4;
    min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
ul.products li.product .price { color: var(--ink); font-weight: 800; font-size: 1.06em; }
ul.products li.product .price del { color: #9ca3af; font-weight: 500; font-size: .85em; }
ul.products li.product .price ins { color: var(--ink); text-decoration: none; }
ul.products li.product .button {
    width: 100%; text-align: center; margin-top: .5em;
    background: #fff; border: 1px solid #d3dae6; color: var(--ink);
}
ul.products li.product .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.onsale, ul.products li.product .onsale {
    background: #fee2e2; color: #b91c1c; border-radius: 999px;
    min-height: 0; min-width: 0; padding: .3em .85em; font-weight: 700; font-size: .76em;
    line-height: 1.6; top: .85em; right: .85em; left: auto;
}

/* ── Category tiles ─────────────────────────────────────────── */
ul.products li.product.product-category { position: relative; padding: 0; overflow: hidden; border: 0; }
ul.products li.product.product-category a { display: block; }
ul.products li.product.product-category img {
    width: 100%; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 0; display: block;
}
ul.products li.product.product-category .woocommerce-loop-category__title {
    margin: 0; padding: .95em 1em; background: #fff; border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--ink); font-size: .98em; font-weight: 700; text-align: center; min-height: 0;
}
ul.products li.product.product-category .count {
    background: #eef2ff; color: var(--accent); border-radius: 999px;
    padding: .1em .6em; font-size: .75em; margin-left: .4em;
}

/* ── Shop sidebar / breadcrumb ──────────────────────────────── */
.woocommerce-breadcrumb { background: transparent; color: var(--muted); font-size: .85em; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2em 1.3em; }
.widget .widget-title { font-size: .8em; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); border: 0; }
.widget_product_categories ul li a { color: var(--text); font-weight: 600; }
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle { background: var(--accent); }
.woocommerce-pagination .page-numbers li .page-numbers { border-radius: 8px; font-weight: 700; }
.woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--ink); color: #fff; }

/* ── Single product ─────────────────────────────────────────── */
.single-product div.product .summary .price { color: var(--ink); font-weight: 800; font-size: 1.7em; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); }
.single-product div.product .summary .stock.in-stock { color: #15803d; font-weight: 700; }
.single-product div.product .summary .product_meta { border-top: 1px solid var(--line); padding-top: 1em; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #94a3b8; padding-top: 3.2em; margin-top: 3em; }
.ts-footer {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2em;
    padding-bottom: 2.6em; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ts-footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1.1em; }
.ts-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ts-footer-col ul li { margin-bottom: .6em; font-size: .92rem; line-height: 1.5; }
.ts-footer-col a { color: #cbd5e1; }
.ts-footer-col a:hover { color: #fff; }
.ts-footer-brand p { color: #94a3b8; font-size: .92rem; line-height: 1.6; margin: 1em 0 0; max-width: 320px; }
.ts-logo-footer .ts-logo-svg { height: 34px; }
.ts-logo-footer text tspan:first-child { fill: #ffffff !important; }
.ts-contact li { color: #94a3b8; }
.ts-footer-bottom { padding: 1.4em 0; font-size: .85rem; color: #7c899c; }

/* ── Mobile handheld bar ────────────────────────────────────── */
.storefront-handheld-footer-bar { background: #fff; border-top: 1px solid var(--line); }
.storefront-handheld-footer-bar ul li > a { color: var(--ink); }
.storefront-handheld-footer-bar ul li.cart .count { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
    .ts-features-grid { grid-template-columns: 1fr 1fr; }
    .ts-footer { grid-template-columns: 1fr 1fr; gap: 1.6em; }
}
@media (max-width: 600px) {
    .ts-features-grid { grid-template-columns: 1fr; }
    .ts-footer { grid-template-columns: 1fr; }
    .ts-promo-inner { grid-template-columns: 1fr; text-align: center; padding: 2em 1.4em; }
    .ts-promo-art { display: none; }
    ul.products.ts-carousel li.product { flex-basis: 70%; width: 70% !important; }
    .ts-hero { padding: 4em 1.4em 3.5em; }
    .ts-annc-row { gap: 1em; font-size: .76rem; }
    .ts-annc-row span + span::before { margin-left: -0.5em; margin-right: 1em; }
}
