/* ==========================================================================
   UGREEN JAPAN (ugreen.jp) EXACT 1:1 REPLICATION STYLESHEET
   Accurately modeled from ugreen.jp theme tokens:
   - Fonts: Metropolis + Noto Sans Japanese
   - Colors: Primary Green (#007934), Hover Black (#000000), Background (#ffffff, #f7f8f8, #f5f6f6)
   - Pill Buttons: border-radius 60px
   - Product Cards: border-radius 16px, image zoom 1.1x
   - Exact Header, UserRights (Trust 3-Col), and Footer
   ========================================================================== */

/* 1. Official Fonts */
@font-face {
  font-family: "Metropolis";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.shopify.com/s/files/1/0257/5246/9566/files/Metropolis-Regular.woff2?v=1723628703") format("woff2");
  unicode-range: U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Metropolis";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.shopify.com/s/files/1/0257/5246/9566/files/Metropolis-Medium.woff2?v=1723628703") format("woff2");
  unicode-range: U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Metropolis";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.shopify.com/s/files/1/0257/5246/9566/files/Metropolis-SemiBold.woff2?v=1723628703") format("woff2");
  unicode-range: U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Metropolis";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.shopify.com/s/files/1/0257/5246/9566/files/Metropolis-Bold.woff2?v=1723628703") format("woff2");
  unicode-range: U+0041-005A, U+0061-007A;
}

:root {
  --color-button: #007934;
  --color-button-hover: #000000;
  --color-text-main: #000000;
  --color-text-sub: #666666;
  --color-text-muted: #999999;
  --color-border: #ebebeb;
  --color-bg-gray: #f7f8f8;
  --color-bg-rights: #f5f6f6;
  --border-radius-button: 60px;
  --border-radius-card: 16px;
  --font-family-main: "Metropolis", "Noto Sans Japanese", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  --container-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-main);
  background-color: #ffffff;
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

/* --------------------------------------------------------------------------
   Announcement Bar (Exact ugreen.jp)
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 44px;
  color: #000000;
  text-align: center;
}

.announcement-bar__text a {
  color: #000000;
  margin-left: 4px;
}

.announcement-bar__text a:hover {
  color: var(--color-button);
}

/* --------------------------------------------------------------------------
   Header (Exact ugreen.jp)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Header (Exact Official ugreen.jp Alignment)
   -------------------------------------------------------------------------- */
.header-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  min-width: 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap !important;
  flex-shrink: 0;
  height: 64px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 2px;
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: -0.01em;
  line-height: 1;
}

.header-nav a:hover {
  color: var(--color-button);
}

.header-nav a.active {
  color: var(--color-button);
  font-weight: 600;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-button);
  border-radius: 3px 3px 0 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-button);
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  background: #ffffff;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.header-store-badge:hover {
  border-color: #000000;
  background: #fafafa;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  padding: 6px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Banner (Official Studio Key Visual - Yamazaki Kento × UGREEN)
   -------------------------------------------------------------------------- */
.hero-banner-wrap {
  position: relative;
  width: 100%;
  background: #007934;
  overflow: hidden;
  line-height: 0;
}

.hero-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
  line-height: 0;
  cursor: pointer;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.btn-ug-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-button);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
  border: none;
}

.btn-ug-pill:hover {
  background: var(--color-button-hover);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Section Heading (Exact ugreen.jp: 38px, font-weight 600)
   -------------------------------------------------------------------------- */
.ug-section-title-wrap {
  margin: 90px 0 40px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ug-section-title {
  color: #000000;
  font-size: 38px;
  font-weight: 600;
  line-height: 46px;
  margin: 0;
}

.ug-section-subnote {
  font-size: 14px;
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   Slot 00: Featured Hero Product Slot (Large Split Layout)
   -------------------------------------------------------------------------- */
.featured-slot-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-card);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 60px;
  position: relative;
}

.slot-flag-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-button);
  letter-spacing: 0.05em;
  z-index: 3;
}

.slot-flag-tag.green {
  background: var(--color-button);
}

.featured-slot-img-wrap {
  background: var(--color-bg-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.featured-slot-img-wrap img {
  max-height: 320px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.featured-slot-box:hover .featured-slot-img-wrap img {
  transform: scale(1.06);
}

.slot-helper-badge {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px dashed #ccc;
  padding: 3px 10px;
  border-radius: 4px;
}

.featured-slot-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-slot-series {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-button);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.featured-slot-title {
  font-size: 26px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-slot-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 22px;
}

.featured-slot-specs {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333333;
}

.spec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-button);
  flex-shrink: 0;
}

/* Price Display (ugreen.jp style) */
.price-display-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.price-val-special {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  font-family: var(--font-family-main);
  letter-spacing: -0.02em;
}

.price-tax-label {
  font-size: 12px;
  color: var(--color-text-sub);
}

.price-val-regular {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.discount-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-button);
  background: #e8f5ed;
  padding: 2px 8px;
  border-radius: var(--border-radius-button);
}

.slot-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Product Grid (ug-home-NewProduct & Collection Card Style)
   -------------------------------------------------------------------------- */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.ug-product-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ug-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cccccc;
}

.ug-card-img-wrap {
  background: var(--color-bg-gray);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.ug-card-img-wrap img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ug-product-card:hover .ug-card-img-wrap img {
  transform: scale(1.08);
}

.ug-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ug-card-series {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-button);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ug-card-title {
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 8px;
}

.ug-card-desc {
  color: var(--color-text-sub);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 16px;
}

.ug-card-specs {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  margin-bottom: 16px;
}

.ug-card-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 0;
}

.spec-k {
  color: var(--color-text-sub);
}

.spec-v {
  font-weight: 600;
  color: #000;
}

.ug-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ug-card-price-main {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.ug-card-price-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.ug-card-actions {
  display: flex;
  gap: 8px;
}

.btn-card-buy-pill {
  flex: 1;
  text-align: center;
  background: var(--color-button);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--border-radius-button);
  transition: background 0.2s ease;
}

.btn-card-buy-pill:hover {
  background: var(--color-button-hover);
}

.btn-card-sub-pill {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #d5d5d5;
  border-radius: var(--border-radius-button);
  background: #ffffff;
  color: #333333;
}

.btn-card-sub-pill:hover {
  border-color: #000;
  background: #f8f8f8;
}

/* --------------------------------------------------------------------------
   Comparison Table (全製品 価格・スペック一覧表)
   -------------------------------------------------------------------------- */
.comparison-table-wrap {
  margin: 60px 0 100px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.table-responsive {
  overflow-x: auto;
}

.ug-price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 13px;
}

.ug-price-table th, .ug-price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.ug-price-table thead th {
  background: var(--color-bg-gray);
  color: #000;
  font-weight: 600;
  font-size: 13px;
}

.ug-price-table tbody tr:hover td {
  background: #fcfcfc;
}

.table-slot-badge {
  font-size: 10px;
  font-weight: 700;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.table-price-special {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

.table-price-reg {
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.table-action-link {
  color: var(--color-button);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-action-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Trust 3-Col Section (Exact ug-home-UserRights from ugreen.jp)
   -------------------------------------------------------------------------- */
.ug-home-UserRights {
  margin-top: 100px;
  padding: 80px 0 80px 0;
  background: var(--color-bg-rights);
}

.ug-home-UserRights .UserRights-list {
  display: flex;
  justify-content: space-evenly;
}

.ug-home-UserRights .UserRights-list .item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ug-home-UserRights .UserRights-list > div:nth-child(2) {
  padding: 0 100px;
  border-left: 1px solid #D0D0D0;
  border-right: 1px solid #D0D0D0;
}

.ug-home-UserRights .UserRights-list .item img {
  display: block;
  margin: 0 auto;
  height: 48px;
  width: auto;
}

.ug-home-UserRights .UserRights-list .item h3 {
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  margin: 20px 0 12px 0;
}

.ug-home-UserRights .UserRights-list .item p {
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  max-width: 240px;
  margin: 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer (Exact ugreen.jp Style & Colors)
   -------------------------------------------------------------------------- */
.ug-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 0 40px;
  font-size: 13px;
}

.ug-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #262626;
}

.newsletter-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.newsletter-box p {
  font-size: 12px;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 18px;
}

.newsletter-form-row {
  display: flex;
  max-width: 380px;
  margin-bottom: 24px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #ffffff;
  border-radius: var(--border-radius-button) 0 0 var(--border-radius-button);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-button);
}

.newsletter-btn {
  padding: 10px 20px;
  background: var(--color-button);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0 var(--border-radius-button) var(--border-radius-button) 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: #005a26;
}

.footer-brand-mark img {
  height: 52px;
  width: auto;
  opacity: 0.9;
}

.footer-nav-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a {
  color: #a0a0a0;
  font-size: 13px;
}

.footer-nav-col a:hover {
  color: #ffffff;
}

.ug-footer-bottom {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #707070;
  line-height: 1.6;
  max-width: 720px;
}

.footer-copyright {
  font-size: 12px;
  color: #888888;
}

/* --------------------------------------------------------------------------
   Category Filter & Live Search Toolbar
   -------------------------------------------------------------------------- */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.filter-tabs-scroller {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs-scroller::-webkit-scrollbar {
  height: 4px;
}

.filter-tabs-scroller::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.filter-tab-btn {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  color: #333333;
  padding: 10px 22px;
  border-radius: var(--border-radius-button);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-tab-btn:hover {
  background: #ebebeb;
  color: #000000;
}

.filter-tab-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.catalog-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-search-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.catalog-search-input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-button);
  background: #ffffff;
  color: #000000;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.catalog-search-input:focus {
  border-color: var(--color-button);
  box-shadow: 0 0 0 3px rgba(0, 121, 52, 0.1);
}

.catalog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  color: #888888;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.product-count-display {
  font-size: 13px;
  color: var(--color-text-sub);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Product Card Enhancements
   -------------------------------------------------------------------------- */
.ug-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ug-card-sku {
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  font-family: monospace;
}

.ug-card-title {
  cursor: pointer;
  transition: color 0.2s ease;
}

.ug-card-title:hover {
  color: var(--color-button);
}

.ug-card-img-wrap {
  cursor: pointer;
}

.ug-tag-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ug-tag-badge {
  font-size: 11px;
  font-weight: 600;
  color: #1b5e20;
  background: #f1f8f3;
  border: 1px solid #d4ecd9;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

.btn-card-spec-pill {
  flex: 1.2;
  text-align: center;
  background: #ffffff;
  color: #222222;
  border: 1px solid #d0d0d0;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--border-radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-card-spec-pill:hover {
  border-color: #000000;
  background: #f8f8f8;
}

.no-products-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-gray);
  border-radius: var(--border-radius-card);
  border: 1px dashed var(--color-border);
}

.btn-reset-filter {
  margin-top: 14px;
  background: var(--color-button);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--border-radius-button);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.btn-reset-filter:hover {
  background: var(--color-button-hover);
}

/* --------------------------------------------------------------------------
   Interactive Product Specification Modal
   -------------------------------------------------------------------------- */
.spec-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.spec-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.spec-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.spec-modal-backdrop.active .spec-modal-dialog {
  transform: translateY(0);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--color-border);
  background: #fafafa;
}

.modal-header-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-button);
  padding: 4px 10px;
  border-radius: var(--border-radius-button);
}

.modal-sku-tag {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  font-family: monospace;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background: #e5e5e5;
  color: #000;
}

.modal-scrollable-content {
  padding: 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

.modal-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-preview-img-wrap {
  width: 100%;
  background: var(--color-bg-gray);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ebebeb;
  margin-bottom: 20px;
}

.modal-preview-img-wrap img {
  max-height: 220px;
  object-fit: contain;
}

.modal-price-box {
  width: 100%;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: center;
}

.modal-price-label {
  font-size: 11px;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 4px;
}

.modal-price-val {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.modal-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cta-group .btn-ug-pill {
  width: 100%;
  padding: 12px;
}

.modal-store-btns {
  display: flex;
  gap: 8px;
  width: 100%;
}

.modal-store-btns .btn-card-sub-pill {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
}

.modal-product-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #000000;
  margin-bottom: 12px;
}

.modal-product-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 18px;
}

.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.modal-tag-chip {
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
}

.modal-spec-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  border-left: 3px solid var(--color-button);
  padding-left: 8px;
  margin-bottom: 12px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.modal-specs-table th {
  width: 32%;
  padding: 10px 12px;
  background: #f8f8f8;
  color: #333333;
  font-weight: 600;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.modal-specs-table td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  color: #111111;
  line-height: 1.6;
}

/* Row highlight in comparison table */
.ug-price-table tbody tr.highlighted td {
  background: #f0f8f2 !important;
}

/* Mobile navigation hamburger */
.header-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #000000;
}

.header-nav.mobile-open {
  display: flex !important;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #ffffff;
  flex-direction: column;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 32px;
  }
  .featured-slot-box {
    grid-template-columns: 1fr;
  }
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-scrollable-content {
    grid-template-columns: 1fr;
  }
  .ug-home-UserRights .UserRights-list {
    flex-direction: column;
    gap: 36px;
  }
  .ug-home-UserRights .UserRights-list > div:nth-child(2) {
    padding: 36px 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #D0D0D0;
    border-bottom: 1px solid #D0D0D0;
  }
  .ug-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media screen and (max-width: 1140px) {
  .header-nav {
    display: none;
  }
  .header-mobile-toggle {
    display: block !important;
    cursor: pointer;
  }
}

@media screen and (max-width: 768px) {
  .header-mobile-toggle {
    display: block;
  }
  .announcement-bar {
    font-size: 11px;
    padding: 0 10px;
  }
  .hero-content-overlay {
    left: 20px;
    right: 20px;
  }
  .hero-title {
    font-size: 26px;
  }
  .ug-section-title {
    font-size: 24px;
    line-height: 32px;
  }
  .product-cards-grid {
    grid-template-columns: 1fr;
  }
  .ug-footer-top {
    grid-template-columns: 1fr;
  }
  .ug-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   MOBILE FIRST & DRAWER ENHANCEMENTS (Anti-AI Craftsmanship)
   ========================================================================== */

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 10002;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #ebebeb;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  padding: 4px;
}

.mobile-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  border-bottom: 1px solid #f7f7f7;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-drawer-nav a:hover {
  color: var(--color-button);
}

.drawer-badge {
  background: #007934;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.drawer-arrow {
  color: #bbb;
  font-size: 13px;
}

.ug-warranty-chip {
  background: #eaf6ee;
  color: #007934;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Category filter horizontal scroll bar */
.filter-tabs-scroller {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs-scroller::-webkit-scrollbar {
  display: none;
}
.filter-tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile responsive refinements for cards and comparison table */
@media screen and (max-width: 1140px) {
  .header-nav {
    display: none;
  }
  .header-mobile-toggle {
    display: block !important;
    cursor: pointer;
  }
}

@media screen and (max-width: 768px) {
  .header-mobile-toggle {
    display: block;
    cursor: pointer;
  }
  .product-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .ug-product-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .ug-card-img-wrap {
    height: 140px !important;
  }
  .ug-card-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ug-card-desc {
    display: none;
  }
  .ug-tag-badges-row {
    margin-bottom: 8px !important;
    max-height: 24px;
    overflow: hidden;
  }
  .ug-tag-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .ug-card-price-main {
    font-size: 17px !important;
  }
  .ug-card-actions {
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .btn-card-buy-pill, .btn-card-spec-pill {
    padding: 8px 10px !important;
    font-size: 11px !important;
    width: 100%;
    text-align: center;
  }
  .ug-price-table th:first-child,
  .ug-price-table td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0,0,0,0.04);
  }
}

@media screen and (max-width: 420px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .ug-product-card {
    padding: 10px !important;
  }
  .ug-card-img-wrap {
    height: 120px !important;
  }
  .ug-card-price-main {
    font-size: 15px !important;
  }
}
