.vplug-filter-wrap,
.vplug-cards-wrap,
.vplug-modal {
  box-sizing: border-box;
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.vplug-filter-wrap * ,
.vplug-cards-wrap * ,
.vplug-modal * {
  box-sizing: border-box;
}

.vplug-filter-title {
  margin: 0 0 12px;
  color: #1bad6c;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.vplug-filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid #222733;
  border-radius: 16px;
  background: #0d111a;
}

.vplug-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vplug-filter-label {
  min-width: 80px;
  color: #c4c9d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vplug-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vplug-filter-btn {
  border: 1px solid #293142;
  background: #141a25;
  color: #ccd2dd;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.vplug-filter-btn:hover {
  border-color: #1bad6c;
  color: #ffffff;
}

.vplug-filter-btn.is-active {
  border-color: #1bad6c;
  background: #1bad6c;
  color: #082521;
}

.vplug-filter-search {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
}

.vplug-archive-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 27, 44, 0.82) 0%, rgba(14, 22, 36, 0.78) 100%);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.22s ease;
}

.vplug-archive-search:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 30, 49, 0.86) 0%, rgba(15, 24, 39, 0.82) 100%);
}

.vplug-archive-search:focus-within {
  border-color: rgba(27, 173, 108, 0.9);
  box-shadow: 0 0 0 3px rgba(27, 173, 108, 0.18), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.vplug-archive-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  caret-color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  line-height: 52px;
  padding: 0;
  margin: 0;
  display: block;
  outline: none;
  box-shadow: none;
  appearance: none;
}

.vplug-filter-wrap .vplug-archive-search .vplug-archive-search-input,
.vplug-filter-wrap .vplug-archive-search input.vplug-search-input,
.vplug-filter-wrap .vplug-filter-search input[type="text"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  caret-color: rgba(255, 255, 255, 0.92) !important;
}

.vplug-filter-wrap .vplug-archive-search .vplug-archive-search-input:-webkit-autofill,
.vplug-filter-wrap .vplug-archive-search .vplug-archive-search-input:-webkit-autofill:hover,
.vplug-filter-wrap .vplug-archive-search .vplug-archive-search-input:-webkit-autofill:focus,
.vplug-filter-wrap .vplug-filter-search input[type="text"]:-webkit-autofill,
.vplug-filter-wrap .vplug-filter-search input[type="text"]:-webkit-autofill:hover,
.vplug-filter-wrap .vplug-filter-search input[type="text"]:-webkit-autofill:focus {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
}

.vplug-archive-search-input::placeholder {
  color: rgba(148, 163, 184, 0.72) !important;
  -webkit-text-fill-color: rgba(148, 163, 184, 0.72);
}

.vplug-archive-search-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vplug-archive-search-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.78);
  pointer-events: none;
  flex: 0 0 auto;
  transition: color 0.2s ease;
}

.vplug-archive-search:hover .vplug-archive-search-icon {
  color: rgba(177, 196, 220, 0.88);
}

.vplug-archive-search:focus-within .vplug-archive-search-icon {
  color: #1bad6c;
}

.vplug-archive-search-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vplug-cards-wrap {
  margin-top: 20px;
}

.vplug-cards-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.vplug-layout-control {
  position: relative;
}

.vplug-layout-toggle {
  min-width: 64px;
  height: 40px;
  border: 1px solid #293142;
  border-radius: 10px;
  background: #141a25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #cfd6e2;
}

.vplug-layout-icon {
  display: inline-block;
  width: 16px;
  height: 12px;
  background:
    linear-gradient(#aeb6c4, #aeb6c4) 0 0 / 100% 2px no-repeat,
    linear-gradient(#aeb6c4, #aeb6c4) 0 5px / 100% 2px no-repeat,
    linear-gradient(#aeb6c4, #aeb6c4) 0 10px / 100% 2px no-repeat;
}

.vplug-layout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vplug-layout-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  min-width: 110px;
  border: 1px solid #293142;
  border-radius: 10px;
  background: #111723;
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform-origin: top right;
}

.vplug-layout-control.is-open .vplug-layout-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vplug-layout-option {
  border: 1px solid #293142;
  background: #141a25;
  color: #cfd6e2;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.vplug-layout-option:hover,
.vplug-layout-option.is-active {
  border-color: #1bad6c;
  color: #1bad6c;
}

.vplug-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  transition: grid-template-columns 0.32s cubic-bezier(0.22, 1, 0.36, 1), gap 0.22s ease;
}

.vplug-cards-grid[data-vplug-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vplug-cards-grid[data-vplug-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vplug-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1386 / 1779;
  min-height: 0;
  border: 1px solid #242a39;
  border-radius: 18px;
  background: #0f1420;
  cursor: pointer;
  color: #f1f3f8;
}

.vplug-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.vplug-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 13, 0.56) 0%, rgba(6, 8, 13, 0.1) 52%, rgba(6, 8, 13, 0.28) 100%);
}

.vplug-card-top {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  z-index: 2;
}

.vplug-card-top .vplug-chip {
  min-width: 132px;
  text-align: center;
}

.vplug-chip {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.vplug-chip-material {
  background: #7f858f;
  color: #f6f8ff;
}

.vplug-chip-season {
  background: #1bad6c;
  color: #08392f;
}

.vplug-card-bottom {
  position: absolute;
  inset: auto 14px 16px 14px;
  z-index: 2;
  color: #ffffff;
  padding-left: 12px;
  border-left: 2px solid rgba(232, 238, 248, 0.72);
}

.vplug-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vplug-card-article {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.03;
  word-break: break-word;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.vplug-card-meta {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.08;
  opacity: 1;
  word-break: break-word;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.vplug-empty-text {
  margin: 14px 0 0;
  color: #8e96a9;
}

.vplug-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  padding: clamp(64px, 9vh, 108px) 20px 16px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  isolation: isolate;
}

body > .vplug-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
}

.vplug-modal.is-visible {
  opacity: 1;
}

.vplug-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(5px);
  z-index: 0;
}

.vplug-modal-content {
  position: relative;
  width: min(88vw, 580px);
  height: min(96vh, 1120px);
  max-height: calc(100vh - clamp(64px, 8vh, 96px));
  margin: 0 auto;
  z-index: 1;
  background: linear-gradient(160deg, #0b1220 0%, #0f172a 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1f2a44;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.vplug-modal.is-visible .vplug-modal-content {
  transform: scale(1);
}

.vplug-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #dce8ff;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.vplug-modal-close:hover {
  color: #1bad6c;
  transform: scale(1.04);
}

.vplug-modal-header {
  border-bottom: 1px solid #1e2a42;
  background: linear-gradient(180deg, rgba(13, 28, 54, 0.9) 0%, rgba(11, 23, 42, 0.9) 100%);
  padding: 10px 52px 7px 12px;
}

.vplug-modal-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.vplug-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.vplug-modal-badge-teal {
  color: #7be8b9;
  border: 1px solid rgba(27, 173, 108, 0.45);
  background: rgba(13, 62, 42, 0.5);
}

.vplug-modal-badge-gray {
  color: #c4d1e8;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(52, 65, 88, 0.45);
}

.vplug-modal-title {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 800;
}

.vplug-modal-model {
  margin: 1px 0 5px;
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.12;
  font-weight: 700;
  color: #a7b8d6;
}

.vplug-modal-product-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
}

.vplug-modal-info-item {
  min-width: 0;
}

.vplug-modal-info-label {
  display: block;
  margin-bottom: 1px;
  font-size: 9px;
  color: #7f91b1;
}

.vplug-modal-info-value {
  margin: 0;
  font-size: clamp(10px, 0.8vw, 11px);
  line-height: 1.12;
  font-weight: 700;
  color: #f8fbff;
}

.vplug-modal-iframe-wrap,
.vplug-modal-iframe-wrap iframe {
  width: 100%;
}

.vplug-modal-iframe-wrap {
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 8px;
}

.vplug-modal-iframe-wrap iframe {
  width: auto;
  height: 100%;
  aspect-ratio: 1248 / 1664;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #000;
  border: 1px solid #31405e;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
}

@media (max-width: 900px) {
  .vplug-filter-panel {
    grid-template-columns: 1fr;
  }

  .vplug-filter-search {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }

  .vplug-archive-search {
    width: 100%;
  }

  .vplug-cards-grid,
  .vplug-cards-grid[data-vplug-cols="3"],
  .vplug-cards-grid[data-vplug-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vplug-cards-grid,
  .vplug-cards-grid[data-vplug-cols="3"],
  .vplug-cards-grid[data-vplug-cols="4"] {
    grid-template-columns: 1fr;
  }

  .vplug-modal-content {
    width: min(90vw, 540px);
    height: min(92vh, 980px);
    max-height: calc(100vh - 72px);
  }

  .vplug-modal-header {
    padding: 9px 40px 6px 10px;
  }

  .vplug-modal-title {
    font-size: 14px;
  }

  .vplug-modal-model {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .vplug-modal-product-info {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vplug-modal-info-label {
    margin-bottom: 1px;
  }

  .vplug-modal-info-value {
    font-size: 10px;
  }

  .vplug-modal-iframe-wrap {
    padding: 10px 12px 12px;
  }

  .vplug-modal {
    padding-top: 58px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .vplug-modal-product-info {
    grid-template-columns: 1fr 1fr;
  }
}
