/* ---- css/partials/_icons.css ---- */
/* ==========================================================================
   Icons (speed review 2026-12-03): the look Ionicons gave <ion-icon>, now drawn by static/js/icons.js.
   First in the combined stylesheet, so every existing rule about ion-icon still wins exactly as before.
   ========================================================================== */
ion-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    contain: strict;
    fill: currentColor;
    box-sizing: content-box !important;
}
ion-icon > svg,
ion-icon .ionicon {
    display: block;
    width: 100%;
    height: 100%;
}
ion-icon .ionicon { stroke: currentColor; }
.ionicon-fill-none { fill: none; }
.ionicon-stroke-width { stroke-width: var(--ionicon-stroke-width, 32px); }
ion-icon.icon-small { font-size: 18px !important; }
ion-icon.icon-large { font-size: 32px !important; }

/* ---- css/partials/_base.css ---- */
/* =================================================================== */
/*    PARTIAL: BASE STYLES                                             */
/*    Contains: Google Font imports, root variables, global resets,    */
/*    and default styles for basic HTML elements.                      */
/* =================================================================== */

/* Poppins is requested from base.html <head> (speed review 2026-12-03). */

:root {
    /* Base variables from your original file - some will be overridden by themes */
    --bg-gradient-onyx: linear-gradient(to bottom right, hsl(240, 1%, 25%) 3%, hsl(0, 0%, 19%) 97%);
    --bg-gradient-jet: linear-gradient(to bottom right, hsla(240, 1%, 18%, .251) 3%, hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);
    --bg-gradient-yellow1: linear-gradient(to bottom right, hsl(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
    --bg-gradient-yellow2: linear-gradient(135deg, hsla(45, 100%, 71%, .251) 0%, hsla(35, 100%, 68%, 0) 59.86%), hsl(240, 2%, 13%);
    --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 25%) 0%, hsla(0, 0%, 25%, 0) 50%);
    --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 68%));

    --jet: hsl(0, 0%, 22%);
    --onyx: hsl(240, 1%, 17%);
    --eerie-black1: hsl(240, 2%, 13%);
    --eerie-black2: hsl(240, 2%, 12%);
    --smoky-black: hsl(0, 0%, 7%);
    --white1: hsl(0, 0%, 100%);
    --white2: hsl(0, 0%, 98%);
    --orange-yellow-crayola: hsl(45, 100%, 72%);
    --vegas-gold: hsl(45, 54%, 58%);
    --light-gray: hsl(0, 0%, 84%);
    --light-gray70: hsla(0, 0%, 84%, .7);
    --bittersweet-shimmer: hsl(0, 43%, 51%);
    --accent-glow-color: hsla(45, 100%, 72%, 0.25);

    --navbar-bg: hsla(240, 1%, 17%, .75);

    --ff-poppins: 'Poppins', sans-serif;

    --fs1: 24px;
    --fs2: 18px;
    --fs3: 17px;
    --fs4: 16px;
    --fs5: 15px;
    --fs6: 14px;
    --fs7: 13px;
    --fs8: 12px;

    --fw300: 300;
    --fw400: 400;
    --fw500: 500;
    --fw600: 600;

    --shadow1: -4px 8px 24px hsla(0, 0%, 0%, .25);
    --shadow2: 0px 16px 30px hsla(0, 0%, 0%, .25);
    --shadow3: 0px 16px 40px hsla(0, 0%, 0%, .25);
    --shadow4: 0px 25px 50px hsla(0, 0%, 0%, .15);
    --shadow5: 0px 24px 80px hsla(0, 0%, 0%, .25);

    --transition1: .25s ease;
    --transition2: .5s ease-in-out;
}

/* --- SCROLL LOCK UTILITY --- */
body.no-scroll {
    overflow: hidden;
}

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

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img, ion-icon, a, button, time, span {
  display: block;
}

button {
    font: inherit;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

input, textarea, select {
    display: block;
    width: 100%;
    background: none;
    font: inherit;
}

::selection {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

:focus {
  outline-color: var(--orange-yellow-crayola);
}

html {
  font-family: var(--ff-poppins);
  overflow-y: auto; /* <--- ADD THIS LINE (Prevents horizontal layout shift) ---change from scroll to auto and test---*/
}

body {
    background: var(--smoky-black);
    /* --- THE FIX IS HERE: Corrected relative path to go up two directories --- */
    background-image: url('/static/img/textures/wood-pattern.webp');
    background-repeat: repeat;
    background-blend-mode: multiply;
}

.h2, .h3, .h4, .h5 {
    color: var(--white2);
    text-transform: capitalize;
}

.h2 { font-size: var(--fs1); }
.h3 { font-size: var(--fs2); }
.h4 { font-size: var(--fs4); }
.h5 {
    font-size: var(--fs7);
    font-weight: var(--fw500);
}

.article-title {
    position: relative;
    padding-bottom: 7px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
    background: var(--onyx);
    border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 20px;
}
/* footer social icons (site review 2026-12-02: was an inline onmouseover, blocked by the security policy) */
.footer-social-link { color: var(--light-gray); font-size: 20px; transition: color 0.3s; }
.footer-social-link:hover, .footer-social-link:focus-visible { color: var(--orange-yellow-crayola); }

/* ---- css/partials/_layout.css ---- */
/* =================================================================== */
/*    PARTIAL: LAYOUT                                                  */
/*    Contains: Styles for the main page structure, including the      */
/*    main content area, sidebar, article containers, and footer.      */
/* =================================================================== */

main {
    margin: 15px auto; /* Centered top/bottom */
    padding: 0 15px;   /* Symmetrical side gutters */
    margin-bottom: 100px;
    min-width: 259px;
}

.sidebar, article {
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    border-radius: 20px;
    box-shadow: var(--shadow1);
    z-index: 1;
    padding: 15px;
}

article {
  display: none;
}

article.active {
    display: block;
    animation: fade .5s ease backwards;
}

.separator {
    width: 100%;
    height: 1px;
    background: var(--jet);
    margin: 16px 0;
}

/* --- Sidebar Base --- */

.sidebar {
    margin-bottom: 15px;
    max-height: 145px;
    overflow: hidden;
    padding: 15px;
    transition: var(--transition2);
}

.sidebar.active {
  /* --- SURGICAL FIX: Increased height to prevent clipping social icons --- */
  max-height: 800px; 
}

/* --- Sidebar Header Logic (Shared) --- */
.sidebar-info {
    position: relative;
    display: flex;
    gap: 15px;
}

.info-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.sidebar-logo {
    padding: 0;
}

.sidebar-logo img {
    width: 100%;
    max-width: 140px; /* Locked size to prevent jumping */
    height: auto;
    transition: none; 
}

.avatar-box {
    padding: 8px;
    box-sizing: border-box;
    background: var(--bg-gradient-onyx);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* =================================================================== */
/*    MOBILE HEADER STABILIZATION (Under 1250px)                       */
/* =================================================================== */
@media (max-width: 1249px) {
    .sidebar-info {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-top: 0;
        min-height: 136px;
        height: auto;
    }

    .info-content {
        align-items: center;
        margin-top: -5px; /* Optically aligns text with the avatar circle */
    }
    
    .avatar-box {
        margin-top: 0;
        flex-shrink: 0;
    }
}

/* --- Sidebar Content Elements --- */

.info-content .name {
    color: var(--white2);
    font-size: var(--fs3);
    font-weight: var(--fw500);
    letter-spacing: -0.25px;
    margin-bottom: 10px;
}

.info-content .title {
    color: var(--white1);
    background: var(--onyx);
    font-size: var(--fs8);
    font-weight: var(--fw300);
    width: max-content;
    padding: 3px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-more-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    border-radius: 0 15px;
    font-size: 13px;
    color: var(--orange-yellow-crayola);
    background: var(--border-gradient-onyx);
    padding: 10px;
    box-shadow: var(--shadow2);
    transition: var(--transition1);
    z-index: 1;
}

.info-more-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--bg-gradient-jet);
    transition: var(--transition1);
    z-index: -1;
}

.info-more-btn ion-icon {
  transition: var(--transition1);
}

.sidebar.active .info-more-btn ion-icon {
  transform: rotate(180deg);
}

.info-more-btn span {
  display: none;
}

.sidebar-info-more {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition2);
}

.sidebar.active .sidebar-info-more {
    opacity: 1;
    visibility: visible;
}

.contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info {
    max-width: calc(100% - 46px);
    width: calc(100% - 46px);
}

.contact-info :is(.contact-link, time, address) {
    color: var(--white2);
    font-size: var(--fs7);
}

.contact-info address {
  font-style: normal;
}

.contact-title {
    color: var(--light-gray70);
    font-size: var(--fs8);
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* --- SOCIAL LIST ALIGNMENT (Unified Center) --- */
.social-list {
    display: flex;
    /* --- SURGICAL FIX: Centers icons on Mobile and Desktop --- */
    justify-content: center; 
    align-items: center;
    gap: 15px;
    padding-bottom: 4px;
    padding-left: 0; /* Removed offset to ensure true centering */
}

.social-item .social-link {
    color: var(--light-gray70);
    font-size: 18px;
}

.social-item .social-link:hover {
  color: var(--light-gray);
}

/* --- "Now" Sidebar Section --- */
.sidebar-now-section {
    padding: 10px 15px;
    background: var(--bg-gradient-jet);
    border-radius: 12px;
    border: 1px solid var(--jet);
    margin-top: 15px;
}

.sidebar-now-section h4 {
  margin-bottom: 15px;
  color: var(--light-gray);
  font-weight: var(--fw500);
}

.sidebar-now-section .now-content p {
  font-size: var(--fs7);
  color: var(--light-gray70);
  line-height: 1.6;
}

/* --- Site Footer --- */
.site-footer {
  padding: 30px 15px;
  margin-top: 30px;
  text-align: center;
  font-size: var(--fs8);
  color: var(--light-gray70);
  border-top: 1px solid var(--jet);
  width: 100%;
}

.site-footer p {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--light-gray70);
    margin-top: 15px;
}

.footer-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.footer-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    border-bottom: 1px solid transparent;
}

.site-footer .footer-link {
    color: var(--orange-yellow-crayola);
}

.footer-link:hover {
    border-bottom: 1px solid var(--orange-yellow-crayola);
    color: var(--white2);
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

/* =================================================================== */
/*    DESKTOP RESPONSIVE BREAKPOINT (Over 1250px)                      */
/* =================================================================== */
@media (min-width: 1250px) {

    main {
        max-width: 1200px;
        margin-inline: auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 25px;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    .sidebar {
        flex-shrink: 0;
        width: 300px;      
        position: sticky;
        top: 60px;
        /* --- SURGICAL FIX: Remove height limits for Desktop to prevent clipping --- */
        max-height: none !important; 
        height: auto;
        margin-bottom: 0;
        padding-top: 60px;
        z-index: 1;
    }

    /* --- CENTERED DESKTOP HEADER --- */
    .sidebar-info {
        flex-direction: column;
        align-items: center !important; /* Force center for Desktop */
        justify-content: center;
        height: auto !important; /* Reset fixed height from mobile */
        padding-top: 0;
        gap: 15px;
    }

    .info-content {
        align-items: center;
        gap: 20px;
    }

    .avatar-box img {
        width: 150px;
        height: auto;
    }

    .info-content .name {
        white-space: nowrap;
        text-align: center;
    }

    .info-content .title {
      margin: auto;
    }

    .info-more-btn {
      display: none;
    }

    .sidebar-info-more {
        opacity: 1;
        visibility: visible;
    }

    .contacts-list {
      grid-template-columns: 1fr;
    }

    .social-list {
      justify-content: center;
    }

    .main-content.full-width {
        width: 100%;
        min-width: 100%;
        margin: 0;
    }
}
/* ---- css/partials/_navbar.css ---- */
/* =================================================================== */
/*    PARTIAL: NAVBAR                                                  */
/* =================================================================== */

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Remove the solid background and blur to stop the corner bleed */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    z-index: 5;
}

/* Ensure the navbar links still look good on mobile without the bar background */
@media (max-width: 1023px) {
    .navbar {
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--jet);
        border-radius: 12px 12px 0 0;
    }

    /* Surgical Adjustment: Shrink vertical footprint and tighten text for mobile */
    .navbar-link {
        padding: 12px 5px !important; /* Reduced from 20px */
        font-size: 11px !important;    /* Slightly smaller to prevent excessive wrapping */
    }
    
    .navbar-list {
        gap: 10px !important; /* Tighter gap between icons */
    }
}

.navbar-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.navbar-link {
    color: var(--light-gray);
    font-size: var(--fs8);
    padding: 20px 7px;
    transition: color var(--transition1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.navbar-link:hover, .navbar-link:focus {
  color: var(--light-gray70);
}

.navbar-link.active {
  color: var(--orange-yellow-crayola);
}

/* --- Animated Underline for Navbar Links --- */
/* FIX: Target only the text span, ignoring the icon and badge */
.navbar-link > span:not(.cart-badge)::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-gradient-yellow);
  transform: translateX(-50%);
  transition: width 0.3s ease-in-out;
}

.navbar-link:hover > span:not(.cart-badge)::after,
.navbar-link.active > span:not(.cart-badge)::after {
  width: 100%;
}

/* Enhanced Active State for Desktop */
@media (min-width: 1024px) {
    .navbar-link.active {
        color: var(--orange-yellow-crayola) !important;
        background: rgba(243, 111, 33, 0.1);
        /* Match the inner curve of the navbar container */
        border-radius: 12px;
        padding-left: 15px;
        padding-right: 15px;
        margin: 2px 5px;
        /* Subtle inset shadow looks cleaner than a flat background */
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Ensure the first item (Home) doesn't peek past the parent radius */
    .navbar-item:first-child .navbar-link.active {
        border-top-left-radius: 20px;
    }
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--white1);
}

/* --- Cart Badge Styles --- */
.cart-badge {
  position: absolute;
  top: -8px; 
  right: -10px; 
  background-color: var(--bittersweet-shimmer);
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 18px;
  min-width: 18px;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  border: 2px solid var(--eerie-black2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: none; 
  z-index: 2;
}

.cart-badge.bounce {
  animation: bounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Trigger */
.command-palette-trigger {
  display: block;
  font-size: 20px;
}
.command-palette-trigger .navbar-link {
  padding: 20px 10px;
}

/* Progressive labels for longer nav items.
   Default to the short label so the designed top-right nav never overflows. */
.nav-label-full {
  display: none;
}
.nav-label-short {
  display: inline;
}

/* Skip Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  padding: 10px 15px;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
  font-weight: var(--fw600);
}
.skip-to-content:focus { top: 0; }
/* ---- css/partials/components/_ui_elements.css ---- */
/* =================================================================== */
/*    PARTIAL: UI ELEMENTS                                             */
/*    Contains: Base interface objects, Forms, Buttons, Alerts,         */
/*    Autocomplete, and Skeleton Loaders.                              */
/* =================================================================== */

/* --- ICON BOX --- */
.icon-box {
    position: relative;
    background: var(--border-gradient-onyx);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--orange-yellow-crayola);
    box-shadow: var(--shadow1);
    z-index: 1;
}

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

.icon-box ion-icon {
  --ionicon-stroke-width: 35px;
}

/* --- SHARED CONTENT CARD WRAPPER --- */
.content-card {
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 15px;
    padding-top: 45px;
    border-radius: 14px;
    box-shadow: var(--shadow2);
    cursor: pointer;
    z-index: 1;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

/* --- AVATAR & PROFILE BOXES --- */
.avatar-box {
    background: var(--bg-gradient-onyx);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* --- SERVICE ITEM CARDS --- */
.service-item {
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow2);
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

.service-icon-box {
  margin-bottom: 10px;
}
.service-icon-box img {
  margin: auto;
}

.service-content-box {
  text-align: center;
  width: 100%;
}
.service-item-title {
  margin-bottom: 7px;
}

.service-item-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
}
.service-item-text p {
  text-align: left;
}

/* --- TYPOGRAPHY & HEADER REFINEMENT --- */
.article-title {
    position: relative;
    padding-bottom: 15px; 
    margin-bottom: 35px; /* Increased margin for better separation from search/content */
    text-transform: capitalize;
    font-weight: var(--fw600);
    color: var(--white2);
    font-size: var(--fs1); /* Restores the correct large H2 size */
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; 
    height: 5px;  
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}

/* --- FORM INPUTS & SELECTS --- */
.form-input {
    color: var(--white2);
    font-size: var(--fs6);
    font-weight: var(--fw400);
    padding: 13px 20px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    outline: none;
}

.form-input::placeholder {
  font-weight: var(--fw500);
}
.form-input:focus {
  border-color: var(--orange-yellow-crayola);
}
.form-input:focus:invalid {
  border-color: var(--bittersweet-shimmer);
}

select.form-input {
  background-color: var(--eerie-black2);
  cursor: pointer;
}

select.form-input option {
  background: var(--eerie-black1);
  color: var(--white1);
  padding: 12px;
  font-size: 16px;
}

textarea.form-input {
    min-height: 100px;
    height: 120px;
    max-height: 200px;
    resize: vertical;
}

textarea.form-input::-webkit-realizer {
  display: none;
}

/* --- THE BUTTON SYSTEM --- */
.form-btn {
    position: relative;
    width: 100%;
    background: var(--border-gradient-onyx);
    color: var(--orange-yellow-crayola);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: var(--fs6);
    text-transform: capitalize;
    box-shadow: var(--shadow3);
    z-index: 1;
    transition: var(--transition1);
}

.form-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
    transition: var(--transition1);
}

.form-btn ion-icon {
  font-size: 16px;
}

.form-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.form-btn:disabled:hover {
  background: var(--border-gradient-onyx);
}
.form-btn:disabled:hover::before {
  background: var(--bg-gradient-jet);
}

/* --- CUSTOM FILE UPLOAD UI --- */
.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.file-upload-wrapper .form-input[type="file"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
  width: 0.1px;
  height: 0.1px;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: auto;
  flex-shrink: 0; 
  margin: 0;
}

.file-upload-filename {
  margin-left: 15px;
  color: var(--light-gray70);
  font-size: var(--fs7);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- FORM ALERTS & FEEDBACK --- */
.form-feedback {
  margin-top: 20px;
  padding: 15px;
  border-radius: 14px;
  font-size: var(--fs6);
  text-align: center;
}

.form-feedback.alert-success {
  background-color: hsla(120, 60%, 85%, 1); 
  color: hsl(120, 60%, 15%); 
  border: 1px solid hsl(120, 60%, 75%);
}

.form-feedback.alert-error {
  background-color: hsla(0, 70%, 90%, 1); 
  color: hsl(0, 70%, 20%);
  border: 1px solid hsl(0, 70%, 80%);
}

/* --- ADDRESS AUTOCOMPLETE DROPDOWNS --- */
.autocomplete-items {
    position: absolute;
    border: 1px solid var(--jet);
    z-index: 10000; 
    top: 100%;
    left: 0;
    right: 0;
    background: var(--eerie-black2);
    border-radius: 0 0 14px 14px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow3);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--jet);
    color: var(--light-gray);
    font-size: 13px;
}

.autocomplete-item:hover {
    background: var(--onyx);
    color: var(--orange-yellow-crayola);
}

/* --- SKELETON LOADING UI (SHIMMER) --- */
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, 
        var(--eerie-black1) 25%, 
        var(--onyx) 50%, 
        var(--eerie-black1) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 12px;
    border: 1px solid var(--jet);
}

.skeleton-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.skeleton-header {
    height: 40px;
    width: 200px;
    margin-bottom: 20px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.skeleton-card {
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.skeleton-img-circle {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    margin: 0 auto;
}

.skeleton-line {
    height: 12px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

/* --- BRANDED PLACEHOLDERS & CENTERING --- */
/* Specifically for the "Bring Your Own Item" / No Image states */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--eerie-black1); 
    color: var(--light-gray70);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 5;
}

.no-image-placeholder ion-icon {
    font-size: 64px !important; /* Larger icon for BYOI card */
    color: var(--orange-yellow-crayola);
    opacity: 0.8 !important;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.no-image-placeholder span {
    display: block;
    width: 100%;
    font-size: 14px !important; /* Larger, more readable font like TEST */
    font-weight: 700 !important; /* Bolder for "Custom Engraving" text */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white2); /* Brighter text for visibility */
    line-height: 1.2;
}

.project-title, .project-category {
  text-align: center;
  margin-left: 0;
  width: 100%;
}

/* Pill Badges for Tags */
.tech-tag {
    background: rgba(243, 111, 33, 0.1);
    color: var(--orange-yellow-crayola) !important;
    border: 1px solid rgba(243, 111, 33, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* --- THEME-AWARE NPROGRESS BAR (Orange Fix) --- */
#nprogress .bar {
  background: var(--orange-yellow-crayola) !important;
  height: 3px !important;
  z-index: 11001 !important;
}

#nprogress .peg {
  box-shadow: 0 0 10px var(--orange-yellow-crayola), 0 0 5px var(--orange-yellow-crayola) !important;
}

#nprogress .spinner-icon {
  border-top-color: var(--orange-yellow-crayola) !important;
  border-left-color: var(--orange-yellow-crayola) !important;
}

/* --- LAYOUT HARMONIZATION (Vertical Alignment Fix) --- */
/* Forces the Sidebar and Main Content to start at the exact same horizontal level */

@media (min-width: 1250px) {
    main {
        margin-top: 60px !important; /* Matches the top spacing of the TEST site */
        align-items: flex-start !important; /* Prevents flex children from stretching unevenly */
    }

    .sidebar {
        margin-top: 0 !important;
        padding-top: 60px !important; /* Creates internal space for the logo */
        top: 60px !important; /* Anchors the sticky sidebar at the same level as the nav */
    }

    /* Target the swup container and the internal article to clear the navbar */
    #swup.main-content {
        margin-top: 0 !important;
    }

    #swup.main-content > article {
        padding-top: 80px !important; /* Extra 20px over the sidebar to clear the absolute navbar height */
    }
}

/* --- MISC UI UTILITIES --- */
.d-none-important {
    display: none !important;
}

/* --- SOCIAL PROOF TOAST --- */
.craft-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow5);
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased z-index for mobile interaction over the sidebar/navbar */
    z-index: 1000; 
    transform: translateX(-120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 340px;
    cursor: pointer;
    text-decoration: none;
}

.craft-notification:hover {
    border-color: var(--orange-yellow-crayola);
    transform: translateX(0) scale(1.02);
    background: var(--bg-gradient-jet);
}

.craft-notification.active {
    transform: translateX(0);
}

/* --- SOCIAL PROOF TOAST --- */
.craft-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    padding: 15px 25px 15px 20px; /* Extra right padding for close button */
    border-radius: 12px;
    box-shadow: var(--shadow5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000; 
    transform: translateX(-120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 340px;
    cursor: pointer;
    text-decoration: none;
    overflow: visible; /* Ensure the X can pop out on desktop */
}

.craft-notification:hover {
    border-color: var(--orange-yellow-crayola);
    transform: translateX(0) scale(1.02);
    background: var(--bg-gradient-jet);
}

.craft-notification.active {
    transform: translateX(0);
}

/* SURGICAL ADD: Close Button Style */
.craft-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--bittersweet-shimmer);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--eerie-black2);
    box-shadow: var(--shadow1);
    z-index: 1010;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.craft-close-btn:hover {
    transform: scale(1.2);
    background: #ff4d4d;
}

/* Mobile Specific Adjustments for the Toast */
@media (max-width: 768px) {
    .craft-notification {
        left: 10px;
        right: 10px;
        bottom: 90px; /* Sits higher to clear mobile nav */
        max-width: calc(100% - 20px);
        padding: 12px 40px 12px 15px; /* More room for the X */
        /* Prevent the whole card from turning blue/red when tapped */
        -webkit-tap-highlight-color: transparent; 
    }
    
    .craft-close-btn {
        top: 0;
        right: 0;
        width: 44px; /* Even larger hit area for mobile thumbs */
        height: 44px;
        border-radius: 0 12px 0 12px; 
        border: none;
        background: rgba(217, 83, 79, 0.15); /* Slightly darker red for visibility */
        color: var(--bittersweet-shimmer);
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        outline: none;
        /* Ensure it stands out as the closing element */
        z-index: 1001; 
        -webkit-tap-highlight-color: transparent;
    }

    /* Surgical Fix: Remove the red fill on active tap to clean up the UI */
    .craft-close-btn:active {
        background: rgba(217, 83, 79, 0.4);
        transform: none; /* Keep it stable on tap */
    }
}

.craft-icon-box {
    width: 40px;
    height: 40px;
    background: var(--bg-gradient-jet);
    border: 1px solid var(--orange-yellow-crayola);
    color: var(--orange-yellow-crayola);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.craft-text {
    font-size: 12px;
    color: var(--light-gray);
    line-height: 1.4;
}

.craft-text strong {
    color: var(--white2);
    display: block;
}
/* ---- css/partials/components/_commerce.css ---- */
/* =================================================================== */
/*    PARTIAL: COMMERCE & SHOPPING ENGINE                              */
/*    Contains: Cart Drawer, Wishlist, Stock Badges, Qty Controls,     */
/*    Order Tracking, and Variant Selection.                           */
/* =================================================================== */

/* --- OFFCANVAS CART DRAWER (SLIDE-IN SIDEBAR) --- */

/* 1. Overlay (Dims Background) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 199; /* Just below drawer */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. The Drawer Itself */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw; /* Responsive constraint */
    height: 100%;
    background: var(--eerie-black2);
    border-left: 1px solid var(--jet);
    box-shadow: var(--shadow5);
    z-index: 200; /* Highest UI element */
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

/* 3. Header */
.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--jet);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gradient-jet);
}

.cart-sidebar-header .h3 {
    margin: 0;
    font-size: var(--fs-4);
    color: var(--white2);
}

.cart-sidebar-header .modal-close-btn {
    position: static; /* Override absolute positioning from general modal style */
    transform: none;
    background: var(--onyx);
}

/* 4. Body (Scrollable List) */
.cart-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

/* 5. Footer (Checkout) */
.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--jet);
    background: var(--eerie-black2);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: var(--fs-5);
    font-weight: 600;
    color: var(--white2);
}

.cart-total-row span:last-child {
    color: var(--orange-yellow-crayola);
}

/* 6. Individual Item Styles in Drawer */
.cart-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--border-gradient-onyx);
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    border: 1px solid var(--jet);
}

.cart-drawer-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--onyx);
    flex-shrink: 0;
    object-fit: cover;
    /* SURGICAL ADD: Visual cue for interactivity */
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--jet);
}

.cart-drawer-thumb:hover {
    transform: scale(1.05);
    border-color: var(--orange-yellow-crayola);
}

/* Enhanced style for the Checkout Table images */
.checkout-table-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: all 0.2s ease;
    border: 1px solid var(--jet);
    background: var(--onyx);
}

.checkout-table-thumb:hover {
    transform: scale(1.15);
    border-color: var(--orange-yellow-crayola);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cart-drawer-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-drawer-title {
    font-size: var(--fs-7);
    color: var(--white2);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-drawer-meta {
    font-size: 11px;
    color: var(--light-gray70);
}

.cart-drawer-price {
    color: var(--orange-yellow-crayola);
    font-weight: 600;
}

.cart-drawer-remove {
    background: transparent;
    border: none;
    color: var(--bittersweet-shimmer);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    align-self: center;
    opacity: 0.7;
    transition: var(--transition1);
}

.cart-drawer-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Success Animation State --- */
.form-btn.success {
    background: var(--bg-gradient-yellow1) !important;
    color: var(--smoky-black) !important;
    border-color: var(--orange-yellow-crayola) !important;
    box-shadow: 0 0 20px rgba(255, 172, 51, 0.4) !important;
    transform: translateY(-2px);
}

.form-btn.success::before {
    background: var(--bg-gradient-yellow1) !important;
    opacity: 0.8;
}

/* --- PRODUCT GRID STATUS BADGES (Refined Artisan Style) --- */
.card-badge {
    position: absolute;
    top: 12px !important;
    left: 12px !important;
    padding: 5px 12px;
    border-radius: 4px; /* Sharper corners feel more industrial/modern */
    font-size: 9px; /* Slightly smaller for elegance */
    font-weight: 600;
    text-transform: uppercase;
    z-index: 25 !important; 
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    letter-spacing: 1.2px; /* Increased tracking for high-end look */
    white-space: nowrap;
    width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Restocking Soon (Sold Out) */
.card-badge.sold-out {
    background-color: #333; /* Darker, sophisticated look */
    color: var(--white1);
    border: 1px solid #444;
}

/* Limited Batch (Low Stock) */
.card-badge.low-stock {
    background-color: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Design Studio (Customize) Badge */
.customize-badge {
    position: absolute;
    bottom: 12px; 
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 25; 
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6); /* Translucent dark background */
    backdrop-filter: blur(4px);
    color: var(--orange-yellow-crayola); /* Orange text on dark */
    border: 1px solid var(--orange-yellow-crayola);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.customize-badge ion-icon {
    font-size: 11px;
}

/* --- STOCK STATUS BADGES (Modal View - Artisan Style) --- */
.stock-status-badge {
    display: inline-block;
    width: max-content;
    font-size: 10px; /* Slightly smaller for elegance */
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* In Stock: Soft Green glow */
.stock-status-badge.in-stock { 
    background: rgba(92, 184, 92, 0.1); 
    color: #5cb85c; 
    border-color: rgba(92, 184, 92, 0.3); 
}

/* Limited Batch (Low Stock): Solid Orange to match grid */
.stock-status-badge.low-stock { 
    background: var(--orange-yellow-crayola); 
    color: var(--smoky-black); 
    border: none; 
}

/* Restocking (Out of Stock): Dark and muted to match grid */
.stock-status-badge.out-stock { 
    background: #333; 
    color: var(--white1); 
    border-color: #444; 
}

/* --- QUANTITY CONTROLS --- */
.quantity-group {
    flex-shrink: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--onyx); /* Darker background */
    border-radius: 8px;
    border: 1px solid var(--jet);
    overflow: hidden;
}

.qty-control button {
    width: 44px; /* Significantly larger for mobile thumbs */
    height: 100%;
    background: transparent;
    border: none;
    color: var(--white1);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .quantity-group .qty-control {
        height: 50px; /* Match the height of the Add to Quote button */
        border-radius: 8px;
        background: var(--eerie-black1);
    }
}

.qty-control button:hover {
    background: var(--jet);
    color: var(--orange-yellow-crayola);
}

.qty-input {
    width: 60px !important; /* Increased from 45px */
    text-align: center;
    border: none;
    background: transparent;
    color: var(--white1);
    font-size: 16px; /* Ensure text is readable */
    font-weight: 600;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield; /* Remove spinner on Firefox */
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- BUTTON GROUPING (FIXED FOR LEFT ALIGNMENT) --- */
.buttons-group {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.buttons-group .form-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 40px; 
    width: max-content;
}

/* --- VARIANT SELECTOR BUTTONS --- */
.variant-selector-wrapper {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    color: var(--light-gray);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-btn {
    background: var(--onyx);
    border: 1px solid var(--jet);
    color: var(--white2);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s, transform 0.1s, border-color 0.2s, box-shadow 0.2s;
}

.variant-btn:hover {
    background: var(--jet);
    border-color: var(--light-gray70);
    color: var(--white1);
    transform: translateY(-2px);
}

.variant-btn:active {
    transform: scale(0.95);
}

.variant-btn.active {
    background: var(--orange-yellow-crayola);
    border-color: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 172, 51, 0.3);
}

.variant-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--eerie-black1);
    border-color: var(--jet);
    text-decoration: line-through;
}

/* --- VOLUME DISCOUNT MESSAGING --- */
#volume-upsell-msg {
    font-size: 12px;
    color: var(--light-gray70);
    display: none;
    align-items: center;
    gap: 5px;
}

#volume-activated-msg {
    font-size: 13px;
    color: #5cb85c;
    display: none;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

/* --- ORDER TRACKER (VISUAL TIMELINE) --- */
.order-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 0; 
    position: relative;
    width: 100%;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--jet);
    z-index: 0;
}

.tracker-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    text-align: center;
}

.tracker-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--eerie-black2); 
    border: 2px solid var(--jet);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--light-gray70);
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 0 0 4px var(--eerie-black2); 
}

.tracker-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--light-gray70);
    font-weight: 500;
    transition: color 0.3s ease;
}

.tracker-step.active .tracker-icon {
    border-color: var(--orange-yellow-crayola);
    color: var(--orange-yellow-crayola);
    box-shadow: 0 0 15px rgba(255, 172, 51, 0.4); 
    background: var(--bg-gradient-jet);
}

.tracker-step.active .tracker-label {
    color: var(--white2);
    font-weight: 700;
}

.tracker-step.completed .tracker-icon {
    background: var(--orange-yellow-crayola);
    border-color: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.tracker-step.completed .tracker-label {
    color: var(--orange-yellow-crayola);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 172, 51, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 172, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 172, 51, 0); }
}

.tracker-step.active[data-step="crafting"] .tracker-icon {
    animation: pulse-ring 2s infinite;
}

/* --- SURGICAL ADD: Granular Step Icons & Pulses --- */
.step-sub-label {
    display: block;
    font-size: 9px;
    color: var(--orange-yellow-crayola);
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific Machine Pulses for Visual Interest */
[data-prod-step="Laser Engraving"] .tracker-icon { border-color: #f36f21 !important; color: #f36f21 !important; box-shadow: 0 0 10px #f36f21; }
[data-prod-step="CNC Machining"] .tracker-icon { border-color: #3498db !important; color: #3498db !important; }
[data-prod-step="Oiling"] .tracker-icon { border-color: #f1c40f !important; color: #f1c40f !important; }

@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tracker-step.active .tracker-icon ion-icon[name="settings-outline"] {
    animation: gear-spin 4s linear infinite;
}

/* --- WISHLIST / FAVORITES SYSTEM (Harmonized Catalog & Studio) --- */
.wishlist-btn, 
.asset-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 150 !important; 
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white2);
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px; 
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wishlist-btn:hover, 
.asset-fav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.15);
    color: white;
}

.wishlist-btn.active, 
.asset-fav-btn.active {
    color: var(--bittersweet-shimmer); 
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--bittersweet-shimmer);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.wishlist-btn ion-icon, 
.asset-fav-btn ion-icon {
    pointer-events: none; 
}

.wishlist-btn:active, 
.asset-fav-btn:active {
    transform: scale(0.9);
}

/* Specific sizing for the small clipart grid items */
.clipart-thumb-item .asset-fav-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
    top: 5px;
    right: 5px;
}

/* --- MISSING BUTTON GROUPING ENGINE (PORTED FROM OLD) --- */
.buttons-group {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start; /* Correctly aligns items to the left as per TEST */
    gap: 10px;
}

.buttons-group .form-btn {
    /* SURGICAL FIX: Force alignment to the left, overriding global margin-left: auto */
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 40px; 
    width: max-content; /* Ensure they don't stretch unnecessarily */
}

/* --- MOBILE STICKY COMMERCE BAR ENHANCEMENT --- */
@media (max-width: 768px) {
    .catalog-actions-row {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--eerie-black2); 
        border-top: 1px solid var(--orange-yellow-crayola); 
        padding: 15px 20px;
        margin: 0;
        z-index: 999; 
        box-shadow: 0 -10px 30px rgba(0,0,0,0.8); 
        
        display: flex;
        align-items: center;
        gap: 15px;
    }
}
/* ---- css/partials/components/_visualizer.css ---- */
/* =================================================================== */
/*    PARTIAL: PRODUCT VISUALIZER                                      */
/*    Contains: Fullscreen studio modal, Canvas container, Toolbars,   */
/*    Laser animations, and Mobile studio stacking logic.              */
/* =================================================================== */

/* --- Product Visualizer Modal --- */
.visualizer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: hsla(0, 0%, 0%, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* FORCE REMOVE EXTERNAL MARGINS */
  padding: 0 !important;
}

.visualizer-container.active {
  opacity: 1;
  visibility: visible;
}

.visualizer-modal {
  background: var(--eerie-black2);
  border-left: 1px solid var(--jet);
  border-right: 1px solid var(--jet);
  border-radius: 0; /* Full screen look */
  width: 100vw; 
  height: 100vh; 
  max-width: 100vw; 
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  opacity: 0;
  transform: none; 
  transition: opacity 0.3s ease;
  align-items: stretch;
  /* SURGICAL FIX: Prevent modal from ever expanding beyond viewport */
  overflow: hidden !important; 
}

.visualizer-container {
    padding: 0 !important; /* Force remove gaps from the fixed overlay */
}

.visualizer-container.active .visualizer-modal {
  opacity: 1;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--jet);
  flex-shrink: 0;
  background: var(--eerie-black1);
  height: 60px;
}

.visualizer-header .modal-close-btn {
    position: static; 
    transform: none;
}

.visualizer-body {
  display: grid;
  width: 100%; 
  /* Shrink sidebar slightly more (320px) to give canvas absolute maximum room */
  grid-template-columns: 1fr 320px; 
  flex-grow: 1;
  /* SURGICAL FIX: min-height 0 allows the flex-child to shrink correctly inside the modal */
  min-height: 0; 
  overflow: hidden;
  position: relative;
}

.visualizer-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Deeper black for focus */
    display: flex;
    justify-content: center; 
    align-items: center;     
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.visualizer-disclaimer {
    width: 100%;
    font-size: 10px;
    color: var(--light-gray70);
    text-align: center;
    margin-bottom: 0;
}

.visualizer-canvas-container {
  flex-grow: 1; 
  width: 100%;  
  height: 100%; 
  padding: 5px; 
  background-color: var(--onyx);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  
  /* FLUIDITY FIXES */
  overflow: hidden !important; /* Hide clunky scrollbars */
  cursor: grab;                /* Show the 'hand' icon */
}

.visualizer-canvas-container:active {
    cursor: grabbing;          /* Closes the 'hand' when clicking */
}

/* Ensure Fabric.js internal wrapper respects the flex centering */
.canvas-container {
    margin: auto !important;
    box-shadow: var(--shadow4);
}

/* Info Panel: Floating on Desktop, Block on Mobile */
.visualizer-info-panel {
  padding: 10px 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  border-top: 1px solid var(--jet);
  z-index: 10;
}

/* CONSOLIDATED DESKTOP OVERRIDES: Brute-Force Edge-to-Edge Workspace */
@media (min-width: 901px) {
    /* 1. Force backdrop to be a simple pass-through layer */
    .visualizer-container {
        display: block !important; 
        padding: 0 !important;
        margin: 0 !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 10000 !important;
        max-width: none !important;
    }

    /* 2. Force the Modal to span the absolute full window */
    .visualizer-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        transform: none !important; 
        display: flex !important;
        flex-direction: column !important;
        background: #000 !important;
        overflow: hidden !important; 
    }

    /* 3. The Header: Guaranteed 100% Width */
    .visualizer-header {
        height: 60px !important;
        width: 100% !important;
        flex-shrink: 0;
        background: var(--eerie-black1);
        border-bottom: 1px solid var(--jet);
        padding: 0 25px;
    }

    /* 4. The Body: Edge-to-Edge Grid (Canvas + Toolbar) */
    .visualizer-body {
        display: grid !important; 
        grid-template-columns: 1fr 340px !important; 
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 60px) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        min-height: 0;
    }

    /* 5. The Canvas Area: Takes all remaining space on the left */
    .visualizer-canvas-container {
        flex: 1 !important; 
        height: 100% !important;
        background-color: #080808 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 60px !important; 
        position: relative !important;
        min-width: 0; 
    }

    /* 6. The Toolbar: Locked to the far right */
    .visualizer-toolbar {
        width: 340px !important;
        min-width: 340px !important;
        height: 100% !important;
        background: var(--eerie-black2) !important;
        border-left: 1px solid var(--jet) !important;
        padding: 25px !important;
        overflow-y: auto !important;
        flex-shrink: 0; 
    }

    /* 7. Floating Info Overlay (Gains Vertical Space) */
    .visualizer-info-panel {
        position: absolute !important;
        bottom: 30px !important;
        left: 30px !important;
        width: auto !important;
        max-width: 400px;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 10px 20px !important;
        z-index: 100;
        pointer-events: none;
    }

    .visualizer-disclaimer {
        text-align: left;
        font-size: 11px;
        opacity: 0.8;
        white-space: normal !important;
    }

    /* Surgical Fix: Consolidated tool-group styling inside Desktop query */
    .visualizer-toolbar .tool-group {
        background: rgba(0, 0, 0, 0.2);
        padding: 12px;
        border-radius: 10px;
        border: 1px solid var(--jet);
    }
}

/* --- UPDATED: VISUALIZER TOOLBAR (Fixed Clipping Fix) --- */
.visualizer-toolbar {
  padding: 20px; 
  border-left: 1px solid var(--jet);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px; 
  background: var(--eerie-black1);
  /* SURGICAL FIX: Ensure the toolbar is constrained to its parent's height */
  height: 100%;
  max-height: 100%; 
  /* Cross-browser scrollbar colors */
  scrollbar-width: thin;
  scrollbar-color: var(--orange-yellow-crayola) transparent;
}

/* Arrangement for standard tool buttons */
.visualizer-toolbar .form-btn:not([data-visualizer-save-btn]) {
    width: 100%;
    height: 60px; /* Forced height for a square tool look */
    padding: 8px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column; /* SURGICAL FIX: Stacks Aa over Add Text */
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
    line-height: 1.1;
}

/* Specific styling for the "Aa" portion of the Add Text tool */
.visualizer-toolbar .form-btn[data-tool-add-text]::first-line {
    font-size: 18px;
    color: var(--orange-yellow-crayola);
}

/* Reset for standard icons in other tool buttons */
.visualizer-toolbar .form-btn ion-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* Targeting groups of buttons to sit 2-across */
.visualizer-toolbar > .form-btn, 
.visualizer-toolbar > .tool-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Action areas (Add Text, Color, Delete) look better as a grid */
.visualizer-toolbar .action-grid-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Webkit Scrollbar Styling */
.visualizer-toolbar::-webkit-scrollbar { 
    width: 6px; 
    display: block !important; /* Force display */
}
.visualizer-toolbar::-webkit-scrollbar-track { background: transparent; }
.visualizer-toolbar::-webkit-scrollbar-thumb { 
    background: var(--orange-yellow-crayola); 
    border-radius: 8px; 
}


.visualizer-toolbar .tool-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visualizer-toolbar .tool-group label {
    font-size: var(--fs7);
    color: var(--light-gray70);
}

.visualizer-toolbar .form-btn {
    width: 100%;
}

.visualizer-footer {
    margin-top: auto; 
    padding-top: 20px;
    border-top: 1px solid var(--jet);
}

/* Tweak tool groups to utilize the new vertical height */
@media (min-width: 1024px) {
    .visualizer-toolbar {
        padding: 25px 20px;
        gap: 25px; /* Increased gap between tools */
    }
    
    .visualizer-toolbar .tool-group label {
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
    }
}

button[data-cursor-toggler] {
  display: none;
}

#visualizer-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background-color: var(--onyx);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#visualizer-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Mobile Customization Warning Logic --- */
.mobile-visualizer-msg {
  display: none; /* Hidden by default */
  width: 100%;
  margin-top: 15px;
  padding: 15px;
  background: var(--bg-gradient-jet);
  border: 1px solid var(--jet);
  border-radius: 12px;
  text-align: center;
  color: var(--light-gray70);
}

.mobile-visualizer-msg ion-icon {
  margin: 0 auto 10px;
  font-size: 24px;
  color: var(--orange-yellow-crayola);
}

.mobile-visualizer-msg p {
  font-size: var(--fs-7);
  line-height: 1.5;
}

/* Ensure the Success Modal takes up the full canvas area but stays inside the container */
#visualizer-success-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logic for Small Phones only */
@media (max-width: 600px) {
    .mobile-visualizer-msg {
        display: block; /* Show warning only on very small screens */
    }
}

/* Layout logic for Mobile & Tablets (Up to 900px) */
@media (max-width: 900px) {
    /* 1. Reset the container to remove all padding/margins */
    .visualizer-container {
        padding: 0 !important;
    }

    /* 2. Force Modal to fixed Full Screen with NO overflow */
    .visualizer-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        background: var(--eerie-black2) !important;
    }

    /* 3. The Body must be the only part that scrolls */
    .visualizer-body {
        display: block !important; /* Stack children vertically */
        width: 100% !important;
        flex-grow: 1 !important;
        overflow-y: auto !important; /* Enable vertical scrolling */
        overflow-x: hidden !important; /* Kill horizontal bleeding */
        -webkit-overflow-scrolling: touch;
        /* Reset height for mobile stacking */
        height: auto !important;
    }

    /* 4. Reset every internal panel to 100% width */
    .visualizer-info-panel, 
    .visualizer-canvas-container, 
    .visualizer-toolbar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    /* 5. Fix the text bleed */
    .visualizer-info-panel {
        padding: 15px !important;
        border-bottom: 1px solid var(--jet) !important;
    }

    .visualizer-disclaimer {
        white-space: normal !important;
        word-wrap: break-word !important;
        width: 100% !important;
        font-size: 11px;
    }

    /* 6. Fix the Canvas sizing so it doesn't take over the whole screen */
    .visualizer-canvas-container {
        /* SURGICAL FIX: Use dynamic viewport units to handle rotation better */
        height: 60svh !important; 
        min-height: 300px;
        width: 100% !important;
        background-color: var(--onyx);
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important; 
        position: relative !important;
        touch-action: none !important; 
        border-bottom: 1px solid var(--jet);
    }

    /* Extra optimization for landscape specifically */
    @media (max-height: 500px) and (orientation: landscape) {
        .visualizer-canvas-container {
            height: 70vh !important;
        }
        .visualizer-header {
            padding: 5px 20px !important;
        }
    }

    /* Force the inner Fabric interaction container to stay centered */
    .canvas-container {
        margin: 0 auto !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-drag: none !important;
    }

    /* 7. Force the Toolbar to appear below the image */
    .visualizer-toolbar {
        padding: 20px 15px 120px !important; /* Extra bottom padding for the mobile browser bar */
        border-top: 1px solid var(--jet) !important;
        background: var(--eerie-black2) !important;
    }

    /* Make buttons and inputs easy to hit on mobile */
    .visualizer-toolbar .tool-group {
        margin-bottom: 20px !important;
    }
    
    .visualizer-toolbar label {
        display: block !important;
        margin-bottom: 8px !important;
    }
}

/* --- VISUALIZER COACH MARKS MOBILE TOGGLE --- */
@media (max-width: 900px) {
    .coach-zoom-desktop {
        display: none !important;
    }
    .coach-zoom-mobile {
        display: block !important;
    }
}

/* --- Visualizer Disclaimer Note --- */
.visualizer-note {
  border: 1px solid var(--orange-yellow-crayola);
  background: var(--bg-gradient-jet); /* Matches the card background style */
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: var(--fs-7);
  color: var(--light-gray);
  line-height: 1.5;
  box-shadow: var(--shadow1);
  animation: fade 0.3s ease-in-out;
}

/* --- Visualizer Specific Animations --- */
@keyframes laserScan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.laser-active {
    animation: laserScan 1.5s linear infinite;
}

#visualizer-coach-marks {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10006;
}

/* =================================================================== */
/*    VISUALIZER SET BAR & SYNC CONTROLS                               */
/* =================================================================== */

#visualizer-set-bar {
    display: none; 
    background: var(--eerie-black1);
    border-bottom: 1px solid var(--orange-yellow-crayola);
    padding: 8px 15px; /* Reduced padding */
    align-items: center;
    justify-content: space-between; 
    gap: 8px; 
    flex-wrap: nowrap; /* Force single line in header area */
    overflow-x: hidden; 
}

/* Make slots smaller on mobile to fit the sync button */
@media (max-width: 600px) {
    #visualizer-set-bar {
        padding: 15px 15px !important; /* Increased vertical breathing room to prevent clipping */
        min-height: 65px; /* Explicit height ensures slot highlights aren't squished */
    }

    #set-slots-container .form-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 10px !important;
    }
    
    #visualizer-sync-container label span {
        font-size: 9px;
    }
}

#set-slots-container {
    display: flex;
    gap: 4px; /* Tighter gap */
    flex-shrink: 0;
    align-items: center;
}

#visualizer-sync-container {
    display: flex;
    align-items: center;
    padding-left: 0;
    flex-shrink: 1; /* Allow it to shrink if needed */
}

/* Simplified Label for Mobile Space */
#visualizer-sync-container label {
    font-size: 10px;
    color: var(--orange-yellow-crayola);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap; 
    background: rgba(243, 111, 33, 0.1);
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(243, 111, 33, 0.3);
}

#visualizer-sync-container label:hover {
    border-color: var(--orange-yellow-crayola);
    background: var(--jet);
}

#sync-all-slots {
    accent-color: var(--orange-yellow-crayola);
    transform: scale(1.2);
    margin: 0;
}

#visualizer-set-label-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

#visualizer-slot-label {
    font-size: 10px; /* Sized down for professional look */
    color: var(--light-gray70);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

#glassware-coach-label {
    display: none; /* Controlled by JS */
    font-size: 8px;
    color: var(--orange-yellow-crayola);
    font-weight: 600;
    text-transform: uppercase;
}

#set-slots-container {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#personalization-cost-badge {
    display: none; /* Controlled by JS */
    background: rgba(92, 184, 92, 0.1);
    border: 1px solid #5cb85c;
    padding: 4px 12px;
    border-radius: 20px;
    color: #5cb85c;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

#visualizer-orientation-container {
    display: none; /* Controlled by JS */
    border-left: 1px solid var(--jet);
    padding-left: 20px;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.viz-sub-label {
    font-size: 10px;
    color: var(--light-gray70);
    text-transform: uppercase;
    font-weight: 700;
}

.viz-toggle-pill {
    display: flex;
    background: var(--eerie-black1);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--jet);
}

.viz-toggle-pill button {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: bold;
    border: none;
    transition: var(--transition1);
}

.viz-toggle-pill button.active {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

#visualizer-sync-container {
    display: flex;
    align-items: center;
    padding-left: 10px;
    /* Removed margin-left: auto to bring it into the main flow */
}

#visualizer-sync-container label {
    font-size: 11px;
    color: var(--white2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap; /* Surgical Fix: Forces text onto one line */
}

#sync-all-slots {
    accent-color: var(--orange-yellow-crayola);
    transform: scale(1.1);
    cursor: pointer;
}

/* --- SURGICAL ADD: Foreman's Guide Styling --- */
#visualizer-guide-text {
    font-size: 11px;
    color: var(--orange-yellow-crayola);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--jet);
    display: none; /* Hidden on tiny screens */
    animation: fade 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    #visualizer-guide-text {
        display: block;
    }
}

/* Tooltip Hint for Sliders */
.tool-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-help-icon {
    font-size: 14px;
    color: var(--light-gray70);
    cursor: help;
}

/* DEV-approved mobile customizer and image-price layout. */
@media (max-width: 600px) {
  #visualizer-set-bar { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:10px !important; position:relative !important; padding:12px 12px 24px !important; min-height:158px !important; overflow:hidden !important; }
  #visualizer-set-label-group { width:100%; min-width:0; flex:0 0 auto; align-self:stretch; }
  #visualizer-slot-label { display:block; line-height:1.25; }
  #glassware-coach-label { line-height:1.25; margin-top:3px; }
  #set-slots-container { width:100%; min-width:0; flex:0 0 auto; display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; padding:2px 1px 4px; scrollbar-width:none; }
  #set-slots-container::-webkit-scrollbar { display:none; }
  #set-slots-container .form-btn { flex:1 0 0; width:auto !important; min-width:0 !important; height:40px !important; margin:0 !important; padding:0 8px !important; font-size:11px !important; white-space:nowrap; }
  #personalization-cost-badge { position:absolute !important; top:12px; right:12px; display:inline-block !important; width:max-content !important; min-width:max-content !important; max-width:none !important; overflow:visible; text-overflow:clip; padding:0; background:transparent !important; border:0 !important; border-radius:0; color:#5cb85c; font-size:9px; line-height:1.2; white-space:nowrap !important; }
  #personalization-cost-badge span { display:inline !important; white-space:nowrap !important; }
  #visualizer-orientation-container { width:100%; min-width:0; flex:0 0 auto; justify-content:center; margin-top:5px; border-left:none; border-top:1px solid var(--jet); padding:9px 0 0; gap:8px; }
  #visualizer-orientation-container .viz-toggle-pill button { min-height:30px; padding:5px 10px; }
}


/* Desktop: keep the green personalization pill at its natural one-line width. */
@media (min-width: 601px) {
  #personalization-cost-badge {
    display: inline-block !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 4px 14px !important;
  }
  #personalization-cost-badge span {
    display: inline !important;
    white-space: nowrap !important;
  }
}

/* ---- css/partials/components/_modals.css ---- */
/* =================================================================== */
/*    PARTIAL: OVERLAYS & MODALS                                       */
/*    Contains: Base containers, Testimonials, Product Split-Layout,   */
/*    Macro Zoom Overlay, and Modal Entrance Animations.               */
/* =================================================================== */

/* --- BASE MODAL STRUCTURE --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* High z-index to sit above Navbar and regular content */
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}

.modal-container::-webkit-scrollbar {
  display: none;
}

.modal-container.active {
    pointer-events: all;
    visibility: visible;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: hsl(0, 0%, 5%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Dims everything including navbar */
    z-index: 9500;
    transition: var(--transition1);
}

.overlay.active {
    opacity: .8;
    visibility: visible;
    pointer-events: all;
}

/* --- COMMON MODAL UI COMPONENTS --- */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--onyx);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white2);
    font-size: 18px;
    opacity: .7;
    z-index: 10;
}

.modal-close-btn:hover, .modal-close-btn:focus {
  opacity: 1;
}

.modal-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

/* --- TESTIMONIALS MODAL --- */
.testimonials-modal {
    background: var(--eerie-black2);
    position: relative;
    padding: 15px;
    margin: 15px 12px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    box-shadow: var(--shadow5);
    transform: scale(1.2);
    opacity: 0;
    transition: var(--transition1);
    z-index: 2;
}

.modal-container.active .testimonials-modal {
    transform: scale(1);
    opacity: 1;
}

.modal-avatar-box {
    background: var(--bg-gradient-onyx);
    width: max-content;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: var(--shadow2);
}

.modal-img-wrapper > img {
  display: none;
}

.modal-title {
  margin-bottom: 4px;
}

.modal-content time {
    font-size: var(--fs6);
    color: var(--light-gray70);
    font-weight: var(--fw500);
    margin-bottom: 10px;
}

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

/* --- PRODUCT / CATALOG MODAL (SPLIT LAYOUT) --- */
.project-modal {
  background: var(--eerie-black2);
  position: relative;
  padding: 30px;
  border: 1px solid var(--jet);
  border-radius: 20px;
  box-shadow: var(--shadow5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition1);
  z-index: 2;
  width: 95%;
  max-width: 1000px; 
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin; 
  scrollbar-color: var(--jet) transparent;
}

.modal-container.active .project-modal {
  transform: scale(1);
  opacity: 1;
}

.project-modal::-webkit-scrollbar { width: 6px; }
.project-modal::-webkit-scrollbar-track { background: transparent; }
.project-modal::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 20px; }
.project-modal:hover::-webkit-scrollbar-thumb { background-color: var(--jet); }
.project-modal::-webkit-scrollbar-thumb:hover { background-color: var(--orange-yellow-crayola); }

.project-modal-columns {
    display: grid;
    grid-template-columns: 1fr; /* Stacked on mobile */
    gap: 30px;
}

@media (min-width: 768px) {
    .project-modal-columns {
        grid-template-columns: 1.1fr 0.9fr; /* Image left, content right */
        align-items: start;
    }
}

/* Left Column: Media & Thumbnails */
.project-modal-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-modal-img-wrapper {
    width: 100%;
    background-color: var(--eerie-black1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--jet);
    position: relative;
}

.project-modal-img-wrapper {
    height: min(58vh, 560px);
    min-height: 320px;
    isolation: isolate;
}

.project-modal-img-wrapper .product-gallery-backdrop {
    position: absolute;
    inset: 14px;
    border-radius: 14px;
    background: var(--product-gallery-backdrop, var(--eerie-black1));
    background-position: center;
    background-size: cover;
    filter: blur(24px) brightness(.4) saturate(.75);
    opacity: .62;
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
}

.project-modal-img-wrapper img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    position: relative;
    z-index: 1;
    background: var(--eerie-black1);
}

.project-modal-img-wrapper img[data-catalog-detail-img] {
    cursor: zoom-in !important;
}

.project-modal-img-wrapper img[data-catalog-detail-img]:hover {
    transform: scale(1.02);
}

/* Gallery Navigation Arrows (Overlay) */
.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.gallery-nav-btn:hover {
    background: var(--orange-yellow-crayola);
    color: black;
    border-color: var(--orange-yellow-crayola);
}
.gallery-nav-btn.prev { left: 10px; }
.gallery-nav-btn.next { right: 10px; }

/* Thumbnails Strip */
.modal-thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.modal-thumbnails-row::-webkit-scrollbar { display: none; }

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition1);
    background: var(--eerie-black1);
    object-fit: contain;
    flex-shrink: 0;
}

.modal-thumbnail:hover { opacity: 1; }
.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--orange-yellow-crayola);
    box-shadow: 0 0 10px rgba(255, 172, 51, 0.2);
}

/* --- 4X MACRO ZOOM OVERLAY --- */
#image-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.98); 
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    touch-action: none;
}

#image-zoom-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

#image-zoom-overlay img {
    width: 70vw; 
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease-out, transform-origin 0.1s ease-out; 
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    pointer-events: none;
    transform: scale(1);
    will-change: transform;
}

#image-zoom-overlay .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5); 
    cursor: pointer;
    pointer-events: auto; 
}

@media (min-width: 1024px) {
    #image-zoom-overlay.active img {
        transform: scale(2); 
    }
}

@media (max-width: 1023px) {
    #image-zoom-overlay.active img {
        width: 90vw;
        transform: scale(2.5);
    }
}

/* --- MODAL CONTENT & BUILD STATS --- */
.project-modal-content {
    display: flex;
    flex-direction: column;
    padding-right: 10px; 
}

.build-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--jet);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--light-gray70);
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 13px;
    color: var(--white2);
    font-weight: 500;
}

.price-stock-row {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjusted gap */
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--jet);
    padding-bottom: 15px;
}

/* SURGICAL FIX: Ported missing horizontal spec badges alignment */
#modal-tech-specs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    vertical-align: middle;
}

.project-modal-cta {
    margin-top: auto; 
    padding-top: 25px;
    border-top: 1px solid var(--jet);
    text-align: center;
}

.cta-subtext {
    font-size: 12px;
    color: var(--light-gray70);
    margin-bottom: 15px;
    font-style: italic;
}

/* --- ENTRANCE ANIMATIONS (WOW FACTOR) --- */
@keyframes modalContentSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.modal-container.active .project-modal-title {
    opacity: 0;
    animation: modalContentSlideUp 0.5s ease-out forwards;
    animation-delay: 0.2s; 
}

.modal-container.active .price-stock-row {
    opacity: 0;
    animation: modalContentSlideUp 0.5s ease-out forwards;
    animation-delay: 0.3s;
}

.modal-container.active .variant-selector-wrapper {
    opacity: 0;
    animation: modalContentSlideUp 0.5s ease-out forwards;
    animation-delay: 0.35s;
}

.modal-container.active .catalog-actions-row {
    opacity: 0;
    animation: modalContentSlideUp 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.modal-container.active .project-modal-description {
    opacity: 0;
    animation: modalContentSlideUp 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes scaleUp {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

.modal-container.active .project-modal-img-wrapper img {
    animation: scaleUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- MOBILE MODAL OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .project-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
        /* Padding to clear the sticky checkout bar */
        padding-bottom: 220px !important; 
        background: var(--smoky-black);
        transform: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .project-modal-img-wrapper {
        aspect-ratio: 4/3;
    }
}
/* Mobile catalog modal overflow guard — keep wide gallery assets inside the modal. */
@media (max-width: 768px) {
    [data-catalog-detail-modal-container] {
        overflow: hidden;
        align-items: stretch;
    }

    [data-catalog-detail-modal-container] .project-modal {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    [data-catalog-detail-modal-container] .project-modal-columns,
    [data-catalog-detail-modal-container] .project-modal-media,
    [data-catalog-detail-modal-container] .project-modal-content,
    [data-catalog-detail-modal-container] .project-modal-img-wrapper {
        min-width: 0;
        max-width: 100%;
    }

    [data-catalog-detail-modal-container] .project-modal-img-wrapper {
        width: 100%;
        overflow: hidden;
    }

    [data-catalog-detail-modal-container] .project-modal-img-wrapper img[data-catalog-detail-img] {
        display: block;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    [data-catalog-detail-modal-container] .modal-thumbnails-row {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* ---- css/partials/components/_navigation_tools.css ---- */
/* =================================================================== */
/*    PARTIAL: SYSTEM & NAVIGATION TOOLS                               */
/*    Contains: Command Palette, Custom Cursor, Theme Toggles,         */
/*    and Back to Top utility.                                         */
/* =================================================================== */

/* --- UI TOGGLE BUTTONS (Theme & Cursor) --- */
.ui-toggle-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.ui-toggle-btn {
  background-color: var(--onyx);
  color: var(--white1);
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow1);
  transition: var(--transition1);
}

.ui-toggle-btn:hover {
  background-color: var(--jet);
  color: var(--orange-yellow-crayola);
}

.ui-toggle-btn .sun-icon,
.ui-toggle-btn .moon-icon {
  display: none;
}

html.theme-dark .ui-toggle-btn .sun-icon,
html.theme-dracula .ui-toggle-btn .sun-icon,
html.theme-workshop .ui-toggle-btn .sun-icon {
  display: block;
}
html.theme-light .ui-toggle-btn .moon-icon {
  display: block;
}

.ui-toggle-btn ion-icon[name="mouse-outline"] {
  display: block;
}

/* --- COMMAND PALETTE (Search Engine Overlay) --- */
.command-palette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.5);
  backdrop-filter: blur(4px);
  z-index: 11000; /* Above Modals */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.command-palette {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  background-color: var(--eerie-black2);
  border: 1px solid var(--jet);
  border-radius: 16px;
  box-shadow: var(--shadow5);
  z-index: 11500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
  overflow: hidden;
}

.command-palette-overlay.active,
.command-palette.active {
  opacity: 1;
  visibility: visible;
}

.command-palette.active {
  transform: translateX(-50%) scale(1);
}

.command-palette-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--jet);
}

.command-palette-search ion-icon {
  font-size: 20px;
  color: var(--light-gray70);
}

.command-palette-search input {
  width: 100%;
  font-size: var(--fs5);
  color: var(--white2);
  background: none;
  border: none;
  outline: none;
}

.command-palette-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}
.command-palette-results::-webkit-scrollbar { width: 8px; }
.command-palette-results::-webkit-scrollbar-track { background: transparent; }
.command-palette-results::-webkit-scrollbar-thumb { background: var(--jet); border-radius: 8px; }

.command-palette-results li a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: var(--transition1);
}

.command-palette-results li img {
    flex-shrink: 0; 
}

.command-palette-results li a:hover,
.command-palette-results li a:focus {
  background-color: var(--onyx);
}

.command-palette-results .result-title {
  color: var(--light-gray);
}

.command-palette-results .result-type {
  font-size: var(--fs8);
  color: var(--light-gray70);
  background-color: var(--jet);
  padding: 2px 6px;
  border-radius: 4px;
}

.command-palette-footer {
  padding: 8px 16px;
  text-align: right;
  font-size: var(--fs8);
  color: var(--light-gray70);
  border-top: 1px solid var(--jet);
}

.command-palette-footer kbd {
  background: var(--jet);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--onyx);
  font-family: inherit;
}

/* --- CUSTOM CURSOR (Interaction Engine) --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 20000; /* Absolute Top */
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  display: none; 
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--orange-yellow-crayola);
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid hsla(45, 100%, 72%, 0.5);
}

html.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5); 
  background-color: var(--white1);
}

html.cursor-hover .cursor-outline {
  width: 60px; 
  height: 60px;
  border-color: var(--orange-yellow-crayola);
  border-width: 2px;
  background-color: hsla(45, 100%, 72%, 0.1); 
}

html.cursor-danger .cursor-outline {
  border-color: var(--bittersweet-shimmer);
  background-color: hsla(0, 43%, 51%, 0.1);
}

body {
  cursor: auto;
}

body.hide-native-cursor {
  cursor: none !important;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--onyx);
  color: var(--white1);
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow1);
  z-index: 4; 
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition1);
}

.back-to-top-btn.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--jet);
  color: var(--orange-yellow-crayola);
}
/* ---- css/partials/_pages.css ---- */
/* =================================================================== */
/*    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);
}

.project-img img.secondary-img.project-alt-image,
.has-reveal:hover .project-img img.secondary-img.project-alt-image,
.has-reveal:focus-within .project-img img.secondary-img.project-alt-image,
.has-reveal.mobile-revealed .project-img img.secondary-img.project-alt-image {
    top: 0;
    left: 0;
    transform: none;
    object-fit: contain;
    object-position: center;
    filter: none;
    background-color: var(--eerie-black1);
    padding: 6px;
    box-sizing: border-box;
}

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

.about-page-cta {
    display: flex;
    max-width: 320px;
    margin-top: 18px;
}

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

.form-field {
    min-width: 0;
}

.form-field-label {
    display: block;
    margin: 0 0 8px;
    color: var(--light-gray);
    font-size: var(--fs7);
    font-weight: var(--fw500);
    line-height: 1.4;
}

.form-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--light-gray70);
    font-size: var(--fs8);
}

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

/* Upcoming event emphasis */
.live-appearance-card {
  position: relative;
  border: 2px solid rgba(243, 111, 33, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(243, 111, 33, 0.18), 0 10px 32px rgba(243, 111, 33, 0.14), var(--shadow1);
}
.live-event-attention-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange-yellow-crayola);
  color: #21150f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.live-event-attention-badge ion-icon { font-size: 15px; }
.live-event-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 10px;
  color: var(--orange-yellow-crayola);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 11px;
  font-weight: 700;
}
.live-event-countdown-value { font-size: 18px; letter-spacing: 0; }
.live-event-cta { font-weight: 800; }
@media (max-width: 768px) {
  .live-event-attention-badge { align-self: stretch; justify-content: center; font-size: 10px; }
  .live-event-countdown { margin-top: 0; }
  .live-event-countdown-value { font-size: 17px; }
}

/* ---- css/partials/_themes.css ---- */
/* =================================================================== */
/*    PARTIAL: THEMES                                                  */
/*    Contains: Workshop (Default) and Light theme definitions.        */
/* =================================================================== */

/* ------------------- */
/*      LIGHT THEME    */
/* ------------------- */
.theme-light {
    /* Main Backgrounds */
    --smoky-black: hsl(0, 0%, 96%); /* Light Gray page background */
    --eerie-black2: hsl(0, 0%, 100%); /* White card background */
    --eerie-black1: hsl(0, 0%, 98%);
    --onyx: hsl(0, 0%, 90%);
    --jet: hsl(0, 0%, 85%);

    /* Text Colors */
    --white1: hsl(0, 0%, 25%);
    --white2: hsl(0, 0%, 20%);
    --light-gray: hsl(0, 0%, 45%);
    --light-gray70: hsla(0, 0%, 45%, .7);

    /* Accent Colors - Kept Gold for Decorative Elements (Underlines, Progress Bars) */
    --orange-yellow-crayola: hsl(45, 100%, 72%);
    --vegas-gold: hsl(45, 54%, 58%);
    --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 68%));
    
    --bittersweet-shimmer: hsl(0, 43%, 51%);
    --accent-glow-color: hsla(45, 100%, 72%, 0.25);

    /* Gradients (Light backgrounds) */
    --bg-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 95%) 3%, hsl(0, 0%, 90%) 97%); /* Light gradient */
    --bg-gradient-jet: linear-gradient(to bottom right, hsla(0, 0%, 95%, .251) 3%, hsla(0, 0%, 90%, 0) 100%), hsl(0, 0%, 98%);
    --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 85%) 0%, hsla(0, 0%, 85%, 0) 50%);
    --bg-gradient-yellow1: linear-gradient(to bottom right, hsl(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
    --bg-gradient-yellow2: linear-gradient(135deg, hsla(45, 100%, 71%) 0%, hsla(35, 100%, 68%, 0) 59.86%), hsl(0, 0%, 98%);

    /* Map Filter */
    --mapbox-filter: grayscale(1);

    /* Navbar Background for Light Theme */
    --navbar-bg: hsla(0, 0%, 98%, .75);
    --logo-color: hsl(0, 0%, 20%);
}

.theme-light .mapbox iframe {
    filter: var(--mapbox-filter);
}

/* -------------------------- */
/*   ONE MAN'S WORKSHOP THEME   */
/* -------------------------- */
.theme-workshop {
    /* Main Backgrounds - Dark and industrial */
    --smoky-black: hsl(220, 10%, 15%); /* Page Background Color ONLY */
    --eerie-black2: hsla(220, 10%, 20%, 0.95); /* 95% opaque charcoal for a deeper feel */
    --eerie-black1: hsl(220, 10%, 22%);
    --onyx: hsl(220, 10%, 30%);
    --jet: hsl(220, 10%, 25%);

    /* Text Colors - High contrast */
    --white1: hsl(0, 0%, 98%);
    --white2: hsl(0, 0%, 100%);
    --light-gray: hsl(0, 0%, 80%);
    --light-gray70: hsla(0, 0%, 80%, .7);

    /* Accent Colors - Your Brand's Orange (#f36f21) */
    --orange-yellow-crayola: #f36f21;
    --vegas-gold: #d9631e; /* A slightly darker orange for hovers */
    --text-gradient-yellow: linear-gradient(to right, #f36f21, #e6691f);
    --bittersweet-shimmer: hsl(0, 100%, 67%); /* Red for errors */
    --accent-glow-color: hsla(22, 89%, 54%, 0.25);

    /* Gradients */
    --bg-gradient-onyx: linear-gradient(to bottom right, hsl(220, 10%, 25%) 3%, hsl(220, 10%, 22%) 97%);
    --bg-gradient-jet: linear-gradient(to bottom right, hsla(220, 10%, 22%, .5) 3%, hsla(220, 10%, 20%, 0) 100%), var(--eerie-black1);
    --border-gradient-onyx: linear-gradient(to bottom right, hsl(220, 10%, 30%) 0%, hsla(220, 10%, 30%, 0) 50%);
    --bg-gradient-yellow1: linear-gradient(to bottom right, #f36f21 0%, hsla(22, 89%, 54%, 0) 50%);
    --bg-gradient-yellow2: linear-gradient(135deg, hsla(22, 89%, 54%, .25) 0%, hsla(22, 89%, 54%, 0) 60%), var(--eerie-black1);

    /* Navbar Background */
    --navbar-bg: hsla(220, 10%, 20%, .75);

    /* Map Filter */
    --mapbox-filter: grayscale(.8) contrast(1.1);
    --logo-color: hsl(0, 0%, 98%);
}

.theme-workshop .mapbox iframe {
    filter: var(--mapbox-filter);
}

/* --- Theme-based Fixes --- */

/* Fixes for avatar backgrounds in preserved themes */
.theme-light .avatar-box,
.theme-light .testimonials-avatar-box,
.theme-light .modal-avatar-box,
.theme-workshop .avatar-box,
.theme-workshop .testimonials-avatar-box,
.theme-workshop .modal-avatar-box {
    background: var(--border-gradient-onyx);
}

/* Filter for client logos on light theme */
.theme-light .clients-item img {
  filter: invert(1);
}

/* Fix for sidebar logo toggling */
.sidebar-logo .logo-light-theme {
  display: none;
}
html.theme-light .sidebar-logo .logo-light-theme {
  display: block;
}
html.theme-light .sidebar-logo .logo-dark-theme {
  display: none;
}

/* ==========================================================================
   LIGHT THEME SPECIFIC OVERRIDES (High Contrast Text, Gold Decor)
   ========================================================================== */

/* 1. Sidebar Icons (Email, Location, etc.) -> Dark Olive */
.theme-light .icon-box {
    color: #565322; 
}

/* 2. Navbar Link Text (Active/Hover) -> Dark Olive */
/* Note: The underline uses ::after which inherits the Gold variable, so it stays Gold */
.theme-light .navbar-link:hover,
.theme-light .navbar-link.active {
    color: #565322;
}

/* 3. Headings (Catalog, Product Gallery, Post Titles) -> Dark Olive */
.theme-light .h1, 
.theme-light .h2, 
.theme-light .h3, 
.theme-light .h4, 
.theme-light .h5,
.theme-light .article-title {
    color: #565322;
}

/* 4. Sidebar Tagline "One Man, Many Tools!" -> Dark Olive */
.theme-light .info-content .title {
    color: #565322;
    border-color: #565322; /* Ensure border matches text */
}

/* 5. Catalog Category Filters (Active Text) -> Dark Olive */
.theme-light .filter-item button.active {
    color: #565322;
}

/* 6. Price/Category Text in Modal and Grid -> Dark Olive */
/* We use !important to override the inline style applied by JS in the modal */
.theme-light .project-category {
    color: #565322 !important;
}

/* 7. Buttons Text Color -> Dark Olive */
.theme-light .form-btn {
    color: #565322;
}

/* 8. Modal Close Button -> Dark Olive */
.theme-light .modal-close-btn {
    color: #565322;
    background: var(--onyx); /* Keep background light grey */
}

/* 9. Product Tags (e.g., "Fiber Laser") -> Dark Olive */
.theme-light .tech-tag {
    color: #565322 !important;
    /* Optionally ensure background allows readability */
    background: var(--onyx); 
}

/* 10. Grid Item Titles on Hover -> Dark Olive */
.theme-light .project-item > a:hover .project-title,
.theme-light .blog-post-item > a:hover .blog-item-title {
    color: #565322;
}

/* 11. Grid Item "Eye" Overlay Icon -> Dark Olive */
.theme-light .project-item-icon-box {
    color: #565322;
}
/* ---- css/partials/_animations.css ---- */
/* =================================================================== */
/*    PARTIAL: ANIMATIONS                                              */
/*    Contains: All @keyframes definitions, transitions, and class     */
/*    definitions for site-wide animations and effects.                */
/* =================================================================== */

/* --- Page Transition Fade Animation --- */
@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- Project Item Scale-Up Animation --- */
@keyframes scaleUp {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

/* --- NEW: Cart Icon Arrival Bounce --- */
@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-icon-bounce {
  animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- NEW: Success Pulse Animation (Add to Cart Feedback) --- */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 hsla(45, 100%, 72%, 0.7); }
    70% { box-shadow: 0 0 0 20px hsla(45, 100%, 72%, 0); }
    100% { box-shadow: 0 0 0 0 hsla(45, 100%, 72%, 0); }
}

.form-btn.success {
    animation: successPulse 0.6s ease-out;
    background: var(--bg-gradient-yellow1) !important;
}

/* --- NEW: Flying Item Style --- */
.flying-product-clone {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  object-fit: cover;
  border: 2px solid var(--orange-yellow-crayola);
}

/* --- Icon Animations --- */
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

@keyframes bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

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

/* --- Marquee Scrolling Animation --- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Applying Animations and Effects --- */

/* Contact Icon Hover */
.contact-item:hover .icon-box {
  animation: pulse 1s ease-in-out;
}

/* Card Block Hover Animation */
.service-item,
.testimonials-item .content-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-item:hover,
.testimonials-item .content-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow4);
}

/* Avatar Glow Animation */
.avatar-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px 5px var(--accent-glow-color);
}


/* --- Page Transition (Swup) Animations --- */
/* Added min-height to prevent footer jumping during content swap */
#swup {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  min-height: 60vh;
}

/* --- Coach Mark Float Animation --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

html.is-leaving #swup {
  opacity: 0;
  transform: translateY(-20px);
}

/* --- On-Scroll Reveal Animations --- */
.fade-up {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
  transition-delay: var(--delay, 0ms);
}

.fade-up.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Mobile / reduced-motion: never leave content invisible if reveal JS lags */
@media (max-width: 768px) {
  .fade-up {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Marquee Scroller Logic --- */
.autoscroll-enabled.list-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.autoscroll-enabled .marquee {
  width: max-content;
  flex-wrap: nowrap;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  overflow-x: hidden;
}

.autoscroll-enabled.list-wrapper:hover .marquee {
  animation-play-state: paused;
}

.marquee .clients-item,
.marquee .testimonials-item {
  flex-shrink: 0;
  padding: 0 20px;
}

.marquee .clients-item { min-width: 150px; }
.marquee .testimonials-item { min-width: 300px; }

.testimonials-item { display: flex; align-items: stretch; }
.testimonials-item .content-card { width: 100%; }

/* Ensure marquee items are flexible */
.marquee .clients-item img {
    transition: transform 0.3s ease;
}

/* Remove filter for gallery items specifically */
.bottom-box .marquee .clients-item img {
    filter: none !important;
}

.marquee .clients-item:hover img {
    transform: scale(1.05);
    border-color: var(--orange-yellow-crayola) !important;
}

/* --- Theme-Aware "Stellar" Hover Effects --- */
.project-item > a,
.blog-post-item > a,
.form-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item > a:hover,
.blog-post-item > a:hover,
.form-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px -5px var(--accent-glow-color);
}

.form-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px -5px var(--accent-glow-color);
  background: var(--bg-gradient-yellow1);
}
.form-btn:hover::before {
  background: var(--bg-gradient-yellow2);
}

.form-btn:disabled:hover {
  transform: translateY(0);
  box-shadow: none;
  background: var(--border-gradient-onyx);
}
.form-btn:disabled:hover::before {
    background: var(--bg-gradient-jet);
}

.social-item .social-link {
  transition: var(--transition1);
}

.social-item .social-link:hover {
  color: var(--white1);
  transform: scale(1.15);
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-btn:hover .sun-icon,
.theme-toggle-btn:hover .moon-icon {
  transform: rotate(45deg) scale(1.1);
}

/* --- High-End Variant Transition --- */
/* Target the specific modal image and ensure no other styles override the timing */
.project-modal-img-wrapper img[data-catalog-detail-img] {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.3s ease !important;
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

/* The "Hidden" state used during the swap */
.variant-img-transitioning {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    filter: blur(8px) !important;
}

/* Custom Green State for Pay Now Buttons */
.form-btn.success:hover {
    background: #4cae4c !important;
    box-shadow: 0 10px 25px -5px rgba(92, 184, 92, 0.4);
    transform: translateY(-4px);
}

/* Laser Scanning Animation */
@keyframes laserScan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.laser-active {
    animation: laserScan 1.5s linear infinite;
}

@keyframes stamp {
    0% { transform: scale(3); opacity: 0; }
    50% { transform: scale(0.8); opacity: 1; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stamp-animation {
    animation: stamp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* ---- css/partials/_responsive.css ---- */
/* =================================================================== */
/*    PARTIAL: RESPONSIVE                                              */
/*    Contains: All @media queries for adjusting the layout on         */
/*    different screen sizes. MUST BE THE LAST PARTIAL IMPORTED.       */
/* =================================================================== */

@media (min-width: 450px) {

    /* Hide the pill list by default (Mobile/Tablet) */
    .filter-list {
      display: none !important;
    }

    /* Ensure the dropdown is the default for mobile */
    .filter-select-box {
      display: block;
    }  

    .clients-item {
      min-width: calc(33.33% - 10px);
    }

    .mobile-hidden {
        display: inline; /* Or 'block', depending on the element */
    }

    .pagination-link {
        padding: 8px 14px;
    }
}

@media (min-width: 580px) {

    /* Hide the pill list by default (Mobile/Tablet) */
    .filter-list {
      display: none !important;
    }

    /* Ensure the dropdown is the default for mobile */
    .filter-select-box {
      display: block;
    }  

    :root {
        --fs1: 32px;
        --fs2: 24px;
        --fs3: 26px;
        --fs4: 18px;
        --fs6: 15px;
        --fs7: 15px;
        --fs8: 12px;
    }

    .sidebar, article {
        width: 520px;
        margin-inline: auto;
        padding: 30px;
    }

    .article-title {
        font-weight: var(--fw600);
        padding-bottom: 15px;
    }

    .article-title::after {
        width: 40px;
        height: 5px;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 18px;
    }

    main {
        margin-top: 60px;
        margin-bottom: 100px;
    }

    .sidebar {
        max-height: 180px;
        margin-bottom: 30px;
    }

    .sidebar.active {
      max-height: 720px;
    }

    .sidebar-info {
      gap: 25px;
    }

    .avatar-box {
      border-radius: 30px;
    }
    .avatar-box img {
      width: 120px;
    }

    .info-content .name {
      margin-bottom: 15px;
    }
    .info-content .title {
      padding: 5px 10px;
    }

    .info-more-btn {
        top: -30px;
        right: -30px;
        padding: 10px 15px;
    }

    .info-more-btn span {
        display: block;
        font-size: var(--fs8);
    }

    .info-more-btn ion-icon {
      display: none;
    }

    .separator {
      margin: 32px 0;
    }

    .contacts-list {
      gap: 20px;
    }

    .contact-info {
        max-width: calc(100% - 64px);
        width: calc(100% - 64px);
    }

    .navbar {
      border-radius: 20px 20px 0 0;
    }

    .navbar-list {
      gap: 20px;
    }
    .navbar-link {
      --fs8: 14px;
    }

    .about .article-title {
      margin-bottom: 20px;
    }
    .about-text {
      margin-bottom: 40px;
    }

    .service-item {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 18px;
        padding: 30px;
    }

    .service-icon-box {
        margin-bottom: 0;
        margin-top: 5px;
    }

    .service-content-box {
      text-align: left;
    }

    .live-appearance-card {
      flex-direction: row;
      align-items: center !important;
      gap: 25px !important;
    }

    .live-event-description {
      display: block;
      -webkit-line-clamp: unset;
      line-clamp: unset;
      overflow: visible;
    }

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

    .testimonials-title {
      margin-bottom: 25px;
    }

    .testimonials-list {
        gap: 30px;
        margin: 0 -30px;
        padding: 30px;
        padding-bottom: 35px;
    }

    .content-card {
        padding: 30px;
        padding-top: 25px;
    }

    .testimonials-avatar-box {
        transform: translate(30px, -30px);
        /* Surgical Fix: Maintain round cohesiveness on Desktop */
        border-radius: 50%;
        width: 80px;
        height: 80px;
    }

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

    .testimonials-item-title {
        margin-bottom: 10px;
        margin-left: 95px;
    }

    .testimonials-text {
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .modal-container {
      padding: 20px;
    }

    .testimonials-modal {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 25px;
        padding: 30px;
        border-radius: 20px;
    }

    .modal-img-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-avatar-box {
        border-radius: 18px;
        margin-bottom: 0;
    }

    .modal-avatar-box img {
      width: 65px;
    }

    .modal-img-wrapper > img {
        display: block;
        position: relative;
        width: 35px;
        top: 50px;
    }
    
    .project-modal {
        padding: 30px;
    }

    .clients-list {
        gap: 25px;
        margin: 0 -30px;
        padding: 20px 45px;
        scroll-padding-inline: 45px;
    }

    .clients-item {
      min-width: calc(33.33% - 35px);
    }

    .timeline-list {
      margin-left: 65px;
    }

    .timeline-item:not(:last-child)::before {
      left: -40px;
    }

    .timeline-item::after {
        height: 8px;
        width: 8px;
        left: -43px;
    }

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

    .project-img, .blog-banner-box {
      border-radius: 16px;
    }

    .blog-posts-list {
      gap: 30px;
    }

    .blog-content {
      padding: 25px;
    }

/* Tablet Logic: Keep using default mobile behavior (Dropdown) */
    .filter-select-box {
        display: block;
    }

    .mapbox {
        height: 380px;
        border-radius: 18px;
    }

    .input-wrapper {
        gap: 30px;
        margin-bottom: 30px;
    }

    .form-input {
      padding: 15px 20px;
    }

    textarea.form-input {
      margin-bottom: 30px;
    }

    .form-btn {
        --fs-6: 16px;
        padding: 16px 20px;
    }

    .form-btn ion-icon {
      font-size: 18px;
    }
}

@media (min-width: 768px) {

      /* Hide the pill list by default (Mobile/Tablet) */
    .filter-list {
      display: none !important;
    }

    /* Ensure the dropdown is the default for mobile */
    .filter-select-box {
      display: block;
    }  

    .sidebar, article {
      width: 700px;
    }

    .has-scrollbar::-webkit-scrollbar-button {
      width: 100px;
    }

    .contacts-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
    }

    .navbar-link {
      --fs8: 15px;
    }

    .testimonials-modal {
        gap: 35px;
        max-width: 680px;
    }

    .modal-avatar-box img {
      width: 80px;
    }

    .article-title {
      padding-bottom: 20px;
    }

    /* .filter-select-box and .filter-list rules removed from here */

    .filter-item button {
        color: var(--light-gray);
        font-size: var(--fs5);
        transition: var(--transition1);
    }

    .filter-item button:hover {
      color: var(--light-gray70);
    }
    .filter-item button.active {
      color: var(--orange-yellow-crayola);
    }

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

    .input-wrapper {
      grid-template-columns: 1fr 1fr;
    }

    .form-btn {
        width: max-content;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {

    :root {
        --shadow1: -4px 8px 24px hsla(0, 0%, 0%, .125);
        --shadow2: 0px 16px 30px hsla(0, 0%, 0%, .125);
        --shadow3: 0px 16px 40px hsla(0, 0%, 0%, .125);
    }

    .sidebar, article {
        width: 950px;
        box-shadow: var(--shadow5);
    }

    main {
      margin-bottom: 60px;
    }

    .main-content {
        position: relative;
        width: max-content;
        margin: auto;
    }

    .navbar {
        position: absolute;
        bottom: auto;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        max-width: 100%;
        border-radius: 0 20px 0 20px; /* Symmetrical corners */
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: hidden;
        background: none; /* Removes the box background */
        border: none;     /* Removes the box border */
        box-shadow: none;
    }

    .navbar-list {
        gap: clamp(10px, 1.5vw, 22px);
        padding: 0 8px;
        flex-wrap: nowrap;
        justify-content: flex-end;
        max-width: 100%;
        min-width: 0;
    }

    .navbar-link {
      font-weight: var(--fw500);
      white-space: nowrap;
      padding-left: clamp(6px, 0.7vw, 12px);
      padding-right: clamp(6px, 0.7vw, 12px);
    }

    .command-palette-trigger .navbar-link {
      padding-left: 10px;
      padding-right: 10px;
      flex-shrink: 0;
    }

    .navbar-link.active {
      margin-left: 2px;
      margin-right: 2px;
      padding-left: clamp(10px, 1vw, 15px);
      padding-right: clamp(10px, 1vw, 15px);
    }

    .main-content > article {
      padding-top: 80px;
    }
    
    .service-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px 25px;
    }

    .testimonials-item {
      min-width: calc(50% - 15px);
    }

    .modal-img-wrapper > img {
      top: 20px;
    }

    .clients-item {
      min-width: calc(25% - 15px);
    }

    .project-list {
      grid-template-columns: repeat(3, 1fr);
    }

    .blog-banner-box {
      height: 230px;
    }

    .category-grid {
      grid-template-columns: repeat(3, 1fr); /* Only 3 columns on Desktop/Laptops */
    }

    /* --- THE SWAP LOGIC --- */
    /* On Desktop: Show Pills, Hide Dropdown */
/* Desktop Swap: Show Pill Grid, Hide Dropdown */
    .filter-list {
      display: flex !important; /* Overrides the 'none' from _pages.css */
    }

    .filter-select-box {
      display: none !important;
    }
    
    /* Show cursor toggler on desktop */
    button[data-cursor-toggler] {
        display: flex;
    }

}

/* Prevent awkward 1024-1249px desktop/tablet transition overflow.
   The 1024px rules use 950px content widths while the fixed sidebar desktop layout
   does not start until 1250px, so clamp the top-stacked layout to the viewport. */
@media (min-width: 1024px) and (max-width: 1249px) {
    main {
        overflow-x: hidden;
    }

    .sidebar,
    article,
    .main-content {
        width: min(950px, calc(100vw - 60px)) !important;
        max-width: calc(100vw - 60px) !important;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar {
        max-width: 100%;
        left: 0;
        right: 0;
        width: auto;
        overflow: hidden;
    }

    .navbar-list {
        gap: clamp(10px, 1.6vw, 20px);
        padding-inline: clamp(6px, 1.2vw, 12px);
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
}

@media (min-width: 1250px) {

    body::-webkit-scrollbar {
      width: 20px;
    }
    body::-webkit-scrollbar-track {
      background: var(--smoky-black);
    }

    body::-webkit-scrollbar-thumb {
        border: 5px solid var(--smoky-black);
        background: hsla(0, 0%, 100%, .1);
        border-radius: 20px;
        box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, .11), inset -1px -1px 0 hsla(0, 0%, 100%, .11);
    }

    body::-webkit-scrollbar-thumb:hover {
      background: hsla(0, 0%, 100%, .15);
    }
    body::-webkit-scrollbar-button {
      height: 60px;
    }

    .sidebar, article {
      width: auto;
    }

    main {
        max-width: 1200px;
        margin-inline: auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 25px;
    }

    .main-content {
        flex: 1; /* Automatically grows to fill 100% of the remaining space */
        min-width: 0; /* Prevents flex-item overflow */
        margin: 0;
    }

    .sidebar {
        flex-shrink: 0; /* Prevents the sidebar from squishing */
        width: 300px; /* Or your preferred fixed sidebar width */      
        position: sticky;
        top: 60px;
        max-height: max-content;
        height: 100%;
        margin-bottom: 0;
        padding-top: 60px;
        z-index: 1;
    }

    .sidebar-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-content {
        gap: 20px;
    }

    .avatar-box img {
        width: 150px;
        height: auto;
    }

    .info-content .name {
        white-space: nowrap;
        text-align: center;
    }

    .info-content .title {
      margin: auto;
    }

    .info-more-btn {
      display: none;
    }

    .sidebar-info-more {
        opacity: 1;
        visibility: visible;
    }

    .contacts-list {
      grid-template-columns: 1fr;
    }

    .contact-info :is(.contact-link) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-info :is(.contact-link, time, address) {
        --fs7: 14px;
        font-weight: var(--fw300);
    }

    .separator:last-of-type {
        margin: 15px 0;
        opacity: 0;
    }

    .social-list {
      justify-content: center;
    }

    .timeline-text {
      max-width: 700px;
    }

    .main-content.full-width {
        width: 100%;
        min-width: 100%;
        margin: 0;
    }
    
    .back-to-top-btn {
        right: calc(var(--sidebar-width, 300px) + 30px);
    }

    main.sidebar-right .back-to-top-btn {
        right: 30px;
        left: auto;
    }
}



/* =================================================================== */
/*    CATALOG MOBILE POLISH                                            */
/* =================================================================== */
@media (max-width: 580px) {
    article[data-page="catalog"] {
        padding-bottom: 112px;
    }

    article[data-page="catalog"] header {
        margin-bottom: 14px;
    }

    article[data-page="catalog"] .article-title {
        font-size: 22px;
        padding-bottom: 8px;
    }

    article[data-page="catalog"] .projects {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    article[data-page="catalog"] .search-form {
        margin-bottom: 0 !important;
    }

    article[data-page="catalog"] .search-wrapper {
        gap: 8px !important;
        align-items: stretch !important;
    }

    article[data-page="catalog"] .search-wrapper .form-input {
        min-height: 44px;
        padding: 11px 13px;
        font-size: 13px;
        border-radius: 12px;
    }

    article[data-page="catalog"] .search-wrapper .form-btn {
        min-width: 46px;
        min-height: 44px;
        padding: 0 13px !important;
        border-radius: 12px;
        justify-content: center;
    }

    article[data-page="catalog"] #catalog-filter-master {
        margin-bottom: 0 !important;
        padding: 10px 11px !important;
        border-radius: 14px !important;
        background: rgba(0, 0, 0, 0.18) !important;
    }

    article[data-page="catalog"] #catalog-filter-master > div:first-child {
        align-items: center !important;
        gap: 8px !important;
    }

    article[data-page="catalog"] #catalog-filter-master .filter-list {
        display: flex !important;
        flex: 1 1 auto;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    article[data-page="catalog"] #catalog-filter-master .filter-item button {
        min-height: 34px;
        padding: 7px 13px !important;
        font-size: 11px !important;
        line-height: 1;
        border-radius: 999px !important;
        box-shadow: none;
    }

    article[data-page="catalog"] #catalog-filter-master button[data-filter-favorites] ion-icon {
        font-size: 14px !important;
    }

    article[data-page="catalog"] #btn-toggle-workshop-filters {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 5px 0 5px 4px !important;
    }

    article[data-page="catalog"] #btn-toggle-workshop-filters span {
        max-width: 78px;
        font-size: 8px !important;
        line-height: 1.15;
        letter-spacing: 1px !important;
        text-align: right;
    }

    article[data-page="catalog"] #filter-chevron-box {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        font-size: 13px !important;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-row > div:first-child {
        width: auto !important;
        font-size: 8px !important;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-pills-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-pills-group .filter-item {
        min-width: 0;
        width: 100%;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-pills-group button {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        justify-content: flex-start !important;
        padding: 7px 9px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    article[data-page="catalog"] #catalog-filter-content .filter-pills-group button span {
        min-width: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    article[data-page="catalog"] .filter-select-box {
        margin-bottom: 0;
    }

    article[data-page="catalog"] .filter-select {
        min-height: 42px;
        padding: 10px 13px;
        border-radius: 12px;
        font-size: 13px;
    }

    article[data-page="catalog"] .project-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 0;
        padding-bottom: 112px;
    }

    article[data-page="catalog"] .project-item {
        margin-bottom: 0;
    }

    article[data-page="catalog"] .project-item.fade-up {
        opacity: 1 !important;
        transform: none !important;
    }

    article[data-page="catalog"] .store-card {
        border-radius: 16px;
        overflow: hidden;
    }

    article[data-page="catalog"] .store-card-banner {
        aspect-ratio: 1 / 0.82 !important;
        max-height: 310px;
        min-height: 0 !important;
    }

    article[data-page="catalog"] .store-card-banner img,
    article[data-page="catalog"] .store-card-banner .no-image-placeholder {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    article[data-page="catalog"] .store-card-content {
        padding: 13px 14px 14px;
    }

    article[data-page="catalog"] .store-card-title {
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 5px;
    }

    article[data-page="catalog"] .store-card-price {
        font-size: 13px;
        margin-bottom: 9px;
    }

    article[data-page="catalog"] .store-card-action {
        min-height: 36px;
        padding: 8px 11px;
        border-radius: 10px;
        font-size: 12px;
    }

    article[data-page="catalog"] .wishlist-btn {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    article[data-page="catalog"] .customize-badge,
    article[data-page="catalog"] .card-badge {
        transform: scale(0.9);
        transform-origin: top left;
    }
}

/* =================================================================== */
/*    ECOMMERCE MOBILE OPTIMIZATIONS                                   */
/* =================================================================== */

@media (max-width: 768px) {
    .project-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
        /* Surgical Fix: Standardized bottom clearance for the Thumb Bar */
        padding-bottom: 120px !important; 
        background: var(--smoky-black);
        transform: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Extra spacing for the content inside to breathe */
    .project-modal-content {
        padding-bottom: 40px;
    }

    .project-modal-img-wrapper {
        aspect-ratio: 4/3; /* Slightly shorter on mobile */
    }

    /* 2. Enhanced Sticky Action Bar (Surgical Refinement V4 - The Thumb Zone) */
    .catalog-actions-row {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        /* Advanced Glassmorphism: Deep black with blur */
        background: rgba(18, 18, 18, 0.9); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--orange-yellow-crayola); /* Thin brand line for premium feel */
        padding: 15px 15px calc(15px + env(safe-area-inset-bottom)); 
        margin: 0;
        z-index: 10100; 
        box-shadow: 0 -10px 50px rgba(0,0,0,0.9);
        
        /* Layout */
        display: flex;
        flex-direction: row;
        align-items: stretch; /* Make all elements same height */
        justify-content: space-between;
        gap: 10px;
    }

    /* Primary Action: Add to Quote takes 60% of space */
    .buttons-group {
        flex: 2;
        display: flex;
        gap: 8px;
    }

    .buttons-group .form-btn {
        flex: 1;
        height: 50px !important; /* Larger hit target */
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    /* Secondary Action: Customize uses secondary style */
    .buttons-group .form-btn[data-catalog-detail-customize-btn] {
        background: var(--onyx) !important;
        color: var(--white2) !important;
        border: 1px solid var(--jet) !important;
    }

    /* Adjust Quantity Group for side-by-side layout in the bar */
    .quantity-group {
        margin-bottom: 0;
        width: auto;
        flex-shrink: 0;
    }
    .quantity-group label {
        display: none; /* Text "Quantity" is implied on mobile */
    }
    
    .quantity-group .qty-control {
        background: var(--eerie-black1); /* Darker contrast inside the bar */
        height: 45px;
    }

    /* Adjust Buttons to fill remaining space */
    .buttons-group {
        flex-grow: 1;
        width: auto;
        display: flex;
        gap: 8px;
    }
    .buttons-group .form-btn {
        flex: 1;
        height: 45px;
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 700;
        padding: 0 10px;
        justify-content: center;
        margin: 0 !important;
    }
    
    /* Ensure the Customize button is distinct if visible */
    .buttons-group .form-btn[data-catalog-detail-customize-btn] {
        background: var(--onyx);
        border-color: var(--jet);
    }
}

/* POS Mobile Fixes */
@media (max-width: 768px) {
    .pos-container {
        grid-template-columns: 1fr; /* Stack Product Grid on top of Cart */
        grid-template-rows: 1fr 1fr;
        height: calc(100vh - 80px); /* Adjust for header */
    }
    
    .product-grid {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--jet);
    }
    
    .cart-panel {
        border-top: 2px solid var(--orange-yellow-crayola);
    }
}

.homepage-live-meta-row { display: none; }

/* OMWS homepage mobile polish: dedicated small-screen layout without changing desktop. */
@media (max-width: 580px) {
    .home-mobile-polish {
        padding-bottom: 96px;
    }

    .home-mobile-polish .store-section {
        margin-bottom: 34px !important;
    }

    .trust-bar-mobile-compact {
        gap: 10px !important;
        padding: 14px !important;
    }

    .home-mobile-polish .hero {
        min-height: auto !important;
        padding: 26px 14px !important;
        overflow: hidden;
    }

    .home-mobile-polish .hero-title {
        max-width: 100% !important;
        overflow: hidden;
    }

    .home-mobile-polish .hero-title > span,
    .home-mobile-polish #scramble-runtime {
        display: block !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
        word-break: normal;
        text-align: center;
    }

    .home-mobile-polish #scramble-runtime {
        font-size: clamp(26px, 10vw, 42px) !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .home-mobile-polish #scramble-runtime ion-icon,
    .home-mobile-polish #scramble-runtime i,
    .home-mobile-polish #scramble-runtime svg {
        font-size: 0.9em !important;
        width: 0.9em !important;
        height: 0.9em !important;
        max-width: 46px !important;
        max-height: 46px !important;
        display: inline-block !important;
        vertical-align: -0.08em;
        flex-shrink: 0;
    }

    .home-mobile-polish .hero-subtitle {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .home-mobile-polish .hero-content > div[style*="display: flex"] {
        gap: 10px !important;
    }

    .home-mobile-polish .hero-content .form-btn {
        width: 100% !important;
        max-width: 280px;
        min-height: 48px;
        justify-content: center;
    }

    .trust-bar-mobile-compact .trust-item {
        gap: 10px !important;
        padding: 12px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
        text-align: left !important;
    }

    .trust-bar-mobile-compact .trust-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        font-size: 20px !important;
    }

    .trust-bar-mobile-compact .trust-text .h4 {
        margin-bottom: 2px !important;
        font-size: 14px !important;
    }

    .trust-bar-mobile-compact .trust-text p {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .home-mobile-polish .section-header {
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
    }

    .home-mobile-polish .section-link {
        flex-shrink: 0;
    }

    .home-mobile-polish .live-appearance-card {
        padding: 16px !important;
        gap: 12px !important;
        border-radius: 18px !important;
    }

    .homepage-live-date {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px 14px !important;
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        text-align: left !important;
    }

    .homepage-live-date span {
        display: inline-block !important;
    }

    .homepage-live-date span:nth-child(1) {
        font-size: 12px !important;
        letter-spacing: 1.4px;
    }

    .homepage-live-date span:nth-child(2) {
        font-size: 24px !important;
        text-align: center;
    }

    .homepage-live-date span:nth-child(3) {
        font-size: 11px !important;
        text-align: right;
    }

    .homepage-live-summary .service-item-title {
        font-size: 16px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    .homepage-live-meta-row {
        display: grid;
        gap: 7px;
        margin-bottom: 10px;
    }

    .homepage-live-meta-pill {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        padding: 8px 10px;
        border: 1px solid rgba(243, 111, 33, 0.28);
        border-radius: 12px;
        background: rgba(243, 111, 33, 0.07);
        color: var(--white2);
        font-size: 12px;
        line-height: 1.35;
    }

    .homepage-live-meta-pill ion-icon {
        color: var(--orange-yellow-crayola);
        flex-shrink: 0;
    }

    .homepage-live-location-line {
        display: none !important;
    }

    .home-mobile-polish .live-event-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 4px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .home-mobile-polish .live-event-cta {
        min-height: 44px;
        border-radius: 12px !important;
    }

    .homepage-featured-products {
        overflow: hidden;
    }

    .homepage-mobile-product-strip {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(238px, 76vw);
        grid-template-columns: none !important;
        min-height: 0 !important;
        gap: 14px !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        padding: 2px 4px 16px !important;
        margin-inline: -2px;
        -webkit-overflow-scrolling: touch;
    }

    .homepage-mobile-product-strip {
        align-items: start;
    }

    .homepage-mobile-product-strip .store-card {
        scroll-snap-align: start;
        min-width: 0;
        height: auto !important;
    }

    .homepage-mobile-product-strip .store-card > a {
        height: auto !important;
    }

    .homepage-mobile-product-strip .store-card-banner {
        min-height: 0;
        margin-bottom: 8px !important;
    }

    .homepage-mobile-product-strip .store-card-content {
        padding: 12px 14px 14px !important;
        flex-grow: 0 !important;
    }

    .homepage-mobile-product-strip .store-card-title {
        font-size: 15px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .homepage-mobile-product-strip .store-card-price {
        margin-bottom: 10px !important;
    }

    .homepage-mobile-product-strip .store-card-action {
        margin-top: 8px !important;
    }

    .homepage-about-accordion {
        margin-top: 34px !important;
        padding-top: 24px !important;
    }

    /* Homepage purpose section: clean stacked mobile layout */
    .homepage-purpose-section {
        margin-bottom: 34px !important;
    }

    .homepage-purpose-header {
        display: block !important;
        margin-bottom: 16px !important;
        padding-bottom: 14px !important;
    }

    .homepage-purpose-title {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        max-width: 100% !important;
    }

    .homepage-purpose-blurb {
        font-size: 14px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
    }

    .homepage-purpose-top-link {
        display: inline-flex !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
    }

    .homepage-purpose-top-link-full {
        display: none !important;
    }

    .homepage-purpose-top-link-short {
        display: inline !important;
    }

    .homepage-purpose-group {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
    }

    .homepage-purpose-group-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .homepage-purpose-group-blurb {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .homepage-purpose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .homepage-purpose-card {
        height: auto !important;
        min-height: 92px;
        padding: 14px 10px !important;
        gap: 6px;
    }

    .homepage-purpose-card ion-icon {
        font-size: 24px !important;
        margin-bottom: 2px !important;
    }

    .homepage-purpose-card span {
        font-size: 12px !important;
        line-height: 1.25 !important;
        padding: 0 2px;
    }

    .homepage-purpose-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 4px !important;
    }

    .homepage-purpose-btn {
        width: 100% !important;
        min-height: 46px;
        justify-content: center;
    }

    .bottom-box {
        margin-top: 26px !important;
        margin-bottom: 92px !important;
    }

    .bottom-box h3 {
        margin-bottom: 8px !important;
    }
}

/* Compact catalog actions on narrow screens: keep quantity and actions in one row. */
@media (max-width: 768px) {
    [data-catalog-detail-modal-container] .project-modal {
        padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row {
        display: grid;
        grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 6px 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }

    [data-catalog-detail-modal-container] .catalog-actions-row > div[style*="flex-basis"] {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        margin-bottom: 0 !important;
        line-height: 1.15;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .quantity-group {
        grid-column: 1;
        width: auto;
        min-width: 0;
        margin: 0;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .qty-control {
        height: 42px;
        min-width: 92px;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .qty-control button {
        width: 28px;
        min-width: 28px;
        height: 42px;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .qty-control input {
        min-width: 30px;
        height: 42px;
        padding: 0 2px;
        text-align: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        display: flex;
        gap: 6px;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group .form-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 42px !important;
        min-height: 42px;
        padding: 0 7px;
        gap: 4px;
        font-size: 10px !important;
        line-height: 1.1;
        white-space: nowrap;
        justify-content: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group .form-btn ion-icon {
        flex: 0 0 auto;
        font-size: 16px;
    }
}

/* Refine compact catalog actions: explicit two-row placement and bounded quote button. */
@media (max-width: 768px) {
    [data-catalog-detail-modal-container] .catalog-actions-row > div[style*="flex-basis"] {
        grid-area: 1 / 1 / 2 / 3;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .quantity-group {
        grid-area: 2 / 1 / 3 / 2;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group {
        grid-area: 2 / 2 / 3 / 3;
        justify-content: flex-start;
        align-items: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group .form-btn {
        flex: 0 1 auto;
        max-width: 190px;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group [data-catalog-detail-quote-btn] {
        width: min(190px, 100%);
    }
}

/* Center the compact mobile catalog discount message and action controls. */
@media (max-width: 768px) {
    [data-catalog-detail-modal-container] .catalog-actions-row {
        grid-template-columns: minmax(92px, auto) minmax(0, min(190px, calc(100vw - 120px)));
        justify-content: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row > div[style*="flex-basis"] {
        justify-self: stretch;
        text-align: center;
        justify-content: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .quantity-group,
    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group {
        justify-self: center;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group {
        width: 100%;
        justify-content: center;
    }
}

/* Compact mobile navigation rows and keep account-link underlines under the label. */
@media (max-width: 768px) {
    .navbar-list {
        column-gap: 10px !important;
        row-gap: 0 !important;
        align-content: center;
    }

    .navbar-link,
    .command-palette-trigger .navbar-link {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        line-height: 1.1;
    }

    .navbar-link > span:not(.cart-badge) {
        position: relative;
        display: inline-block;
    }

    .navbar-link > span:not(.cart-badge)::after {
        left: 0;
        bottom: -4px;
        width: 0;
        transform: none;
    }

    .navbar-link:hover > span:not(.cart-badge)::after,
    .navbar-link.active > span:not(.cart-badge)::after {
        width: 100%;
    }
}

/* Homepage-only mobile trial: preserve swipe scrolling without a persistent scrollbar. */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    html:has(body.home-page),
    body.home-page,
    body.home-page #swup {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html:has(body.home-page)::-webkit-scrollbar,
    body.home-page::-webkit-scrollbar,
    body.home-page #swup::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

/* Give mobile customization actions a comfortable pill size while preserving narrow-screen fit. */
@media (max-width: 768px) {
    [data-catalog-detail-modal-container] .catalog-actions-row {
        grid-template-columns: minmax(92px, auto) minmax(0, min(270px, calc(100vw - 120px)));
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group .form-btn {
        min-height: 42px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 11px !important;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group [data-catalog-detail-customize-btn] {
        min-width: 108px;
    }

    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group [data-catalog-detail-quote-btn] {
        min-width: 140px;
    }
}

@media (max-width: 380px) {
    [data-catalog-detail-modal-container] .catalog-actions-row .buttons-group .form-btn {
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 10px !important;
    }
}

/* About page: prevent stretched word spacing on narrow mobile screens. */
@media (max-width: 768px) {
    article.about .about-text p {
        text-align: left;
    }
}

/* Keep the compact occasion label single-line and avoid mobile toast obstruction. */
@media (max-width: 768px) {
    .navbar-link > span.nav-label-full {
        display: none !important;
    }

    .navbar-link > span.nav-label-short {
        display: inline-block !important;
    }

    .craft-notification {
        display: none !important;
    }
}

/* Homepage story: prevent stretched paragraph spacing on narrow screens. */
@media (max-width: 768px) {
    .homepage-about-accordion .accordion-content-wrapper p {
        text-align: left;
    }
}

/* Keep historical event recaps readable on narrow screens without affecting other service cards. */
@media (max-width: 600px) {
    .event-past-card {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start !important;
        gap: 12px !important;
        padding: 16px !important;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .event-past-card > .event-past-date {
        min-width: 0 !important;
        padding: 10px 6px !important;
        align-self: start;
    }

    .event-past-card > .event-past-content {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .event-past-card .event-past-content h3,
    .event-past-card .event-past-content h4,
    .event-past-card .event-past-content p {
        overflow-wrap: anywhere;
    }

    .event-past-card .event-past-content h3,
    .event-past-card .event-past-content h4 {
        font-size: 15px;
        line-height: 1.35;
    }

    .event-past-card > .event-past-action {
        grid-column: 2;
        display: flex;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        white-space: normal;
    }
}

/* Keep the catalog filter toggle readable beside the mobile filter pills. */
@media (max-width: 600px) {
    #btn-toggle-workshop-filters {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    #btn-toggle-workshop-filters > span {
        white-space: nowrap !important;
        letter-spacing: 0.8px !important;
    }
}


/* ---- css/partials/_review-polish.css ---- */
/* ==========================================================================
   Look & feel polish (site review, 2026-12-02). Everything visual from the review in one file, so it's easy to see,
   tune or remove (delete this file's <link> in base.html to undo all of it).
   ========================================================================== */

/* 1. Product photos shot on WHITE: shown on a warm "mat" so they look deliberate on the dark theme (the photo's white
      blends into the mat colour; photos on other backgrounds are unchanged). */
.store-card-banner.on-light {
    background: #f1ebe2;
}
.store-card-banner.on-light img.primary-img,
.store-card-banner.on-light img.secondary-img {
    mix-blend-mode: multiply;
    padding: 6%;
    object-fit: contain;
}

/* 2. Phone home page: a shorter hero (products come sooner), a more legible changing slogan, buttons side by side. */
@media (max-width: 768px) {
    .hero {
        min-height: 0 !important;
        padding: 26px 14px 22px;
    }
    .hero-title {
        min-height: 0 !important;
        margin-bottom: 8px !important;
    }
    .hero::before { background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); }
    .hero-title > span:first-child { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
    #scramble-runtime {
        font-size: clamp(1.45rem, 6.6vw, 2rem);
        flex-wrap: nowrap;
        text-shadow: 0 2px 3px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .65);
    }
    .hero-subtitle { font-size: .95rem; margin-bottom: 14px; }
    .hero-content > div[style*="display: flex"] { flex-wrap: nowrap !important; gap: 10px !important; }
    .hero-content .form-btn { padding: 10px 12px; font-size: .8rem; white-space: nowrap; gap: 6px; }
    .hero-content .form-btn ion-icon { font-size: 1rem; flex-shrink: 0; }
}
@media (max-width: 430px) {
    .hero-content .form-btn { padding: 10px 11px; font-size: .78rem; }
    .hero-content .form-btn ion-icon { display: none; }   /* both buttons fit side by side on a phone */
}

/* 3. Phone menu: one row instead of two (the icons beside "Contact" and "Login" are dropped there). */
@media (max-width: 1023px) {
    .navbar-list {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 0 !important;
        padding: 0 4px !important;
    }
    .navbar-list::-webkit-scrollbar { display: none; }
    .navbar-link {
        white-space: nowrap;
        padding: 12px 4px !important;
        font-size: 11.5px !important;
        gap: 0 !important;
    }
    .navbar-list > li { margin: 0 !important; flex: 0 0 auto; }
    .navbar-link ion-icon:not(:only-child) { display: none; }
}

/* 4. Brighter, warmer logo on the dark theme (the logo files are unchanged). */
html:not(.theme-light) .sidebar-logo .logo-dark-theme,
html:not(.theme-light) .avatar-box img {
    filter: brightness(1.35) saturate(1.15);
}

/* 5. Product popup: the photo sits on the soft blurred backdrop instead of a flat box; on phones the frame follows a
      4:3 shape instead of a tall fixed height. */
.project-modal-img-wrapper img {
    background: transparent !important;
}
@media (max-width: 768px) {
    .project-modal-img-wrapper {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3;
        max-height: 56vh;
    }
}

/* 8. Footer: contact details. */
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin: 10px 0 4px;
    font-size: var(--fs8, 13px);
    color: var(--light-gray70);
}
.footer-contact a { color: var(--light-gray); }
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--orange-yellow-crayola); }
.footer-contact ion-icon { vertical-align: -2px; margin-right: 5px; color: var(--orange-yellow-crayola); }

/* Speed & accessibility review (2026-12-03) */
/* Headings that only screen readers and agents see (keep the heading order h1 > h2 > h3 without changing the look). */
.visually-hidden-heading {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
/* The search button in the one-row phone menu keeps a finger-sized tap area. */
@media (max-width: 1023px) {
    .command-palette-trigger .navbar-link {
        min-width: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Contact page map placeholder (speed review 2026-12-03): shown until the Google map loads. */
.map-facade {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        repeating-linear-gradient(0deg, transparent 0 39px, hsla(0, 0%, 100%, .04) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, hsla(0, 0%, 100%, .04) 39px 40px),
        var(--eerie-black1, #1e1e1f);
    color: var(--light-gray);
    text-align: center;
    padding: 16px;
}
.map-facade ion-icon { font-size: 36px; color: var(--orange-yellow-crayola); }
.map-facade-place { font-size: var(--fs6, 15px); color: var(--white2); }
.map-facade-btn {
    padding: 9px 18px;
    border-radius: 12px;
    border: 1px solid var(--orange-yellow-crayola);
    color: var(--orange-yellow-crayola);
    background: transparent;
    font-size: var(--fs7, 14px);
    cursor: pointer;
}
.map-facade-btn:hover, .map-facade-btn:focus-visible { background: var(--orange-yellow-crayola); color: var(--smoky-black, #111); }

/* The first page a visitor opens shows at once; the fade-in stays for moving between pages (speed review 2026-12-03:
   the fade made the phone wait before counting the page as shown). pageTransitions.js removes .first-view. */
html.first-view article.active { animation: none; }
