* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
    font-family: 'DearFromsol';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2607161334@griun-fromsol-rg/griun-fromsol-rg/Griun_Fromsol-Rg.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

body {
  font-family: 'DearFromsol', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  background-color: #000000;
  color: #ffffff;
  border-bottom: 1px solid #1a1a1a;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.user-nav a {
  font-size: 0.88rem;
  color: #aaaaaa;
}

.user-nav a:hover {
  color: #ffffff;
}

.profile-section {
  background-color: #000000;
  color: #ffffff;
  padding: 44px 0 36px;
  border-bottom: 1px solid #eaeaea;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333333;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-bio {
  font-size: 0.9rem;
  color: #888888;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 20px;
}

.wallpaper-card {
  display: flex;
  flex-direction: column;
}

.card-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8f9fa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.wallpaper-card:hover .card-box {
  background-color: #f1f3f5;
  transform: translateY(-3px);
}

.card-info {
  margin-top: 12px;
  width: 100%;
  text-align: left;
}

.wallpaper-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #222222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallpaper-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111111;
}

.phone-mockup {
  position: relative;
  height: 94%;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  background-color: #000000;
  border: 3px solid #1c1c1e;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.btn-side {
  position: absolute;
  background-color: #2c2c2e;
  border-radius: 2px;
  z-index: 20;
}
.phone-mockup .btn-volume-up { left: -5px; top: 22%; width: 2px; height: 16px; }
.phone-mockup .btn-volume-down { left: -5px; top: 32%; width: 2px; height: 16px; }
.phone-mockup .btn-power { right: -5px; top: 26%; width: 2px; height: 22px; }

.phone-mockup .wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 17px;
}

.phone-mockup .screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 17px;
  padding-top: 6px;
}

.dynamic-island {
  width: 28%;
  height: 8px;
  background-color: #000000;
  border-radius: 10px;
  z-index: 10;
}

.status-bar {
  position: absolute;
  top: 6px;
  width: 100%;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.phone-time {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: 'DearFromsol';
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.home-bar {
  position: absolute;
  bottom: 5px;
  width: 36%;
  height: 2.5px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.detail-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.detail-left {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-preview-box {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background-color: #f8f9fa;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border: 1px solid #eeeeee;
}

.detail-mockup {
  height: 92%;
  border-radius: 32px;
  border-width: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.detail-mockup .wallpaper-img {
  border-radius: 28px;
}

.detail-mockup .screen-overlay {
  padding-top: 10px;
}

.detail-mockup .dynamic-island {
  height: 14px;
  border-radius: 12px;
}

.detail-mockup .phone-time {
  margin-top: 18px;
  font-size: 2.1rem;
}

.detail-mockup .status-bar {
  top: 10px;
  padding: 0 16px;
  font-size: 0.65rem;
}

.detail-right {
  padding-left: 10px;
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.detail-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 24px;
}

.meta-table {
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  padding: 18px 0;
  margin-bottom: 28px;
}

.meta-row {
  display: flex;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  width: 110px;
  color: #888888;
}

.meta-value {
  color: #222222;
  font-weight: 500;
  flex: 1;
}

.license-sub {
  display: block;
  font-size: 0.8rem;
  color: #888888;
  margin-top: 4px;
  line-height: 1.4;
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.btn-share-square {
  flex: 1 1 0;
  padding: 16px 0;
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cccccc;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  text-align: center;
}

.btn-share-square:hover {
  border-color: #111111;
  background-color: #f9f9f9;
}

.btn-download-black {
  flex: 1 1 0;
  padding: 16px 0;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn-download-black:hover {
  background-color: #222222;
}

.related-section {
  border-top: 1px solid #eeeeee;
  padding-top: 24px;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.related-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.related-more {
  font-size: 0.85rem;
  color: #888888;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-bottom-section {
  border-top: 1px solid #eeeeee;
  padding-top: 32px;
}

.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 24px;
}

.detail-tab-btn {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.detail-tab-btn.active {
  color: #000000;
  border-bottom-color: #000000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.notice-banner {
  background-color: #f8f9fa;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: #333333;
}

.notice-banner .sub-text {
  color: #666666;
  margin-top: 4px;
}

.desc-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.description-text {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
}

.guide-box {
  background-color: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.guide-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.guide-list {
  list-style: none;
  font-size: 0.9rem;
  color: #444444;
}

.guide-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.wallpaper-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.wallpaper-img.loaded {
  opacity: 1;
}

.image-loading-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f3f5;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #dee2e6;
  border-top-color: #111111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
  }
  .detail-right {
    padding-left: 0;
  }
}