
/* ========================================
   01) SHARED / GLOBAL STYLES
======================================== */
        .nav-btn,
.tab-calc,
.shape-tab,
.mobile-menu-links button,
.mobile-icon-btn {
    transition:
      transform 0.18s ease,
      background-color 0.22s ease,
      color 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease,
      opacity 0.22s ease;
}

.nav-btn:active,
.tab-calc:active,
.shape-tab:active,
.mobile-menu-links button:active,
.mobile-icon-btn:active {
    transform: scale(0.97);
}

.tab-calc:hover,
.shape-tab:hover {
    transform: translateY(-1px);
}

.mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu-overlay.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-links button {
    position: relative;
}

.mobile-menu-links button:hover {
    color: #A96A00;
    transform: translateY(-1px);
}

.mobile-menu-links button::after {
    content: "";
    display: block;
    width: 0;
    height: 1.5px;
    margin: 6px auto 0;
    background: rgba(244, 166, 28, 0.55);
    transition: width 0.22s ease;
}

.mobile-menu-links button:hover::after {
    width: 42px;
}

        :root {
      --brand-orange: #F4A61C;
      --brand-orange-soft: #FFF3DD;
      --brand-orange-line: #E8C98C;
      --brand-orange-deep: #A96A00;

      --bg-main: #F7F7F5;
      --bg-card: #FCFBF8;
      --bg-soft: #F2F0EA;

      --text-main: #243544;
      --text-soft: #6F7B86;
      --line-soft: #E6DED0;
  }

        .material-slide {
      will-change: transform;
      transform: translateZ(0);
  }

  .material-slide img {
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
  }
        * { box-sizing: border-box; }

        /* 🟢 แก้จอกระตุก: ลบ overflow: hidden ออก ให้มือถือไถลื่น 100% */
        html, body {
            margin: 0; padding: 0; width: 100%;
            height: auto !important; min-height: 100vh;
            background-color: transparent;
            color: #333; font-family: 'Kanit', sans-serif;
            overflow-x: hidden !important; overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;}

        #main-scroll-wrapper {
      width: 100%;
      height: auto;
      position: relative;
      padding-bottom: 80px;
      overflow: visible;
  }

  /* ========================================
   02) DESKTOP SOCIAL FLOATING
======================================== */
  .social-floating {position: absolute;top: 20px;right: 24px;display: flex;align-items: center;gap: 10px;z-index: 1200;}

  .social-floating a {width: 44px;height: 44px;border-radius: 999px;background: #1f1f1f;color: #ffffff;display: inline-flex;align-items: center;justify-content: center;text-decoration: none;box-shadow: 0 6px 14px rgba(0,0,0,0.14);transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;}

  .social-floating a:hover {transform: translateY(-2px);background: #2b2b2b;box-shadow: 0 10px 18px rgba(0,0,0,0.18);}

  .social-floating i {font-size: 19px;line-height: 1;}

  .social-floating .line-icon {font-size: 11px;font-weight: 700;letter-spacing: 0.02em;}

  @media (max-width: 768px) {.social-floating {top: 14px;right: 16px;gap: 8px;}

      .social-floating a {width: 38px;height: 38px;}

      .social-floating i {font-size: 16px;}

      .social-floating .line-icon {font-size: 10px;}
  }
  .social-floating {position: absolute;top: 18px;right: 24px;display: flex;align-items: center;gap: 10px;z-index: 1200;}

  .social-floating a {
      width: 46px;
      height: 46px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      background: rgba(255, 252, 246, 0.96);
      border: 1px solid rgba(244, 166, 28, 0.22);
      box-shadow:
        0 8px 20px rgba(17, 24, 39, 0.06),
        inset 0 0 0 1px rgba(255,255,255,0.72);
      transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
  }

  .social-floating a:hover {transform: translateY(-2px);background: #fffaf1;border-color: rgba(244, 166, 28, 0.34);
      box-shadow:
        0 12px 24px rgba(17, 24, 39, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.85);
  }

  .social-floating a:active {transform: translateY(0);}

  .social-floating i,
  .social-floating .line-icon {line-height: 1;}

  .social-floating .facebook-icon {color: #1877F2;font-size: 18px;}

  .social-floating .instagram-icon {font-size: 18px;background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;}

  .social-floating .line-icon {font-size: 10px;font-weight: 800;letter-spacing: 0.04em;color: #06C755;}

  @media (max-width: 768px) {
      .social-floating {top: 14px;right: 16px;gap: 8px;}

      .social-floating a {width: 40px;height: 40px;}

      .social-floating .facebook-icon,
      .social-floating .instagram-icon {font-size: 16px;}

      .social-floating .line-icon {font-size: 9px;}
  }

/* ========================================
   03) DESKTOP HEADER / NAV
======================================== */
        .main-nav-wrap {position: sticky;top: 0;z-index: 999;max-width: 1180px;margin: 0 auto 22px;padding: 10px 18px 0;}

  .main-nav-wrap::before {
      content: "";
      position: absolute;
      inset: 0 8px auto 8px;
      height: calc(100% + 6px);
      border-radius: 22px;
      background: rgba(255, 250, 241, 0.18);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: 0 2px 8px rgba(17, 24, 39, 0.03);
      pointer-events: none;
      z-index: 0;
  }

  .main-nav {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      padding: 10px 0;
  }


  .main-nav { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0;}

  .nav-btn {
      position: relative;
      min-width: 0;
      padding: 14px 26px;
      border: 1.5px solid rgba(248, 180, 44, 0.34);
      background: rgba(255,255,255,0.90);
      color: #243544;
      border-radius: 999px;
      cursor: pointer;
      font-family: 'Kanit', sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: -0.01em;
      box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04), inset 0 0 0 1px rgba(255,255,255,0.60); transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;}

  .nav-btn:hover {
      background: linear-gradient(180deg, #fffaf1 0%, #fff4de 100%);
      color: #a36a00;
      border-color: rgba(248, 180, 44, 0.56);
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.05);
      transform: none;
  }

  .nav-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(248, 180, 44, 0.10), 0 2px 8px rgba(17, 24, 39, 0.05);}

  .nav-btn.active { background: linear-gradient(180deg, #F8B42C 0%, #efaa22 100%); color: #ffffff; border-color: rgba(232, 159, 0, 0.58); box-shadow: 0 14px 30px rgba(248, 180, 44, 0.28),0 6px 14px rgba(17, 24, 39, 0.08);}

  .nav-btn.active:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f9bc3f 0%, #f1ac25 100%);
    color: #ffffff;}

  .nav-btn::after { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);}

/* ========================================
   04) TRACK SECTION
======================================== */
        .yellow-banner { background-color: #F8B42C; padding: 20px 15px; margin-bottom: 25px; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; }
        .yellow-banner h1 { margin: 0; font-size: 20px; font-weight: 600; }
        .yellow-banner p { margin: 5px 0 0 0; font-size: 14px; font-weight: 400; }

        .tracking-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 24px; width: 90%; max-width: 400px; margin: 0 auto; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
        .tracking-input { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; text-align: center; font-size: 16px !important; font-weight: 700; color: #333; margin-bottom: 16px; font-family: 'Kanit', sans-serif; outline: none; transition: border 0.3s; touch-action: manipulation;}
        .tracking-input:focus { border-color: #fbb03b; }
        .btn-search { width: 100%; background-color: #fbb03b; color: white; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: 'Kanit', sans-serif; transition: background 0.3s; }
        .btn-search:hover { background-color: #e59c2f; }
        .helper-text { text-align: center; color: #888; font-size: 13px; font-weight: 500; margin-top: 12px; margin-bottom: 24px; }
        .result-box { border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; background-color: #fff; display: none; }
        .result-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed #ddd; }
        .result-row:nth-last-of-type(1) { border-bottom: none; padding-bottom: 20px; }
        .row-label { color: #555; font-size: 15px; font-weight: 600; }
        .row-value { color: #333; font-size: 15px; font-weight: 700; text-align: right; }
        .status-pill { background-color: #e0f5e9; color: #1a9c53; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; }
        .link-blue { color: #007bff; text-decoration: none; }
        .link-blue:hover { text-decoration: underline; }
        .btn-line-contact { width: 100%; background-color: #00c300; color: white; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: 'Kanit', sans-serif; transition: background 0.3s; display: block; text-align: center; text-decoration: none; }
        .btn-line-contact:hover { background-color: #00a600; }

        .divider-track { border-top: 1px dashed #ddd; max-width: 800px; margin: 25px auto 25px auto; width: 90%; }
        .slider-container { max-width: 800px; margin: 0 auto 30px auto; overflow: hidden; white-space: nowrap; }
        .slider-track { display: inline-block; animation: scroll 15s linear infinite; }
        .slider-track:hover { animation-play-state: paused; }
        .slider-track img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; margin: 0 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); vertical-align: middle; }
        @media (min-width: 600px) { .slider-track img { width: 200px; height: 200px; } }
        @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========================================
   05) CALCULATOR SECTION
======================================== */
        .calc-wrapper { width: 100%; max-width: 450px; margin: auto; padding: 0 10px; }
        .tabs-calc { display: flex; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); width: 100%; border: 1px solid #eee; }
        .tab-calc { flex: 1; text-align: center; padding: 12px 5px; font-size: 14px; font-weight: 500; cursor: pointer; color: #555; border-right: 1px solid #eee; background: #fff; transition: 0.2s; line-height: 1.3; }
        .tab-calc:last-child { border-right: none; }
        .tab-calc.active { background: #fef5e7; color: #d68910; font-weight: 600; }
        .card-calc { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 100%; border: 1px solid #eee; text-align: left;}
        .section-title { text-align: center; font-size: 15px; font-weight: 600; margin-bottom: 10px; color: #2c3e50;}
        .alert-text { text-align: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; min-height: 15px; color: #e74c3c;}

.calc-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.calc-type-selector::-webkit-scrollbar {
    display: none;
}

.calc-type-card {
    appearance: none;
    flex: 0 0 165px;
    border: 1px solid rgba(232, 201, 140, 0.85);
    border-radius: 20px;
    background: rgba(255,255,255,0.94);
    padding: 10px 10px 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(17,24,39,0.04);
    transition:
      transform 0.20s ease,
      box-shadow 0.20s ease,
      border-color 0.20s ease,
      background 0.20s ease,
      filter 0.20s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.calc-type-card:hover {
    transform: translateY(-1px);
    border-color: rgba(244,166,28,0.26);
    box-shadow: 0 10px 20px rgba(17,24,39,0.06);
}

.calc-type-card.is-active {
    border-color: rgba(232, 159, 0, 0.34);
    background: rgba(255,255,255,0.97);
    box-shadow:
      0 10px 22px rgba(17,24,39,0.06),
      0 4px 10px rgba(17,24,39,0.04);
    transform: translateY(-1px);
}

.calc-type-card.is-active .calc-type-card-title {
    color: #A96A00;
}

.calc-type-card.is-active .calc-type-card-body::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: rgba(244, 166, 28, 0.78);
    margin: 8px auto 0;
}

.calc-type-card.is-active .calc-type-card-media {
    background: rgba(255,255,255,0.96);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.calc-type-card:active {
    transform: scale(0.985);
}

.calc-type-card-media {
    height: 118px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.calc-type-card-media img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
    transition: transform 0.22s ease;
}

.calc-type-card-body {
    padding: 10px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 54px;
}

.calc-type-card-title {
    color: #243544;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
    text-align: center;
    transition: color 0.20s ease;
}

.calc-type-card-desc {
    display: block;
    margin-top: 4px;
    color: #6F7B86;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.calc-panel {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.calc-empty-state {
    margin-top: 4px;
    margin-bottom: 14px;
    border: 1px dashed rgba(244, 166, 28, 0.45);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(17,24,39,0.04);
}

.calc-empty-state.is-hidden {
    display: none;
}

.calc-empty-state-inner {
    max-width: 320px;
    margin: 0 auto;
}

.calc-empty-state-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.calc-empty-state-title {
    color: #243544;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.calc-empty-state-text {
    color: #6F7B86;
    font-size: 14px;
    line-height: 1.7;
}

.calc-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    height: auto;
    overflow: visible;
}

.calc-panel.is-active {
    display: block;
}

.sheets-card .section-title {
    margin-bottom: 12px;
}

.sheets-size-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.sheets-size-btn {
    border: 1px solid #ddd;
    background: #fafafa;
    color: #555;
    border-radius: 14px;
    min-height: 48px;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
      transform 0.18s ease,
      background 0.22s ease,
      color 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
}

.sheets-size-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(244,166,28,0.34);
}

.sheets-size-btn.is-active {
    background: #F8B42C;
    color: #ffffff;
    border-color: #F8B42C;
    box-shadow: 0 8px 18px rgba(248,180,44,0.20);
}

.sheets-preview-note {
    text-align: center;
    font-size: 13px;
    color: #6F7B86;
    line-height: 1.7;
    margin-top: 10px;
}

.sheets-hero {
    margin-bottom: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(244,166,28,0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
    box-shadow: 0 8px 20px rgba(17,24,39,0.04);
    text-align: center;
}

.sheets-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(36,53,68,0.08);
    color: #8e6004;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sheets-hero-title {
    margin: 0;
    color: #243544;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.sheets-section-block {
    margin-bottom: 16px;
    padding: 18px 16px;
    border: 1px solid #eee7d8;
    border-radius: 16px;
    background: #fffdf9;
}

.sheets-section-label {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #243544;
    margin-bottom: 14px;
    line-height: 1.25;
}

.sheets-section-block .input-row {
    gap: 12px;
    margin-bottom: 0;
}

.sheets-section-block .input-box label {
    margin-bottom: 8px;
    color: #5f6773;
    font-size: 13px;
    font-weight: 600;
}

.sheets-min-note {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #A96A00;
    background: #fff8eb;
    border: 1px dashed rgba(244,166,28,0.45);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 0;
}

.sheets-layout-card {
    margin-top: 16px;
    padding: 18px 16px;
    border: 1px solid #f2dfb4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ec 100%);
    text-align: center;
}

.sheets-layout-title {
    margin: 0 0 12px;
    color: #243544;
    font-size: 16px;
    font-weight: 700;
}

.sheets-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.sheets-summary-card {
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid #ece5d8;
    background: #ffffff;
    text-align: center;
}

.sheets-summary-card.soft {
    background: #faf8f3;
}

.sheets-summary-card.total {
    background: linear-gradient(180deg, #fff6e8 0%, #fffaf2 100%);
    border-color: rgba(244,166,28,0.34);
}

.sheets-summary-label {
    color: #5f6773;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sheets-summary-value {
    color: #243544;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.sheets-summary-value.primary {
    color: #d68910;
    font-size: 24px;
}

.sheets-summary-value.total {
    color: #27ae60;
    font-size: 32px;
}

.sheets-summary-sub {
    margin-top: 6px;
    color: #7a8592;
    font-size: 12px;
    line-height: 1.6;
}

.sheets-result-head {
    margin-bottom: 10px;
    text-align: center;
}

.sheets-result-title {
    color: #243544;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sheets-result-text {
    color: #6F7B86;
    font-size: 13px;
    line-height: 1.6;
}

.sheets-hero-text {
    display: none;
}

.sheets-summary-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sheets-summary-grid.compact {
    grid-template-columns: 1fr 1fr;
}

.sheets-summary-card.compact-main {
    grid-column: 1 / -1;
}

.sheets-summary-card .sheets-summary-value {
    font-size: 26px;
}

.sheets-summary-card.compact-main {
    grid-column: 1 / -1;
    padding: 18px 14px;
}

.sheets-summary-card.compact-main .sheets-summary-value.total {
    font-size: 34px;
}

.sheets-brief-meta {
    margin-top: 8px;
    color: #7a8592;
    font-size: 13px;
    line-height: 1.6;
}

.sheets-mini-note {
    margin-top: 8px;
    color: #7a8592;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.sheets-layout-preview {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eadfc9;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(17,24,39,0.05);
}

.sheets-layout-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.sheets-layout-note {
    margin-top: 10px;
    color: #7a8592;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sheets-summary-grid.compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sheets-summary-card.compact-main .sheets-summary-value.total {
        font-size: 30px;
    }
}

.sheets-summary-shell {
    margin-top: 8px;
}

.sheets-summary-main {
    padding: 22px 18px 18px;
    border-radius: 18px;
    border: 1px solid rgba(244,166,28,0.30);
    background: linear-gradient(180deg, #fff7ea 0%, #fffdf7 100%);
    text-align: center;
    box-shadow: 0 8px 18px rgba(17,24,39,0.04);
}

.sheets-summary-main-label {
    color: #243544;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sheets-summary-main-value {
    color: #27ae60;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.sheets-summary-main-meta {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    color: #6F7B86;
    font-size: 13px;
    line-height: 1.6;
}

.sheets-summary-main-meta span {

    white-space: nowrap;

}

.sheets-summary-main-meta strong {
    color: #243544;
    font-weight: 700;
}

.sheets-summary-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    margin-bottom: 12px;
}

.sheets-summary-mini {
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid #ece5d8;
    background: #ffffff;
    text-align: center;
}

.sheets-summary-mini-label {
    color: #6F7B86;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sheets-summary-mini-value {
    color: #243544;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .sheets-summary-main {
        padding: 20px 14px 16px;
        border-radius: 16px;
    }

    .sheets-summary-main-value {
        font-size: 32px;
    }

    .sheets-summary-subgrid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sheets-summary-mini-value {
        font-size: 22px;
    }

.sheets-summary-main-meta {
    margin-bottom: 8px;
    gap: 8px;
    font-size: 11px;
    flex-wrap: nowrap;
}
}

@media (max-width: 768px) {
    .sheets-hero {
    padding: 16px 14px 14px;
    border-radius: 16px;
}

    .sheets-hero-title {
    font-size: 18px;
}

.sheets-section-block {
    padding: 16px 14px;
    border-radius: 14px;
}

.sheets-section-label {
    font-size: 16px;
    margin-bottom: 12px;
}

.sheets-layout-card {
    padding: 16px 14px;
    border-radius: 16px;
}

    .sheets-summary-card {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .sheets-summary-value.primary {
        font-size: 22px;
    }

    .sheets-summary-value.total {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .sheets-size-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sheets-size-btn {
        min-height: 46px;
        font-size: 14px;
        border-radius: 12px;
    }
}

@media (min-width: 769px) {
    .calc-type-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .calc-type-card {
        flex: unset;
    }

    .calc-type-card-media {
        height: 150px;
    }

    .calc-type-card-media img {
        width: 84%;
        height: 84%;
    }

    .calc-type-card-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .calc-type-selector {
        gap: 10px;
        margin-bottom: 14px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .calc-type-card {
    flex: 0 0 148px;
    border-radius: 18px;
    padding: 8px 8px 10px;
}

    .calc-type-card-media {
    height: 98px;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
}

    .calc-type-card-media img {
    width: 76%;
    height: 76%;
}

    .calc-type-card-body {
        padding: 9px 4px 3px;
    }

    .calc-type-card-title {
    font-size: 13px;
    text-align: center;
}

.calc-type-card-desc {
    font-size: 11px;
    line-height: 1.4;
}
}

        .shape-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
        .shape-tab { padding: 8px 15px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; color: #666; cursor: pointer; transition: 0.2s; background: #fafafa; }
        .shape-tab.active { background: #F8B42C; color: #fff; border-color: #F8B42C; font-weight: 500; }

        .input-row { display: flex; justify-content: space-between; flex-direction: row; gap: 10px; margin-bottom: 15px; }
        .input-box { flex: 1; display: flex; flex-direction: column; width: 48%; position: relative; }
        .input-box label { text-align: center; font-size: 13px; color: #666; margin-bottom: 5px; }

        .input-box input, .input-box select, .multi-select-header, .target-box input {
            height: 46px; padding: 0 10px; border: 1px solid #ddd;
            border-radius: 6px; font-size: 16px !important; text-align: center; outline: none;
            transition: border 0.3s; font-family: 'Kanit', sans-serif;
            background: #fff; color: #333; touch-action: manipulation; box-sizing: border-box;
        }
        .input-box input:focus, .input-box select:focus, .target-box input:focus { border-color: #F8B42C; box-shadow: 0 0 5px rgba(248, 180, 44, 0.2); }
        .multi-select-header { width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

        .multi-select-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 260px; background: #fff; border: 1px solid #ddd; border-radius: 6px; margin-top: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); z-index: 100; max-height: 240px; overflow-y: auto; padding: 5px; }
        .multi-select-menu.show { display: block; }

        .option-item { display: flex; align-items: center; padding: 12px 10px; cursor: pointer; border-bottom: 1px solid #f5f5f5; gap: 10px; margin: 0; }
        .option-item:hover { background: #fef5e7; }
        .option-item input { margin: 0; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: #F8B42C; }
        .option-item span { font-size: 14px; color: #444; line-height: 1.2; text-align: left; flex: 1; white-space: normal; margin-top: 2px; }

        .target-box { margin-bottom: 20px; text-align: center; background: #fffdf9; padding: 15px; border-radius: 8px; border: 1px dashed #F8B42C; }
        .target-box input { width: 150px; font-weight: bold; color: #d68910; }

        .file-section { text-align: center; margin-bottom: 15px; }
        .btn-file { background: #fef5e7; color: #d68910; border: none; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Kanit', sans-serif;}

       .btn-calc {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    background: linear-gradient(180deg, #31485A 0%, #243544 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      filter 0.22s ease;
    font-family: 'Kanit', sans-serif;
    box-shadow:
      0 10px 20px rgba(36,53,68,0.16),
      0 4px 10px rgba(17,24,39,0.06);
}

.btn-calc:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn-calc:active {
    transform: scale(0.985);
}

        .result-item { background: #fafafa; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #eee; margin-bottom: 10px;}
        .result-item.highlight { background: #fef5e7; border-color: #f5cba7; }
        .result-value { font-size: 24px; font-weight: bold; color: #333; }
        .result-value.primary { font-size: 28px; color: #d68910; }
        .result-value.net-total { font-size: 32px; color: #27ae60; }
        .preview-box { background: #f8f9fa; border-radius: 10px; padding: 15px; text-align: center; display: none; margin-top: 15px;}
        .canvas-container { background: white; padding: 5px; display: inline-block; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #ddd; max-width: 100%;}
        canvas { display: block; margin: auto; max-width: 100%; height: auto;}

        .btn-download {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #EFB13A 0%, #DE9A1E 100%);
    color: #ffffff;
    border: 1px solid rgba(201, 132, 0, 0.30);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    box-shadow:
      0 10px 20px rgba(222, 154, 30, 0.18),
      0 4px 10px rgba(17, 24, 39, 0.06);
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      filter 0.22s ease,
      background 0.22s ease;
}

.btn-download:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
    box-shadow:
      0 14px 24px rgba(222, 154, 30, 0.22),
      0 6px 14px rgba(17, 24, 39, 0.08);
}

.btn-download:active {
    transform: translateY(0);
    box-shadow:
      0 6px 14px rgba(222, 154, 30, 0.16),
      0 3px 8px rgba(17, 24, 39, 0.05);
}

.btn-line {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #20B84A 0%, #14A53F 100%);
    color: #ffffff;
    border: 1px solid rgba(10, 130, 45, 0.24);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    box-shadow:
      0 10px 20px rgba(20, 165, 63, 0.16),
      0 4px 10px rgba(17, 24, 39, 0.06);
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      filter 0.22s ease,
      background 0.22s ease;
}

.btn-line:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
    box-shadow:
      0 14px 24px rgba(20, 165, 63, 0.20),
      0 6px 14px rgba(17, 24, 39, 0.08);
}

.btn-line:active {
    transform: translateY(0);
    box-shadow:
      0 6px 14px rgba(20, 165, 63, 0.14),
      0 3px 8px rgba(17, 24, 39, 0.05);
}

.btn-download i,
.btn-line i {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-line i.fa-line {
    font-size: 17px;
}

.btn-download span,
.btn-line span {
    display: inline-block;
}

        .footer-info { margin-top: 40px; padding: 20px; font-size: 13px; color: #555; line-height: 1.8; border-top: 1px dashed #ddd; text-align: center;}
        .footer-info h3 { margin: 0 0 8px 0; font-size: 16px; font-weight: 600; color: #333; }

/* ========================================
   DESKTOP NAV TO CONTENT GAP HARD RESET
======================================== */
@media (min-width: 769px) {
    .main-nav-wrap {
        margin-bottom: 0 !important;
    }

    #section-price,
    #section-catalogue,
    #section-checkout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #section-price > *:first-child,
    #section-catalogue > *:first-child,
    #section-checkout > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}