/*
Theme Name: KnowToAll Shop
Theme URI: https://example.com/knowtoall-shop
Author: KnowToAll
Author URI: https://example.com
Description: A fast WooCommerce storefront theme prepared for Hostinger WordPress hosting.
Version: 1.3.14
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knowtoall-shop
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --kt-bg: #5f4164;
  --kt-surface: #fbf2f8;
  --kt-ink: #302a35;
  --kt-muted: #6c6270;
  --kt-line: #e5cedf;
  --kt-brand: #efa8c2;
  --kt-brand-dark: #d684a7;
  --kt-accent: #c2b0e4;
  --kt-accent-soft: #eee0f4;
  --kt-powder: #f4c8d9;
  --kt-gray-pink: #ecd8e6;
  --kt-soft: #f5e7f0;
  --kt-radius: 8px;
  --kt-shadow: 0 18px 42px rgba(38, 22, 45, 0.24);
  --kt-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--kt-ink);
  background: var(--kt-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--kt-brand);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(95, 65, 100, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 205, 226, 0.24);
  color: #fff;
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.custom-logo-link img {
  width: auto;
  max-height: 44px;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.site-description {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.3;
}

.primary-navigation {
  justify-self: end;
}

.primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.primary-navigation a {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

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

.icon-link,
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.icon-link svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--kt-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  position: absolute;
  top: -4px;
  right: -3px;
}

.menu-toggle {
  display: none;
}

.site-main {
  flex: 1;
}

.container {
  max-width: var(--kt-max);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section:not(.product-band):not(.custom-band):not(.scene-section):not(.cta-band) .section-heading {
  color: #fff;
}

.section:not(.product-band):not(.custom-band):not(.scene-section):not(.cta-band) .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  color: var(--kt-brand);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 14px;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 5.25rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  color: #625d64;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  max-width: 680px;
}

.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order {
  border: 0;
  border-radius: 999px;
  background: var(--kt-brand);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #payment #place_order:hover {
  background: var(--kt-brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(185, 107, 134, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 58px 0 36px;
}

.hero-minimal {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(95, 65, 100, 0.92), rgba(95, 65, 100, 0.66)),
    linear-gradient(135deg, #5f4164 0%, #8b5d8b 50%, #756095 100%);
}

.hero-minimal .eyebrow {
  color: #ffd0df;
}

.hero-minimal .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 46px;
  align-items: stretch;
}

.hero-copy {
  padding: 0;
  align-self: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  position: relative;
  min-height: 590px;
  border-radius: var(--kt-radius);
  overflow: hidden;
  box-shadow: var(--kt-shadow);
  background: linear-gradient(135deg, #8b5d8b, #756095);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 260px;
  padding: 16px;
  border-radius: var(--kt-radius);
  background: rgba(251, 242, 248, 0.94);
  color: var(--kt-ink);
  box-shadow: 0 18px 32px rgba(122, 103, 118, 0.14);
}

.hero-badge strong {
  display: block;
  margin-bottom: 4px;
  color: var(--kt-ink);
}

.hero-badge span {
  color: var(--kt-muted);
  font-size: 0.92rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.feature {
  padding: 18px;
  border: 1px solid var(--kt-line);
  border-radius: var(--kt-radius);
  background: rgba(251, 242, 248, 0.92);
  color: var(--kt-ink);
}

.feature strong {
  display: block;
  margin-bottom: 5px;
}

.feature span {
  color: var(--kt-muted);
  font-size: 0.92rem;
}

.category-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid-nine {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.trust-item {
  border: 1px solid var(--kt-line);
  border-radius: var(--kt-radius);
  background: rgba(251, 242, 248, 0.94);
  color: var(--kt-ink);
  overflow: hidden;
}

.category-tile {
  min-height: 240px;
  position: relative;
}

.category-tile-compact {
  min-height: 205px;
  aspect-ratio: 1.32 / 1;
}

.category-tile img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.category-tile-compact img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.category-tile-content {
  position: absolute;
  inset: auto 14px 14px;
  padding: 14px;
  border-radius: var(--kt-radius);
  background: rgba(251, 242, 248, 0.96);
  box-shadow: 0 14px 28px rgba(122, 103, 118, 0.12);
}

.category-tile-content h3 {
  margin-bottom: 4px;
}

.category-tile-content span,
.trust-item p {
  color: var(--kt-muted);
  font-size: 0.94rem;
}

.product-band {
  background: linear-gradient(135deg, #f1ddea, #e7ddf5);
  border-top: 1px solid #e4cada;
  border-bottom: 1px solid #d8cce8;
}

.custom-band {
  background: linear-gradient(135deg, #9a6695, #786493);
  color: #fff;
}

.custom-band .eyebrow {
  color: #ffd0df;
}

.custom-band p {
  color: rgba(255, 255, 255, 0.78);
}

.custom-card {
  color: var(--kt-ink);
}

.custom-card li {
  color: #655c68;
}

.custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.custom-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--kt-radius);
  background: rgba(251, 242, 248, 0.9);
  box-shadow: 0 18px 36px rgba(122, 103, 118, 0.12);
}

.custom-card ul {
  margin: 0;
  padding-left: 20px;
}

.custom-card li + li {
  margin-top: 10px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.process-steps span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(251, 242, 248, 0.88);
  color: var(--kt-ink);
  font-weight: 800;
}

.scene-section {
  background: #5f4164;
  color: #fff;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scene-item {
  min-height: 190px;
  border-radius: var(--kt-radius);
  border: 1px solid var(--kt-line);
  padding: 24px;
  background: linear-gradient(135deg, #fbf0f7, #eee0f4);
  color: var(--kt-ink);
}

.scene-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.scene-item p {
  color: var(--kt-muted);
}

.trust-item {
  padding: 24px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--kt-brand);
  background: linear-gradient(135deg, #f4c8d9, #eee0f4);
  margin-bottom: 16px;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.cta-band {
  background: linear-gradient(135deg, #9a6695, #786493);
  color: #fff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: #776978;
}

.footer-inner {
  max-width: var(--kt-max);
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li + li {
  margin-top: 8px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 22px;
}

.kt-woocommerce-main {
  min-height: 50vh;
}

.page-title {
  margin-bottom: 24px;
}

.entry-content {
  background: var(--kt-surface);
  border: 1px solid var(--kt-line);
  border-radius: var(--kt-radius);
  padding: clamp(22px, 4vw, 42px);
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  z-index: 1000;
}

@media (max-width: 1320px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-navigation {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }

  .primary-navigation a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--kt-line);
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .feature-row,
  .custom-grid,
  .scene-grid,
  .trust-grid,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-media,
  .hero-media img {
    min-height: 500px;
  }

  .cta-inner {
    display: grid;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .site-description {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-media {
    display: none;
  }

  .category-grid-nine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-tile-compact {
    min-height: 126px;
    aspect-ratio: 0.88 / 1;
  }

  .category-tile-compact .category-tile-content {
    inset: auto 5px 7px;
    padding: 8px 5px;
    text-align: center;
  }

  .category-tile-content h3 {
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .category-tile-content span {
    display: none;
  }
}
