/* BUILD YOUR BUNDLE PAGE — Madex Coatings */

/* Hero */
.byo-hero {
  position: relative; padding: 10rem 3rem 4rem; text-align: center; overflow: hidden;
}
.byo-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(200,169,126,.12) 0%, transparent 60%);
  pointer-events: none;
}
.byo-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
}
.byo-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.byo-hero-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .4em;
  color: var(--accent-gold); text-transform: uppercase; margin-bottom: 1rem;
}
.byo-hero-title {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 1rem;
}
.byo-hero-title em { font-style: italic; color: var(--accent-gold); }
.byo-hero-sub {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 500px; margin: 0 auto 1.5rem;
}
.byo-discount-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.8rem; background: rgba(200,169,126,.1);
  border: 1px solid rgba(200,169,126,.25); border-radius: 50px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .05em;
  color: var(--accent-gold);
}
.byo-discount-badge span { font-weight: 700; font-size: 1rem; }

/* Breadcrumb */
.byo-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 2rem; font-size: .8rem;
}
.byo-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .3s; }
.byo-breadcrumb a:hover { color: var(--accent-gold); }
.byo-breadcrumb .current { color: var(--text-white); }

/* Filters */
.byo-filters {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}

/* Product Grid */
.byo-grid {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 8rem;
}
.byo-grid-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}

/* Product Card */
.byo-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; overflow: hidden;
  transition: border-color .4s, transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s;
  animation: byoCardIn .5s cubic-bezier(.16,1,.3,1) both;
  display: flex; flex-direction: column;
}
.byo-card.in-bundle { border-color: var(--accent-gold); }
.byo-card:hover {
  transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
@keyframes byoCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.byo-card:nth-child(1){animation-delay:.02s}.byo-card:nth-child(2){animation-delay:.06s}
.byo-card:nth-child(3){animation-delay:.1s}.byo-card:nth-child(4){animation-delay:.14s}
.byo-card:nth-child(5){animation-delay:.18s}.byo-card:nth-child(6){animation-delay:.22s}
.byo-card:nth-child(7){animation-delay:.26s}.byo-card:nth-child(8){animation-delay:.3s}
.byo-card:nth-child(9){animation-delay:.34s}.byo-card:nth-child(10){animation-delay:.38s}

.byo-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block;
  background: #111;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.byo-card:hover .byo-card-img { transform: scale(1.04); }

.byo-card-body {
  padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1;
}
.byo-card-cat {
  font-family: var(--mono); font-size: .6rem; color: var(--accent-gold);
  letter-spacing: .25em; text-transform: uppercase;
}
.byo-card-name {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3;
}
.byo-card-prices { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.byo-card-original {
  font-size: .85rem; color: var(--text-muted); text-decoration: line-through;
}
.byo-card-bundle-price {
  font-size: 1rem; font-weight: 700; color: var(--accent-gold);
}
.byo-card-save {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  padding: .2rem .5rem; background: rgba(200,169,126,.12);
  color: var(--accent-gold); border-radius: 3px; text-transform: uppercase;
}

/* Size selector inside card */
.byo-card-sizes {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem;
}
.byo-size-btn {
  padding: .35rem .8rem; border: 1px solid var(--glass-border);
  background: transparent; color: var(--text-muted);
  font-family: var(--mono); font-size: .65rem; cursor: pointer;
  transition: all .3s; border-radius: 0;
}
.byo-size-btn:hover { border-color: var(--text-white); color: var(--text-white); }
.byo-size-btn.active {
  background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-dark);
}

/* Qty + Add */
.byo-card-actions {
  display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .8rem;
  border-top: 1px solid var(--glass-border);
}
.byo-qty {
  display: flex; align-items: center; border: 1px solid var(--glass-border); flex-shrink: 0;
}
.byo-qty-btn {
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--text-white); font-size: .9rem; cursor: pointer;
  display: grid; place-items: center; transition: background .3s;
}
.byo-qty-btn:hover { background: var(--glass); }
.byo-qty-val {
  width: 34px; text-align: center; font-family: var(--mono); font-size: .8rem;
  border: none; background: transparent; color: var(--text-white);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  height: 32px; outline: none;
}
.byo-add-btn {
  flex: 1; padding: .6rem; border: 1px solid var(--accent-gold);
  background: transparent; color: var(--accent-gold);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: all .3s;
  white-space: nowrap;
}
.byo-add-btn:hover { background: var(--accent-gold); color: var(--bg-dark); }
.byo-add-btn.added {
  background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold);
}

/* ─── STICKY FOOTER SUMMARY ─── */
.byo-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(15,15,15,.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  transform: translateY(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.byo-footer.visible { transform: translateY(0); }
.byo-footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 3rem; display: flex; align-items: center; gap: 2rem;
}
.byo-footer-items {
  flex: 1; display: flex; align-items: center; gap: .8rem;
  overflow-x: auto; scrollbar-width: none; padding: .3rem 0;
}
.byo-footer-items::-webkit-scrollbar { display: none; }
.byo-footer-thumb {
  position: relative; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--glass-border);
}
.byo-footer-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.byo-footer-thumb-qty {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-gold); color: var(--bg-dark);
  font-size: .6rem; font-weight: 700; display: grid; place-items: center;
}
.byo-footer-thumb-remove {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,50,50,.9); color: #fff; border: none;
  font-size: .55rem; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.byo-footer-thumb:hover .byo-footer-thumb-remove { opacity: 1; }

.byo-footer-summary {
  display: flex; align-items: center; gap: 2rem; flex-shrink: 0;
}
.byo-footer-count {
  font-family: var(--mono); font-size: .75rem; color: var(--text-muted);
  white-space: nowrap;
}
.byo-footer-count strong { color: var(--text-white); }
.byo-footer-total { text-align: right; }
.byo-footer-total-original {
  font-size: .75rem; color: var(--text-muted); text-decoration: line-through;
}
.byo-footer-total-price {
  font-size: 1.3rem; font-weight: 700; color: var(--accent-gold);
}
.byo-footer-total-saved {
  font-size: .65rem; color: #25D366; font-family: var(--mono);
  letter-spacing: .05em;
}
.byo-footer-cta {
  padding: .9rem 2rem; background: var(--accent-gold); color: var(--bg-dark);
  border: none; font-weight: 700; font-size: .85rem; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: all .3s;
  white-space: nowrap; flex-shrink: 0;
}
.byo-footer-cta:hover { background: #d4b88e; transform: translateY(-2px); }

/* Empty footer state */
.byo-footer-empty {
  font-size: .85rem; color: var(--text-muted); flex: 1;
}

/* Responsive */
@media(max-width:1024px){
  .byo-grid-inner{grid-template-columns:repeat(2,1fr)}
  .byo-footer-inner{padding:1rem 1.5rem;gap:1rem}
  .byo-footer-summary{gap:1rem}
}
@media(max-width:768px){
  .byo-hero{padding:7rem 1.5rem 2.5rem}
  .byo-breadcrumb,.byo-filters{padding-left:1.5rem;padding-right:1.5rem}
  .byo-grid{padding:0 1.5rem 7rem}
  .byo-grid-inner{grid-template-columns:1fr}
  .byo-footer-inner{flex-wrap:wrap;padding:.8rem 1rem}
  .byo-footer-items{order:2;width:100%}
  .byo-footer-summary{order:1;width:100%;justify-content:space-between}
  .byo-footer-cta{order:3;width:100%;text-align:center}
}
