/* ==========================================================================
   VITAMINO INDIA PVT LTD. - Products & Catalog Stylesheet
   ========================================================================== */

/* Search & Filters */
.catalog-controls {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-box {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(11, 93, 50, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* Product Grid System (4 Columns Per Row with Auto-Centered Last Row Items) */
.products-grid,
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.products-grid .product-card,
.product-grid .product-card {
  width: calc(25% - 15px);
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .products-grid .product-card,
  .product-grid .product-card { width: calc(33.333% - 14px); }
}

@media (max-width: 768px) {
  .products-grid .product-card,
  .product-grid .product-card { width: calc(50% - 10px); }
}

@media (max-width: 480px) {
  .products-grid .product-card,
  .product-grid .product-card { width: 100%; max-width: 100%; }
}

/* Standard Product Card */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 93, 50, 0.25);
}

.product-card-img,
.product-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.product-card-img img,
.product-card-img-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 20px !important;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-img img,
.product-card:hover .product-card-img-wrapper img {
  transform: translate(-50%, -50%) scale(1.05);
}

.product-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(11, 93, 50, 0.9);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brand-orange);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.product-card-alt {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  text-align: left;
}

.product-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.product-card-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
}

/* Empty search state */
.no-results {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Product Detail Page Layout */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
}

@media (max-width: 991px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.product-gallery {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.product-main-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-info-panel h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.product-alt-title {
  font-size: 1.1rem;
  color: var(--brand-orange);
  font-weight: 600;
  margin-bottom: 16px;
}

.product-price-badge {
  display: inline-block;
  background-color: var(--sage-light);
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.product-summary-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.product-detail-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Specification Tables */
.spec-table-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.spec-table th, .spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.spec-table th {
  background-color: var(--sage-light);
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-weight: 700;
  width: 40%;
}

.spec-table tr:last-child td,
.spec-table tr:last-child th {
  border-bottom: none;
}

.spec-table tr:nth-child(even) {
  background-color: rgba(248, 245, 236, 0.5);
}

/* Tabbed Detail Section */
.product-tabs {
  margin-top: 60px;
}

.tab-headers {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-header-btn {
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-header-btn.active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

.tab-content {
  display: none;
  background-color: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
  list-style: disc;
}

.tab-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}
