/*
  tfp2.css – CLEANED + VERIFIED
  (no @charset to avoid placement issues)
*/

/* =========================================================
   Base / Reset
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-color: #D9D0B1;
  color: #111;
  text-align: center;
  display: flex;
  flex-direction: column;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4{ margin: 0; }

h1{
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0.5rem 0 0.75rem;
  text-transform: uppercase;
  text-shadow: 12px 0 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.125em;
}

h2{
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  padding-top: 0.25rem;
  color: #218AE7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(12, 12, 0, 0.2);
}

h3{
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 12px 0 8px rgba(0, 0, 0, 0.2);
  color: #0D0E0D;
}

h4{
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #218AE7;
}





 /* Page-only layout helpers (keeps tfp2.css clean) */
    .art-wrap { max-width: 1100px; margin: 0 auto; }
    .art-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }

    .art-controls input,
    .art-controls select {
      padding: 10px 12px;
      border: 1px solid rgba(0,0,0,.25);
      border-radius: 8px;
      width: 100%;
    }

    .art-controls input { max-width: 360px; }
    .art-controls select { max-width: 260px; }

    .art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
 


/* ===============================
   Art cards (single source of truth)
   =============================== */

.art-card {
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  text-align: center;      /* ← fixes name & price */
}



    /* This will later become a real PayPal "Add to Cart" button link */
    .buy-btn {
      display: inline-block;
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid rgba(0,0,0,.2);
      background: rgba(255,255,255,.6);
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

@media (max-width: 900px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .art-grid { grid-template-columns: 1fr;} }        
    


/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header{ padding: 18px 14px; }

.header-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* one line until phone */
.site-header .site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.2vw, 18px);
}

.site-header .site-nav li{ margin: 0; padding: 0; }

.site-header .site-nav a,
.site-header .site-nav a.hover-link{
  text-transform: uppercase;
  letter-spacing: clamp(0.05em, 0.25vw, 0.15em);
  color: #8B0808;
  font-weight: 700;

  font-size: clamp(0.85rem, 1.05vw, 1.15rem);
  padding: clamp(4px, 0.8vw, 8px) clamp(6px, 1vw, 10px);

  line-height: 1.2;
  display: inline-block;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-header .site-nav a:hover,
.site-header .site-nav a.hover-link:hover{ color: #218AE7; }

.home-icon{ margin-right: 12px; }

/* Force home icon size */
.home-icon img{
  width: 44px;
  max-width: 44px;
  height: auto;
  padding: 0;
  margin: 0;
  display: block;
}

/* phone nav */
@media (max-width: 600px){
  .site-header .site-nav ul{
    flex-direction: column;
    gap: 6px;
  }
  .site-header .site-nav a,
  .site-header .site-nav a.hover-link{
    font-size: 1.1rem;
    padding: 6px 10px;
  }
}

/* =========================================================
   Hover Tooltip Links (uses --after-content in HTML)
   ========================================================= */
.hover-link{ position: relative; }

.hover-link::after{
  content: var(--after-content);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;

  white-space: pre-wrap;
  background-color: #333;
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;

  width: max-content;
  max-width: 280px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 9999;
}

.hover-link:hover::after{ opacity: 1; }

/* =========================================================
   Image helper(s)
   ========================================================= */
.artwork{
  display: block;
  margin: 10px auto;
  max-width: 220px;
  width: 55%;
  height: auto;
}

@media (max-width: 600px){
  .artwork{
    max-width: 180px;
    width: 65%;
  }
}

/* =========================================================
   Main
   ========================================================= */
.site-main{
  flex: 1;
  padding: 10px 14px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  padding: 20px 14px;
  margin-top: 32px;
  background: linear-gradient(-45deg, rgb(255,91,127) 0%, rgb(255,213,86) 100%);
  color: #111;
  text-align: center;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a{
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  display: inline-block;
}

.footer-meta,
.footer-legal{
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer-legal{ opacity: 0.85; }

@media (max-width: 600px){
  .footer-links{
    flex-direction: column;
    gap: 6px;
  }
  .footer-links a{
    font-size: 1.1rem;
    padding: 6px 8px;
  }
}

/* =========================================================
   Buy Now Button (single source of truth)
   ========================================================= */

.item-btn{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;

  background-color: #218AE7; /* default fallback */
  transition:
    background-color .2s ease,
    color .2s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.item-btn:hover{
  background-color: #050505;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.item-btn:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Button positioning on cards */
.item-card .item-btn{
  display: inline-block;
  margin: 10px auto 0;
  white-space: nowrap;
}

/* =========================================================
   Item grid (single source of truth)
   ========================================================= */
#grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
  padding-top: 10px;
}

/* page width wrapper */
.item-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.item-sub{
  padding: 6px 12px 0;
  font-weight: 800;
  opacity: .85;
}

/* Card text */
.item-name{
  padding: 10px 12px 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0D0E0D;
}

.item-price{
  padding: 6px 12px 0;
  font-weight: 800;
  color: #111;
}

.item-desc{
  padding: 8px 12px 0;
  margin: 0;
  font-size: .98rem;
  line-height: 1.35;
  color: rgba(0,0,0,.78);
  flex: 1;
}

.item-meta{
  padding: 10px 12px 12px;
  font-size: .85rem;
  opacity: .75;
}


/* expands grid to page */

.page-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.page-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.status-msg { margin: 10px 0; }

.item-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}
.hero-note { margin-top: 8px; }



/* =========================================================
   Image stack + hover cycle (ONE version)
   ========================================================= */
/* frame */
.item-image{
  position: relative;
  height: 300px;          /* adjust taller/shorter */
  overflow: hidden;
  border-radius: 10px;
}

/* stacked images */
.item-image .img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;           /* IMPORTANT (prevents half-show issues) */
  object-fit: contain;
   background: rgba(0,0,0,.06);     /* use contain if you don't want cropping */
  opacity: 0;
}

/* default (not hovering) */
.item-image .img-1{ opacity: 1; }

/* only cycle when there are 2+ images */

/* only cycle when there are 2+ images */
.item-card.has-multi:hover .img{ opacity: 0; } /* clean slate */

/* ===== 2 images (no blank slots) ===== */
.item-card.imgs-2.has-multi:hover .img-1{ animation: img1_2 8s infinite; }
.item-card.imgs-2.has-multi:hover .img-2{ animation: img2_2 8s infinite; }

@keyframes img1_2 { 0%, 49% {opacity:1;} 50%, 100% {opacity:0;} }
@keyframes img2_2 { 0%, 49% {opacity:0;} 50%, 99% {opacity:1;} 100% {opacity:0;} }

/* ===== 3 images ===== */
.item-card.imgs-3.has-multi:hover .img-1{ animation: img1_3 9s infinite; }
.item-card.imgs-3.has-multi:hover .img-2{ animation: img2_3 9s infinite; }
.item-card.imgs-3.has-multi:hover .img-3{ animation: img3_3 9s infinite; }

@keyframes img1_3 { 0%, 32% {opacity:1;} 33%, 100% {opacity:0;} }
@keyframes img2_3 { 0%, 32% {opacity:0;} 33%, 65% {opacity:1;} 66%, 100% {opacity:0;} }
@keyframes img3_3 { 0%, 65% {opacity:0;} 66%, 99% {opacity:1;} 100% {opacity:0;} }

/* ===== 4 images ===== */
.item-card.imgs-4.has-multi:hover .img-1{ animation: img1_4 8s infinite; }
.item-card.imgs-4.has-multi:hover .img-2{ animation: img2_4 8s infinite; }
.item-card.imgs-4.has-multi:hover .img-3{ animation: img3_4 8s infinite; }
.item-card.imgs-4.has-multi:hover .img-4{ animation: img4_4 8s infinite; }

@keyframes img1_4 { 0%, 24% {opacity:1;} 25%, 100% {opacity:0;} }
@keyframes img2_4 { 0%, 24% {opacity:0;} 25%, 49% {opacity:1;} 50%, 100% {opacity:0;} }
@keyframes img3_4 { 0%, 49% {opacity:0;} 50%, 74% {opacity:1;} 75%, 100% {opacity:0;} }
@keyframes img4_4 { 0%, 74% {opacity:0;} 75%, 99% {opacity:1;} 100% {opacity:0;} }


/* NEW – canonical */
.item-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.item-status { margin: 10px 0; }


/* Center search + subcategory controls */
.item-controls{
  display: flex;
  justify-content: center;   /* ⬅ centers the whole group */
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}


.item-hero {
  margin-bottom: 16px;
}

.item-btn {
  display: inline-block;
  margin-top: 8px;
}

body.art-page #grid{
  align-items: stretch;
}
.ys-grid{
  align-items: stretch;
}

