/* ============================
   GLOBAL RESET & BASE
============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rainbow: linear-gradient(
    90deg,
    #ff0040,
    #ff7a00,
    #ffd400,
    #00b755,
    #007bff,
    #8f00ff
  );
  --accent: #ff7a00;
}

h1, h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Optional: tweak sizes so they still feel like headings */
h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.1rem;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: #f6f4f1;
  color: #222;
  line-height: 1.5;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

/* Buttons – rainbow-y, but not too loud */
.btn {
  display: inline-block;
  background-image: var(--rainbow);
  background-size: 200% auto;
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-position 0.25s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #444;
}

.btn-danger {
  background: #b93333;
}

/* ============================
   HEADER & NAV
============================ */

.pfl-header {
  background: #fdfbf8;
  border-bottom: 4px solid transparent;
  border-image-slice: 1;
  border-image-source: var(--rainbow);
}

.announcement-bar {
  background: #222;
  color: #fff;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.announcement-inner {

  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.announcement-link {
  color: #ff7a00;
  font-weight: 700;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 0.6rem;
}

.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
}

.logo-style-text {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Nav Layout */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-cart-link {
  position: relative;
}

.nav-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e63946;
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.nav-cart-badge.hidden {
  display: none;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

/* subtle rainbow underline on hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-image: var(--rainbow);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-item.nav-dropdown {
  position: relative;
}

.nav-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.05rem;
  background-color: #fff;
  min-width: 170px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0.4rem 0;
  z-index: 100;
}

.nav-dropdown-menu.open {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #444;
}

.nav-dropdown-link:hover {
  background-color: #f5f0ea;
  color: var(--accent);
}

/* Hover Behavior */
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* ============================
   HERO / HOME
============================ */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-note {
  max-width: 900px;
  margin: 0.5rem auto 0;
  display: flex;
  justify-content: center;
}

.hero-note-text {
  font-family: "Caveat", "Handlee", "Bradley Hand", cursive;
  font-size: 1.4rem;
  color: #444;
}

.hero-note-text-bottom {
  font-family: "Caveat", "Handlee", "Bradley Hand", cursive;
  font-size: 1.4rem;
  color: #444;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  color: #777;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.blog-meta {
  margin: 0;
  color: #777;
  font-size: 0.9rem;
}

.blog-readmore {
  margin-top: auto;
  font-weight: 600;
}

.blog-post {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.blog-post-cover img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.blog-post-body {
  line-height: 1.7;
  color: #333;
}

.blog-excerpt {
  font-style: italic;
  color: #555;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.album-thumb {
  background: #f7f5f1;
  padding-top: 65%;
  position: relative;
}

.album-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #777;
}

.album-meta {
  padding: 1rem;
}

.album-meta h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.album-meta p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.photo-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.photo-frame {
  background: #f7f5f1;
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #444;
}

.hero-polaroid {
  margin: 2rem auto 0;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 1rem 1rem 1.1rem;
}

.hero-polaroid-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
  margin: 1.8rem auto 0;
  max-width: 1120px;
}

.hero-polaroid-landing {
  margin: 0;
  max-width: 520px;
  flex: 1 1 320px;
}

.hero-polaroid-landing .hero-polaroid-foot {
  display: flex;
  justify-content: center;
}

.cta-single {
  display: flex;
  justify-content: center;
}

.hero-frame {
  background: #f7f5f1;
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tooltip {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.hero-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
}

.hero-tooltip-bubble {
  position: absolute;
  bottom: 120%;
  right: 0;
  width: 360px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hero-tooltip:hover .hero-tooltip-bubble,
.hero-tooltip-icon:focus + .hero-tooltip-bubble {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.active {
  opacity: 1;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 0.9rem;
}

.hero-placeholder-alt {
  background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
  color: #f5f5f5;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-polaroid-foot {
  margin-top: 0.9rem;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #faf7f2, #f5f1ea);
  border: 1px solid #eee;
}

.cta-carousel {
  display: grid;
}

.cta-slide {
  display: none;
  justify-content: center;
}

.cta-slide.active {
  display: flex;
  gap: 0.6rem;
}

.cta-dots {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.cta-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0c8be;
  cursor: pointer;
}

.cta-dots .dot.active {
  background: #ff7a00;
}

.checkout-form .form-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.checkout-form .form-group ul li {
  display: block;
}

.checkout-form .form-group ul li label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}

.checkout-form .form-group ul li input[type="radio"] {
  margin: 0;
}

.payment-method-grid {
  display: grid;
  gap: 0.6rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
}

.payment-option input[type="radio"] {
  margin: 0;
  width: auto;
  padding: 0;
}

.checkout-form .form-group label.payment-option {
  display: flex;
}

@media (max-width: 760px) {
  .hero-polaroid-grid {
    flex-direction: column;
    align-items: center;
  }
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0 2rem;
}

.course-grid.tight {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.course-card {
  display: flex;
  max-width: 220px;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.course-thumb {
  position: relative;
  background: #f7f5f1;
  padding-top: 52%;
}

.course-thumb-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fce3d4, #f7f1ea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-thumb-overlay {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.course-meta {
  padding: 1rem;
}

.course-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.course-meta p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.course-detail {
  max-width: 800px;
  margin: 0 auto 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

.course-video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.course-video iframe,
.course-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.course-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lesson-info {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

.lesson-copy {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lesson-resources {
  background: #f8f6f2;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
}

.lesson-resources h3 {
  margin-top: 0;
}

.lesson-resources ul {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lesson-resources a {
  color: #444;
  text-decoration: none;
}

.lesson-resources a:hover {
  text-decoration: underline;
}

.lesson-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

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

/* ============================
   SHOP LAYOUT
============================ */

.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.shop-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-sidebar li {
  margin-bottom: 0.4rem;
}

.shop-sidebar a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
}

.shop-sidebar a.active {
  font-weight: 600;
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
}

/* Tablet – 2 columns */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile – 1 column */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Vertical tile layout */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

/* Polaroid-style image frame */
.product-card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 100%;       /* ✅ Polaroid aspect ratio */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;          /* keep image inside bounds */
}

/* Image fitted inside frame (NO crop) */
.product-card-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ✅ SHRINK to fit, no zoom */
  transform: translate(-50%, -50%);
  background: #f6f4f1;       /* subtle backdrop for letterboxing */
}

.product-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card-title {
  margin: 0.2rem 0 0.1rem;
  font-size: 0.95rem;
}

.product-card-price {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #444;
}

.product-detail {
  margin-top: 2rem;
}

.product-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.product-detail-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: #fff;
}

.product-image-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  background: #e5e0d7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
}

.product-detail-info h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.product-detail-price {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.product-detail-description {
  margin-bottom: 1.2rem;
  color: #444;
}

/* Options */
.product-options {
  margin-bottom: 1.2rem;
}

.option-group {
  margin-bottom: 0.8rem;
}

.option-group label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
  color: #555;
}

.option-select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.option-help {
  display: block;
  font-size: 0.78rem;
  color: #777;
  margin-top: 0.2rem;
}

/* Quantity + button row */
.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-label {
  font-size: 0.85rem;
  color: #555;
}

.qty-label input {
  width: 60px;
  margin-left: 0.4rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Mobile tweaks */
@media (max-width: 800px) {
  .product-detail-main {
    grid-template-columns: 1fr;
  }
}


/* ============================
   PRODUCT – EXTENDED INFO
============================ */

.product-extended-section {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.product-extended-divider {
  border: none;
  border-top: 1px solid #e2e2e2;
  margin-bottom: 2rem;
}

.product-extended-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.product-extended-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  max-width: 780px;
}

/* ============================
   PRODUCT – GALLERY (POLAROID)
============================ */

.product-gallery-section {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.product-gallery-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.product-gallery-card {
  text-align: center;
  /* base transform so animations & rotations stack nicely */
  transform-origin: center center;
}

/* Polaroid frame */
.product-gallery-frame {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 0.6rem 0.6rem 3.5rem; /* thicker bottom = Polaroid feel */
}

.product-gallery-photo {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 inside the white frame */
  overflow: hidden;
  border-radius: 10px;
}

/* Image & video fill the photo area */
.product-gallery-photo img,
.product-gallery-photo video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ✅ fill to fit, like the photos */
}

/* Optional: black base behind video so letterboxing looks nice */
.product-gallery-photo video {
  background: #000;
}

/* Tiny caption like handwritten text under a Polaroid */
.product-gallery-caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.04em;
}

/* Responsive columns */
@media (max-width: 900px) {
  .product-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================
   GALLERY – “RANDOM” ROTATION & FLOAT
============================ */

/* Slightly different tilt per tile – faux-random */
.product-gallery-card:nth-child(3n + 1) {
  transform: rotate(-2deg);
}

.product-gallery-card:nth-child(3n + 2) {
  transform: rotate(1.5deg);
}

.product-gallery-card:nth-child(3n) {
  transform: rotate(-1deg);
}

@keyframes galleryWiggle {
  0%   { transform: rotate(0deg); }
  2%   { transform: rotate(0.6deg); }
  4%   { transform: rotate(-0.6deg); }
  6%   { transform: rotate(0.4deg); }
  8%   { transform: rotate(-0.4deg); }
  10%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Apply animation with different delays so it feels organic */
.product-gallery-card .product-gallery-frame {
  animation: galleryWiggle 12s ease-in-out infinite;
}

.product-gallery-card:nth-child(3n + 1) .product-gallery-frame {
  animation-delay: 0s;
}

.product-gallery-card:nth-child(3n + 2) .product-gallery-frame {
  animation-delay: 3s;
}

.product-gallery-card:nth-child(3n) .product-gallery-frame {
  animation-delay: 6s;
}

/* Slight lift on hover to keep it fun */
.product-gallery-card:hover .product-gallery-frame {
  transform: translateY(-3px);
}

/* ============================
   CONTACT – POLAROID STYLE
============================ */

.contact-intro {
  max-width: 680px;
  margin: 0.5rem auto 2rem;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

.contact-polaroid {
  max-width: 520px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-polaroid-frame {
  background: #fff;
  padding: 1.2rem 1.2rem 1.6rem;  /* thicker bottom like a Polaroid */
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.contact-polaroid-caption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #777;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Form tweaks inside the Polaroid */
.contact-form .form-group {
  margin-bottom: 0.9rem;
  text-align: left;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-actions {
  margin-top: 1rem;
  text-align: center;
}

.form-errors {
  background: #fde4e4;
  color: #b93333;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
}

.contact-success-card {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #e4f5e9;
  color: #215c2c;
  font-size: 0.9rem;
  text-align: left;
  border: 1px solid #c4e6cf;
}

/* ============================
   MESSAGING
============================ */

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.conversation-card {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.conversation-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.conversation-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.badge-closed {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #eee;
  font-size: 0.75rem;
}

/* Thread bubbles */
.conversation-thread {
  max-width: 700px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.message-row {
  display: flex;
}

.message-customer {
  justify-content: flex-end;
}

.message-staff {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 80%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.message-customer .message-bubble {
  background: #e4f0ff;
}

.message-meta {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.15rem;
}

.message-text {
  font-size: 0.9rem;
  color: #333;
}

.conversation-reply {
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.conversation-order-link {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.3rem;
}


/* ============================
   CART
============================ */

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: #faf7f2;
}

.cart-options {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #555;
}

.option-toggle {
  margin-top: 0.35rem;
}

.option-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #faf7f2;
  font-size: 0.8rem;
  color: #444;
  cursor: pointer;
}

.option-toggle summary::-webkit-details-marker {
  display: none;
}

.option-toggle summary::after {
  content: "+";
  font-weight: 600;
}

.option-toggle[open] summary::after {
  content: "-";
}

.option-toggle ul {
  margin-top: 0.4rem;
}

.option-toggle--compact summary {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

.cart-summary {
  margin-top: 2rem;
  text-align: right;
}

.cart-total {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* ============================
   CHECKOUT
============================ */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.checkout-summary,
.checkout-form {
  background: #fff;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.checkout-table {
  width: 100%;
  border-collapse: collapse;
}

.checkout-table th,
.checkout-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ============================
   PROFILE + ORDERS
============================ */

.profile-summary,
.profile-help,
.profile-orders {
  max-width: 800px;
  background: #fff;
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.profile-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Orders */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Addresses */
.addresses-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.card-surface {
  background: #fff;
  padding: 1.4rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.subtle {
  color: #666;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.address-cards {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.address-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.address-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.75rem;
  color: #444;
}

.address-lines {
  margin: 0.45rem 0 0.6rem;
  color: #444;
  line-height: 1.4;
}

.address-actions .btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.address-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.address-form-grid .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.address-form-grid label {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.address-form-grid input,
.address-form-grid select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 820px) {
  .addresses-layout {
    grid-template-columns: 1fr;
  }
}

/* keep existing status colours */
.order-status-paid,
.order-status-processing,
.order-status-in_lab,
.order-status-shipped,
.order-status-completed {
  background: #e4f5e9;
  color: #2e7d32;
}

.order-status-pending_payment,
.order-status-awaiting_film {
  background: #fff5d9;
  color: #8a6000;
}

.order-status-cancelled {
  background: #fde4e4;
  color: #b93333;
}

.order-detail {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.order-detail-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;      /* space between buttons */
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.receipt {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.receipt-meta p {
  margin: 0.15rem 0;
}

.receipt-to h3 {
  margin-bottom: 0.4rem;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.receipt-table th,
.receipt-table td {
  border: 1px solid #eee;
  padding: 0.5rem 0.4rem;
  text-align: left;
}

.receipt-totals {
  text-align: right;
  margin-top: 0.6rem;
}

.receipt-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}

@media print {
  .no-print {
    display: none !important;
  }
}

.order-detail-meta p {
  margin: 0 0 0.3rem;
}

.order-detail-section {
  margin-top: 1.5rem;
  text-align: left;
}

.order-detail-section h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.order-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.order-detail-table th,
.order-detail-table td {
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.order-detail-options {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #555;
}

.order-detail-totals p,
.order-detail-totals h2 {
  margin: 0.2rem 0;
  text-align: right;
}

.stock-status {
  font-size: 0.85rem;
  margin: 0.2rem 0 0.6rem;
}

.stock-status-low {
  color: #8a6000;
}

.stock-status-out {
  color: #b93333;
}

.order-scan-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.order-scan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.order-scan-item label {
  flex: 1;
}

.order-scan-print-controls {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.order-scan-print-controls select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.scan-print-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.scan-print-size {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Cost row */
.scan-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.scan-price-value {
  font-weight: 600;
}

.scan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin: 0.8rem 0 1.2rem;
}

.scan-polaroid {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.75rem 0.85rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: visible; 
}

.scan-image {
  background: #f7f5f1;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid #eee;
}

.scan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-placeholder {
  font-size: 0.85rem;
  color: #777;
}

.scan-placeholder-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.scan-video-icon {
  font-size: 1.6rem;
}

.scan-polaroid-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.scan-polaroid-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.scan-label {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scan-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* tooltip bubble */
.scan-info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.25;

  white-space: pre-line; 
  width: max-content;
  max-width: 260px;
  box-sizing: border-box;

  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;      /* ✅ ensures it floats above everything */
}

/* small arrow */
.scan-info-icon::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9998;
}

/* show on hover */
.scan-info-icon:hover::after,
.scan-info-icon:hover::before {
  opacity: 1;
}

.scan-filename {
  color: #666;
  word-break: break-all;
}

.scan-date {
  color: #777;
  font-size: 0.8rem;
}

.scan-polaroid-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.scan-print-form.is-hidden {
  display: none;
}

.scan-select {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #555;
}

.scan-polaroid-actions .btn-sm,
.scan-polaroid-actions .btn-xs,
.scan-view-btn {
  width: 100%;
  text-align: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.scan-qty-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.8rem;
  background: #f7f5f1;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}

.scan-qty-input {
  width: 60px;
  padding: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Add-to-cart button with icons */
.scan-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ff6b6b, #f7b733);
  color: #fff;
}

.scan-add-btn:hover {
  filter: brightness(1.05);
}

.scan-add-icon-cart {
  font-size: 1rem;
}

.scan-add-icon-plus {
  font-size: 0.8rem;
}

.scan-add-btn.scan-added {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}


/* ============================
   FAQ
============================ */

.faq-search {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
}

.faq-search input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.faq-item {
  padding: 1.2rem;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.faq-chat-widget {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 1200;
  font-family: inherit;
}

.faq-chat-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-image: var(--rainbow);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 1.2rem;
}

.faq-chat-panel {
  position: absolute;
  bottom: 3.6rem;
  right: 0;
  width: min(320px, 90vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.faq-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #f7f5f1;
  font-weight: 700;
}

.faq-chat-close {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.faq-chat-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-chat-msg {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.faq-chat-msg.bot {
  background: #f3f1ed;
  align-self: flex-start;
}

.faq-chat-msg.user {
  background: #e7f4ff;
  align-self: flex-end;
}

.faq-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #eee;
}

.faq-chat-input {
  flex: 1;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.faq-chat-send {
  border: none;
  background-image: var(--rainbow);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ============================
   LAB PAGES
============================ */

.lab-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.lab-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ============================
   SUCCESS / CANCEL PAGES
============================ */

.order-success,
.order-cancel {
  max-width: 620px;
  margin: 4rem auto;
  text-align: center;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* ============================
   FOOTER
============================ */

.pfl-footer {
  margin-top: 4rem;
  padding: 2rem 0 0.5rem;
  border-top: 4px solid transparent;
  border-image-slice: 1;
  border-image-source: var(--rainbow);
  font-size: 0.85rem;
  color: #666;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: center;
}

.footer-address {
  line-height: 1.4;
  text-align: left;
}

.footer-rights {
  margin: 0;
  text-align: left;
}

.footer-newsletter {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
  align-items: center;
}

.newsletter-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.newsletter-inputs input {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
}

.newsletter-fields .btn {
  justify-self: end;
  padding: 0.45rem 0.85rem;
}

.flash-messages {
  margin: 0.5rem 0;
}

.flash-message {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  background: #f0f5ff;
  color: #103778;
  font-size: 0.9rem;
}

.flash-message.success {
  background: #e6f7e7;
  color: #1a7a1f;
}

.flash-message.error {
  background: #fdeaea;
  color: #a12626;
}

/* ============================
   MOBILE
============================ */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: 0.5rem;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: relative;
    box-shadow: none;
    border: 1px solid #eee;
    margin-top: 0.3rem;
  }

  .nav-cart-link {
    padding-bottom: 0.3rem;
  }

  .shop-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }



}
