/*
Theme Name: XO Panamá
Theme URI: https://example.com/
Description: Storefront child theme for an authorized XO wholesale distributor website.
Author: XO Panamá
Template: storefront
Version: 1.7.0
Text Domain: dctech-xo
*/

:root {
  --dctx-red: #d71920;
  --dctx-red-dark: #ac1117;
  --dctx-ink: #111111;
  --dctx-muted: #666666;
  --dctx-line: #e8e8e8;
  --dctx-soft: #f6f6f6;
  --dctx-white: #ffffff;
  --dctx-max: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--dctx-ink);
  background: var(--dctx-white);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.dctx-container {
  width: min(calc(100% - 40px), var(--dctx-max));
  margin-inline: auto;
}

.dctx-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .90);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  backdrop-filter: blur(10px);
}

.admin-bar .dctx-site-header { top: 32px; }

/* On the homepage the navigation floats over the hero video, like the XO site. */
body.home .dctx-site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 0;
  background: rgba(230, 230, 230, .68);
  backdrop-filter: none;
}

body.home.admin-bar .dctx-site-header { top: 32px; }

.dctx-header-inner {
  width: min(calc(100% - 40px), var(--dctx-max));
  min-height: 72px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 20px;
}

.dctx-brand img,
.dctx-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 88px;
  max-height: 38px;
}

.dctx-site-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.dctx-primary-nav ul,
.dctx-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dctx-primary-nav > div > ul,
.dctx-primary-nav > ul.menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
}

.dctx-primary-nav > ul.menu > li { margin: 0; }

.dctx-primary-nav a {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}

.dctx-primary-nav a:hover { color: var(--dctx-red); }

.dctx-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dctx-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: #111;
}

.dctx-icon-link svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dctx-button,
.dctx-quote-button,
.woocommerce a.button.dctx-product-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--dctx-ink);
  border-radius: 0;
  background: var(--dctx-ink);
  color: var(--dctx-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.dctx-header-actions > .dctx-quote-button {
  min-width: 104px;
  min-height: 38px;
  padding: 9px 16px;
  font-size: 12px;
}

.dctx-button:hover,
.dctx-quote-button:hover,
.woocommerce a.button.dctx-product-quote:hover {
  border-color: var(--dctx-red);
  background: var(--dctx-red);
  color: var(--dctx-white);
}

.dctx-button--light {
  border-color: var(--dctx-white);
  background: var(--dctx-white);
  color: var(--dctx-ink);
}

.dctx-mobile-menu { display: none; }

.dctx-hero {
  position: relative;
  min-height: clamp(680px, 84vh, 900px);
  overflow: hidden;
  background: #1b1b1b;
  color: var(--dctx-white);
}

.dctx-hero-media,
.dctx-hero-media video,
.dctx-hero-placeholder,
.dctx-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dctx-hero-media video { object-fit: cover; }

.dctx-hero-placeholder {
  background:
    radial-gradient(circle at 76% 42%, rgba(215, 25, 32, .7), transparent 28%),
    linear-gradient(125deg, #080808 15%, #2c2c2c 55%, #111 100%);
}

.dctx-hero-shade {
  pointer-events: none;
  background: rgba(0, 0, 0, .08);
}

.dctx-hero-content {
  display: none;
}

.dctx-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--dctx-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dctx-hero h1 {
  margin: 0 0 20px;
  color: var(--dctx-white);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.dctx-hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.84);
  font-size: 19px;
  line-height: 1.6;
}

.dctx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dctx-section { padding-block: 72px; }
.dctx-section--soft { background: var(--dctx-soft); }
.dctx-section--dark { background: var(--dctx-ink); color: var(--dctx-white); }

.dctx-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.dctx-section-head h2,
.dctx-section h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.dctx-section-intro {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--dctx-muted);
  line-height: 1.7;
}

.dctx-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dctx-category-card {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #ddd;
  color: var(--dctx-white);
  text-decoration: none;
}

.dctx-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dctx-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 65%);
}

.dctx-category-card:hover img { transform: scale(1.04); }

.dctx-category-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2d2d2d, #909090);
}

.dctx-category-copy {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.dctx-category-copy h3 {
  margin: 0 0 8px;
  color: var(--dctx-white);
  font-size: 26px;
}

.dctx-category-copy span { font-size: 13px; font-weight: 800; text-transform: uppercase; }

.dctx-video-grid,
.dctx-product-grid,
.dctx-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dctx-video-card {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #242424;
}

.dctx-video-card video { width: 100%; height: 100%; object-fit: cover; }

.dctx-video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(145deg, #181818, #353535);
  color: #aaa;
  text-align: center;
}

.dctx-product-card {
  background: var(--dctx-white);
  border: 1px solid var(--dctx-line);
}

.dctx-product-card-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dctx-soft);
}

.dctx-product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.dctx-product-card-copy { padding: 20px; }
.dctx-product-card-copy h3 { min-height: 48px; margin: 0 0 16px; font-size: 17px; line-height: 1.4; }

.dctx-product-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 42px;
}

.dctx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.dctx-stat { padding: 34px; border-right: 1px solid rgba(255,255,255,.18); }
.dctx-stat:last-child { border-right: 0; }
.dctx-stat strong { display: block; margin-bottom: 7px; font-size: 25px; }
.dctx-stat span { color: rgba(255,255,255,.66); }

.dctx-value-card { padding: 30px; background: var(--dctx-white); border: 1px solid var(--dctx-line); }
.dctx-value-card h3 { margin-top: 0; font-size: 21px; }
.dctx-value-card p { margin-bottom: 0; color: var(--dctx-muted); line-height: 1.65; }

.dctx-faq { border-top: 1px solid var(--dctx-line); }
.dctx-faq details { border-bottom: 1px solid var(--dctx-line); }
.dctx-faq summary { cursor: pointer; padding: 24px 0; font-size: 19px; font-weight: 700; }
.dctx-faq p { max-width: 850px; margin: 0 0 24px; color: var(--dctx-muted); line-height: 1.7; }

.dctx-form-wrap {
  max-width: 920px;
  margin: 70px auto;
  padding: 44px;
  border: 1px solid var(--dctx-line);
  background: var(--dctx-white);
}

.dctx-form-intro { max-width: 680px; margin-bottom: 34px; color: var(--dctx-muted); line-height: 1.7; }
.dctx-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dctx-field--full { grid-column: 1 / -1; }
.dctx-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.dctx-field input,
.dctx-field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
}
.dctx-field textarea { min-height: 150px; resize: vertical; }
.dctx-notice { margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid var(--dctx-red); background: var(--dctx-soft); }
.dctx-notice--success { border-left-color: #16833a; }

.dctx-cta {
  padding-block: 70px;
  background: var(--dctx-red);
  color: var(--dctx-white);
}

.dctx-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dctx-cta h2 { margin: 0 0 10px; color: var(--dctx-white); }
.dctx-cta p { margin: 0; color: rgba(255,255,255,.82); }

.dctx-site-footer { padding-block: 64px 24px; background: #090909; color: var(--dctx-white); }
.dctx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.dctx-site-footer h3 { color: var(--dctx-white); }
.dctx-site-footer p,
.dctx-site-footer li { color: rgba(255,255,255,.68); line-height: 1.75; }
.dctx-site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.dctx-site-footer a:hover { color: var(--dctx-white); }
.dctx-footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 13px; }

.dctx-floating-contact {
  position: fixed;
  z-index: 90;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 8px;
}

.dctx-float-button {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  text-decoration: none;
}

.dctx-float-button svg { width: 30px; height: 30px; display: block; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dctx-float-button--whatsapp svg { fill: #fff; stroke: none; }

.dctx-float-button--email { background: var(--dctx-red); }

/* WooCommerce catalog styling */
.woocommerce-products-header { padding-top: 38px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 0 22px; border: 1px solid var(--dctx-line); }
.woocommerce ul.products li.product img { margin: 0 0 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding-inline: 18px; font-size: 17px; line-height: 1.4; }
.woocommerce ul.products li.product .dctx-product-quote { margin-inline: 18px; }
.single-product div.product .summary .dctx-quote-button { margin-top: 20px; }
.storefront-breadcrumb { margin: 0; padding: 24px 0; }

@media (max-width: 980px) {
  .dctx-header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .dctx-primary-nav,
  .dctx-header-actions .dctx-icon-link { display: none; }
  .dctx-mobile-menu { display: block; position: relative; }
  .dctx-mobile-menu summary { cursor: pointer; font-weight: 700; }
  .dctx-mobile-menu > div { position: absolute; right: 0; top: 36px; min-width: 240px; padding: 18px; background: #fff; border: 1px solid var(--dctx-line); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .dctx-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .dctx-mobile-menu li + li { margin-top: 12px; }
  .dctx-category-grid { grid-template-columns: 1fr; }
  .dctx-category-card { min-height: 330px; }
  .dctx-video-grid,
  .dctx-product-grid,
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .dctx-value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
  .admin-bar .dctx-site-header { top: 46px; }
  .dctx-container { width: min(calc(100% - 28px), var(--dctx-max)); }
  .dctx-header-actions .dctx-quote-button { display: none; }
  .dctx-hero { min-height: 620px; }
  .dctx-section { padding-block: 62px; }
  .dctx-section-head,
  .dctx-cta-inner { display: block; }
  .dctx-section-head .dctx-button,
  .dctx-cta .dctx-button { margin-top: 22px; }
  .dctx-video-grid,
  .dctx-product-grid,
  .woocommerce ul.products,
  .dctx-value-grid,
  .dctx-stats,
  .dctx-footer-grid { grid-template-columns: 1fr; }
  .dctx-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .dctx-stat:last-child { border-bottom: 0; }
  .dctx-footer-grid { gap: 28px; }
  .dctx-form-wrap { margin-block: 40px; padding: 24px; }
  .dctx-form-grid { grid-template-columns: 1fr; }
  .dctx-field--full { grid-column: auto; }
}

/* XO official-home visual system. */
body.home { background:#fff; color:#111; }
body.home .site-content, body.home .col-full { max-width:none; margin:0; padding:0; }
body.home .dctx-site-header { background:rgba(255,255,255,.94); border-bottom:1px solid #e8e8e8; }
body.home .dctx-header-inner { max-width:1480px; min-height:76px; }
body.home .dctx-brand img { width:78px; max-width:78px; max-height:34px; object-fit:contain; }
body.home .dctx-primary-nav a { font-size:13px; text-transform:uppercase; }
.xo-home { overflow:hidden; font-family:Arial,Helvetica,sans-serif; }
.xo-band { padding:88px max(5vw,24px); }
.xo-wrap { max-width:1440px; margin:auto; }
.xo-hero { height:min(82vh,850px); min-height:620px; margin-top:0; background:#111; }
.xo-hero video { width:100%; height:100%; object-fit:cover; }
.xo-shop { text-align:center; }
.xo-shop h1,.xo-videos h2,.xo-reviews h2,.xo-faq>h2,.xo-section-title h2 { margin:0 0 54px; font-size:clamp(30px,3.2vw,54px); font-weight:700; letter-spacing:0; text-transform:uppercase; }
.xo-categories { display:grid; grid-template-columns:repeat(8,1fr); gap:24px; }
.xo-category { display:block; text-decoration:none; font-size:13px; }
.xo-category-image { display:block; aspect-ratio:1; margin-bottom:18px; overflow:hidden; background:#f4f4f4; }
.xo-category-image img { width:100%; height:100%; object-fit:contain; transition:transform .35s ease; }
.xo-category:hover img { transform:scale(1.06); }
.xo-empty { background:linear-gradient(135deg,#f7f7f7,#e5e5e5); }
.xo-feature { max-width:1600px; min-height:650px; margin:auto; display:grid; grid-template-columns:42% 58%; align-items:stretch; padding-top:0; padding-bottom:0; background:#f2f2f2; }
.xo-feature-copy { display:flex; flex-direction:column; justify-content:center; padding:70px; }
.xo-kicker { color:#d71920; font-weight:700; }
.xo-feature h2 { margin:12px 0 35px; font-size:clamp(38px,4vw,66px); line-height:1.05; letter-spacing:0; }
.xo-feature>img { width:100%; height:100%; min-height:650px; object-fit:cover; }
.xo-link,.xo-section-title a { font-size:13px; font-weight:700; text-decoration:none; }
.xo-link span,.xo-section-title span,.xo-contact span { margin-left:14px; color:#d71920; }
.xo-videos { max-width:1540px; margin:auto; text-align:center; }
.xo-videos h2 { text-transform:lowercase; }
.xo-video-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.xo-video-grid video { width:100%; aspect-ratio:9/13; object-fit:cover; background:#111; }
.xo-stats { display:grid; grid-template-columns:repeat(3,1fr); background:#0d0d0d; color:#fff; }
.xo-stats div { min-height:240px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-right:1px solid #333; }
.xo-stats div:last-child { border:0; }
.xo-stats strong { font-size:clamp(44px,5vw,80px); line-height:1; }
.xo-stats span { margin-top:18px; font-size:16px; }
.xo-products { max-width:1540px; margin:auto; }
.xo-section-title { display:flex; align-items:center; justify-content:space-between; }
.xo-product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:28px 20px; }
.xo-product { text-decoration:none; }
.xo-product>span { display:block; aspect-ratio:1; overflow:hidden; background:#f5f5f5; }
.xo-product img { width:100%; height:100%; object-fit:contain; transition:transform .35s ease; }
.xo-product:hover img { transform:scale(1.04); }
.xo-product h3 { min-height:44px; margin:17px 0 8px; font-size:15px; line-height:1.45; }
.xo-product small { color:#777; font-weight:700; }
.xo-reviews { background:#f5f5f5; text-align:center; }
.xo-review-grid { max-width:1440px; margin:auto; display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.xo-review-grid article { background:#fff; padding-bottom:28px; text-align:left; }
.xo-review-grid img { width:100%; aspect-ratio:1; object-fit:cover; }
.xo-review-grid h3,.xo-review-grid p { margin-left:24px; margin-right:24px; }
.xo-review-grid h3 { margin-top:22px; }
.xo-review-grid p { color:#666; line-height:1.65; }
.xo-faq { max-width:1100px; margin:auto; }
.xo-faq details { border-top:1px solid #ddd; }
.xo-faq details:last-child { border-bottom:1px solid #ddd; }
.xo-faq summary { padding:25px 0; cursor:pointer; font-size:20px; font-weight:700; }
.xo-faq p { max-width:850px; margin:0 0 25px; color:#666; line-height:1.7; }
.xo-contact { min-height:320px; padding:70px max(5vw,24px); display:flex; align-items:center; justify-content:space-between; gap:30px; background:#d71920; color:#fff; }
.xo-contact p { font-weight:700; }
.xo-contact h2 { margin:10px 0 0; color:#fff; font-size:clamp(38px,5vw,72px); }
.xo-contact a { padding:18px 25px; border:1px solid #fff; color:#fff; font-weight:700; text-decoration:none; }
.xo-contact span { color:#fff; }
@media(max-width:980px){.xo-categories{grid-template-columns:repeat(4,1fr)}.xo-feature{grid-template-columns:1fr}.xo-feature-copy{padding:60px 30px}.xo-feature>img{min-height:440px}.xo-video-grid,.xo-product-grid,.xo-review-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.xo-band{padding:60px 18px}.xo-hero{height:68vh;min-height:520px}.xo-categories{grid-template-columns:repeat(2,1fr);gap:18px}.xo-shop h1,.xo-videos h2,.xo-reviews h2,.xo-faq>h2,.xo-section-title h2{margin-bottom:34px}.xo-feature{padding:0}.xo-feature>img{min-height:320px}.xo-video-grid{gap:10px}.xo-stats{grid-template-columns:1fr}.xo-stats div{min-height:170px;border-right:0;border-bottom:1px solid #333}.xo-product-grid,.xo-review-grid{grid-template-columns:1fr 1fr;gap:18px 10px}.xo-review-grid{grid-template-columns:1fr}.xo-section-title,.xo-contact{align-items:flex-start;flex-direction:column}.xo-contact{min-height:360px;justify-content:center}.xo-product h3{font-size:13px}}
