/*! Angel Samurai — a Ventus template (ventus.works)
 *  Free license: keep the Ventus badge visible. Commercial: shop.ventus.works
 *
 *  Page components for the full multi-page template (breadcrumb, portfolio
 *  filter + lightbox, shop product cards, product detail, forms extras,
 *  team, pagination, tables, alerts). References ONLY semantic tokens from
 *  tokens.css so it re-themes with the theme-switcher. Load AFTER main.css.
 */

/* ---------------- Breadcrumb (pairs with .hero--page) ---------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: 1rem; font-size: .85rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: .5; }

/* ---------------- Portfolio filter + gallery lightbox ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-bar button {
  padding: .5rem 1.1rem; font: inherit; font-size: .9rem; color: var(--color-text-muted);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  cursor: pointer; transition: all .25s var(--ease-dreamy);
}
.filter-bar button:hover { color: var(--color-heading); box-shadow: var(--shadow-soft); }
.filter-bar button.is-active { background: var(--gradient-brand); color: var(--color-on-primary); border-color: transparent; }
.is-excluded { display: none !important; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(61,50,41,.75); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox__frame { max-width: min(90vw, 60rem); max-height: 85vh; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); }
.lightbox__frame img { display: block; width: 100%; height: auto; }
.lightbox__cap { padding: 1rem 1.25rem; }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill); background: var(--color-surface); border: none; cursor: pointer; font-size: 1.2rem; color: var(--color-heading); box-shadow: var(--shadow-soft); }

/* ---------------- Shop: product cards ---------------- */
.product-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease-dreamy), box-shadow .3s var(--ease-dreamy); }
.product-card:hover { transform: var(--lift); box-shadow: var(--shadow-float); }
.product-card__media { position: relative; aspect-ratio: 1/1; background: var(--gradient-sakura); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge { position: absolute; top: .75rem; left: .75rem; padding: .25rem .7rem; font-size: .72rem; font-weight: 600; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-on-primary); }
.product-card__badge.is-sale { background: var(--color-gold); color: var(--ink); }
.product-card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.product-card__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-heading); }
.product-card__title a:hover { color: var(--color-primary); }

.price { display: flex; align-items: baseline; gap: .5rem; }
.price__now { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-primary); }
.price__was { font-size: .9rem; color: var(--color-text-muted); text-decoration: line-through; }

.stars { display: inline-flex; gap: .1rem; color: var(--color-gold); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.stars .empty { color: var(--color-border); }

/* ---------------- Product detail ---------------- */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.product-gallery__main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--gradient-sakura); box-shadow: var(--shadow-soft); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: .75rem; }
.product-gallery__thumbs .gallery__item { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.product-info h1 { margin-bottom: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); overflow: hidden; background: var(--color-surface); }
.qty button { width: 2.5rem; height: 2.75rem; border: none; background: none; font-size: 1.2rem; color: var(--color-heading); cursor: pointer; }
.qty button:hover { color: var(--color-primary); }
.qty input { width: 3rem; text-align: center; border: none; background: none; font: inherit; color: var(--color-heading); }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .95rem; }
.cart-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------------- Team ---------------- */
.member { text-align: center; padding: 1.75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.member__avatar { width: 6rem; height: 6rem; margin: 0 auto 1rem; border-radius: var(--radius-pill); overflow: hidden; background: var(--gradient-sakura); box-shadow: var(--shadow-glow); }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-heading); }
.member__role { font-size: .85rem; color: var(--color-primary); }
.member__socials { display: flex; gap: .75rem; justify-content: center; margin-top: .75rem; color: var(--color-text-muted); }
.member__socials a:hover { color: var(--color-primary); }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
  min-width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); font-size: .95rem; background: var(--color-surface);
}
.pagination a:hover { color: var(--color-primary); box-shadow: var(--shadow-soft); }
.pagination .is-active { background: var(--gradient-brand); color: var(--color-on-primary); border-color: transparent; }

/* ---------------- Tables / alerts / tags ---------------- */
.table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .95rem; color: var(--color-text); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); background: var(--color-bg-alt); }
.table .tick { color: var(--color-success); font-weight: 700; }
.table .cross { color: var(--color-text-muted); opacity: .6; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); border-left-width: 4px; font-size: .95rem; background: var(--color-surface-soft); }
.alert--info { border-left-color: var(--color-focus); }
.alert--success { border-left-color: var(--color-success); }
.alert--warn { border-left-color: var(--color-gold); }

.tag { display: inline-flex; align-items: center; padding: .25rem .75rem; font-size: .78rem; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.tag:hover { color: var(--color-primary); border-color: var(--color-accent); }
