/* Global & Header/Footer CSS from exact match */

/* Navbar */

/* Footer */

.shop-header {
  padding: 80px 0 20px 0;
}

.shop-header h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.95rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.shop-section {
  padding: 0 0 100px 0;
}

/* =========================================================
   CATEGORY FILTER TABS & MOBILE DROPDOWN
   ========================================================= */
.product-tabs-wrapper {
  margin-bottom: 34px;
  display: flex;
  justify-content: flex-start;
  position: relative;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

.tab-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a5f;
  background-color: #f1f5f9;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: normal;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: #e2e8f0;
  color: #0f2744;
}

.tab-btn.active {
  background-color: #ea7124;
  color: #ffffff;
  box-shadow: none;
}

/* --- Mobile Category Dropdown Selector (Active on <= 768px) --- */
.product-mobile-dropdown {
  display: none;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.mobile-dropdown-btn {
  width: 100%;
  height: 52px;
  background-color: #ffffff;
  border: 1.5px solid #121a2f;
  border-radius: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.mobile-dropdown-btn:focus,
.product-mobile-dropdown.open .mobile-dropdown-btn {
  border-color: #ea7124;
  box-shadow: 0 2px 10px rgba(234, 113, 36, 0.2);
}

.mobile-dropdown-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #888888;

  letter-spacing: 0.8px;
  margin-right: 8px;
  flex-shrink: 0;
}

.mobile-dropdown-current {
  font-size: 0.98rem;
  font-weight: 600;
  color: #121a2f;
  flex: 1;
  text-align: left;
  letter-spacing: 0.2px;
}

.mobile-dropdown-chevron {
  color: #121a2f;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.product-mobile-dropdown.open .mobile-dropdown-chevron {
  transform: rotate(180deg);
  color: #ea7124;
}

.mobile-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1.5px solid #121a2f;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  z-index: 100;
  display: none;
  flex-direction: column;
}

.product-mobile-dropdown.open .mobile-dropdown-menu {
  display: flex;
}

.mobile-dropdown-item {
  padding: 15px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #222222;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.mobile-dropdown-item:last-child {
  border-bottom: none;
}

.mobile-dropdown-item .check-icon {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mobile-dropdown-item:hover {
  background-color: #fef4ec;
  color: #ea7124;
}

.mobile-dropdown-item.active {
  background-color: #fef4ec;
  color: #ea7124;
  font-weight: 600;
}

.mobile-dropdown-item.active .check-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-tabs {
    display: none !important;
  }

  .product-mobile-dropdown {
    display: block;
  }

  .product-tabs-wrapper {
    margin-bottom: 35px;
    padding: 0 5px;
  }
}

.products-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: opacity 0.3s ease;
}

.shop-card.hidden {
  display: none !important;
}

.shop-card__image-link {
  display: block;
  text-decoration: none;
  width: 100%;
}

.shop-card__image {
  background: transparent;
  margin-bottom: 18px;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.shop-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  font-family: var(--font-heading);
  text-align: center;
}

.shop-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shop-card h3 a:hover {
  color: #ea7124;
}

@media (max-width: 992px) {
  .products-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
  }
}

@media (max-width: 576px) {
  .products-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Modal CSS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  padding: 40px;
  width: 90%;
  max-width: 450px;
  border-radius: 0;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-box h3 {
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}