/*
Theme Name: World of Sports Marketplace
Theme URI: https://worldofsportgroup.com/
Author: World of Sport Group
Author URI: https://worldofsportgroup.com/
Description: ธีม WooCommerce โทน World of Sports (teal/gold) เลย์เอาต์ marketplace คล้าย Shopee — พร้อมติดตั้งบนโฮสต์จริง / Plesk
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: world-of-sports
Tags: e-commerce, custom-menu, translation-ready, woocommerce
*/


    :root {
      --bg: #f2f6f6;
      --ink: #0f2a2b;
      --ink-soft: #4b6367;
      --line: #d5e2e2;
      --teal: #01787b;
      --teal-light: #0ea1a0;
      --teal-dark: #014c4e;
      --teal-soft: #e3f2f1;
      --gold: #d98f2b;
      --white: #ffffff;
      --shadow: 0 12px 40px rgba(1, 76, 78, 0.12);
      --radius: 14px;
      --max: 1180px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0 }
    html { scroll-behavior: smooth }
    body {
      font-family: "Anuphan", sans-serif;
      color: var(--ink);
      background: var(--bg);
      line-height: 1.55;
    }
    img { max-width: 100%; display: block }
    a { color: inherit; text-decoration: none }
    button, input { font: inherit }

    .container {
      width: min(100% - 2rem, var(--max));
      margin-inline: auto;
    }

    /* Top bar */
    .topbar {
      background: var(--teal-dark);
      color: #d7ecec;
      font-size: 0.82rem;
      padding: 0.45rem 0;
    }
    .topbar .container {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .topbar a:hover { color: #fff }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(14px);
      background: rgba(242, 246, 246, 0.88);
      border-bottom: 1px solid rgba(213, 226, 226, 0.8);
    }
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      min-height: 72px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .brand-mark {
      width: 46px;
      height: 46px;
      border-radius: 12px;
      background:
        radial-gradient(circle at 30% 30%, #2ec4c1, transparent 45%),
        linear-gradient(145deg, var(--teal-light), var(--teal-dark));
      display: grid;
      place-items: center;
      color: #fff;
      font-family: "Oswald", sans-serif;
      font-weight: 700;
      letter-spacing: 0.02em;
      font-size: 0.95rem;
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
    }
    .brand-text strong {
      display: block;
      font-family: "Oswald", sans-serif;
      font-size: 1.15rem;
      letter-spacing: 0.04em;
      line-height: 1.1;
      text-transform: uppercase;
    }
    .brand-text span {
      font-size: 0.78rem;
      color: var(--ink-soft);
    }
    .nav-links {
      display: flex;
      gap: 1.35rem;
      align-items: center;
      font-weight: 500;
      font-size: 0.95rem;
    }
    .nav-links a { color: var(--ink-soft) }
    .nav-links a:hover { color: var(--teal) }
    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--teal);
      color: #fff !important;
      padding: 0.65rem 1rem;
      border-radius: 10px;
      font-weight: 600;
      transition: transform 0.2s ease, background 0.2s ease;
    }
    .nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px) }
    .menu-toggle {
      display: none;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: 10px;
      padding: 0.55rem 0.75rem;
      cursor: pointer;
    }

    /* Hero — one composition, brand first, full-bleed */
    .hero {
      position: relative;
      min-height: min(92vh, 820px);
      display: grid;
      align-items: end;
      overflow: hidden;
      color: #fff;
      isolation: isolate;
    }
    .hero-media {
      position: absolute;
      inset: 0;
      z-index: -2;
      background:
        linear-gradient(115deg, rgba(1, 76, 78, 0.88) 8%, rgba(1, 120, 123, 0.55) 48%, rgba(15, 42, 43, 0.35) 100%),
        url("https://images.unsplash.com/photo-1574629810360-7efbbe195eb0?auto=format&fit=crop&w=1920&q=80")
          center / cover no-repeat;
      transform: scale(1.04);
      animation: heroZoom 18s ease-in-out infinite alternate;
    }
    .hero-grain {
      position: absolute;
      inset: 0;
      z-index: -1;
      opacity: 0.18;
      background-image: radial-gradient(rgba(255,255,255,0.25) 0.6px, transparent 0.6px);
      background-size: 3px 3px;
      pointer-events: none;
    }
    .hero-inner {
      width: min(100% - 2rem, var(--max));
      margin: 0 auto 4.5rem;
      max-width: 640px;
      animation: riseIn 0.9s ease both;
    }
    .hero-brand {
      font-family: "Oswald", sans-serif;
      font-size: clamp(2.8rem, 8vw, 5.2rem);
      line-height: 0.92;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      margin-bottom: 1rem;
      text-shadow: 0 8px 28px rgba(0,0,0,0.25);
    }
    .hero-brand em {
      font-style: normal;
      color: #f0c67a;
      display: block;
    }
    .hero h1 {
      font-size: clamp(1.15rem, 2.4vw, 1.45rem);
      font-weight: 600;
      margin-bottom: 0.75rem;
      max-width: 28ch;
    }
    .hero p {
      color: rgba(255,255,255,0.88);
      margin-bottom: 1.5rem;
      max-width: 38ch;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.85rem 1.25rem;
      border-radius: 10px;
      font-weight: 600;
      border: 0;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .btn:hover { transform: translateY(-2px) }
    .btn-primary { background: var(--gold); color: #1a1205 }
    .btn-primary:hover { background: #e6a33f }
    .btn-ghost {
      background: rgba(255,255,255,0.12);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.35);
      backdrop-filter: blur(8px);
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.2) }
    .btn-solid { background: var(--teal); color: #fff }
    .btn-solid:hover { background: var(--teal-dark) }
    .btn-outline {
      background: transparent;
      color: var(--teal-dark);
      border: 1px solid var(--teal);
    }

    /* Sections */
    section { padding: 4.5rem 0 }
    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 1rem;
      margin-bottom: 1.75rem;
      flex-wrap: wrap;
    }
    .section-head h2 {
      font-family: "Oswald", sans-serif;
      font-size: clamp(1.7rem, 3vw, 2.2rem);
      letter-spacing: 0.03em;
      text-transform: uppercase;
      line-height: 1.1;
    }
    .section-head p { color: var(--ink-soft); max-width: 36ch }
    .link-more {
      color: var(--teal);
      font-weight: 600;
      white-space: nowrap;
    }
    .link-more:hover { text-decoration: underline }

    /* Category strip */
    .cats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    .cat {
      position: relative;
      min-height: 180px;
      border-radius: var(--radius);
      overflow: hidden;
      color: #fff;
      isolation: isolate;
      transition: transform 0.25s ease;
    }
    .cat:hover { transform: translateY(-4px) }
    .cat::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(180deg, transparent 20%, rgba(1, 76, 78, 0.92) 100%),
        var(--cat-img) center / cover no-repeat;
      transition: transform 0.45s ease;
    }
    .cat:hover::before { transform: scale(1.06) }
    .cat span {
      position: absolute;
      left: 1rem;
      right: 1rem;
      bottom: 1rem;
      font-weight: 700;
      font-size: 1.05rem;
    }

    /* Product grid — interaction containers only */
    .product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    .product {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .product:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
    }
    .product-media {
      aspect-ratio: 1;
      background: linear-gradient(145deg, #dfecec, #c5dada);
      position: relative;
      overflow: hidden;
    }
    .product-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .product:hover .product-media img { transform: scale(1.05) }
    .badge {
      position: absolute;
      top: 0.75rem;
      left: 0.75rem;
      background: var(--gold);
      color: #1a1205;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.25rem 0.5rem;
      border-radius: 6px;
    }
    .product-body { padding: 0.95rem 1rem 1.15rem }
    .product-body h3 {
      font-size: 0.98rem;
      font-weight: 600;
      margin-bottom: 0.35rem;
      min-height: 2.6em;
    }
    .price {
      color: var(--teal-dark);
      font-weight: 700;
    }
    .price s {
      color: var(--ink-soft);
      font-weight: 500;
      margin-left: 0.35rem;
      font-size: 0.88rem;
    }

    /* Services band */
    .services {
      background:
        linear-gradient(120deg, var(--teal-dark), var(--teal) 55%, #0a9594);
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .services::after {
      content: "";
      position: absolute;
      width: 420px;
      height: 420px;
      right: -80px;
      top: -100px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(217, 143, 43, 0.28), transparent 65%);
      pointer-events: none;
    }
    .services-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 2rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }
    .services h2 {
      font-family: "Oswald", sans-serif;
      font-size: clamp(2rem, 4vw, 3rem);
      text-transform: uppercase;
      letter-spacing: 0.03em;
      line-height: 1.05;
      margin-bottom: 0.85rem;
    }
    .services p { color: rgba(255,255,255,0.88); margin-bottom: 1.25rem; max-width: 42ch }
    .service-list {
      display: grid;
      gap: 0.85rem;
    }
    .service-item {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 12px;
      padding: 1rem 1.1rem;
      backdrop-filter: blur(6px);
    }
    .service-item strong {
      display: block;
      margin-bottom: 0.2rem;
      font-size: 1.05rem;
    }
    .service-item span { color: rgba(255,255,255,0.82); font-size: 0.92rem }

    /* Why / trust */
    .trust {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    .trust-item {
      padding: 1.25rem 1rem;
      border-top: 3px solid var(--teal);
    }
    .trust-item strong {
      display: block;
      font-size: 1.05rem;
      margin-bottom: 0.3rem;
    }
    .trust-item p { color: var(--ink-soft); font-size: 0.92rem }

    /* Reviews */
    .reviews {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    .review {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1.25rem;
    }
    .review p {
      color: var(--ink-soft);
      margin-bottom: 1rem;
      font-size: 0.95rem;
    }
    .review strong { display: block }
    .review span { color: var(--ink-soft); font-size: 0.85rem }

    /* FAQ */
    .faq details {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 1rem 1.1rem;
      margin-bottom: 0.75rem;
    }
    .faq summary {
      cursor: pointer;
      font-weight: 600;
      list-style: none;
    }
    .faq summary::-webkit-details-marker { display: none }
    .faq details[open] summary { color: var(--teal-dark); margin-bottom: 0.5rem }
    .faq details p { color: var(--ink-soft); font-size: 0.95rem }

    /* CTA strip */
    .cta-strip {
      background:
        linear-gradient(105deg, rgba(1,76,78,0.92), rgba(1,120,123,0.75)),
        url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?auto=format&fit=crop&w=1600&q=80")
          center / cover;
      color: #fff;
      border-radius: 20px;
      padding: 2.5rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .cta-strip h2 {
      font-family: "Oswald", sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      line-height: 1.1;
      margin-bottom: 0.4rem;
    }

    /* Visitor stats */
    .visitor-stats {
      padding: 2.5rem 0 0;
    }
    .visitor-stats-panel {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 1.35rem 1.25rem;
      display: grid;
      grid-template-columns: 1.2fr repeat(3, 1fr);
      gap: 1rem;
      align-items: center;
      box-shadow: 0 8px 28px rgba(1, 76, 78, 0.06);
    }
    .visitor-stats-intro h2 {
      font-family: "Oswald", sans-serif;
      font-size: 1.35rem;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      line-height: 1.15;
      margin-bottom: 0.25rem;
    }
    .visitor-stats-intro p {
      color: var(--ink-soft);
      font-size: 0.9rem;
    }
    .visitor-stat {
      text-align: center;
      padding: 0.35rem 0.5rem;
      border-left: 1px solid var(--line);
    }
    .visitor-stat strong {
      display: block;
      font-family: "Oswald", sans-serif;
      font-size: clamp(1.55rem, 3vw, 2rem);
      color: var(--teal-dark);
      letter-spacing: 0.02em;
      line-height: 1;
      margin-bottom: 0.35rem;
      font-variant-numeric: tabular-nums;
    }
    .visitor-stat span {
      color: var(--ink-soft);
      font-size: 0.85rem;
      font-weight: 500;
    }
    .visitor-stat .dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #22a06b;
      margin-right: 0.35rem;
      box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.45);
      animation: pulseOnline 1.8s ease infinite;
      vertical-align: middle;
    }
    @keyframes pulseOnline {
      0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.45) }
      70% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0) }
      100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0) }
    }

    /* Footer */
    .footer {
      background: #0c2223;
      color: #c9dddd;
      padding: 3.5rem 0 1.5rem;
      margin-top: 2rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 2rem;
      margin-bottom: 2rem;
    }
    .footer h3 {
      font-family: "Oswald", sans-serif;
      color: #fff;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 0.85rem;
    }
    .footer p, .footer li { font-size: 0.92rem; margin-bottom: 0.45rem }
    .footer ul { list-style: none }
    .footer a:hover { color: #fff }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 1rem;
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      font-size: 0.85rem;
    }

    /* Reveal motion */
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    @keyframes heroZoom {
      from { transform: scale(1.04) }
      to { transform: scale(1.12) }
    }
    @keyframes riseIn {
      from { opacity: 0; transform: translateY(24px) }
      to { opacity: 1; transform: none }
    }

    @media (max-width: 960px) {
      .nav-links { display: none }
      .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(242,246,246,0.98);
        border-bottom: 1px solid var(--line);
        padding: 1rem;
        align-items: stretch;
      }
      .menu-toggle { display: inline-flex }
      .cats, .product-grid { grid-template-columns: repeat(2, 1fr) }
      .services-grid, .trust, .reviews, .footer-grid { grid-template-columns: 1fr }
      .visitor-stats-panel { grid-template-columns: 1fr }
      .visitor-stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 0.85rem; text-align: left }
      .hero { min-height: 78vh; align-items: center }
      .hero-inner { margin-bottom: 0; padding-block: 5rem 3rem }
    }

    @media (max-width: 560px) {
      .cats, .product-grid { grid-template-columns: 1fr }
      .hero-brand { font-size: 2.6rem }
    }
  
/* —— WooCommerce integration —— */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--teal) }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important }
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.95rem 1rem 0.35rem;
  color: var(--ink);
}
.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 1rem;
  color: var(--teal-dark) !important;
  font-weight: 700;
}
.woocommerce ul.products li.product .price del {
  color: var(--ink-soft);
  font-weight: 500;
  opacity: 1;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button {
  background: var(--gold) !important;
  color: #1a1205 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  border: 0 !important;
  padding: 0.75rem 1.1rem !important;
  margin: 0.75rem 1rem 1.1rem !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: #e6a33f !important;
}
.woocommerce span.onsale {
  background: var(--gold) !important;
  color: #1a1205 !important;
  border-radius: 6px !important;
  font-weight: 700;
  line-height: 1.8;
  min-height: auto;
  min-width: auto;
  padding: 0.25rem 0.5rem;
}
.woocommerce div.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.woocommerce div.product .product_title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--teal-dark) !important;
  font-weight: 700;
  font-size: 1.35rem;
}
.site-main-pad {
  padding: 2.5rem 0 4rem;
}
.woocommerce-page .site-main-pad h1.page-title,
.woocommerce .page-title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.header { position: sticky }
.header .nav { position: relative }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--teal) !important;
  border-radius: 10px;
}
.woocommerce-message::before { color: var(--teal) !important }
.cart-link {
  color: var(--ink-soft);
  font-weight: 500;
}
.cart-link:hover { color: var(--teal) }

.header-mp.is-scrolled {
  box-shadow: 0 6px 20px rgba(1, 76, 78, 0.1);
}

.mp-cat-rail.is-dragging {
  cursor: grabbing;
  user-select: none;
}

@media (max-width: 960px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 560px) {
  .woocommerce ul.products { grid-template-columns: 1fr }
}
