.clothing-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.clothing-hero {
  padding: 72px 0 28px;
  max-width: 820px;
}

.clothing-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  color: var(--text);
}

.clothing-intro {
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}

/* Toolbar */
.clothing-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 0 24px;
}

.clothing-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.clothing-sort-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.clothing-sort-row select {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1a1d21;
  color: var(--linen);
  font-size: 14px;
  outline: none;
}

/* Search */
.clothing-controls {
  padding: 12px 0 30px;
}

.clothing-controls input {
  width: 100%;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1b1d20;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.clothing-controls input::placeholder {
  color: #9e978d;
}

/* Gallery */
.clothing-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card */
.clothing-card {
  background: linear-gradient(180deg, #1e1a17 0%, #161310 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.clothing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.clothing-card-image {
  aspect-ratio: 4 / 5;
  background: #0f1113;
  overflow: hidden;
}

.clothing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.clothing-card:hover img {
  transform: scale(1.05);
}

.clothing-card-body {
  padding: 18px;
}

.clothing-tag {
  margin: 0 0 8px;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.clothing-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
}

.clothing-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.clothing-price {
  margin: 12px 0 0;
  color: var(--bronze);
  font-size: 15px;
  font-weight: bold;
}

/* Modal */
.clothing-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.clothing-modal.open {
  display: block;
}

.clothing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(4px);
}

.clothing-modal-content {
  position: relative;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: linear-gradient(180deg, #1e1a17 0%, #14110f 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  z-index: 2;
  overflow-y: auto;
}

.clothing-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #20242a;
  color: var(--linen);
  font-size: 28px;
  cursor: pointer;
}

.clothing-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.clothing-modal-image-wrap {
  background: #101215;
  border-radius: 22px;
  min-height: 320px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clothing-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  display: block;
}

.clothing-modal-details {
  min-width: 0;
}

.clothing-modal-details h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  color: var(--text);
}

.clothing-modal-details .clothing-meta {
  font-size: 18px;
  line-height: 1.7;
}

.clothing-modal-details .clothing-price {
  font-size: 18px;
  margin-top: 16px;
}

.clothing-modal-details .btn {
  margin-top: 20px;
  text-align: center;
}

.clothing-modal-details .modal-cta-buttons .btn {
  margin-top: 0;
  width: auto;
  flex: 1;
}

.modal-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.clothing-modal-details .modal-cta-buttons .btn {
  margin-top: 0;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

.clothing-specs {
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1100px) {
  .clothing-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .clothing-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .clothing-modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .clothing-modal-image-wrap {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 560px) {
  .clothing-gallery {
    grid-template-columns: 1fr;
  }

  .clothing-card-body h2 {
    font-size: 22px;
  }

  .clothing-modal-content {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 18px;
    border-radius: 20px;
  }
}
