/* =============================================================================
   CLTRD WEBSHOP STYLING COMPLEET
   ============================================================================= */

body.shop-page {
  background-color: #ffffff;
  color: #0a0a0a;
  min-height: 100vh;
  overflow-y: auto;
  padding: 24px 40px; 
}

.shop-container {
  max-width: 1200px;
  margin: 90px auto 0 auto; 
}

#shop-logo {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  width: auto;
  z-index: 99999;
  opacity: 1;
  filter: none;
}

.shop-header {
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}

.shop-pretitle {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #707070;
  display: block;
  margin-bottom: 8px;
}

.shop-title {
  font-family: var(--font-display);
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;            
  overflow: hidden;               
  background-color: #f5f5f5;      
  margin-bottom: 16px;
}

.shop-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;               
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .shop-product-img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.product-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.product-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: #707070;
  margin: 0;
}

/* =============================================================================
   PRODUCT DETAIL POP-UP (MODAL) STYLING
   ============================================================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal.is-open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #0a0a0a;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  display: flex;
  gap: 40px;
}

.modal-image-container {
  flex: 1;
  aspect-ratio: 3 / 4;
  background-color: #f5f5f5;
  overflow: hidden;
}

#modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 0;
}

.modal-header-info h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.05em;
}

#modal-price {
  font-family: var(--font-body);
  font-size: 18px;
  color: #707070;
  margin: 0;
}

#modal-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
  margin: 20px 0;
}

/* Algemene Labels voor de selectors */
.selector-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #707070;
  display: block;
  margin-bottom: 10px;
}

/* Size Selector in Pop-up */
.modal-size-selector {
  margin-bottom: 20px;
}

.size-options {
  display: flex;
  gap: 12px;
}

.size-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.size-btn:hover { border-color: #0a0a0a; }
.size-btn.active {
  background-color: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

/* Quantity Selector in Pop-up */
.modal-quantity-selector {
  margin-bottom: 35px;
}

/* Universele Hoeveelheid Knoppen (+ en -) */
.modal-qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.qty-btn:hover {
  border-color: #0a0a0a;
}

.qty-num {
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.btn-primary {
  flex: 1;
  background-color: #0a0a0a;
  color: #ffffff;
  border: 1px solid #0a0a0a;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: #0a0a0a;
}

.btn-like {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-like:hover { border-color: #0a0a0a; }

.heart-icon {
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.btn-like.is-liked .heart-icon {
  fill: #ff3b30;
  stroke: #ff3b30;
}

/* =============================================================================
   UTILITY NAV & SLIDE-OUT PANEL STYLING
   ============================================================================= */
.shop-utility-nav {
  position: fixed;
  top: 24px;
  right: 40px;
  display: flex;
  gap: 20px;
  z-index: 99999;
}

.utility-trigger {
  background: none;
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  position: relative;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.utility-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.side-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.panel-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.side-panel.is-open .panel-container {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 20px;
  left: 24px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #0a0a0a;
  opacity: 0.5;
  z-index: 10;
}

.panel-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #707070;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.tab-btn.active { color: #0a0a0a; }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0a0a0a;
}

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.tab-content.active { display: flex; }

.panel-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
}

.empty-message {
  font-family: var(--font-body);
  font-size: 13px;
  color: #707070;
  text-align: center;
  margin-top: 40px;
}

.panel-item {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-item-img {
  width: 70px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #f5f5f5;
}

.panel-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-item-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}

.panel-item-size {
  font-family: var(--font-body);
  font-size: 11px;
  color: #a0a0a0;
  text-transform: uppercase;
}

.panel-item-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: #707070;
  margin: 0;
}

/* Zijpaneel hoeveelheid besturing kleiner maken dan pop-up */
.panel-qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.panel-qty-control .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.panel-qty-control .qty-num {
  font-size: 12px;
  min-width: 14px;
}

.panel-item-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.panel-item-remove {
  background: none;
  border: none;
  color: #707070;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.panel-item-remove:hover { color: #ff3b30; }

.panel-add-to-cart-short {
  background: none;
  border: none;
  color: #0a0a0a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  padding: 0;
}

.panel-add-to-cart-short:hover { opacity: 0.6; }

.panel-footer {
  padding: 30px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.checkout-btn { width: 100%; }

.shop-navigation {
  margin-top: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 40px;
}

.back-to-globe-btn {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #707070;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-globe-btn:hover { color: #0a0a0a; }

@media (max-width: 768px) {
  .modal-body { flex-direction: column; }
  .modal-content { padding: 20px; margin: 20px; }
  .products-grid { grid-template-columns: 1fr; }
}

.panel-item-size-selector {
  font-family: var(--font-body);
  font-size: 11px;
  color: #707070;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.cart-size-select {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
}

.cart-size-select:hover {
  border-color: #0a0a0a;
}