/*
Theme Name: WinMarket BlueYellow Onepage
Theme URI: https://example.com/
Author: Win Marketing Service
Author URI: https://example.com/
Description: ธีมโทนขาว-น้ำเงิน-เหลือง แบบ One Page รองรับ WooCommerce สำหรับบริษัท วิน มาร์เก็ตติ้ง เซอร์วิส จำกัด ร้านขายอุปกรณ์คอมพิวเตอร์
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: winmarket-blueyellow
*/
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product
 {
  
    width: 100% !important;
    margin-left: 0;
}

/* ลบ ::before / ::after ที่ WooCommerce ใส่มา */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header & nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.site-description {
  font-size: 0.8rem;
  color: #64748b;
}

.site-nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
}

.site-nav a:hover {
  color: #2563eb;
}

/* Mobile menu */
@media (max-width: 768px) {
  .site-nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    min-width: 180px;
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
}

/* Layout */
.section {
  padding: 5.5rem 1.5rem 4.5rem;
}

.section-inner,
.site-main {
  max-width: 1200px;
  margin: 0 auto;
}

.site-main {
  padding: 5.5rem 1.5rem 4.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #facc15;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: #64748b;
}

/* Hero */
.hero {
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  background:
    radial-gradient(circle at top left, #facc15 0, #dbeafe 28%, #eff6ff 60%),
    linear-gradient(135deg, #dbeafe, #fef9c3);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,.10), rgba(250,204,21,.10));
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #facc15, #eab308);
}

.hero-text {
  color: #1e293b;
  margin-bottom: 1.25rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.hero-list-icon {
  margin-top: 0.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #facc15);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
}

.hero-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Promo banner */
.hero-promo {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), #facc15);
  color: #fefce8;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-promo strong {
  font-weight: 800;
}

/* Hero-right card */
.hero-media {
  position: relative;
}

.hero-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(219,234,254,0.96), rgba(254,249,195,0.96));
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.hero-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-metric {
  flex: 1;
}

.hero-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.hero-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1d4ed8;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.75rem;
}

.hero-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-stack-item {
  padding: 0.6rem 0.7rem;
  border-radius: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.78rem;
  text-align: center;
}

.hero-stack-label {
  display: block;
  font-weight: 600;
}

.hero-stack-sub {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.7rem;
  color: #64748b;
}

.hero-ribbon {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.82);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.hero-ribbon strong {
  color: #facc15;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-media {
    order: -1;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
}

.about-highlight {
  padding: 1.4rem;
  border-radius: 1.25rem;
  background: #eff6ff;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.about-highlight-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.about-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2563eb;
  font-weight: 700;
}

.service-title {
  font-weight: 600;
}

.service-text {
  font-size: 0.9rem;
  color: #64748b;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pricing */
.pricing-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border-radius: 1.5rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}

.pricing-card.featured {
  border-width: 2px;
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.22);
}

.pricing-badge {
  position: absolute;
  top: 1.05rem;
  right: 1.2rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  color: #92400e;
  font-weight: 700;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-for {
  font-size: 0.85rem;
  color: #64748b;
}

.pricing-price {
  font-size: 1.6rem;
  font-weight: 700;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}

.pricing-list li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-footer-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 992px) {
  .pricing-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .pricing-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shop block front page */
.home-shop-grid {
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: #eff6ff;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-form-grid .full {
  grid-column: span 2;
}

.contact-form-grid label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.25rem;
  display: block;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
}

.contact-form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form-grid .full {
    grid-column: span 1;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.5rem 1.5rem 2.5rem;
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #e2e8f0;
}

/* WooCommerce styling */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #facc15);
  color: #ffffff;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  filter: brightness(1.05);
  opacity: 0.96;
}

.woocommerce span.onsale {
  border-radius: 999px;
  background: #facc15;
  color: #713f12;
  padding: 0.25rem 0.6rem;
  min-height: 0;
  min-width: 0;
  line-height: 1.2;
}

/* Shop grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  padding-left: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0;
  border-radius: 1.25rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.woocommerce ul.products li.product .price {
  font-weight: 600;
  color: #b45309;
  margin-bottom: 0.5rem;
}

.woocommerce ul.products li.product a.button {
  margin-top: auto;
}

/* Single product */
.woocommerce div.product {
  max-width: 1000px;
  margin: 0 auto;
}

.woocommerce div.product .product_title {
  font-size: 1.5rem;
  font-weight: 700;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.3rem;
  color: #b45309;
}

/* Cart / Checkout / My Account */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order {
  border-radius: 1rem;
  padding: 1.3rem;
  background: #f9fafb;
}

/* Generic page */
.page-title-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-title-wrap h1 {
  font-size: 1.9rem;
  margin: 0;
}

.page-title-wrap p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
}
