.handloom-main {
  padding-top: 80px;
}

.premium-link {
  color: var(--gold);
  font-weight: 700;
}

.handloom-hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0.2), rgba(18, 12, 8, 0.88)), url("../assets/traditional_attires.png") center/cover no-repeat;
}

.handloom-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 16% 25%, rgba(255, 153, 51, 0.28), transparent 30%), radial-gradient(circle at 84% 35%, rgba(185, 133, 73, 0.24), transparent 30%);
}

.handloom-hero-content {
  width: min(920px, 92%);
  padding: 110px 0 82px;
  text-align: center;
  color: #fff;
}

.handloom-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.handloom-hero h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.03;
}

.handloom-hero h1 span {
  color: var(--saffron);
}

.handloom-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--saffron);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.handloom-section {
  padding: 82px 0 100px;
}

.handloom-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.handloom-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.handloom-heading h2 {
  margin: 8px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.handloom-heading p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.12);
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.handloom-search-wrap {
  margin: 28px 0 18px;
}

.handloom-search-wrap label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.handloom-search-wrap input {
  width: 100%;
  max-width: 480px;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.handloom-search-wrap input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.handloom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.handloom-filter {
  padding: 10px 18px;
  border: 2px solid var(--border-color);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.handloom-filter:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.handloom-filter.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.handloom-status {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.handloom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.handloom-card {
  border-radius: 16px;
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.handloom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.handloom-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.handloom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.handloom-region {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.handloom-body {
  padding: 20px;
}

.handloom-body h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.handloom-location {
  margin: 0 0 14px;
  color: var(--saffron);
  font-size: 0.9rem;
  font-weight: 600;
}

.handloom-meta {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.handloom-meta span {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.handloom-meta strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.handloom-description {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.details-button {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--saffron);
  border-radius: 10px;
  background: transparent;
  color: var(--saffron);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.details-button:hover {
  background: var(--saffron);
  color: #fff;
}

.handloom-empty {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.handloom-empty.visible {
  display: block;
}

.handloom-empty h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--text-primary);
}

.handloom-empty p {
  margin: 0;
  font-size: 1rem;
}

.handloom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.handloom-modal.open {
  opacity: 1;
  visibility: visible;
}

.handloom-modal-card {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  padding: 32px;
  border-radius: 20px;
  background: var(--card-bg);
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.handloom-modal.open .handloom-modal-card {
  transform: scale(1);
}

.handloom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.handloom-modal-close:hover {
  background: var(--saffron);
  color: #fff;
}

.modal-region {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.12);
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.handloom-modal h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--text-primary);
}

.modal-location {
  margin: 0 0 20px;
  color: var(--saffron);
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 153, 51, 0.06);
}

.modal-info-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-info-grid span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-info-grid strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.handloom-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.handloom-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.handloom-footer a {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 600;
}

.handloom-footer a:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.btn-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 153, 51, 0.4);
}

@media (max-width: 768px) {
  .handloom-grid {
    grid-template-columns: 1fr;
  }

  .handloom-hero-content {
    padding: 80px 0 60px;
  }

  .handloom-section {
    padding: 60px 0 80px;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .handloom-modal-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .handloom-filters {
    gap: 8px;
  }

  .handloom-filter {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .handloom-card {
    border-radius: 12px;
  }

  .handloom-body {
    padding: 16px;
  }
}
