/* Product page specific styles */
.page-head { padding: 20px 0 10px; }
.breadcrumbs { color: var(--muted); font-size: .95rem; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 0; }
.page-title h1 { margin: 0; font-size: 1.4rem; }

/* Load more */
.load-more-wrap { display: flex; justify-content: center; margin: 24px 0 40px; }
.load-more { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.load-more[disabled] { opacity: .6; cursor: not-allowed; }

/* ==== Product Detail (product-info.php) ==== */
.product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 16px 0 24px; }

/* Viewer & zoom lens */
.viewer { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.viewer .square { aspect-ratio: 1/1; width: 100%; display: block; object-fit: cover; }
.lens { position: absolute; border: 1px solid var(--border); width: 140px; height: 140px; border-radius: 50%; opacity: .9; display: none; background-repeat: no-repeat; background-size: 200%; }
.viewer:hover .lens { display: block; }

/* Info */
.title { margin: 0 0 6px; font-size: 1.5rem; }
.rating { display: flex; align-items: center; gap: 10px; color: #f59e0b; }
.rating .stars { letter-spacing: 1px; }
.rating a { color: var(--muted); font-size: .95rem; }
.short-desc { color: var(--muted); margin: 10px 0 14px; }

/* Thumbs */
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.thumbs button { border: 1px solid var(--border); border-radius: 10px; padding: 0; background: #fff; cursor: pointer; }
.thumbs img { border-radius: 10px; width: 72px; height: 72px; object-fit: cover; }

.price { font-weight: 700; font-size: 1.25rem; margin: 12px 0; }

/* Options row */
.options-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; color: var(--muted); }
.field select, .field input[type=number] { min-width: 140px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.buy-row { display: flex; gap: 12px; margin: 14px 0; }
.btn { display: inline-block; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Delivery checker */
.delivery { margin: 6px 0 0; display: flex; gap: 8px; align-items: center; }
.delivery input { padding: 12px; border: 1px solid var(--border); border-radius: 8px; max-width: 180px; }

/* Specs */
.specs { margin: 24px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.specs h3 { margin: 0; padding: 12px 16px; background: var(--accent); border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { width: 28%; color: #111827; font-weight: 600; background: #f9fafb; }

/* Responsive CSS for product section */

/* Optional responsive tweak specific to product page */
@media (max-width: 980px){
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .product-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
