/*
Theme Name: Web Technology Store
Theme URI: https://webtechnology.com.co
Author: Codex
Description: Tema moderno para WooCommerce con enfoque en tecnologia, conversion y sincronizacion empresarial.
Version: 0.1.0
Text Domain: webtech-store
*/

:root {
  --wt-bg: #ffffff;
  --wt-surface: #ffffff;
  --wt-surface-2: #eaf2fb;
  --wt-text: #0f172a;
  --wt-muted: #475569;
  --wt-brand: #00a0e3;
  --wt-brand-dark: #007bb0;
  --wt-accent: #0f172a;
  --wt-border: rgba(15, 23, 42, 0.1);
  --wt-shadow: 0 16px 36px rgba(2, 8, 23, 0.08);
  --wt-radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--wt-text);
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.wt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wt-main {
  flex: 1;
}

.wt-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.wt-hero {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(2,8,23,.05);
}

.wt-section {
  margin-top: 28px;
}

.wt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}

.wt-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--wt-brand);
}

.wt-title {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.08;
}

.wt-lead {
  max-width: 64ch;
  color: var(--wt-muted);
  line-height: 1.75;
}

.wt-card {
  background: var(--wt-surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(2,8,23,.05);
}

.wt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.wt-btn:hover {
  transform: translateY(-1px);
}

.wt-btn-primary {
  background: var(--wt-brand);
  color: #fff;
}

.wt-btn-primary:hover {
  background: var(--wt-brand-dark);
}

.wt-btn-secondary {
  background: #fff;
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
}

.wt-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--wt-border);
  font-size: 0.94rem;
  color: var(--wt-muted);
}

.wt-grid {
  display: grid;
  gap: 24px;
}

.wt-woo-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.wt-filter-bar {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,160,227,.05), rgba(255,255,255,.92));
  box-shadow: 0 12px 28px rgba(2,8,23,.05);
}

@media (min-width: 720px) {
  .wt-filter-bar {
    grid-template-columns: 1.2fr .8fr .8fr auto;
    align-items: end;
  }
}

.wt-filter-search,
.wt-filter-select {
  display: grid;
  gap: 8px;
}

.wt-filter-label {
  font-size: .76rem;
  font-weight: 900;
  color: var(--wt-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.wt-filter-search input,
.wt-filter-select select {
  width: 100%;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: var(--wt-text);
  font: inherit;
  min-height: 48px;
}

.wt-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wt-filter-button,
.wt-filter-reset {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wt-filter-button {
  background: var(--wt-brand);
  color: #fff;
}

.wt-filter-button:hover {
  background: var(--wt-brand-dark);
}

.wt-filter-reset {
  background: #fff;
  color: var(--wt-text);
  border: 1px solid rgba(15,23,42,.12);
}

.wt-catalog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wt-catalog-results {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.wt-catalog-results > ul.products.wt-product-grid {
  margin: 0 !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  position: relative !important;
}

.wt-catalog-results > ul.products.wt-product-grid::before,
.wt-catalog-results > ul.products.wt-product-grid::after,
.wt-catalog-results > ul.products.wt-product-grid > li::before,
.wt-catalog-results > ul.products.wt-product-grid > li::after {
  content: none !important;
  display: none !important;
}

.wt-catalog-results > ul.products.wt-product-grid > li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
}

.wt-catalog-count {
  font-size: .92rem;
  color: var(--wt-muted);
}

.wt-catalog-loading {
  position: relative;
  opacity: .55;
  pointer-events: none;
}

.wt-catalog-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: wt-shimmer 1s linear infinite;
}

.woocommerce-pagination {
  margin-top: 18px;
}

.woocommerce-pagination .page-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.woocommerce-pagination .page-numbers button {
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: var(--wt-text);
  border-radius: 12px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.woocommerce-pagination .page-numbers button.current,
.woocommerce-pagination .page-numbers button:hover {
  background: var(--wt-brand);
  color: #fff;
  border-color: var(--wt-brand);
}

@keyframes wt-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.wt-product-grid,
.woocommerce ul.products {
  display: grid !important;
  gap: 12px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  align-content: start !important;
  justify-items: stretch !important;
  width: 100%;
  max-width: 100% !important;
  grid-auto-flow: row dense;
  grid-auto-rows: 1fr;
  place-content: start !important;
}

@media (min-width: 720px) {
  .wt-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1080px) {
  .wt-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.wt-product-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(2,8,23,.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  min-width: 0;
  max-width: none !important;
  list-style: none !important;
  cursor: pointer;
}

.wt-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(2,8,23,.12);
  border-color: rgba(0, 160, 227, 0.24);
}

.wt-product-link {
  display: block;
  text-decoration: none;
}

.wt-product-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(0,160,227,.08), rgba(255,255,255,1));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.wt-product-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.wt-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.wt-product-hover {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.wt-product-hover span {
  background: rgba(15,23,42,.88);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 12px;
}

.wt-product-card:hover .wt-product-hover {
  opacity: 1;
  transform: translateY(0);
}

.wt-product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,160,227,.18), transparent 28%),
    linear-gradient(135deg, rgba(15,23,42,.05), rgba(255,255,255,1));
  color: var(--wt-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  padding: 16px;
}

.wt-product-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15,23,42,.92);
  color: #fff;
  font-size: .78rem;
}

.wt-product-placeholder small {
  margin-top: 10px;
  font-size: .72rem;
  letter-spacing: .06em;
}

.wt-product-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 11px;
  min-height: 175px;
  text-align: center;
}

.wt-product-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 3.2em;
  display: block;
  overflow: hidden;
  font-weight: 800;
  color: var(--wt-text);
}

.wt-product-title a {
  text-decoration: none;
  color: var(--wt-text);
}

.wt-product-meta {
  margin-bottom: 0;
  font-weight: 800;
}

.wt-product-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,160,227,.08);
  color: var(--wt-brand-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wt-product-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.wt-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.wt-product-buy,
.wt-product-details {
  width: 100%;
  padding: 11px 12px;
  font-size: .94rem;
}

.woocommerce .products .product,
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  min-width: 0 !important;
  max-width: none !important;
}

.woocommerce ul.products li.product a {
  text-decoration: none;
  display: block;
  height: 100%;
  width: 100%;
}

.woocommerce ul.products li.product a img {
  display: block;
}

.woocommerce .price {
  color: var(--wt-accent);
  font-size: 1.05rem;
}

.woocommerce .price del,
.woocommerce .price ins {
  display: inline-block;
}

.woocommerce .price del {
  color: var(--wt-muted);
  opacity: .75;
}

.woocommerce .price ins {
  text-decoration: none;
}

.woocommerce .onsale {
  background: var(--wt-brand);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,160,227,.22);
}

.woocommerce-pagination {
  margin-top: 16px;
}

.woocommerce .wt-card,
.woocommerce-page .wt-card {
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce .wt-shell,
.woocommerce-page .wt-shell {
  width: min(1240px, calc(100% - 40px));
}

.wt-empty-state {
  padding: 24px;
  border: 1px dashed rgba(15,23,42,.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,160,227,.04), rgba(255,255,255,1));
}

.woocommerce-result-count,
.woocommerce-ordering {
  color: var(--wt-muted);
}

.wt-single-product {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .wt-single-product {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.wt-single-summary {
  padding: 28px;
}

.wt-single-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--wt-muted);
  font-size: .88rem;
  margin-bottom: 8px;
}

.wt-single-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.wt-single-highlight {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,160,227,.06), rgba(255,255,255,1));
  border: 1px solid rgba(15,23,42,.08);
}

.wt-single-highlight strong {
  display: block;
  margin-bottom: 6px;
}

.wt-single-highlight span,
.wt-single-price-box p {
  color: var(--wt-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.wt-single-description {
  margin-top: 8px;
  color: var(--wt-text);
  line-height: 1.8;
}

.wt-single-price-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 22px rgba(2,8,23,.05);
}

.wt-single-price-box .price {
  font-size: 1.7rem;
}

.wt-single-summary .single_add_to_cart_button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--wt-brand);
  color: #fff;
  font-weight: 800;
}

.wt-single-summary .single_add_to_cart_button:hover {
  background: var(--wt-brand-dark);
}

.wt-single-gallery .woocommerce-product-gallery {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  box-shadow: 0 16px 36px rgba(2,8,23,.08);
}

.wt-single-summary .product_title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image {
  margin: 0;
}

.woocommerce-product-gallery__wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.wt-single-actions {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.wt-single-extra {
  margin-top: 18px;
}

@media (min-width: 768px) {
  .wt-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wt-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wt-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wt-topbar {
  background: var(--wt-accent);
  color: #fff;
  font-size: 0.9rem;
}

.wt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.wt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.wt-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.wt-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--wt-brand), #7dd3fc);
  box-shadow: 0 18px 30px rgba(0, 160, 227, 0.22);
}

.wt-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wt-brand-name strong {
  font-size: 1rem;
}

.wt-brand-name span {
  color: var(--wt-muted);
  font-size: 0.88rem;
}

.wt-brand img {
  display: block;
  max-height: 56px;
  object-fit: contain;
}

.wt-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wt-nav a {
  text-decoration: none;
  color: var(--wt-muted);
  font-weight: 600;
}

.wt-nav a:hover {
  color: var(--wt-text);
}

.wt-hero-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .wt-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.wt-hero-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 20%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.55), transparent 18%),
    linear-gradient(160deg, rgba(0,160,227,.14), rgba(255,255,255,.92));
}

.wt-hero-visual::before,
.wt-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}

.wt-hero-visual::before {
  width: 260px;
  height: 260px;
  top: -60px;
  right: -40px;
}

.wt-hero-visual::after {
  width: 180px;
  height: 180px;
  left: -20px;
  bottom: 30px;
}

.wt-panel {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(12px);
}

.wt-landing-image {
  position: absolute;
  inset: 22px 22px 96px 22px;
  border-radius: 24px;
  background: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?auto=format&fit=crop&q=80&w=1400') center/cover no-repeat;
  border: 1px solid rgba(15,23,42,.08);
}

.wt-landing-overlay {
  position: absolute;
  inset: 22px 22px 96px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.22));
}

.wt-landing-badge {
  position: absolute;
  left: 36px;
  bottom: 116px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--wt-text);
  box-shadow: var(--wt-shadow);
}

.wt-feature {
  display: grid;
  gap: 12px;
  align-items: start;
}

@media (min-width: 720px) {
  .wt-feature {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.wt-feature-item {
  padding: 22px;
}

.wt-feature-item h3 {
  margin: 12px 0 8px;
}

.wt-feature-item p,
.wt-footer p,
.wt-footer a {
  color: var(--wt-muted);
  line-height: 1.7;
}

.wt-product {
  overflow: hidden;
}

.wt-product .thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(0,160,227,.08), rgba(255,255,255,1));
  display: grid;
  place-items: center;
}

.wt-footer {
  margin-top: 56px;
  background: #08111f;
  color: #fff;
}

.wt-footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}

.wt-footer a:hover {
  color: #fff;
}

.wt-footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .wt-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
