/* =================================================================== */
/*    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);
}

.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;
}

.hero-title {
  color: var(--white1);
  font-size: 2.5rem; /* Fallback */
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw600);
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.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; /* Mobile default */
  gap: 25px;
  margin-bottom: 50px;
  min-height: 500px; 
}

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

@media (min-width: 1200px) {
  .store-grid { grid-template-columns: repeat(4, 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(-6px);
  box-shadow: var(--shadow3);
  border-color: var(--orange-yellow-crayola);
}

/* =================================================================== */
/*    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);
}

/* Primary Image (The Result) */
.project-img img.primary-img, 
.store-card-banner img.primary-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Transition for opacity and scale */
    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: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
    /* Set up for zoom effect: Starts slightly larger */
    transform: 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 */
@media (min-width: 1024px) {
    /* Primary Image: Recedes (scales down) */
    .has-reveal:hover img.primary-img {
        opacity: 0; 
        transform: scale(0.95);
    }

    /* Secondary Image: Advances (scales from 1.1 down to 1.0) */
    .has-reveal:hover img.secondary-img {
        opacity: 1; 
        visibility: visible;
        transform: scale(1);
    }
    
    /* Reveal the Badge inside the image container */
    .has-reveal:hover .project-img::after,
    .has-reveal:hover .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;
  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;
  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;
  grid-template-columns: repeat(2, 1fr);
  gap: 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: 14px;
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 140px;
  box-shadow: var(--shadow1);
  position: relative;
  overflow: hidden;
}

.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: 36px;
  color: var(--orange-yellow-crayola);
  margin-bottom: 12px;
}

.category-card span {
  color: var(--white1);
  font-weight: var(--fw600);
  font-size: var(--fs6);
  text-transform: capitalize;
}


/* --- 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);
    border-radius: 14px;
    box-shadow: var(--shadow1);
}

.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; 
}    

.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) {
    transform: 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;
}

.project-title, .project-category {
  margin-left: 10px;
}

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

/* 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 16px;
    border-radius: 30px; 
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

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