.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease}.product-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.product-thumb-wrap{display:block;aspect-ratio:4/3;background:var(--deep);overflow:hidden}.product-thumb{width:100%;height:100%;object-fit:cover}.product-body{padding:15px;display:flex;flex-direction:column;gap:7px}.product-title{font-weight:800;line-height:1.35}.product-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}.status-dot.success{background:var(--success)}.product-price{font-size:18px;font-weight:800;margin-top:3px}.product-actions{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:3px;
}

.product-detail-link{
  width:100%;
  min-width:0;
  height:30px;
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  background:transparent;
  color:var(--text);
  font-size:12px;
  font-weight:700;
  line-height:1;
  text-align:center;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}

.product-detail-link:hover{
  color:var(--action);
}

.product-action-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:0;
}

.product-action-row .button{
  width:100%;
  min-width:0;
  height:32px;
  min-height:32px;
  padding:0 9px;
  font-size:12px;
}.product-actions .button{flex:1;border-radius:var(--radius-sm);min-width:0}.image-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:var(--muted);font-size:12px;background:linear-gradient(180deg,#1b1d28,#151722)}
.image-fallback[hidden]{
  display:none!important;
}
.product-detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:28px;align-items:start}.detail-media{
  position:relative;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius-lg);
  overflow:hidden;
}

.detail-image-frame{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--deep);
  overflow:hidden;
  line-height:0;
}

.detail-image{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  background:var(--deep);
}

.detail-image-fallback{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  z-index:2;
}.detail-copy{padding-top:6px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:22px}.detail-copy h1{font-size:20px;line-height:1.02;letter-spacing:-.04em;margin:8px 0 14px}.detail-price{font-size:20px;font-weight:800;margin-bottom:12px}.detail-description{color:var(--muted);line-height:1.8}.detail-meta{display:flex;gap:8px;margin:16px 0}.detail-actions{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.security-note{display:flex;gap:12px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-md);background:rgba(167,139,250,.06)}.security-note>svg{color:var(--primary-2);flex:0 0 auto}.security-note strong,.security-note span{display:block}.security-note span{font-size:12px;color:var(--muted);margin-top:4px}
.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:22px}.cart-item{display:grid;grid-template-columns:78px 1fr auto;gap:14px;align-items:center;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-md)}.cart-item>img,.cart-thumb{width:78px;height:60px;object-fit:cover;border-radius:10px;background:var(--deep)}.cart-main{min-width:0}.cart-main a{font-weight:800}.quantity{display:flex;align-items:center;gap:8px;margin-top:8px}.quantity .icon-button{width:30px;height:30px}.amount-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.amount-button{padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text);font-weight:800}.amount-button.selected,.amount-button:hover{border-color:rgba(139,92,246,.5);background:rgba(139,92,246,.08)}.amount-custom input{height:46px}.hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);gap:30px;align-items:end;padding:34px 0 18px}.hero h1{font-size:20px;line-height:.98;letter-spacing:-.055em;max-width:760px;margin:8px 0 16px}.hero p{max-width:700px;color:var(--muted);font-size:17px;line-height:1.8}.hero-actions{display:flex;gap:10px;margin-top:22px}.hero-stat{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}.hero-stat>div{
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  text-align:center;
}

.hero-stat span,
.hero-stat strong{
  display:block;
}.hero-stat span{color:var(--muted);font-size:12px}.hero-stat strong{margin-top:5px}.chart-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:18px}.chart-grid .panel canvas{width:100%!important;min-height:240px}.status-bars{display:grid;gap:12px}.bar-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.bar{height:7px;border-radius:999px;background:var(--deep);overflow:hidden;margin-top:6px}.bar span{display:block;height:100%;background:var(--primary)}
.list-card{min-width:0}
.list-card>div{min-width:0}
.list-card strong,.list-card span{overflow-wrap:anywhere;word-break:break-word}

.product-body{min-width:0}
.product-title,.product-price{overflow-wrap:anywhere;word-break:break-word}
.product-meta{min-width:0}
.product-meta>span:first-child{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.product-actions{min-width:0}
.product-actions .button{min-width:0}
.detail-copy{min-width:0}
.detail-copy h1,.detail-description{overflow-wrap:anywhere;word-break:break-word}
.detail-actions{min-width:0;flex-wrap:wrap}
.security-note>div{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.category-card{
  position:relative;
  min-width:0;
  min-height:108px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px 34px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  color:var(--text);
  text-decoration:none;
  text-align:center;
  box-sizing:border-box;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}

.category-card:hover{
  border-color:rgba(182,156,255,.35);
  background:var(--surface-raised);
  transform:translateY(-2px);
}

.category-card:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:2px;
}

.category-card__content{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.category-card__name{
  display:block;
  min-width:0;
  max-width:100%;
  font-size:15px;
  line-height:1.3;
  font-weight:800;
  text-align:center;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.category-card__description{
  display:-webkit-box;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
  text-align:center;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.category-card__arrow{
  position:absolute;
  right:10px;
  bottom:10px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  color:var(--muted);
  font-size:13px;
  line-height:1;
}

.category-card:hover .category-card__arrow{
  color:var(--action);
  border-color:rgba(182,156,255,.35);
  transform:translate(1px,-1px);
}

@media(max-width:1100px){
  .category-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}



@media(max-width:700px){
  .category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .category-card{
    min-height:104px;
    padding:14px 30px;
  }

  .category-card__name{
    font-size:14px;
  }

  .category-card__description{
    font-size:11px;
  }
}

@media(max-width:480px){
  .category-grid{
    grid-template-columns:1fr;
  }

  .category-card{
    min-height:92px;
  }
}

.filter-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 2px 20px;
  color:var(--muted);
  font-size:12px;
}

.filter-status a{
  color:var(--action);
  font-weight:800;
  text-decoration:none;
}

.filter-status a:hover{
  text-decoration:underline;
}

.product-stock{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.payment-group{
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}

.payment-group legend{
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
}

.payment-options{
  display:grid;
  gap:8px;
}

.payment-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--deep);
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease;
}

.payment-option:hover{
  border-color:var(--border-strong);
}

.payment-option.is-selected{
  border-color:rgba(182,156,255,.5);
  background:rgba(182,156,255,.07);
}

.payment-option.is-unavailable{
  opacity:.65;
  cursor:not-allowed;
}

.payment-option input{
  width:18px;
  height:18px;
  margin:2px 0 0;
  accent-color:var(--action);
}

.payment-option__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.payment-option__copy strong{
  line-height:1.25;
}

.payment-option__copy small{
  color:var(--muted);
  line-height:1.45;
  overflow-wrap:anywhere;
}

.checkout-layout .summary-card{
  min-width:0;
}

@media(max-width:860px){
  .filter-search,
  .filter-submit{
    grid-column:1/-1;
  }

  .checkout-layout .summary-card{
    order:-1;
    position:sticky;
    bottom:calc(var(--nav) + 10px);
    z-index:18;
    box-shadow:var(--shadow-sm);
  }
}

@media(max-width:600px){
  .filter-status{
    margin-bottom:16px;
  }



  .checkout-layout .summary-card{
    padding:16px;
    gap:14px;
  }

  .payment-option{
    padding:12px;
  }
}


/* =========================================================
   UI/UX POLISH — CUSTOMER FLOW
   ========================================================= */

.cart-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.cart-clear-button{
  color:var(--muted-strong);
}

.cart-clear-button:hover{
  color:var(--text);
  border-color:var(--error);
}

.checkout-balance-help{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border:1px solid rgba(228,170,82,.3);
  border-radius:var(--radius-md);
  color:var(--warning);
  background:rgba(228,170,82,.06);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.checkout-balance-help:hover{
  border-color:rgba(228,170,82,.5);
  background:rgba(228,170,82,.1);
}

.search-results .service-card{
  min-width:0;
}

@media(max-width:600px){
  .cart-header-actions{
    width:100%;
    justify-content:stretch;
  }

  .cart-header-actions .button{
    flex:1;
  }

  .checkout-balance-help{
    width:100%;
  }
}

/* =========================================================
   JYYR PRODUCT CONTENT
   ========================================================= */

.content-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  min-width:0;
}

.content-card{
  position:relative;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:96px;
  padding:12px;
  box-sizing:border-box;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.content-card:hover{
  border-color:var(--border-strong);
  box-shadow:var(--shadow-sm);
}

.content-card>.content-icon{
  width:36px;
  height:36px;
  min-width:36px;
  min-height:36px;
  display:grid;
  place-items:center;
  margin-top:1px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--deep);
  color:var(--muted-strong);
}

.content-card>.content-icon>.icon{
  width:19px;
  height:19px;
  max-width:19px;
  max-height:19px;
}

.content-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  overflow:hidden;
  word-break:break-word;
}

.content-heading{
  min-width:0;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 8px;
}

.content-heading strong{
  min-width:0;
  max-width:100%;
  color:var(--text);
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.content-heading span{
  min-width:0;
  max-width:100%;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.content-description{
  margin:0;
  color:var(--muted-strong);
  font-size:11.5px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.content-body .content-text{
  min-width:0;
  margin-top:1px;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--deep);
  color:var(--text);
  font-size:11.5px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.content-extra-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
  min-width:0;
  margin-top:auto;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.35;
}

.content-extra-meta span{
  min-width:0;
  overflow-wrap:anywhere;
}

.content-lock-note{
  min-width:0;
  padding:8px 10px;
  border:1px dashed var(--border-strong);
  border-radius:10px;
  background:rgba(167,139,250,.045);
  color:var(--muted-strong);
  font-size:10.5px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.content-side{
  min-width:92px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  padding-left:4px;
}

.content-side .badge{
  max-width:110px;
  padding:4px 7px;
  font-size:10px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.content-side-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
  max-width:100%;
}

.content-side-actions .button{
  width:auto;
  min-width:52px;
  height:32px;
  min-height:32px;
  padding:0 10px;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.content-side-note{
  max-width:120px;
  color:var(--muted);
  font-size:10px;
  line-height:1.3;
  text-align:right;
  overflow-wrap:anywhere;
}

@media(max-width:860px){
  .content-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .content-card{
    grid-template-columns:32px minmax(0,1fr);
    gap:10px;
    min-height:0;
    padding:11px;
    transform:none;
  }

  .content-card>.content-icon{
    width:32px;
    height:32px;
    min-width:32px;
    min-height:32px;
  }

  .content-card>.content-icon>.icon{
    width:18px;
    height:18px;
    max-width:18px;
    max-height:18px;
  }

  .content-body{
    grid-column:2;
    gap:6px;
  }

  .content-heading{
    gap:3px 7px;
  }

  .content-heading strong{
    font-size:13px;
  }

  .content-heading span{
    font-size:10.5px;
  }

  .content-description{
    font-size:11px;
    line-height:1.45;
  }

  .content-body .content-text{
    font-size:11px;
  }

  .content-extra-meta{
    font-size:10px;
  }

  .content-lock-note{
    font-size:10px;
  }

  .content-side{
    grid-column:2;
    min-width:0;
    width:100%;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:7px;
    padding-left:0;
    flex-wrap:wrap;
  }

  .content-side .badge{
    max-width:100%;
    font-size:10px;
  }

  .content-side-actions{
    justify-content:flex-start;
  }

  .content-side-actions .button{
    min-width:48px;
    height:31px;
    min-height:31px;
    padding:0 9px;
    font-size:10.5px;
  }

  .content-side-note{
    max-width:100%;
    margin-left:auto;
    text-align:right;
    font-size:9.5px;
  }
}
