/* ============================================================
   cj_giftcard – Styles front-office
   couteauxjapon.fr | Police : Old Standard TT | Palette : #8b2c2c / #000 / #fff
   ============================================================ */

/* ---- Page d'achat ---- */
.cj-gc-buy-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; font-family: 'Old Standard TT', Georgia, serif; }

.cj-gc-breadcrumb { font-size: .82rem; color: #666; margin-bottom: 1.5rem; }
.cj-gc-breadcrumb a { color: #666; text-decoration: none; }
.cj-gc-breadcrumb a:hover { color: #8b2c2c; }
.cj-gc-breadcrumb span { margin: 0 .35rem; }

.cj-gc-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 3rem; }

/* ---- Aperçu carte ---- */
.cj-gc-card-preview {
  width: 100%;
  aspect-ratio: 1.586;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a2020 55%, #1a1a1a 100%);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.cj-gc-card-preview:hover { transform: translateY(-5px); box-shadow: 0 22px 56px rgba(0,0,0,.38); }
.cj-gc-card-preview::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(139,44,44,.4) 0%, transparent 70%);
  pointer-events: none;
}
.cj-gc-card-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.cj-gc-card-amount { font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; transition: transform .25s; }
.cj-gc-card-label { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: .15rem; }
.cj-gc-card-code { font-family: 'Courier New', monospace; font-size: .75rem; letter-spacing: .15em; color: rgba(255,255,255,.3); }
.cj-gc-preview-note { font-size: .75rem; color: #999; font-style: italic; text-align: center; margin: .6rem 0 1.25rem; }
.cj-gc-ambiance-img { width: 100%; border-radius: 8px; margin-top: .5rem; }

/* ---- Formulaire ---- */
.cj-gc-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.25; }
.cj-gc-intro { font-size: .95rem; color: #555; font-style: italic; margin-bottom: 1.5rem; }

.cj-gc-section { margin-bottom: 1.5rem; }
.cj-gc-section-title { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #333; margin-bottom: .75rem; }
.cj-gc-section-desc { font-size: .82rem; color: #777; margin-bottom: .75rem; font-style: italic; }

.cj-gc-amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.cj-gc-amount-btn {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: .95rem; font-weight: 700;
  padding: .5rem 1.15rem;
  border: 1.5px solid #ccc;
  background: #fff; color: #212529;
  cursor: pointer; border-radius: 3px;
  transition: all .15s;
}
.cj-gc-amount-btn:hover { border-color: #8b2c2c; color: #8b2c2c; }
.cj-gc-amount-btn.cj-gc-active { background: #8b2c2c; border-color: #8b2c2c; color: #fff; }

.cj-gc-custom-wrap label { display: block; font-size: .82rem; color: #555; margin-bottom: .35rem; }
.cj-gc-custom-row { display: flex; align-items: center; gap: .5rem; max-width: 160px; }
.cj-gc-custom-row input {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 1rem; padding: .45rem .7rem;
  border: 1.5px solid #ccc; border-radius: 3px;
  width: 100%; outline: none; transition: border-color .2s;
}
.cj-gc-custom-row input:focus { border-color: #8b2c2c; }
.cj-gc-custom-row span { font-weight: 700; color: #444; }
.cj-gc-custom-wrap small { font-size: .75rem; color: #999; font-style: italic; }

.cj-gc-price { font-size: 2rem; font-weight: 700; color: #8b2c2c; margin-bottom: 1.5rem; transition: all .2s; }

.cj-gc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cj-gc-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; color: #333; }
.cj-gc-field input, .cj-gc-section textarea {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: .9rem; padding: .5rem .75rem;
  border: 1.5px solid #ccc; border-radius: 3px;
  width: 100%; outline: none; transition: border-color .2s;
  background: #fafafa;
}
.cj-gc-field input:focus, .cj-gc-section textarea:focus { border-color: #8b2c2c; background: #fff; }
.cj-gc-section textarea { resize: vertical; }
.cj-gc-section small { font-size: .75rem; color: #999; }
.req { color: #8b2c2c; }
.opt { font-weight: 400; color: #999; font-size: .8rem; }

.cj-gc-btn-submit {
  font-family: 'Old Standard TT', Georgia, serif !important;
  font-size: 1rem !important; font-weight: 700 !important;
  padding: .85rem 2rem !important;
  background: #000 !important; color: #fff !important;
  border: 2px solid #000 !important; border-radius: 3px !important;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .65rem;
  cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
  margin-bottom: 1.25rem;
}
.cj-gc-btn-submit:hover { background: #8b2c2c !important; border-color: #8b2c2c !important; transform: translateY(-1px); }

.cj-gc-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.cj-gc-benefits li { font-size: .85rem; color: #555; display: flex; align-items: center; gap: .4rem; }
.cj-gc-benefits .material-icons { font-size: 16px; color: #8b2c2c; }

/* ---- FAQ ---- */
.cj-gc-faq { max-width: 720px; margin-top: 3rem; border-top: 1px solid #e7d9d9; padding-top: 2rem; }
.cj-gc-faq h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.cj-gc-faq-item { border-bottom: 1px solid #e7d9d9; }
.cj-gc-faq-item summary { cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; user-select: none; }
.cj-gc-faq-item summary::-webkit-details-marker { display: none; }
.cj-gc-faq-item summary::after { content: '+'; font-size: 1.3rem; color: #8b2c2c; flex-shrink: 0; }
.cj-gc-faq-item[open] summary::after { content: '−'; }
.cj-gc-faq-item p { padding: 0 0 1rem; font-size: .88rem; color: #444; line-height: 1.65; }

/* ---- Bloc panier ---- */
.cj-gc-cart-block {
  border: 1.5px solid #e7d9d9;
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
  font-family: 'Old Standard TT', Georgia, serif;
}
.cj-gc-cart-block-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem;
  background: #fafafa;
  cursor: pointer;
  font-weight: 700; font-size: .9rem;
}
.cj-gc-cart-block-header .material-icons { color: #8b2c2c; font-size: 20px; }
.cj-gc-toggle-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: #666; padding: 0; display: flex; }
.cj-gc-cart-block-body { padding: 1.25rem; background: #fff; border-top: 1px solid #e7d9d9; }

.cj-gc-code-form { display: flex; flex-direction: column; gap: .5rem; }
.cj-gc-code-row { display: flex; gap: .75rem; }
.cj-gc-code-input {
  font-family: 'Courier New', monospace;
  font-size: 1rem; letter-spacing: .1em;
  padding: .55rem .85rem;
  border: 1.5px solid #ccc; border-radius: 3px;
  flex: 1; outline: none; text-transform: uppercase;
  transition: border-color .2s;
}
.cj-gc-code-input:focus { border-color: #8b2c2c; }
.cj-gc-apply-btn {
  font-family: 'Old Standard TT', Georgia, serif !important;
  font-weight: 700 !important;
  background: #000 !important; color: #fff !important;
  border: 2px solid #000 !important; border-radius: 3px !important;
  padding: .55rem 1.25rem !important;
  white-space: nowrap; cursor: pointer;
  transition: background .2s;
}
.cj-gc-apply-btn:hover { background: #8b2c2c !important; border-color: #8b2c2c !important; }
.cj-gc-code-hint { font-size: .78rem; color: #999; font-style: italic; }

.cj-gc-applied { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cj-gc-applied-info { display: flex; align-items: center; gap: .75rem; }
.cj-gc-applied-info .material-icons { color: #28a745; font-size: 22px; }
.cj-gc-applied-code { font-family: 'Courier New', monospace; font-weight: 700; font-size: .9rem; }
.cj-gc-applied-amount { color: #28a745; font-weight: 700; }
.cj-gc-remove-btn { color: #dc3545; text-decoration: none; display: flex; align-items: center; }
.cj-gc-remove-btn:hover { color: #a71d2a; }

/* ---- Alertes ---- */
.cj-gc-alert { padding: .75rem 1rem; border-radius: 4px; font-size: .88rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.cj-gc-alert .material-icons { font-size: 18px; }
.cj-gc-alert-error { background: #fde8e8; color: #8b2c2c; border: 1px solid #f5c6cb; }
.cj-gc-alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c3e6cb; }

/* ---- Confirmation commande ---- */
.cj-gc-order-confirm { border: 1.5px solid #e7d9d9; border-radius: 8px; padding: 1.5rem; margin: 1.5rem 0; font-family: 'Old Standard TT', Georgia, serif; }
.cj-gc-order-confirm-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.cj-gc-order-confirm-header .material-icons { color: #8b2c2c; font-size: 24px; }
.cj-gc-order-confirm-header h3 { margin: 0; font-size: 1.1rem; }
.cj-gc-confirm-card { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid #e7d9d9; }
.cj-gc-mini-card { width: 180px; background: linear-gradient(135deg, #1a1a1a 0%, #3a2020 55%, #1a1a1a 100%); border-radius: 8px; padding: 1rem 1.25rem; color: #fff; }
.cj-gc-mini-amount { font-size: 1.5rem; font-weight: 700; }
.cj-gc-mini-label { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: .2rem 0; }
.cj-gc-mini-code { font-family: 'Courier New', monospace; font-size: .65rem; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.cj-gc-confirm-table { width: 100%; border-collapse: collapse; }
.cj-gc-confirm-table th, .cj-gc-confirm-table td { padding: .4rem 0; border-bottom: 1px solid #eee; font-size: .88rem; }
.cj-gc-confirm-table th { color: #666; width: 40%; font-weight: 400; }
.cj-gc-code-display { font-family: 'Courier New', monospace; font-size: 1.1rem; letter-spacing: .1em; background: #f4f4f4; padding: .25rem .6rem; border-radius: 4px; }
.cj-gc-confirm-note { font-size: .8rem; color: #666; display: flex; align-items: flex-start; gap: .4rem; margin-top: .75rem; font-style: italic; }
.cj-gc-confirm-note .material-icons { font-size: 16px; color: #8b2c2c; flex-shrink: 0; margin-top: 2px; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .cj-gc-product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cj-gc-field-row { grid-template-columns: 1fr; }
  .cj-gc-confirm-card { grid-template-columns: 1fr; }
  .cj-gc-mini-card { width: 100%; }
}
@media (max-width: 480px) {
  .cj-gc-code-row { flex-direction: column; }
  .cj-gc-amount-btn { padding: .45rem .85rem; font-size: .85rem; }
}
