/* Glassica — page-specific styles: Product Detail, Shop, Checkout */

/* ─── Breadcrumb ─── */
.gx-crumb { background: var(--paper); border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.gx-crumb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 16px; font-size: 12px; color: var(--cocoa-soft); }
.gx-crumb-row a { color: var(--cocoa-soft); text-decoration: none; }
.gx-crumb-row a:hover { color: var(--saffron-dk); }
.gx-crumb-row b { color: var(--cocoa); font-weight: 600; }
.gx-crumb-row .sep { opacity: 0.5; }

/* ─── Product Detail ─── */
.gx-pdp { padding: 20px 0 40px; }
.gx-pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 0 16px; align-items: flex-start; }

.gx-pdp-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 12px; position: relative; }
.gx-pdp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gx-pdp-thumb { aspect-ratio: 1/1; border: 2px solid var(--line-soft); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bone); transition: border-color 0.15s; padding: 0; }
.gx-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gx-pdp-thumb.act { border-color: var(--cocoa); }
.gx-pdp-thumb:hover { border-color: var(--saffron); }
.gx-pdp-main-img { aspect-ratio: 1/1; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: var(--bone); position: relative; }
.gx-pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.gx-pdp-badge { position: absolute; top: 14px; left: 14px; background: var(--danger); color: white; font-size: 12px; padding: 6px 10px; border-radius: 4px; font-weight: 700; }
.gx-pdp-share { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 3; }
.gx-pdp-share button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1; color: var(--cocoa); transition: all 0.15s; }
.gx-pdp-share button:hover { background: var(--cocoa); color: var(--bone); }
.gx-pdp-share button.on { background: var(--cocoa); color: var(--bone); border-color: var(--cocoa); }

.gx-pdp-body { padding-top: 8px; }
.gx-pdp-coll { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron-dk); font-weight: 700; }
.gx-pdp-body h1 { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--cocoa); margin: 6px 0 10px; font-weight: 600; line-height: 1.15; }
.gx-pdp-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--cocoa-soft); margin-bottom: 14px; flex-wrap: wrap; }
.gx-pdp-meta .stars { color: var(--saffron); letter-spacing: 0.06em; font-size: 13px; }
.gx-pdp-meta .sep { opacity: 0.4; }
.gx-pdp-meta b { color: var(--cocoa); font-weight: 600; }

.gx-pdp-price { display: flex; gap: 10px; align-items: baseline; padding: 16px; background: var(--bone); border-radius: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.gx-pdp-price b { font-size: 32px; color: var(--danger); font-weight: 700; }
.gx-pdp-price s { font-size: 16px; color: var(--cocoa-soft); }
.gx-pdp-price .save { background: var(--success); color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-left: auto; }

.gx-pdp-stock { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 12px 0; color: var(--cocoa); }
.gx-pdp-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.gx-pdp-stock.low .dot { background: var(--danger); }
.gx-pdp-stock b { font-weight: 600; }
.gx-pdp-stock span { color: var(--cocoa-soft); }

.gx-pdp-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.gx-pdp-row:last-of-type { border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.gx-pdp-lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cocoa-soft); min-width: 80px; font-weight: 600; }
.gx-pdp-variants { display: flex; gap: 6px; flex-wrap: wrap; }
.gx-pdp-variants button { padding: 6px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--cocoa); transition: all 0.15s; }
.gx-pdp-variants button:hover { border-color: var(--cocoa); }
.gx-pdp-variants button.act { background: var(--cocoa); color: var(--bone); border-color: var(--cocoa); }

.gx-pdp-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin: 18px 0 14px; }
.gx-pdp-cta .gx-add-big { width: 100%; }
.gx-pdp-cta .gx-buy-now { background: var(--cocoa); color: var(--bone); border: none; padding: 14px 22px; border-radius: 6px; font-size: 13px; letter-spacing: 0.06em; cursor: pointer; font-family: inherit; font-weight: 700; transition: background 0.15s; }
.gx-pdp-cta .gx-buy-now:hover { background: var(--cocoa-ink); }
.gx-pdp-cta .gx-wish { background: var(--paper); border: 1px solid var(--line); width: 52px; border-radius: 6px; font-size: 18px; cursor: pointer; color: var(--cocoa); transition: all 0.15s; }
.gx-pdp-cta .gx-wish:hover { background: var(--blush-soft); border-color: var(--blush); color: var(--danger); }

.gx-pdp-info { background: var(--bone); border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.gx-pdp-info li { list-style: none; padding: 6px 0; font-size: 13px; color: var(--cocoa); display: flex; gap: 10px; align-items: flex-start; }
.gx-pdp-info li i { font-style: normal; flex-shrink: 0; font-size: 16px; }
.gx-pdp-info li b { font-weight: 600; }
.gx-pdp-info li span { color: var(--cocoa-soft); display: block; font-size: 12px; }
.gx-pdp-info ul { padding: 0; margin: 0; }

/* ─── Tabs (Description / Care / Reviews) ─── */
.gx-tabs { margin-top: 36px; padding: 0 16px; }
.gx-tabs-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--line-soft); margin-bottom: 18px; flex-wrap: wrap; }
.gx-tabs-bar button { background: transparent; border: none; padding: 10px 20px; font-family: inherit; font-size: 13px; color: var(--cocoa-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; transition: all 0.15s; letter-spacing: 0.04em; }
.gx-tabs-bar button:hover { color: var(--cocoa); }
.gx-tabs-bar button.act { color: var(--cocoa); border-bottom-color: var(--saffron); }
.gx-tab-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 24px 28px; }
.gx-tab-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--cocoa); margin: 0 0 12px; font-weight: 600; }
.gx-tab-panel p { font-size: 14px; color: var(--cocoa-soft); line-height: 1.75; margin: 0 0 12px; }
.gx-tab-panel ul { padding-left: 20px; margin: 8px 0; }
.gx-tab-panel li { font-size: 13px; color: var(--cocoa); line-height: 1.7; }
.gx-spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.gx-spec-table tr td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.gx-spec-table tr td:first-child { color: var(--cocoa-soft); width: 40%; font-weight: 500; }
.gx-spec-table tr td:last-child { color: var(--cocoa); font-weight: 600; }
.gx-spec-table tr:last-child td { border-bottom: none; }

/* Reviews */
.gx-reviews-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 12px 0 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.gx-rev-score b { font-family: 'Cormorant Garamond', serif; font-size: 48px; color: var(--cocoa); display: block; line-height: 1; font-weight: 600; }
.gx-rev-score .stars { color: var(--saffron); font-size: 14px; margin: 4px 0; letter-spacing: 0.08em; }
.gx-rev-score small { font-size: 12px; color: var(--cocoa-soft); }
.gx-rev-bars { display: flex; flex-direction: column; gap: 6px; }
.gx-rev-bar { display: grid; grid-template-columns: 40px 1fr 32px; gap: 10px; align-items: center; font-size: 12px; color: var(--cocoa-soft); }
.gx-rev-bar .bar { background: var(--bone); height: 6px; border-radius: 3px; overflow: hidden; }
.gx-rev-bar .bar div { background: var(--saffron); height: 100%; }
.gx-review { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.gx-review:last-child { border-bottom: none; }
.gx-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.gx-review-head b { font-size: 13px; color: var(--cocoa); font-weight: 600; }
.gx-review-head .stars { color: var(--saffron); font-size: 12px; letter-spacing: 0.06em; }
.gx-review-head small { font-size: 11px; color: var(--cocoa-soft); }
.gx-review-head .verified { background: var(--success); color: white; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.gx-review p { font-size: 13px; color: var(--cocoa); line-height: 1.65; margin: 4px 0 0; }

/* ─── Shop / Category page ─── */
.gx-shop { padding: 16px 0 40px; }
.gx-shop-head { padding: 0 16px 16px; }
.gx-shop-head h1 { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--cocoa); margin: 0 0 4px; font-weight: 600; }
.gx-shop-head p { font-size: 13px; color: var(--cocoa-soft); margin: 0; }

.gx-shop-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 0 16px; align-items: flex-start; }
.gx-filters { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; position: sticky; top: 12px; }
.gx-filter-blk { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.gx-filter-blk:last-child { border-bottom: none; padding-bottom: 0; }
.gx-filter-blk h4 { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--cocoa); margin: 0 0 8px; font-weight: 600; }
.gx-filter-blk ul { list-style: none; padding: 0; margin: 0; }
.gx-filter-blk li { padding: 4px 0; font-size: 13px; color: var(--cocoa); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.gx-filter-blk li input { cursor: pointer; accent-color: var(--cocoa); }
.gx-filter-blk li:hover { color: var(--saffron-dk); }
.gx-filter-blk li .cnt { color: var(--cocoa-soft); font-size: 11px; margin-left: auto; }
.gx-price-inputs { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.gx-price-inputs input { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-family: inherit; font-size: 12px; color: var(--cocoa); outline: none; }
.gx-price-inputs input:focus { border-color: var(--cocoa); }
.gx-price-inputs span { font-size: 12px; color: var(--cocoa-soft); }
.gx-clear-filters { background: transparent; border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; font-family: inherit; font-size: 12px; color: var(--cocoa); cursor: pointer; width: 100%; margin-top: 10px; }
.gx-clear-filters:hover { background: var(--cocoa); color: var(--bone); border-color: var(--cocoa); }

.gx-shop-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.gx-shop-toolbar .count { font-size: 13px; color: var(--cocoa); }
.gx-shop-toolbar .count b { font-weight: 600; }
.gx-shop-toolbar .sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cocoa-soft); }
.gx-shop-toolbar .sort select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-family: inherit; font-size: 12px; color: var(--cocoa); cursor: pointer; outline: none; }
.gx-filter-mobile { display: none; background: var(--cocoa); color: var(--bone); border: none; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }

.gx-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 28px; align-items: center; flex-wrap: wrap; }
.gx-pagination button { min-width: 36px; height: 36px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; font-family: inherit; font-size: 13px; color: var(--cocoa); cursor: pointer; transition: all 0.15s; padding: 0 10px; }
.gx-pagination button:hover { background: var(--cocoa); color: var(--bone); border-color: var(--cocoa); }
.gx-pagination button.act { background: var(--cocoa); color: var(--bone); border-color: var(--cocoa); }
.gx-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.gx-pagination button:disabled:hover { background: var(--paper); color: var(--cocoa); border-color: var(--line); }

/* ─── Checkout ─── */
.gx-checkout-page { padding: 16px 0 40px; }
.gx-checkout-head { padding: 0 16px 16px; }
.gx-checkout-head h1 { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--cocoa); margin: 0; font-weight: 600; }
.gx-checkout-head p { font-size: 13px; color: var(--cocoa-soft); margin: 4px 0 0; }

.gx-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; padding: 0 16px; align-items: flex-start; }
.gx-co-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 22px 24px; margin-bottom: 14px; }
.gx-co-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--cocoa); margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.gx-co-card h2 .step { width: 26px; height: 26px; border-radius: 50%; background: var(--saffron); color: var(--cocoa); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.gx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gx-form-grid .full { grid-column: 1 / -1; }
.gx-field { display: flex; flex-direction: column; gap: 4px; }
.gx-field label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cocoa-soft); font-weight: 600; }
.gx-field input, .gx-field select, .gx-field textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-family: inherit; font-size: 13px; color: var(--cocoa); outline: none; transition: border-color 0.15s; }
.gx-field input:focus, .gx-field select:focus, .gx-field textarea:focus { border-color: var(--cocoa); }
.gx-field textarea { min-height: 70px; resize: vertical; }
.gx-field-row { display: flex; align-items: center; gap: 8px; }
.gx-field-row input[type="checkbox"], .gx-field-row input[type="radio"] { accent-color: var(--cocoa); }
.gx-field-row label { font-size: 12px; color: var(--cocoa); letter-spacing: 0; text-transform: none; font-weight: 500; }

/* Payment methods */
.gx-pays { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gx-pay-card { border: 2px solid var(--line); border-radius: 8px; padding: 14px; cursor: pointer; background: var(--paper); transition: all 0.15s; text-align: left; font-family: inherit; position: relative; }
.gx-pay-card:hover { border-color: var(--saffron); }
.gx-pay-card.act { border-color: var(--cocoa); background: var(--bone); }
.gx-pay-card.act::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; background: var(--cocoa); color: var(--bone); border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gx-pay-card b { display: block; font-size: 13px; color: var(--cocoa); font-weight: 700; margin-bottom: 2px; }
.gx-pay-card small { font-size: 11px; color: var(--cocoa-soft); }
.gx-pay-detail { margin-top: 12px; padding: 12px 14px; background: var(--bone); border-radius: 6px; font-size: 12px; color: var(--cocoa-soft); line-height: 1.6; }

/* Order summary panel */
.gx-summary { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 20px 22px; position: sticky; top: 12px; }
.gx-summary h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--cocoa); margin: 0 0 14px; font-weight: 600; }
.gx-summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.gx-summary-item:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.gx-summary-item .img { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--bone); position: relative; }
.gx-summary-item .img img { width: 100%; height: 100%; object-fit: cover; }
.gx-summary-item .img em { position: absolute; top: -4px; right: -4px; background: var(--cocoa); color: var(--bone); font-size: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gx-summary-item .nm { font-size: 12px; color: var(--cocoa); font-weight: 600; line-height: 1.3; }
.gx-summary-item .coll { font-size: 10px; color: var(--cocoa-soft); letter-spacing: 0.04em; }
.gx-summary-item .pr { font-size: 13px; color: var(--cocoa); font-weight: 700; white-space: nowrap; }
.gx-summary .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--cocoa); padding: 4px 0; }
.gx-summary .row.total { padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.gx-summary .row.total b { font-size: 22px; color: var(--danger); font-weight: 700; }
.gx-coupon { display: flex; gap: 6px; margin: 10px 0; }
.gx-coupon input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-family: inherit; font-size: 12px; color: var(--cocoa); outline: none; }
.gx-coupon button { background: var(--cocoa); color: var(--bone); border: none; padding: 0 14px; border-radius: 4px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; letter-spacing: 0.04em; }
.gx-coupon button:hover { background: var(--saffron-dk); }
.gx-place-order { width: 100%; margin-top: 14px; background: var(--saffron); color: var(--cocoa); border: none; padding: 16px; border-radius: 6px; font-size: 14px; letter-spacing: 0.06em; cursor: pointer; font-family: inherit; font-weight: 700; transition: background 0.15s; }
.gx-place-order:hover { background: var(--cocoa); color: var(--bone); }
.gx-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--cocoa-soft); margin-top: 10px; }

/* ─── Empty cart on checkout ─── */
.gx-empty-checkout { padding: 60px 16px; text-align: center; }
.gx-empty-checkout .glyph { font-size: 64px; opacity: 0.4; margin-bottom: 12px; }
.gx-empty-checkout h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--cocoa); margin: 0 0 6px; font-weight: 600; }
.gx-empty-checkout p { font-size: 14px; color: var(--cocoa-soft); margin: 0 0 18px; }

/* ─── Confirmation ─── */
.gx-confirm { padding: 60px 16px; text-align: center; max-width: 560px; margin: 0 auto; }
.gx-confirm .check { width: 80px; height: 80px; border-radius: 50%; background: var(--success); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 16px; }
.gx-confirm h1 { font-family: 'Cormorant Garamond', serif; font-size: 36px; color: var(--cocoa); margin: 0 0 8px; font-weight: 600; }
.gx-confirm p { font-size: 14px; color: var(--cocoa-soft); line-height: 1.7; margin: 0 0 14px; }
.gx-confirm .orderno { background: var(--bone); padding: 10px 18px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--cocoa); display: inline-block; margin: 8px 0 18px; letter-spacing: 0.06em; }
.gx-confirm .actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .gx-pdp-grid { grid-template-columns: 1fr; }
  .gx-shop-grid { grid-template-columns: 200px 1fr; }
  .gx-checkout-grid { grid-template-columns: 1fr 320px; }
}
@media (max-width: 768px) {
  .gx-pdp-gallery { grid-template-columns: 1fr; }
  .gx-pdp-thumbs { flex-direction: row; overflow-x: auto; order: 2; }
  .gx-pdp-thumb { flex: 0 0 64px; }
  .gx-pdp-body h1 { font-size: 26px; }
  .gx-pdp-price b { font-size: 26px; }
  .gx-pdp-cta { grid-template-columns: 1fr 1fr auto; }
  .gx-reviews-head { grid-template-columns: 1fr; }

  .gx-shop-grid { grid-template-columns: 1fr; }
  .gx-filters { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; z-index: 110; transform: translateX(-110%); transition: transform 0.3s; border-radius: 0; overflow-y: auto; }
  .gx-filters.open { transform: none; }
  .gx-filter-mobile { display: inline-flex; align-items: center; gap: 6px; }

  .gx-checkout-grid { grid-template-columns: 1fr; }
  .gx-form-grid { grid-template-columns: 1fr; }
  .gx-pays { grid-template-columns: 1fr; }
  .gx-summary { position: static; }
}
