/* === Products === */

/* Product Category Cards (Overview Page) */
.product-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-category-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-category-card:hover {
  box-shadow: 0 8px 30px rgba(0,51,102,0.12);
  transform: translateY(-3px);
}

.product-category-card .card__image {
  height: 100%;
  min-height: 200px;
}

.product-category-card .card__body {
  padding: 28px;
}

.product-category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-category-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

/* Delivery Methods */
.delivery-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.delivery-method {
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.delivery-method:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0,153,170,0.1);
}

.delivery-method h4 {
  color: var(--navy);
  margin-bottom: 8px;
}

.delivery-method p {
  font-size: 0.9rem;
  color: #666;
}

/* Category Page — Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.35s, transform 0.35s;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,51,102,0.14);
  transform: translateY(-5px);
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card .card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-card .card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,34,68,0.6) 100%);
}

.product-card .card__body {
  padding: 24px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.product-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.6;
}

.product-card .card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, letter-spacing 0.2s;
}

.product-card:hover .card__link {
  color: var(--navy);
  letter-spacing: 0.1em;
}

/* ==========================================
   Product Detail Page
   ========================================== */

/* IMPORTANT: Only .product-detail-grid gets grid columns, NOT the section */
.product-detail {
  padding: 60px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* Product Image */
.product-detail .product-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 100px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-detail .product-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Fallback placeholder style */
.product-detail .img-placeholder,
.product-detail-grid .img-placeholder {
  min-height: 400px;
  position: sticky;
  top: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background-size: cover;
  background-position: center;
}

.product-summary h2,
.product-detail-summary h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--navy);
  position: relative;
  padding-bottom: 16px;
}

.product-summary h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
}

.product-summary p {
  margin-bottom: 18px;
  color: #555;
  line-height: 1.8;
}

.product-detail-summary p {
  margin-bottom: 16px;
}

/* Product Body */
.product-body {
  margin-top: 48px;
}

.product-body h3 {
  color: var(--navy);
  margin-bottom: 16px;
}

/* ==========================================
   Spec Table — Modern Style
   ========================================== */
.spec-table {
  margin: 48px 0;
}

.spec-table h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-table h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}

.spec-table table {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.95rem;
}

.spec-table th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-table td {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

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

.spec-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.spec-table tr:hover td {
  background: rgba(0,153,170,0.05);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================
   Related Products
   ========================================== */
.related-products {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border-color);
}

.related-products h3 {
  margin-bottom: 28px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.related-products h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}

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

.related-product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: block;
}

.related-product-card:hover {
  box-shadow: 0 8px 28px rgba(0,51,102,0.12);
  transform: translateY(-4px);
}

.related-product-card .related-img-placeholder {
  height: 140px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--teal-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  position: relative;
}

.related-product-card .related-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,34,68,0.5) 100%);
}

.related-product-card h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 16px 16px 6px;
}

.related-product-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0 16px 16px;
  line-height: 1.6;
}

/* ==========================================
   Product CTA
   ========================================== */
.product-cta {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(0,153,170,0.04) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--teal);
  position: relative;
  overflow: hidden;
}

.product-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0,153,170,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.product-cta h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.product-cta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Sector Trading Info */
.sector-info {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(0,153,170,0.03) 100%);
  padding: 40px;
  border-radius: var(--radius-md);
  margin-top: 48px;
  border: 1px solid var(--border-color);
}

.sector-info h3 {
  color: var(--navy);
  margin-bottom: 16px;
}

.sector-info p {
  color: #555;
  line-height: 1.8;
}
