/* =========================================================
   ArtFrames Global Stylesheet
   frame-template.css — Unified 2025 Version (Grid Fix)
   ========================================================= */

/* ===== Base Page Styles ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #fff;
  color: #333;
}

header img {
  width: 500px;
  max-width: 100%;
}

header h2 {
  font-weight: normal;
  margin: 10px 0;
}

header nav {
  margin: 8px 0;
}

header nav a {
  color: #0077cc;
  text-decoration: none;
  margin: 0 5px;
}

header nav a:hover {
  text-decoration: underline;
}

header hr {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid #ccc;
}

/* ===== Main Layout ===== */
main {
  padding: 20px;
}

/* ===== Main Page Headings ===== */
main h1 {
  margin-top: 5px; /* tighter spacing below nav rule */
  margin-bottom: 10px;
  font-size: 1.8em;
  text-align: center;
}

main p:first-of-type {
  margin-top: 5px;
  text-align: center;
}

/* ===== Product Info Section ===== */
.product-info {
  max-width: 750px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.highlight {
  color: #CC0000;
  font-weight: bold;
}

/* ===== Main Product Image ===== */
.main-photo {
  width: 650px;
  max-width: 650px;
  margin: 20px auto;
  display: block;
  border-radius: 5px;
  box-shadow: none;
}

/* ===== Product Box Grid (Individual Frames) ===== */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.product {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.product img.size35 {
  max-width: 140px;
}

.product img:hover {
  transform: scale(1.05);
}

/* ===== Text & Buttons ===== */
.product p {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 5px 0 10px;
}

.add-to-cart {
  background-color: #007BFF;
  color: #fff;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #0056b3;
}

.view-cart {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #0077cc; /* unified blue */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin: 2rem auto;
  transition: background-color 0.3s ease, transform 0.4s ease, opacity 0.3s ease;
}

.view-cart:hover {
  background-color: #005fa3;
  transform: scale(1.03);
  opacity: 0.95;
}

/* ===== Dropdowns, Checkboxes, Inputs ===== */
select {
  width: 180px;
  padding: 6px;
  margin-top: 5px;
  font-size: 13px;
}

input[type="text"] {
  width: 35px;
  padding: 4px;
  text-align: center;
}

input[type="checkbox"] {
  transform: scale(1.25);
  accent-color: #ffd700; /* gold accent */
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
  border-radius: 3px;
}

label {
  display: block;
  margin-top: 10px;
}

small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

/* =========================================================
   Catalog Grid Layout (4 per Row)
   ========================================================= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
  gap: 22px;
  justify-items: center;
  align-items: start;
  margin: 25px auto;
  max-width: 1100px;
}

/* Catalog Thumbnails */
.catalog-item img {
  width: 100%;
  max-width: 165px;
  height: 195px;
  object-fit: contain;
  background-color: #fff;
  border: none;
  box-shadow: none;
  margin: 0 auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.catalog-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

/* Catalog Text */
.catalog-item h3,
.catalog-item p {
  text-align: center;
  margin: 0.4rem 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== Footer ===== */
footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background-color: #f5f5f5;
  font-size: 0.9rem;
}

footer a {
  color: #0077cc;
  text-decoration: none;
}

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

/* === Testimonials Grid Layout === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto;
  text-align: left;
}

.testimonial {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  line-height: 1.6;
  font-size: 15px;
}

.testimonial a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.testimonial a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

