/* =================================================================== */
/*    PARTIAL: PAGES                                                   */
/*    Contains: Styles for specific, non-reusable page layouts like    */
/*    the blog, gallery, resume, contact page, etc.                    */
/* =================================================================== */

/* --- NEW: Homepage Store-Front Styles --- */

.hero {
  position: relative;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
  background-color: var(--eerie-black1);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow2);
}

/* --- MOBILE HERO OPTIMIZATION --- */
@media (max-width: 768px) {
  .hero {
    min-height: 260px !important; /* Significantly reduced height for mobile viewport */
  }
  
  .hero-title {
    min-height: 140px !important; /* Scaled down content area */
    margin-bottom: 15px !important;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(0, 0%, 0%, 0.3), hsla(0, 0%, 0%, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  max-width: 700px;
}

/* static/css/partials/_pages.css */

.hero-title {
    /* Layout Logic */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px; 
    margin-bottom: 25px;
    line-height: 1.1; /* Tighter spacing between the two lines */
}

/* THE TOP LINE: One Man's Workshop */
.hero-title > span:first-child {
    color: var(--white1); /* Pure white from your variables */
    font-size: 2.5rem; 
    font-size: clamp(2.2rem, 6vw, 4rem); /* Making it nice and large */
    font-weight: var(--fw600); /* Bold */
    text-shadow: 0 4px 10px rgba(0,0,0,0.7); /* Deep, subtle shadow */
    margin-bottom: 5px;
}

/* THE DYNAMIC LINE: Rotating Phrases */
#scramble-runtime {
    /* Color: Your custom brand orange (#f36f21) */
    color: var(--orange-yellow-crayola); 
    
    /* Matching the font weight and size of the top line */
    font-size: 2.5rem;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: var(--fw600); 
    text-shadow: 0 4px 10px rgba(0,0,0,0.7); /* Matching shadow */
    
    /* Surgical Fix: Use inline-flex to keep icons and text on one line */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    white-space: nowrap;
    
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Surgical Fix: Prevent Huge Icons in Hero Slogan */
#scramble-runtime ion-icon, 
#scramble-runtime i {
    font-size: 0.9em; /* Scales perfectly with the dynamic text size */
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
    /* Surgical Add: Apply shadow to match the depth of the surrounding text */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.7));
}

/* Leaving state: slides up and disappears */
#scramble-runtime.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* Entering state: starts below and invisible */
#scramble-runtime.enter {
    opacity: 0;
    transform: translateY(20px);
    transition: none; 
}

.hero-subtitle {
  color: var(--white2);
  font-size: var(--fs5);
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- HERO PARTICLE SYSTEM (Dust Motes) --- */
@keyframes dustFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Sits with the dark overlay */
  pointer-events: none;
}

.dust-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%; /* Double height for seamless scrolling */
  background-image: radial-gradient(var(--white2) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0;
  will-change: transform;
}

/* Layer 1: Small, dense, slow */
.dust-layer.layer-1 {
  background-size: 100px 100px;
  opacity: 0.15;
  animation: dustFloat 40s linear infinite;
}

/* Layer 2: Medium, sparse, medium speed */
.dust-layer.layer-2 {
  background-size: 250px 250px;
  opacity: 0.2;
  animation: dustFloat 25s linear infinite;
  animation-delay: -5s; /* Offset start */
}

/* Layer 3: Large "hero" motes, rare, faster */
.dust-layer.layer-3 {
  background-image: radial-gradient(var(--orange-yellow-crayola) 1.5px, transparent 1.5px);
  background-size: 400px 400px;
  opacity: 0.25;
  animation: dustFloat 15s linear infinite;
  animation-delay: -10s;
}

/* Trust Bar / How It Works */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
  padding: 25px;
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--jet);
  box-shadow: var(--shadow1);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  font-size: 28px;
  color: var(--orange-yellow-crayola);
  background: var(--bg-gradient-jet);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow2);
  border: 1px solid var(--jet);
}

.trust-text h4 {
  color: var(--white2);
  font-size: var(--fs6);
  font-weight: var(--fw600);
  margin-bottom: 4px;
}

.trust-text p {
  color: var(--light-gray);
  font-size: var(--fs7);
  line-height: 1.4;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--jet);
}

.section-title {
  font-size: var(--fs2);
  color: var(--white2);
  font-weight: var(--fw600);
}

.section-link {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition1);
  font-weight: var(--fw500);
}

.section-link:hover {
  color: var(--vegas-gold);
  transform: translateX(3px);
}

/* Store Grid (Featured Products) */
.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 50px;
  min-height: 500px;
  padding-left: 0; /* CRITICAL: Removes browser default offset */
}

@media (min-width: 550px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  /* Match Catalog layout for better product visibility and badge space */
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}

.store-card {
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jet);
  position: relative;
}

.store-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--eerie-black1);
    border-radius: inherit;
    z-index: 0;
}

.store-card > a {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.store-card:hover {
  transform: translateY(-10px); /* Slightly more lift for the larger cards */
  /* Stronger shadow plus a brand-orange glow */
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(243, 111, 33, 0.15);
  border-color: var(--orange-yellow-crayola);
}

/* Ensure the transition is buttery smooth */
.store-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

/* =================================================================== */
/*    ENHANCED: PROCESS REVEAL (Workshop View)                         */
/* =================================================================== */

.project-img, 
.store-card-banner,
.blog-banner-box {
    position: relative;
    width: 100%;
    display: block; 
    aspect-ratio: 1 / 1; 
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--eerie-black1);
    /* Ensures absolute children like the badge 
       anchor to the card edge, not the image edge */
    text-align: left; 
}

/* Primary Image (The Result) */
.project-img img.primary-img, 
.store-card-banner img.primary-img {
    position: absolute; /* Changed from relative to absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Secondary Image (The Workshop View) */
.project-img img.secondary-img, 
.store-card-banner img.secondary-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
    /* FIX: Combine the centering translate with the scale */
    transform: translate(-50%, -50%) scale(1.1); 
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, visibility 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

/* 
   FIX: WORKSHOP VIEW BADGE 
   Moved from .has-reveal::after to target the image container specifically.
   This prevents overlap with "View Details" text.
*/
.has-reveal .project-img::after, 
.has-reveal .store-card-banner::after {
    content: 'WORKSHOP VIEW';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--white1);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

/* DESKTOP HOVER REVEAL LOGIC */
/* Update the Hover State (approx line 258) */
@media (min-width: 1024px) {
    .has-reveal:hover img.primary-img,
    .has-reveal:focus-within img.primary-img,
.has-reveal > a:focus img.primary-img {
        opacity: 0; 
        /* FIX: Ensure we keep centering during shrink */
        transform: translate(-50%, -50%) scale(0.95);
    }

    .has-reveal:hover img.secondary-img,
    .has-reveal:focus-within img.secondary-img,
.has-reveal > a:focus img.secondary-img {
        opacity: 1; 
        visibility: visible;
        /* FIX: Ensure we keep centering during reveal */
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* Reveal the Badge inside the image container */
    .has-reveal:hover .project-img::after,
    .has-reveal:hover .store-card-banner::after,
    .has-reveal:focus-within .project-img::after,
    .has-reveal:focus-within .store-card-banner::after {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyboard focus reveal also applies below the desktop hover breakpoint. */
.has-reveal:focus-within img.primary-img,
.has-reveal > a:focus img.primary-img {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.has-reveal:focus-within img.secondary-img,
.has-reveal > a:focus img.secondary-img {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.has-reveal:focus-within .project-img::after,
.has-reveal:focus-within .store-card-banner::after,
.has-reveal > a:focus .project-img::after,
.has-reveal > a:focus .store-card-banner::after {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE REVEAL STATE (Triggered via JS) */
.has-reveal.mobile-revealed img.primary-img {
    opacity: 0;
}
.has-reveal.mobile-revealed img.secondary-img {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.has-reveal.mobile-revealed .project-img::after,
.has-reveal.mobile-revealed .store-card-banner::after {
    opacity: 1;
    transform: translateY(0);
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.store-card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.store-card-banner img:not(.primary-img):not(.secondary-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.store-card:hover .store-card-banner img:not(.primary-img):not(.secondary-img) {
  transform: scale(1.08);
}

.store-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally in the flex column */
  text-align: center;
  flex-grow: 1;
}

.store-card-title {
  color: var(--white2);
  font-size: var(--fs5);
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: var(--fw500);
}

.store-card-price {
  color: var(--light-gray70);
  font-size: var(--fs7);
  font-weight: var(--fw400);
  margin-bottom: 15px;
}

.store-card-action {
  margin-top: auto;
  justify-content: center; /* Centers the icon and text link */  
  color: var(--orange-yellow-crayola);
  font-size: var(--fs7);
  font-weight: var(--fw600);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category Cards */
.category-grid {
  display: grid;
  /* --- THE FIX: Force 2 columns even on small screens --- */
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; /* Slightly smaller gap to save horizontal space */
  margin-top: 20px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  background: var(--eerie-black1);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Reduced height to keep them "Small Boxes" */
  height: 100px; 
  transition: var(--transition1);
  /* Ensure these are LOWER than the Navbar */
  z-index: 1; 
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-gradient-yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow3);
  background: var(--border-gradient-onyx);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card ion-icon {
  font-size: 28px;
  color: var(--orange-yellow-crayola);
  margin-bottom: 5px;
}

.category-card span {
  color: var(--white1);
  font-weight: var(--fw600);
  font-size: 12px;
}

/* Homepage Shop by Occasion & Purpose */
.homepage-purpose-section {
  margin-bottom: 50px;
}

.homepage-purpose-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jet);
}

.homepage-purpose-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.homepage-purpose-title {
  font-size: var(--fs2);
  margin: 0 0 8px;
  line-height: 1.25;
}

.homepage-purpose-blurb,
.homepage-purpose-group-blurb {
  margin: 0;
  max-width: 720px;
  opacity: 0.92;
}

.homepage-purpose-top-link {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 4px;
}

.homepage-purpose-top-link-short {
  display: none;
}

.homepage-purpose-group {
  margin-top: 8px;
  margin-bottom: 28px;
}

.homepage-purpose-group-title {
  font-size: var(--fs4);
  margin: 0 0 12px;
  color: var(--white2);
}

.homepage-purpose-group-blurb {
  margin-bottom: 12px;
}

.homepage-purpose-grid {
  margin-top: 12px;
  margin-bottom: 0;
}

.homepage-purpose-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.homepage-purpose-btn {
  width: max-content;
  margin: 0;
}

.homepage-purpose-btn-secondary {
  background: var(--onyx);
  border-color: var(--jet);
  color: var(--white2);
}

/* --- About Page & Generic Content --- */
.about .article-title {
    margin-bottom: 15px;
    margin-top: 15px;
}

.about-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    padding-left: 10px;
    padding-right: 10px;
}

/* --- Homepage: Testimonials Section --- */
.testimonials-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    margin: 0 -15px;
    padding: 25px 15px;
    padding-bottom: 35px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}

.testimonials-item {
    min-width: 100%;
    scroll-snap-align: center;
}

.testimonials-avatar-box {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(15px, -25px);
    background: var(--bg-gradient-onyx);
    /* Surgical Fix: Cohesive Round Theme */
    border-radius: 50%;
    border: 2px solid var(--orange-yellow-crayola);
    overflow: hidden;
    width: 60px;
    height: 60px;
    box-shadow: var(--shadow1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Homepage: Clients Section --- */
.clients-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    margin: 0 -15px;
    padding: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 25px;
}

.clients-item {
    min-width: 50%;
    scroll-snap-align: start;
}

.clients-item img {
    width: 100%;
    filter: grayscale(1);
    transition: var(--transition1);
}

.clients-item img:hover {
  filter: grayscale(0);
}

/* --- Resume Page --- */
.timeline {
  margin-bottom: 30px;
}

.timeline .title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.timeline-list {
    font-size: var(--fs6);
    margin-left: 45px;
}

.timeline-list span {
    color: var(--vegas-gold);
    font-weight: var(--fw400);
    line-height: 1.6;
}

.timeline-item {
  position: relative;
}

.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -30px;
    width: 1px;
    height: calc(100% + 50px);
    background: var(--jet);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -33px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--text-gradient-yellow);
    box-shadow: 0 0 0 4px var(--jet);
}

.timeline-item-title {
    font-size: var(--fs6);
    line-height: 1.3;
    margin-bottom: 7px;
}

.timeline-text {
    color: var(--light-gray);
    font-weight: var(--fw300);
    line-height: 1.6;
    text-align: justify;
}

.skills-title {
  margin-bottom: 20px;
}

.skills-list {
  padding: 20px;
}

.skills-item:not(:last-child) {
  margin-bottom: 15px;
}

.skill .title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.skill .title-wrapper data {
    color: var(--light-gray);
    font-size: var(--fs7);
    font-weight: var(--fw300);
}

.skills-progress-bg {
    background: var(--jet);
    width: 100%;
    height: 8px;
    border-radius: 10px;
}

.skills-progress-fill {
    background: var(--text-gradient-yellow);
    height: 100%;
    border-radius: inherit;
}

/* --- Product Gallery / Portfolio Page --- */
.filter-list {
  display: none;
}

.filter-select-box {
    position: relative;
    margin-bottom: 25px;
}

.filter-select {
    background: var(--eerie-black2);
    color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    font-size: var(--fs6);
    font-weight: var(--fw300);
}

.filter-select.active .select-icon {
  transform: rotate(0.5turn);
}

.select-list {
    background: var(--eerie-black2);
    position: absolute;
    top: calc(100% + 6px);
    width: 100%;
    padding: 6px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    z-index: 2;
    visibility: hidden;
    pointer-events: none;
    transition: .5s ease-in-out;
}

.filter-select.active + .select-list {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.select-item button {
    background: var(--eerie-black2);
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    text-transform: capitalize;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
}

.select-item button:hover {
  --eerie-black2: hsl(240, 2%, 20%);
}

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 10px;
    min-height: 500px;
    padding-left: 0; /* CRITICAL: Ensures grid items center perfectly */
}   

.project-item {
  display: none;
}

.project-item.active {
    display: block;
    animation: scaleUp .25s ease forwards;
}

.project-item > a {
  width: 100%;
}

.project-img, 
.store-card-banner,
.blog-banner-box {
    position: relative;
    width: 100%;
    display: block; 
    aspect-ratio: 1 / 1; 
    
    @supports not (aspect-ratio: 1 / 1) {
        height: 0;
        padding-bottom: 100%;
    }

    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--eerie-black1);
}

.project-img img:not(.primary-img):not(.secondary-img), 
.store-card-banner img:not(.primary-img):not(.secondary-img),
.blog-banner-box img:not(.primary-img):not(.secondary-img) {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.5s ease;
}

.project-item > a:hover img:not(.primary-img):not(.secondary-img),
.store-card:hover img:not(.primary-img):not(.secondary-img) {
    /* SURGICAL FIX: Added translate(-50%, -50%) to prevent the "Shift to bottom-right" glitch */
    transform: translate(-50%, -50%) scale(1.08);
}

.project-item > a:hover .project-img::before {
  background: hsla(0, 0%, 0%, .5);
}

.project-item-icon-box {
    --scale: .8;
    background: var(--jet);
    color: var(--orange-yellow-crayola);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
    font-size: 20px;
    padding: 18px;
    border-radius: 12px;
    opacity: 0;
    z-index: 10;
    transition: var(--transition1);
}

.project-item > a:hover .project-item-icon-box {
    --scale: 1;
    opacity: 1;
}

.project-item-icon-box ion-icon {
  --ionicon-stroke-width: 50px;
}

/* Centering Catalog & Gallery Text */
.project-title, .project-category {
  text-align: center;
  margin-left: 0;
  width: 100%;
}


.project-title {
    color: var(--white2);
    font-size: var(--fs5);
    font-weight: var(--fw400);
    text-transform: capitalize;
    line-height: 1.3;
}

.project-category {
    color: var(--light-gray70);
    font-size: var(--fs6);
    font-weight: var(--fw300);
}

/* --- Blog Pages --- */
.blog-posts {
  margin-bottom: 10px;
}

.blog-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-posts-item > a {
    position: relative;
    background: var(--border-gradient-onyx);
    height: 100%;
    box-shadow: var(--shadow4);
    border-radius: 16px;
    z-index: 1;
}

.blog-posts-item > a::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--eerie-black1);
    z-index: -1;
}

.blog-banner-box {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-banner-box img:not(.primary-img):not(.secondary-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition1);
}

.blog-content {
  padding: 15px;
}

.blog-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
    color: var(--light-gray70);
    font-size: var(--fs6);
    font-weight: var(--fw300);
}

.blog-meta .dot {
    background: var(--light-gray70);
    width: 4px;
    height: 4px;
    border-radius: 4px;
}

.blog-item-title {
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition1);
}

.blog-post-item > a:hover .blog-item-title {
  color: var(--orange-yellow-crayola);
}

.blog-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
    text-align: justify;
}

/* --- Blog Post Detail Page --- */
.post-tags {
  margin-top: 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag-list span {
  color: var(--light-gray70);
  font-size: var(--fs6);
}

.tag-item {
  font-size: var(--fs8);
  font-weight: var(--fw300);
  color: var(--orange-yellow-crayola);
  background: var(--onyx);
  padding: 4px 12px;
  border-radius: 8px;
  transition: var(--transition1);
}

.tag-item:hover {
  background: var(--jet);
  color: var(--vegas-gold);
}

.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--jet);
}

.related-posts-title {
  margin-bottom: 25px;
}

.related-posts .blog-posts-list {
  grid-template-columns: 1fr;
}

/* --- Blog Search & Pagination --- */
.search-form {
  margin-bottom: 30px;
}

.search-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-wrapper .form-btn {
  width: auto; 
  padding: 13px; 
  min-width: 50px;
}

.pagination {
  margin-top: 40px;
  width: 100%;
}

.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination-link {
  background: var(--onyx);
  color: var(--light-gray);
  font-size: var(--fs6);
  font-weight: var(--fw500);
  padding: 8px 14px;
  border-radius: 12px;
  transition: var(--transition1);
  white-space: nowrap;
}

.pagination-item.active .pagination-link {
  background: var(--text-gradient-yellow);
  color: var(--eerie-black2);
}

.pagination-item:not(.active) .pagination-link:hover {
  background: var(--jet);
  color: var(--white1);
}

.pagination-link.disabled {
  opacity: 0.6;
  pointer-events: none;
}


/* --- Contact Page --- */
.mapbox {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--jet);
    overflow: hidden;
}

.mapbox figure {
  height: 100%;
}

.mapbox iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(1);
}

.contact-form {
  margin-bottom: 10px;
}

.form-title {
  margin-bottom: 20px;
}

.input-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap; 
}

.captcha-label {
  color: var(--light-gray);
  font-size: var(--fs6);
  white-space: nowrap; 
}

.captcha-wrapper .form-input {
  min-width: 80px;
}


/* --- Rich Text Styling --- */
.live-appearance-card {
  flex-direction: column;
  align-items: stretch !important;
  gap: 16px !important;
}

.live-event-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.live-event-action,
.live-event-cta {
  width: 100% !important;
}

.live-event-cta {
  justify-content: center;
}

.about-text,
.service-item-text {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

.about-text > *,
.service-item-text > * {
  margin-bottom: 1em;
}

.about-text h1, .service-item-text h1 {
  font-size: 2em;
  font-weight: 600;
  color: var(--white2);
}
.about-text h2, .service-item-text h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--white2);
}
.about-text h3, .service-item-text h3 {
  font-size: 1.17em;
  font-weight: 600;
  color: var(--white2);
}

.about-text ul, .about-text ol,
.service-item-text ul, .service-item-text ol {
    list-style: revert;
    padding-left: 40px;
}

.about-text li,
.service-item-text li {
    display: list-item;
    list-style: revert;
    margin-bottom: 0.5em;
}

.about-text blockquote,
.service-item-text blockquote {
  border-left: 4px solid var(--jet);
  padding-left: 1em;
  margin-left: 0;
  color: var(--light-gray70);
}

.about-text a,
.service-item-text a {
  color: var(--orange-yellow-crayola);
  text-decoration: underline;
  transition: var(--transition1);
  display: inline;
  vertical-align: baseline;
}
.about-text a:hover,
.service-item-text a:hover {
  color: var(--vegas-gold);
}

.about-text > *:last-child,
.service-item-text > *:last-child {
    margin-bottom: 0;
}

.about-text img,
.service-item-text img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* --- Tag Notes Fixes --- */
.tag-note h1, 
.tag-note h2, 
.tag-note h3, 
.tag-note h4 {
    color: var(--white2);
    margin-top: 20px;      
    margin-bottom: 10px;   
    font-weight: 600;
    line-height: 1.4;
    display: block;        
}

.tag-note h1 { font-size: 1.8em; }
.tag-note h2 { font-size: 1.5em; }
.tag-note h3 { font-size: 1.3em; } 
.tag-note h4 { font-size: 1.1em; }

.tag-note p {
    margin-bottom: 10px;
    font-size: 1em; 
}

.tag-note ul, .tag-note ol {
    padding-left: 20px;
    margin-bottom: 10px;
    list-style: disc; 
}

.tag-note li {
    margin-bottom: 5px;
}

/* --- Bottom Box --- */
.bottom-box {
  background: var(--eerie-black2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow1);
  margin-top: 25px;
  z-index: 1;
}

.bottom-box .about-text:not(:last-child) {
  margin-bottom: 30px;
}

.bottom-box .about-text p {
  color: var(--light-gray);
  font-size: var(--fs-7);
  line-height: 1.6;
  font-weight: var(--fw-300);
}

.bottom-box .about-text p:not(:last-child) {
  margin-bottom: 15px;
}

/* --- Entrance Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  opacity: 0; 
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards; 
}

.hero .form-btn {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards; 
}

/* Refined Studio CTA in Hero */
.hero .form-btn[href*="design-library"] {
    background: transparent !important;
    border: 1px solid var(--orange-yellow-crayola) !important;
    color: var(--orange-yellow-crayola) !important;
    font-weight: 600;
    box-shadow: none;
}

.hero .form-btn[href*="design-library"]::before {
    background: var(--bg-gradient-jet) !important;
    opacity: 0.8;
}

.hero .form-btn[href*="design-library"]:hover {
    background: var(--orange-yellow-crayola) !important;
    color: var(--smoky-black) !important;
    box-shadow: 0 0 15px var(--accent-glow-color);
}

/* Trust Bar Interactive Hover */
.trust-item {
  transition: transform 0.3s ease;
  cursor: default;
}

.trust-item:hover {
  transform: translateY(-5px); 
}

.trust-item .trust-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.trust-item:hover .trust-icon {
  background: var(--orange-yellow-crayola); 
  color: var(--eerie-black2); 
  transform: scale(1.1) rotate(10deg); 
  box-shadow: 0 0 20px var(--orange-yellow-crayola); 
  border-color: var(--orange-yellow-crayola);
}

/* Category Card Icon Pulse */
.category-card:hover ion-icon {
  animation: pulse 1s infinite;
  color: var(--white1); 
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* static/css/partials/_pages.css */

#cart-table-wrapper {
    width: 100%;
    border-radius: 8px;
    background: rgba(0,0,0,0.1);
}

#cart-table-wrapper table td {
    white-space: nowrap; /* Prevents text wrapping from making the row huge */
}

/* Custom scrollbar for the mobile checkout table */
#cart-table-wrapper div::-webkit-scrollbar {
    height: 4px;
}
#cart-table-wrapper div::-webkit-scrollbar-thumb {
    background: var(--jet);
    border-radius: 10px;
}

/* Ensure the trash can button stays red and visible */
.remove-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
    font-size: 18px;
}

/* --- Catalog Filter: Centered Pill Grid --- */
.filter-list {
    display: none;         /* CRITICAL: Hidden by default for all mobile/tablets */
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 10px;             
    padding: 10px 0;
    margin-bottom: 25px;
}

.filter-item {
    flex: 0 1 auto; 
}

.filter-item button {
    background: var(--onyx);
    border: 1px solid var(--jet);
    color: var(--light-gray);
    padding: 8px 18px;
    border-radius: 35px; 
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow1);
}

/* NEW: Visual Swatch Styling (Surgical Refinement V2) */
.filter-swatch {
    width: 26px; /* Slightly larger for visibility */
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.filter-item button.active .filter-swatch {
    border-color: var(--white1);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(243, 111, 33, 0.4);
}

.filter-item button:hover .filter-swatch {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--orange-yellow-crayola);
}

/* Ensure the text stays readable next to the bubble */
.filter-item button.has-swatch span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.filter-item button:hover .filter-swatch {
    transform: rotate(15deg) scale(1.1);
}

.filter-item button.has-swatch {
    padding: 6px 18px 6px 8px; /* Tighter left padding for the swatch */
}

/* Fix consistency: Force Favorites button to match others until active */
.filter-item button[data-filter-favorites] {
    color: var(--light-gray) !important; 
}

.filter-item button:hover,
.filter-item button[data-filter-favorites]:hover {
    border-color: var(--orange-yellow-crayola);
    color: var(--white2) !important;
}

/* Shared Active State (Brand Orange) */
.filter-item button.active,
.filter-item button[data-filter-favorites].active {
    background: var(--orange-yellow-crayola) !important;
    color: var(--smoky-black) !important;
    border-color: var(--orange-yellow-crayola) !important;
    font-weight: 600;
}

/* Polished Filter Dropdown */
.filter-select {
    border: 1px solid var(--jet);
    background: var(--eerie-black2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select.active {
    border-color: var(--orange-yellow-crayola);
    box-shadow: 0 0 10px var(--accent-glow-color);
}

.select-list {
    border: 1px solid var(--orange-yellow-crayola);
    box-shadow: var(--shadow5);
    background: var(--eerie-black2);
    max-height: 300px;
    overflow-y: auto;
}

.select-item button:hover {
    background: var(--bg-gradient-jet);
    color: var(--orange-yellow-crayola);
}

/* =================================================================== */
/*    GUEST PROTECTION: DESIGN STUDIO                                  */
/* =================================================================== */

/* 1. Grid Protection: Blur and Grayscale thumbnails for guests */
.guest-view .clipart-thumb-item img {
    filter: blur(2.5px) grayscale(1);
    opacity: 0.6;
    transition: filter 0.3s ease;
}

/* 2. Thumbnail Mesh: Prevents screenshot/tracing from the grid */
.guest-view .clipart-thumb-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 15px);
    z-index: 2;
    pointer-events: none;
}

/* 3. Icon Lock: Swap the heart for a lock visually */
.guest-view .clipart-pin-indicator {
    color: var(--light-gray70) !important;
    display: block !important;
}

/* 4. Modal Protection: Prevent interaction with the high-res preview */
.guest-view #detail-img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Force all clicks to the watermark mesh instead */
}

.guest-view .detail-img-box {
    position: relative;
    overflow: hidden;
}

/* --- HOME ABOUT ACCORDION --- */
.accordion-header:hover h3 {
    color: var(--orange-yellow-crayola);
}

.accordion-header.active #about-accordion-chevron {
    transform: rotate(180deg);
}

.accordion-header.active + .accordion-content-wrapper {
    grid-template-rows: 1fr !important;
}

/* Optional: Slight fade for the text as it appears */
.accordion-content-wrapper > div {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.accordion-header.active + .accordion-content-wrapper > div {
    opacity: 1;
}

/* =================================================================== */
/*    COMPACT INLINE FILTERS (Surgical Parity V10 - Circle Glow Fix)   */
/* =================================================================== */
.filter-container .filter-pills-group {
    padding: 10px 0; 
}

/* 1. Reset Button: High-Contrast Pill Style (No Glow on Box) */
.filter-container .filter-pills-group button.active {
    background: rgba(243, 111, 33, 0.1) !important; /* Subtle tint */
    color: var(--orange-yellow-crayola) !important;
    border-color: var(--orange-yellow-crayola) !important;
    font-weight: 700 !important;
    box-shadow: none !important; 
    position: relative;
    z-index: 10;
}

.filter-container .filter-pills-group button.active span {
    color: var(--orange-yellow-crayola) !important;
}

/* 2. Apply Intense Glow to the CIRCLE only */
.filter-container .filter-pills-group button.active .filter-swatch {
    border-color: #fff !important; /* Bright white rim for the 'bulb' */
    transform: scale(1.15);
    
    /* High-Intensity Indicator Light Effect */
    box-shadow: 
        0 0 12px rgba(243, 111, 33, 0.9), 
        0 0 4px rgba(255, 255, 255, 0.6),
        inset 0 0 4px rgba(0,0,0,0.4) !important;
}

/* Clean up the "Favorites" active state to match the Bulb style */
.filter-item button[data-filter-favorites].active {
    background: rgba(217, 83, 79, 0.1) !important;
    border-color: var(--bittersweet-shimmer) !important;
    box-shadow: none !important;
}

.filter-item button[data-filter-favorites].active ion-icon {
    filter: drop-shadow(0 0 8px var(--bittersweet-shimmer));
    transform: scale(1.2);
}

/* Mobile: Preserve the swipe but keep the glow room */
@media (max-width: 768px) {
    .filter-row .filter-pills-group {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding: 10px 5px !important; /* Extra vertical room for mobile glow */
        margin-top: -5px;
    }
}