/* SHOP PAGE — Madex Coatings */

.shop-hero {
  position: relative; padding: 10rem 3rem 4rem; text-align: center; overflow: hidden;
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,169,126,.1) 0%, transparent 60%);
  pointer-events: none;
}
.shop-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;
}
.shop-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.shop-hero-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .4em;
  color: var(--accent-gold); text-transform: uppercase; margin-bottom: 1.2rem;
}
.shop-hero-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 1rem;
}
.shop-hero-title em { font-style: italic; color: var(--accent-gold); }
.shop-hero-sub {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 500px; margin: 0 auto;
}

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

/* Toolbar */
.shop-toolbar {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.shop-search { position: relative; flex: 0 1 340px; }
.shop-search-input {
  width: 100%; padding: .8rem 1.2rem .8rem 2.8rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-white); font-family: var(--sans); font-size: .85rem;
  outline: none; transition: border-color .3s, box-shadow .3s; border-radius: 0;
}
.shop-search-input::placeholder { color: var(--text-muted); }
.shop-search-input:focus {
  border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(200,169,126,.1);
}
.shop-search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

.shop-sort { display: flex; align-items: center; gap: .6rem; }
.shop-sort-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .15em;
  color: var(--text-muted); text-transform: uppercase; white-space: nowrap;
}
.shop-sort-select {
  padding: .6rem 2rem .6rem 1rem; background: var(--glass);
  border: 1px solid var(--glass-border); color: var(--text-white);
  font-family: var(--sans); font-size: .8rem; outline: none;
  cursor: pointer; transition: border-color .3s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8A8A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; border-radius: 0;
}
.shop-sort-select:hover { border-color: var(--accent-gold); }
.shop-sort-select option { background: #111; color: var(--text-white); }

.shop-view-toggle { display: flex; border: 1px solid var(--glass-border); }
.view-toggle-btn {
  width: 40px; height: 38px; background: transparent; border: none;
  color: var(--text-muted); cursor: pointer; display: grid; place-items: center;
  transition: all .3s;
}
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--glass-border); }
.view-toggle-btn:hover { color: var(--text-white); }
.view-toggle-btn.active { background: var(--accent-gold); color: var(--bg-dark); }

/* Filters */
.shop-filters {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.filter-tag {
  padding: .55rem 1.4rem; border: 1px solid var(--glass-border);
  background: transparent; color: var(--text-muted);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: all .3s; border-radius: 0;
}
.filter-tag:hover { border-color: var(--text-white); color: var(--text-white); }
.filter-tag.active {
  background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-dark);
}
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: rgba(255,255,255,.1); font-size: .6rem; margin-left: .4rem; padding: 0 .3rem;
}
.filter-tag.active .filter-count { background: rgba(10,10,10,.2); }

.shop-results-info {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.shop-results-count {
  font-family: var(--mono); font-size: .75rem; color: var(--text-muted); letter-spacing: .1em;
}
.shop-results-count strong { color: var(--text-white); }

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

/* Card */
.shop-card {
  position: relative; overflow: hidden; background: var(--glass);
  border: 1px solid var(--glass-border); cursor: pointer;
  text-decoration: none; color: var(--text-white);
  display: flex; flex-direction: column; border-radius: 8px;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s, border-color .4s;
  animation: cardIn .5s cubic-bezier(.16,1,.3,1) both;
}
.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.5); border-color: rgba(200,169,126,.2);
}
@keyframes cardIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.shop-card:nth-child(1){animation-delay:.02s}.shop-card:nth-child(2){animation-delay:.06s}
.shop-card:nth-child(3){animation-delay:.1s}.shop-card:nth-child(4){animation-delay:.14s}
.shop-card:nth-child(5){animation-delay:.18s}.shop-card:nth-child(6){animation-delay:.22s}
.shop-card:nth-child(7){animation-delay:.26s}.shop-card:nth-child(8){animation-delay:.3s}
.shop-card:nth-child(9){animation-delay:.34s}.shop-card:nth-child(10){animation-delay:.38s}
.shop-card:nth-child(11){animation-delay:.42s}.shop-card:nth-child(12){animation-delay:.46s}

.shop-card-img-wrap { position: relative; overflow: hidden; }
.shop-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block;
  background: #111;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.shop-card:hover .shop-card-img { transform: scale(1.06); }

.shop-card-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  padding: .3rem .8rem; background: var(--accent-gold); color: var(--bg-dark);
  font-family: var(--mono); font-size: .65rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}

.shop-card-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(10,10,10,.6);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; z-index: 3;
}
.shop-card:hover .shop-card-overlay { opacity: 1; }
.shop-card-view-btn {
  padding: .7rem 1.8rem; border: 1px solid var(--accent-gold);
  background: transparent; color: var(--accent-gold);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; cursor: pointer; transition: all .3s;
  transform: translateY(10px);
}
.shop-card:hover .shop-card-view-btn { transform: translateY(0); }
.shop-card-view-btn:hover { background: var(--accent-gold); color: var(--bg-dark); }

.shop-card-info {
  padding: 1.4rem 1.5rem 1.5rem; display: flex;
  flex-direction: column; gap: .5rem; flex: 1;
}
.shop-card-cat {
  font-family: var(--mono); font-size: .6rem; color: var(--accent-gold);
  letter-spacing: .25em; text-transform: uppercase;
}
.shop-card-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  line-height: 1.3; transition: color .3s;
}
.shop-card:hover .shop-card-name { color: var(--accent-gold); }
.shop-card-desc {
  font-size: .82rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--glass-border);
}
.shop-card-price { font-weight: 600; font-size: .95rem; }
.shop-card-price .old {
  color: var(--text-muted); text-decoration: line-through;
  font-size: .78rem; font-weight: 400; margin-right: .3rem;
}
.shop-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--glass-border); display: grid;
  place-items: center; color: var(--text-muted); transition: all .3s; flex-shrink: 0;
}
.shop-card:hover .shop-card-arrow {
  border-color: var(--accent-gold); background: var(--accent-gold); color: var(--bg-dark);
}

/* List View */
.shop-grid-inner.list-view { grid-template-columns: 1fr; gap: 1rem; }
.list-view .shop-card { flex-direction: row; }
.list-view .shop-card-img-wrap { width: 220px; min-width: 220px; }
.list-view .shop-card-img { aspect-ratio: auto; height: 100%; min-height: 200px; }
.list-view .shop-card-info { padding: 1.5rem 2rem; justify-content: center; }
.list-view .shop-card-desc { -webkit-line-clamp: 3; }
.list-view .shop-card-overlay { display: none; }

/* Empty */
.shop-empty { grid-column: 1/-1; text-align: center; padding: 5rem 2rem; }
.shop-empty-icon { font-size: 3rem; margin-bottom: 1.5rem; opacity: .4; }
.shop-empty-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
.shop-empty-text { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.shop-empty-btn {
  padding: .7rem 1.8rem; border: 1px solid var(--accent-gold);
  background: transparent; color: var(--accent-gold);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; cursor: pointer; transition: all .3s;
}
.shop-empty-btn:hover { background: var(--accent-gold); color: var(--bg-dark); }

/* Features Bar */
.shop-features { max-width: 1400px; margin: 0 auto; padding: 0 3rem 4rem; }
.shop-features-inner {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--glass-border); border: 1px solid var(--glass-border);
  border-radius: 8px; overflow: hidden;
}
.shop-feature {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.8rem; background: var(--bg-dark); transition: background .3s;
}
.shop-feature:hover { background: rgba(255,255,255,.02); }
.shop-feature-icon {
  font-size: 1.4rem; flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(200,169,126,.08);
  display: grid; place-items: center;
}
.shop-feature-title { font-size: .8rem; font-weight: 600; }
.shop-feature-desc { font-size: .7rem; color: var(--text-muted); }

/* Responsive */
@media(max-width:1024px){
  .shop-grid-inner{grid-template-columns:repeat(2,1fr)}
  .shop-toolbar{flex-direction:column;align-items:stretch}
  .shop-search{flex:1 1 100%}
  .shop-features-inner{grid-template-columns:repeat(2,1fr)}
  .list-view .shop-card-img-wrap{width:180px;min-width:180px}
}
@media(max-width:768px){
  .shop-hero{padding:7rem 1.5rem 2.5rem}
  .shop-breadcrumb,.shop-toolbar,.shop-filters,.shop-results-info{padding-left:1.5rem;padding-right:1.5rem}
  .shop-grid{padding:0 1.5rem 4rem}
  .shop-grid-inner{grid-template-columns:1fr}
  .shop-features{padding:0 1.5rem 3rem}
  .shop-features-inner{grid-template-columns:1fr}
  .list-view .shop-card{flex-direction:column}
  .list-view .shop-card-img-wrap{width:100%;min-width:100%}
  .list-view .shop-card-img{min-height:auto;aspect-ratio:16/9}
  .shop-view-toggle{display:none}
}
