/* ============================================================
   FRAME-TEMPLATE2025B.CSS
   ArtFrames — Plein Air Catalog Stylesheet
   Version: 2025.11.09
   Author: Stephen Crisafulli + ChatGPT
   ------------------------------------------------------------
   Purpose:
   - Dedicated stylesheet for pleinairframes2.html
   - Clean, centered 4×4×4×3 catalog grid
   - Modern responsive layout + hover animation
   - Simple one-block image sizing control
   ============================================================ */


/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 1.5;
}

/* === HEADER & FOOTER === */
header,
footer {
  text-align: center;
  width: 100%;
}

header img {
  width: 480px;
  max-width: 100%;
  height: auto;
}

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

header nav {
  margin: 8px 0;
}

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

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

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

/* Footer layout */
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;
}


/* ============================================================
   PLEIN AIR CATALOG — FINAL CENTERED 4×4×4×3 GRID
   ============================================================ */

/* Center the entire content area */
body.pleinair-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  max-width: 1200px;
}

/* Catalog grid: 4 columns per row */
.pleinair-page .catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
  justify-items: center;
  align-items: start;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 10px;
  text-align: center;
}

/* Catalog items */
.pleinair-page .catalog-item {
  width: 220px;
  text-align: center;
}

/* Captions */
.pleinair-page .catalog-item h3 {
  font-size: 1rem;
  margin: 8px 0 4px;
  font-weight: 600;
  color: #222;
}

.pleinair-page .catalog-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
}

/* ===== Responsive behavior ===== */
@media (max-width: 1024px) {
  .pleinair-page .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}
@media (max-width: 768px) {
  .pleinair-page .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
}
@media (max-width: 480px) {
  .pleinair-page .catalog-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}


/* ============================================================
   MASTER CONTROL: Plein Air Thumbnail Size + Hover Animation
   ============================================================ */

body.pleinair-page main .catalog-grid .catalog-item img {
  width: 180px !important;   /* ← Adjust this for all thumbnails */
  height: 180px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 10px auto !important;
  background-color: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* Hover zoom + soft shadow */
body.pleinair-page main .catalog-grid .catalog-item img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15) !important;
}

/* Responsive image scaling */
@media (max-width: 900px) {
  body.pleinair-page main .catalog-grid .catalog-item img {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 600px) {
  body.pleinair-page main .catalog-grid .catalog-item img {
    width: 140px !important;
    height: 140px !important;
  }
}


/* ============================================================
   VIEW CART BUTTON
   ============================================================ */
.view-cart {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(to bottom, #fef9e7, #e0b84e);
  color: #333;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #caa747;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  transition: all 0.3s ease;
}

.view-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to bottom, #fff3b0, #d8a837);
}

/* === CHROME REACTIVITY FIX — Plein Air Thumbnail Size Refresh === */
body.pleinair-page main .catalog-grid .catalog-item > a > img {
  width: 180px !important;
  height: 180px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 10px auto !important;
  background-color: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  transform: translateZ(0); /* forces Chrome to repaint */
  will-change: transform;  /* hints to Chrome this element will animate */
}

/* Hover zoom fix for Chrome */
body.pleinair-page main .catalog-grid .catalog-item > a > img:hover {
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* === Plein Air Intro Text Styling === */
body.pleinair-page .intro-text {
  max-width: 750px;
  margin: 1rem auto 2rem auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

/* === Plein Air Intro Text Styling === */
/* === FINAL TUNED INTRO TEXT — Balanced Leading for All Browsers === */
body.pleinair-page main p.intro-text {
  text-align: center !important;
  width: 100%;
  max-width: 750px;
  margin: 1rem auto 1.4rem auto !important;
  font-size: 1.05rem;
  line-height: 1.15; /* tighter leading */
  letter-spacing: 0.1px;
  color: #444;
}

/* Small Safari/Firefox correction (keeps them visually equal to Chrome) */
@supports not (-webkit-touch-callout: none) {
  body.pleinair-page main p.intro-text {
    line-height: 1.3;
  }
}

}

/* === Chrome Alignment Fix for Intro Text === */
body.pleinair-page .intro-text {
  position: relative;
  transform: translateZ(0); /* forces Chrome to repaint text layer */
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* === Plein Air Intro Text — Chrome-Proof Centered Layout === */
body.pleinair-page .intro-text {
  display: block;
  width: 100%;
  max-width: 750px;
  margin: 1rem auto 1.5rem auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.0;
  color: #444;
  transform: none !important;         /* reset any flex inheritance */
  -webkit-transform: none !important; /* for Safari/Chrome consistency */
  align-self: center;                 /* centers inside flex parent (main) */
  justify-self: center;
}

/* === Classic Frames Catalog – Centered Grid Fix === */
body.classic-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

body.classic-page .catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  justify-items: center !important;
  align-items: start !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 1100px !important;
  margin: 2rem auto !important;
  padding: 0 10px !important;
}

body.classic-page .catalog-item {
  width: 220px !important;
  text-align: center !important;
}

/* === Classic Frames Catalog: Force Centered Grid & items === */
body.classic-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

body.classic-page .catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  justify-items: center !important;
  align-items: start !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 1100px !important;
  margin: 2rem auto !important;
  padding: 0 10px !important;
}

body.classic-page .catalog-item {
  width: 220px !important;
  text-align: center !important;
}

/* ============================================================
   CLASSIC FRAMES PAGE — STABLE CENTERED GRID OVERRIDE (SAFE)
   ============================================================ */
body.classic-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

/* 4-column grid, auto-centering rows */
body.classic-page .catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(200px, 1fr)) !important;
  gap: 30px !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: start !important;
  text-align: center !important;
  max-width: 1100px !important;
  margin: 2rem auto !important;
  padding: 0 10px !important;
}

/* Each catalog card */
body.classic-page .catalog-item {
  width: 220px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Consistent thumbnail sizing */
body.classic-page .catalog-item img {
  width: 180px !important;
  height: 180px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 10px auto !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.classic-page .catalog-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Product Variants Horizontal Layout for WachtelGold & similar === */
body.wachtelgold-page .variant-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 10px;
}

body.wachtelgold-page .variant-section .variant {
  flex: 0 1 300px;    /* each variant takes up to ~300px; adjust if needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.wachtelgold-page .variant-section .variant img.corner-sample {
  width: 180px;        /* or your preferred size */
  height: auto;
  margin-bottom: 1rem;
}

/* === Variant corner-sample horizontal row === */
body.wachtelgold-page .variant-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 10px;
}

body.wachtelgold-page .variant-section .variant {
  flex: 0 1 300px; /* width of each variant card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 0.8s ease forwards;
}

body.wachtelgold-page .variant-section .variant img.corner-sample {
  width: 180px;
  height: auto;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.wachtelgold-page .variant-section .variant img.corner-sample:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body.wachtelgold-page .variant-section {
    flex-direction: column;
    gap: 30px;
  }
  body.wachtelgold-page .variant-section .variant {
    flex: 0 1 100%;
    max-width: 400px;
  }
}

/* === View Cart Button === */
.view-cart {
  display: inline-block !important;
  background-color: #c9a44f !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  margin: 20px auto !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.view-cart:hover {
  background-color: #b8913a !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}


/* === View Cart Button (Gold Style) === */
.view-cart {
  display: inline-block;
  background-color: #c9a44f; /* ArtFrames gold */
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin: 20px auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.view-cart:hover {
  background-color: #b8913a;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   UNIVERSAL NORMALIZER — 2025 TIGHT SPACING EDITION
   Matches Wyeth Gold 2 vertical rhythm & compact form layout
   ============================================================ */

/* Center all legacy layout containers */
.gridContainer,
#LayoutDiv1, #LayoutDiv2, #LayoutDiv3, #LayoutDiv4,
#LayoutDiv5, #LayoutDiv6, #LayoutDiv7,
#text1, #text2, #text3, #text4,
div[align="center"], p[align="center"] {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Standardize corner sample images */
.gridContainer img,
div[align="center"] img,
p[align="center"] img {
  max-width: 220px !important;
  height: auto !important;
  border-radius: 6px !important;
  margin: 6px auto 10px auto !important;  /* tightened spacing */
  display: block !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.gridContainer img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Fine-tuned vertical spacing for legacy product forms --- */
form {
  display: inline-block !important;
  text-align: center !important;
  margin: 6px auto 10px auto !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

/* Tighten space between Qty input, dropdown, and Add to Cart */
form input[type="text"],
form input[type="number"],
form select {
  display: block !important;
  margin: 4px auto 6px auto !important; /* tighter gaps */
  padding: 5px 6px !important;
  font-size: 0.95rem !important;
  width: 90% !important;
  max-width: 180px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  text-align: center !important;
}

/* Reduce spacing above the “Add Custom Sizing” checkbox */
form label {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}

/* Reduce spacing above and below the link under the checkbox */
form a {
  margin-top: 1px !important;
  margin-bottom: 4px !important;
}

/* Bring Add to Cart button closer to dropdown */
input[type="submit"][value*="Add to Cart"] {
  display: inline-block !important;
  background-color: #0066ff !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  margin-top: 4px !important;   /* ⬅ tighter space above button */
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}
input[type="submit"][value*="Add to Cart"]:hover {
  background-color: #004ecc !important;
  transform: scale(1.04) !important;
}

/* --- Fine-tuned vertical rhythm: better separation between dropdown and custom sizing --- */

/* Dropdown positioning — lift it slightly higher */
form select {
  margin-top: 1px !important;      /* ↓ smaller top gap — pulls dropdown upward */
  margin-bottom: 10px !important;   /* ↓ tighter gap before checkbox */
  padding: 5px 6px !important;
  font-size: 0.95rem !important;
  width: 90% !important;
  max-width: 180px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  text-align: center !important;
  display: block !important;
}

/* “Add Custom Sizing” checkbox & label — lower slightly */
form label {
  display: block !important;
  margin-top: 10px !important;  /* ⬅ more space above checkbox */
  margin-bottom: 4px !important;
  font-size: 0.9rem !important;
  color: #333 !important;
}

/* Link below checkbox — keep tight */
form a {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  color: #5a3edc !important;
  text-decoration: none !important;
}

/* Add to Cart button — keep close, but not cramped */
input[type="submit"][value*="Add to Cart"] {
  margin-top: 10px !important;   /* ⬅ small buffer under link */
  padding: 8px 16px !important;
  background-color: #0066ff !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}
input[type="submit"][value*="Add to Cart"]:hover {
  background-color: #004ecc !important;
  transform: scale(1.04) !important;
}

/* === UNIVERSAL PRODUCT BLOCK SPACING: match WyethGold2 === */
.variant,
.catalog-item,
.product,
form {
  text-align: center !important;
  margin: 0 auto 1.25rem auto !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Image alignment */
.variant img,
.catalog-item img,
.product img {
  display: block !important;
  margin: 0 auto 8px auto !important;
  max-width: 180px !important;
  height: auto !important;
  border-radius: 4px !important;
  transition: transform 0.25s ease !important;
}
.variant img:hover {
  transform: scale(1.04) !important;
}

/* Title text below image */
.variant h2,
.catalog-item h3 {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #222 !important;
}

/* Form container */
form {
  display: inline-block !important;
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 10px 14px 14px 14px !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
}

/* Qty and dropdown — perfect Wyeth spacing */
form input[type="text"],
form input[type="number"],
form select {
  margin-top: 4px !important;
  margin-bottom: 10px !important;
  padding: 6px !important;
  font-size: 0.95rem !important;
  width: 90% !important;
  max-width: 180px !important;
  border: 1px solid #ccc !important;
  border-radius: 5px !important;
  text-align: center !important;
}

/* Checkbox + link group */
form label {
  margin-top: 10px !important;
  margin-bottom: 4px !important;
  font-size: 0.9rem !important;
  color: #333 !important;
}
form a {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  color: #5a3edc !important;
  text-decoration: none !important;
}

/* Add to Cart button */
input[type="submit"][value*="Add to Cart"] {
  margin-top: 12px !important;
  background-color: #0066ff !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}
input[type="submit"][value*="Add to Cart"]:hover {
  background-color: #004ecc !important;
  transform: scale(1.04) !important;
}

/* === Fix horizontal spacing between product cards === */
.variant-section {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;        /* ← Adjust this to tighten or widen spacing */
  flex-wrap: wrap !important;
  margin: 0 auto 20px auto !important;
  max-width: 1200px !important;
}

/* === Fine-tune vertical rhythm between dropdown and checkbox === */
form select {
  margin-top: 2px !important;
  margin-bottom: 20px !important;  /* ↑ increased spacing below dropdown */
}

form label {
  margin-top: 6px !important;
  margin-bottom: 4px !important;
}

/* === Rollback: restore original close product layout === */
.variant-section {
  display: flex !important;
  justify-content: center !important;
  gap: 0px !important;             /* ← restores the previous compact spacing */
  flex-wrap: wrap !important;
  margin: 0 auto 10px auto !important;
  max-width: 1100px !important;
}

/* Maintain good balance between form elements */
form select {
  margin-top: 4px !important;
  margin-bottom: 16px !important;  /* keeps nice breathing room below dropdown */
}

form label {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Keep block widths consistent */
.variant {
  width: 300px !important;
  margin: 0 8px 20px 8px !important;  /* tightens overall layout horizontally */
}

/* === UNIVERSAL CLEANUP: unify product layouts === */

/* Reset all legacy layout quirks */
.variant-section, .product, .catalog-grid {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 12px !important; /* adjust spacing between cards */
  margin: 0 auto 20px auto !important;
  max-width: 1200px !important;
}

/* Normalize variant/card structure */
.variant, .catalog-item, .product {
  width: 280px !important;
  margin: 0 6px 20px 6px !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* Image styling */
.variant img, .product img {
  display: block !important;
  margin: 0 auto 10px auto !important;
  max-width: 180px !important;
  border-radius: 6px !important;
  transition: transform 0.25s ease !important;
}
.variant img:hover {
  transform: scale(1.04) !important;
}

/* Typography and spacing */
.variant h2, .product h3 {
  margin: 4px 0 6px 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #222 !important;
}

/* Forms inside cards */
.variant form, .product form {
  display: inline-block !important;
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 10px 16px 14px 16px !important;
  margin-top: 4px !important;
}

/* Fine-tuned vertical spacing */
form input[type="text"],
form select {
  margin: 4px auto 14px auto !important;
  display: block !important;
  text-align: center !important;
  width: 90% !important;
  max-width: 180px !important;
}

form label {
  margin-top: 10px !important;
  margin-bottom: 4px !important;
  display: block !important;
}

/* Add to Cart button */
input[type="submit"][value*="Add to Cart"] {
  margin-top: 12px !important;
  background-color: #0066ff !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}
input[type="submit"][value*="Add to Cart"]:hover {
  background-color: #004ecc !important;
  transform: scale(1.04) !important;
}
