/* ======================================================
   MAKS BENCHWORKS DESIGN SYSTEM
====================================================== */

/* =========================
   BRAND VARIABLES
========================= */

:root {
    --color-dark: #231F20;
    --color-orange: #F37431;
    --color-white: #FFFFFF;

    --color-charcoal: #1A1718;
    --color-light-gray: #F4F4F4;
    --color-mid-gray: #CFCFCF;
    --color-border: #E2E2E2;

    --color-orange-muted: #D96326;
    --color-orange-soft: #FF9A63;
}

/* Responsive strategy:
   base styles target mobile first, then layer up with min-width breakpoints. */

/* ======================================================
   GLOBAL RESET
====================================================== */

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

body {
    background: var(--color-white);
    color: var(--color-dark);
    font-family: "Courier New", Courier, monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input[type="checkbox"] {
    accent-color: var(--color-orange);
    cursor: pointer;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */

h1, h2, h3, h4, h5 {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    margin: 0 0 1rem;
}

/* ======================================================
   BUTTONS
====================================================== */

.button-primary {
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
}

.button-primary:hover {
    background: var(--color-orange-muted);
}

.button-secondary {
    background: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-border);
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
}

.button-secondary:hover {
    border-color: var(--color-orange);
    color: var(--color-orange-muted);
    background: #fffaf7;
}

/* ======================================================
   NAVIGATION
====================================================== */

.navbar {
    background: var(--color-dark);
    border-bottom: 3px solid var(--color-orange);
    padding: 1rem;
    z-index: 1000;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.3rem;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    height: 50px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-height: 50px;
    max-width: min(180px, 50vw);
    object-fit: contain;
}

.logo:hover {
    color: var(--color-orange);
}

@media (min-width: 769px) {
    .logo {
        height: 48px;
    }

    .logo-img {
        max-height: 48px;
        max-width: 220px;
    }
}

.nav-links {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: min(220px, calc(100vw - 2rem));
    background: var(--color-charcoal);
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    z-index: 999;
    margin: 0;
    left: auto;
}

.nav-links.active {
    display: flex;
}

.nav-links a,
.dropdown-toggle {
    font-family: 'Courier New', Courier, monospace;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-links a:hover,
.dropdown-toggle:hover {
    color: var(--color-orange-soft);
}

.nav-search-item {
    display: inline-flex;
    align-items: center;
}

.nav-search-link {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-search-link:hover {
    border-color: var(--color-orange-soft);
    background: rgba(255, 255, 255, 0.06);
}

.nav-search-link svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--color-white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-search-link:hover svg {
    stroke: var(--color-orange-soft);
}

#guestCartNavItem.is-hidden {
    display: none;
}

.nav-guest-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-messages-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cart-count-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    padding: 0 0.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background: var(--color-orange);
    color: var(--color-white);
}

.nav-cart-count-badge.is-empty {
    display: none;
}

/* Hamburger */

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: 0.3s ease;
}

/* Mobile-first nav defaults are defined above. */
@media (min-width: 769px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background: none;
        flex-direction: row;
        align-items: center;
        gap: 1.8rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-links a,
    .dropdown-toggle {
        text-align: left;
        width: auto;
    }

    .nav-search-item {
        width: auto;
        justify-content: flex-start;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

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

.hero {
    background:
        linear-gradient(rgba(26,23,24,0.85), rgba(26,23,24,0.85)),
        url("../images/hero-bg.jpeg");
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 4.8rem;
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 0;
    }
}

.hero-subtext {
    opacity: 0.85;
    min-height: 1.6em;
}

.hero-description {
    min-height: 3.2em;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.6rem 0 0;
    flex-wrap: wrap;
}

.cursor.is-finished {
    animation: none;
    opacity: 0;
}

/* Retro scan */

.hero::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(243,116,49,0) 0%,
        rgba(243,116,49,0.15) 50%,
        rgba(243,116,49,0) 100%
    );
    animation: scan 6s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    from { transform: translateY(-100%); }
    to   { transform: translateY(100%); }
}

/* ======================================================
   GRID SYSTEM (Shared)
====================================================== */

.service-grid,
.blog-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

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

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

/* ======================================================
   CARD BASE STYLE (Shared Foundation)
====================================================== */

.service-card,
.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(243, 116, 49, 0.3);
    border-color: var(--color-orange);
}

/* ======================================================
   SERVICE CARD
====================================================== */

.service-card {
    padding: 2rem;
    border-left: 4px solid var(--color-orange);
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card-cta {
    margin-top: 0.9rem;
    font-weight: 700;
    color: var(--color-orange-muted);
}

.service-card-link:hover .service-card-cta {
    color: var(--color-orange);
}

.service-pillars {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.service-pillar {
    margin: 0;
}

.service-pillar strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-dark);
}

.service-card img {
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.2rem;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
}

.service-card:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {

    .service-card {
        padding: 1.5rem;
        text-align: center;
    }

    .service-card img {
        margin: 0 auto 1.25rem;
        width: 80%;
        max-width: 260px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
}

/* ======================================================
   BLOG CARD
====================================================== */

.blog-card {
    border-top: 4px solid var(--color-orange);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Consistent image ratio */
.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-light-gray);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

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

.blog-card-title {
    border-bottom: 2px solid #cc5500;
    font-weight: bold;
}

/* Title */

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card h2 a {
    text-decoration: none;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: var(--color-orange);
}

/* Excerpt */

.blog-excerpt {
    font-size: 0.95rem;
    color: #444;
    flex-grow: 1;
}

/* Subtle divider between cards in single column mode */

@media (max-width: 767px) {
    .blog-card {
        border: 1px solid var(--color-border);
    }
}

/* ======================================================
   BLOG DETAIL
====================================================== */

.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Hero Image — fixed ratio */

.blog-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-light-gray);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

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

/* Title */

.blog-post-title {
    margin-bottom: 0.5rem;
}

/* Meta with divider */

.blog-post .blog-meta {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* Content */

.blog-content {
    margin-top: 2rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2.5rem;
    border-left: 3px solid var(--color-orange);
    padding-left: 0.75rem;
}

.blog-content pre {
    border-left: 4px solid var(--color-orange);
    font-size: 0.9rem;
}

/* ======================================================
   ANIMATIONS
====================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   TYPEWRITER
====================================================== */

.typewriter {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch;
    animation: typing 4s steps(78) forwards;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    margin-left: 0.1em;
    vertical-align: -0.12em;
    background: var(--color-orange);
    color: transparent;
    animation: blink 1s steps(1) infinite;
}

@keyframes typing {
    from { width: 0ch; }
    to   { width: 78ch; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    .typewriter {
        white-space: normal;
        width: auto;
        animation: none;
    }

    .cursor {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 0.85rem;
        margin-top: 1.35rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding-bottom: 5.4rem;
    }

    .hero-cta {
        gap: 1.2rem;
        margin-top: 1.9rem;
    }
}

/* =========================
   STORE LIST
========================= */

.store-title {
    text-align: center;
    margin-bottom: 3rem;
}

.store-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

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

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

.store-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-orange);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(243,116,49,0.3);
}

.store-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.store-card-image {
    overflow: hidden;
    position: relative;
}

.store-card-image img {

    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;

}

.store-card:hover .store-card-image img {
    transform: scale(1.05);
}

.store-card-body {

display: flex;
flex-direction: column;

gap: 8px;

padding: 1.5rem;
flex: 1;

}

.store-card-title-link {
    color: inherit;
    text-decoration: none;
}

.store-card-title-link:hover {
    color: var(--color-orange);
}

.store-price {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--color-orange);
}

/* =========================
   STORE CONTROLS
========================= */

.store-controls {
    margin-bottom: 2.5rem;
}

.store-search {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.store-search input,
.store-search select {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    font-family: "Courier New", monospace;
    background: var(--color-white);
}

.store-search input:focus,
.store-search select:focus {
    outline: none;
    border-color: var(--color-orange);
}

.sale-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Courier New", monospace;
}

/* =========================
   STORE PRICING
========================= */

.store-price {
    margin-top: 0.5rem;
    font-family: "Courier New", monospace;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* normal price */

.price-normal {
    font-weight: bold;
    color: var(--color-orange);
}

/* original price when on sale */

.price-original {
    text-decoration: line-through;
    color: var(--color-mid-gray);
    font-size: 0.9rem;
}

/* sale price */

.price-sale {
    font-weight: bold;
    color: var(--color-orange);
    font-size: 1.1rem;
}

/* fallback */

.price-contact {
    color: var(--color-mid-gray);
}

/* =========================
   SALE BADGE
========================= */

.store-card-image {
    position: relative;
    overflow: hidden;
}

.sale-badge {

    position: absolute;
    top: 10px;
    left: 10px;

    background: var(--color-orange);
    color: var(--color-white);

    font-family: "Gill Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: bold;

    padding: 0.35rem 0.6rem;

    letter-spacing: 0.08em;

    border-radius: 3px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.25);

    z-index: 5;
}

/* =========================
   PAGINATION
========================= */

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-family: "Courier New", monospace;
}

.pagination-nav,
.pagination-page {
    text-decoration: none;
    padding: 0.38rem 0.68rem;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    background: #fff;
    transition: 0.2s ease;
}

.pagination-page {
    min-width: 2rem;
    text-align: center;
}

.pagination-nav:hover,
.pagination-page:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-page.is-active {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 700;
}

.pagination-nav.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination-ellipsis {
    color: #827b7d;
    padding: 0 0.1rem;
}

.pagination-current {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-mid-gray);
    text-align: center;
}

@media (max-width: 700px) {
    .pagination {
        gap: 0.5rem;
    }

    .pagination-nav,
    .pagination-page {
        padding: 0.33rem 0.56rem;
        font-size: 0.86rem;
    }

    .pagination-pages {
        gap: 0.25rem;
    }
}

/* =========================
   STOCK INDICATORS
========================= */

.stock-warning {

    margin-top: 6px;

    font-size: 0.8rem;

    color: #d64545;

    font-weight: bold;

}

.stock-warning-low {

    margin-top: 6px;

    font-size: 0.8rem;

    color: #d48b00;

}

.stock-out {

    margin-top: 6px;

    font-size: 0.8rem;

    color: var(--color-mid-gray);

}

.store-stock-status {
    min-height: 1.4rem;
}

.stock-placeholder {
    display: block;
    min-height: 1rem;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.2rem;
}

.product-rating-detail {
    margin: 0.6rem 0 0.2rem;
}

.rating-stars {
    position: relative;
    display: inline-block;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    line-height: 1;
}

.rating-stars::before {
    content: "★★★★★";
    color: #cecece;
}

.rating-stars::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rating-percent, 0%);
    color: var(--color-orange);
    overflow: hidden;
    white-space: nowrap;
}

.rating-text {
    font-size: 0.8rem;
    color: #5f5f5f;
}

.rating-text.is-muted {
    color: #8a8a8a;
}

/* badge */

.stock-badge {

    position: absolute;

    top: 10px;
    right: 10px;

    background: #d64545;

    color: white;

    font-size: 0.75rem;

    padding: 4px 8px;

    border-radius: 4px;

    font-weight: bold;

    z-index: 5;
}

/* =========================
   PRODUCT DETAIL
========================= */

.product-layout {

    display: grid;

    grid-template-columns: 1fr;

    gap: 3rem;

}

@media (min-width: 900px) {

    .product-layout {

        grid-template-columns: 1fr 1fr;

    }

}

/* gallery */

.product-main-image {

    width: 100%;

    border: 1px solid var(--color-border);

}

.product-thumbnails {

    display: flex;

    gap: 10px;

    margin-top: 12px;

}

.product-thumb {

    width: 70px;

    cursor: pointer;

    border: 1px solid var(--color-border);

}

/* info */

.product-meta {

    font-size: 0.85rem;

    color: var(--color-mid-gray);

    margin-bottom: 1rem;

}

/* price */

.product-price {

    margin: 1rem 0;

    font-size: 1.5rem;

}

.price-original {

    text-decoration: line-through;

    margin-right: 10px;

    color: var(--color-mid-gray);

}

.price-sale {

    color: var(--color-orange);

    font-weight: bold;

}

/* stock */

.product-stock {

    margin-bottom: 1.5rem;

}

.product-thumb {

    width: 70px;

    cursor: pointer;

    border: 1px solid var(--color-border);

    transition: 0.2s ease;

}

.product-thumb:hover {

    border-color: var(--color-orange);

    transform: scale(1.05);

}

.product-reviews {
    margin-top: 2.2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
}

.product-review-messages {
    list-style: none;
    margin: 0.8rem 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.product-review-message {
    border: 1px solid #b5d8b6;
    background: #f1fbf1;
    color: #1d6721;
    padding: 0.55rem 0.7rem;
}

.product-review-message.is-error {
    border-color: #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
}

.product-review-form-wrap,
.product-review-guest {
    border: 1px solid var(--color-border);
    background: #fbfbfb;
    padding: 1rem;
    margin: 0.75rem 0 1rem;
}

.product-review-form-wrap h3,
.product-review-guest h3 {
    margin-bottom: 0.4rem;
}

.product-review-form {
    display: grid;
    gap: 0.5rem;
    max-width: 560px;
}

.product-review-form label {
    font-weight: 600;
}

.product-review-form select,
.product-review-form textarea {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.7rem;
    font-family: "Courier New", Courier, monospace;
    width: 100%;
}

.product-review-list {
    display: grid;
    gap: 0.8rem;
}

.product-review-card {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 0.8rem 0.9rem;
}

.product-review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.product-review-stars {
    color: var(--color-orange-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.product-review-comment {
    margin: 0.45rem 0 0.4rem;
}

.product-review-date {
    margin: 0;
    font-size: 0.78rem;
    color: #6f6f6f;
}

.product-review-empty {
    border: 1px dashed var(--color-border);
    background: #fafafa;
    padding: 0.75rem;
    margin: 0;
}

/* =========================
   PRODUCT GALLERY
========================= */

.product-image-wrapper {

    position: relative;

}

.product-main-image {

    width: 100%;
    height: 420px;

    object-fit: contain;

    background: var(--color-white);

    border: 1px solid var(--color-border);

}

/* thumbnails */

.product-thumbnails {

    display: flex;

    gap: 10px;

    margin-top: 12px;

}

.product-thumb {

    width: 70px;
    height: 70px;

    object-fit: cover;

    cursor: pointer;

    border: 1px solid var(--color-border);

}

.product-thumb:hover {

    border-color: var(--color-orange);

}

/* arrows */

.gallery-arrow {

    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.6);
    color: white;

    border: none;

    font-size: 22px;

    padding: 10px 12px;

    cursor: pointer;

    z-index: 2;

}

.gallery-prev {

    left: 10px;

}

.gallery-next {

    right: 10px;

}

.gallery-arrow:hover {

    background: var(--color-orange);

}

/* =========================
   ACTIVE GALLERY THUMBNAIL
========================= */

.product-thumb.active-thumb {

    border: 2px solid var(--color-orange);

    box-shadow: 0 0 8px rgba(243,116,49,0.5);

}

.product-thumb {

    transition: 0.15s ease;

}

.advanced-filter-toggle {

background: none;

border: 1px solid var(--color-border);

padding: 6px 12px;

cursor: pointer;

font-family: "Courier New", monospace;

margin-top: 10px;

}

.advanced-filter-toggle:hover {

border-color: var(--color-orange);

color: var(--color-orange);

}

.advanced-filters {

display: none;

border: 1px solid var(--color-border);

padding: 20px;

margin-top: 15px;

background: var(--color-light-gray);

}

.advanced-filters.active {

display: block;

}

.filter-checkbox-list {

display: grid;

grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

gap: 8px;

margin-bottom: 20px;

}

.filter-checkbox {

display: flex;

align-items: center;

gap: 6px;

font-size: 0.9rem;

cursor: pointer;

}

/* =========================
   ADVANCED FILTER MODAL
========================= */

.filter-overlay {

position: fixed;

top: 0;
left: 0;

width: 100%;
height: 100%;

background: rgba(0,0,0,0.5);

display: none;

align-items: center;
justify-content: center;

z-index: 2000;

}

.filter-overlay.active {

display: flex;

}

/* filter panel */

.filter-panel {

background: white;

width: 600px;
max-width: 90%;

max-height: 80vh;

overflow-y: auto;

padding: 30px;

border-radius: 6px;

box-shadow: 0 20px 60px rgba(0,0,0,0.35);

}

/* header */

.filter-header {

display: flex;

justify-content: space-between;

align-items: center;

margin-bottom: 20px;

}

.close-filters {

background: none;

border: none;

font-size: 22px;

cursor: pointer;

}

.close-filters:hover {

color: var(--color-orange);

}

.clear-filters {

margin-left: 10px;

padding: 8px 12px;

border: 1px solid var(--color-border);

text-decoration: none;

font-family: "Courier New", monospace;

}

.clear-filters:hover {

border-color: var(--color-orange);

color: var(--color-orange);

}

/* =========================
   PRODUCT SPEC TABLE
========================= */

.product-specs {

margin-top: 40px;

}

.product-specs h2 {

margin-bottom: 15px;

}

.spec-table {

width: 100%;

border-collapse: collapse;

border: 1px solid var(--color-border);

}

.spec-table tr {

border-bottom: 1px solid var(--color-border);

}

.spec-key {

width: 40%;

background: var(--color-light-gray);

padding: 10px;

font-weight: 500;

}

.spec-value {

padding: 10px;

}

/* =========================
   PRODUCT SPEC TABLE
========================= */

.product-specs {

margin-top: 50px;

}

.product-specs h2 {

margin-bottom: 15px;

}

.spec-table {

width: 100%;

border-collapse: collapse;

font-size: 0.95rem;

}

.spec-table th,
.spec-table td {

border: 1px solid var(--color-border);

padding: 10px 14px;

text-align: left;

}

.spec-table th {

width: 35%;

background: var(--color-light-gray);

font-weight: 500;

}

.spec-table tr:nth-child(even) {

background: #fafafa;

}

/* =========================
   RELATED PRODUCTS
========================= */

.related-products {

margin-top: 60px;

}

.related-products h2 {

margin-bottom: 20px;

border-bottom: 2px solid var(--color-border);

padding-bottom: 8px;

}

/* =========================
   STORE LAYOUT
========================= */

.store-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* =========================
   SIDEBAR
========================= */

.store-sidebar {
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    background: var(--color-white);
    position: sticky;
    top: 100px;
    display: none;
}

.sidebar-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Category tree */

.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-parent > a {
    display: block;
    font-weight: 600;
    padding: 6px 0;
    text-decoration: none;
    color: var(--color-dark);
}

.category-parent > a:hover {
    color: var(--color-orange);
}

.category-children {
    list-style: none;
    margin: 4px 0 10px 12px;
    padding: 0;
}

.category-children li a {
    display: block;
    font-size: 0.9rem;
    padding: 3px 0;
    color: var(--color-charcoal);
    text-decoration: none;
}

.category-children li a:hover {
    color: var(--color-orange);
}

/* =========================
   STORE MAIN
========================= */

.store-main {
    width: 100%;
}

/* =========================
   MOBILE CATEGORY FILTER
========================= */

.mobile-category-filter {
    display: block;
}

@media (min-width: 769px) {
    .store-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .store-sidebar {
        display: block;
    }

    .mobile-category-filter {
        display: none;
    }
}

@media (min-width: 1101px) {
    .store-layout {
        grid-template-columns: 260px 1fr;
    }
}

/* =========================
   BREADCRUMBS
========================= */

.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--color-mid-gray);
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--color-dark);
}

.breadcrumbs a:hover {
    color: var(--color-orange);
}

.breadcrumb-divider {
    margin: 0 6px;
    color: var(--color-mid-gray);
}

.breadcrumb-current {
    color: var(--color-orange);
}

/* =========================
   ACTIVE CATEGORY
========================= */

.category-tree a.active-category {
    color: var(--color-orange);
    font-weight: 600;
}

.category-tree a.active-category::before {
    color: var(--color-orange);
}

/* =========================
   CATEGORY TREE
========================= */

.category-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    width: 18px;
}

.category-children {
    display: none;
    list-style: none;
    margin: 6px 0 10px 18px;
    padding: 0;
}

.category-children.open {
    display: block;
}

/* active category */

.category-tree a.active-category {
    color: var(--color-orange);
    font-weight: 600;
}

.category-parent > .category-row {
    font-weight: 500;
}

.category-children li {
    margin: 3px 0;
}

.category-spacer {
    display: inline-block;
    width: 18px;
}

/* =========================
   CATEGORY TOGGLE ARROWS
========================= */

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    position: relative;
}

.category-toggle::before {
    content: "▸";
    display: inline-block;
    transition: transform 0.2s ease;
}

/* open state */

.category-toggle.open::before {
    transform: rotate(90deg);
}

/* =========================
   COMPONENT COMPARISON
========================= */

.compare-table {
    width:100%;
    border-collapse:collapse;
    margin-top:2rem;
}

.compare-table th,
.compare-table td{
    border:1px solid var(--color-border);
    padding:12px;
    text-align:center;
}

.compare-table th {
    text-align: center;
    vertical-align: top;
}

.compare-table thead{
    background:var(--color-light-gray);
}

.compare-spec{
    font-weight:600;
    text-align:left;
    background:var(--color-light-gray);
}

.compare-thumb {

width: 70px;
height: 70px;

object-fit: contain;

background: white;

border: 1px solid var(--color-border);

padding: 4px;

margin: 0 auto 6px;

display: block;

}

.compare-product-name{
    font-size:.9rem;
}

/* =========================
COMPARE CHECKBOX
========================= */

.compare-checkbox {

display: flex;
align-items: center;
gap: 6px;

margin-top: 6px;

font-size: 0.8rem;

background: none;
padding: 0;

}

.compare-checkbox input {

accent-color: var(--color-orange);

cursor: pointer;

}

/* =========================
COMPARE BAR
========================= */

.compare-bar {

position: fixed;

bottom: 20px;
left: 20px;

background: var(--color-dark);
color: white;

padding: 12px 18px;

border-radius: 6px;

display: none;

align-items: center;
gap: 12px;

box-shadow: 0 10px 30px rgba(0,0,0,0.3);

z-index: 2000;

}

.compare-modal {

display: none;

position: fixed;

top: 0;
left: 0;

width: 100%;
height: 100%;

background: rgba(0,0,0,0.5);

align-items: center;
justify-content: center;

z-index: 3000;

}

.compare-modal.active {
display: flex;
}

.compare-modal-content {

background: white;

padding: 30px;

max-width: 900px;
width: 90%;

max-height: 80vh;

overflow: auto;

border-radius: 6px;

}

.compare-table {

width: 100%;

border-collapse: collapse;

}

.compare-table th,
.compare-table td {

border: 1px solid var(--color-border);

padding: 10px;

text-align: left;

}

.compare-modal-header {

display:flex;
align-items:center;
justify-content:space-between;

margin-bottom:20px;

}

.compare-close {

background:none;
border:none;

font-size:22px;
cursor:pointer;

color:var(--color-mid-gray);

}

.compare-close:hover {

color:var(--color-orange);

}

.compare-checkbox input {

accent-color: var(--color-orange);
cursor:pointer;

}

.compare-control {

position:absolute;

bottom:10px;
right:10px;


padding:4px 8px;

border-radius:4px;

font-size:0.75rem;

display:flex;
align-items:center;
gap:6px;


}

.store-card {

position:relative;

}

.store-card.compare-active {

border-color:var(--color-orange);

box-shadow:0 0 0 2px rgba(243,116,49,0.35);

}

/* =========================
   STICKY COMPARE TRAY
========================= */

.compare-tray {

position: fixed;

bottom: -120px;
left: 0;

width: 100%;

background: var(--color-dark);
color: white;

display: flex;
justify-content: space-between;
align-items: center;

padding: 10px 20px;

box-shadow: 0 -6px 20px rgba(0,0,0,0.25);

transition: bottom 0.25s ease;

z-index: 4000;

}

.compare-tray.active {
bottom: 0;
}

.compare-tray-items {
display: flex;
gap: 16px;
align-items: center;
}

.compare-tray-item {
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.75rem;
position: relative;
}

.compare-tray-item img {
width: 42px;
height: 42px;
object-fit: cover;
border: 1px solid var(--color-border);
background: white;
}

.compare-remove {
position: absolute;
top: -6px;
right: -6px;

background: var(--color-orange);
color: white;

border: none;
border-radius: 50%;

width: 18px;
height: 18px;

font-size: 12px;
cursor: pointer;
}

.compare-tray-actions {
display: flex;
gap: 12px;
align-items: center;
}

.compare-clear {
background: none;
border: 1px solid var(--color-border);
color: white;
padding: 6px 10px;
cursor: pointer;
}

.compare-clear:hover {
border-color: var(--color-orange);
color: var(--color-orange);
}

/* =================================
   FLOATING COMPARE STACK
================================= */

.compare-stack {

position: fixed;

bottom: 20px;
left: 20px;

display: flex;
flex-direction: column;
align-items: flex-start;

gap: 10px;

z-index: 5000;

pointer-events: none;

}

.compare-stack.active {
pointer-events: auto;
}

.compare-stack-button {
margin-top: 6px;
align-self: flex-start;
}

/* container for cards */

#compareStackCards {

display: flex;
flex-direction: column;

gap: 10px;

}

/* small product cards */

.compare-mini-card {

display: flex;

align-items: center;

gap: 10px;

background: white;

border: 1px solid var(--color-border);

box-shadow: 0 6px 16px rgba(0,0,0,0.2);

padding: 8px 10px;

width: 200px;

animation: compareSlide 0.25s ease;

}

.compare-mini-card img {

width: 36px;
height: 36px;

object-fit: cover;

border: 1px solid var(--color-border);

}

.compare-mini-name {

font-size: 0.8rem;

flex: 1;

}

/* remove button */

.compare-mini-remove {

background: none;

border: none;

font-size: 16px;

cursor: pointer;

color: var(--color-mid-gray);

}

.compare-mini-remove:hover {
color: var(--color-orange);
}

/* slide animation */

@keyframes compareSlide {

from {
transform: translateY(20px);
opacity: 0;
}

to {
transform: translateY(0);
opacity: 1;
}

}

.compare-product-header {

display: flex;
flex-direction: column;
align-items: center;
gap: 6px;

}

.reaction-btn {

    border: 1px solid #ccc;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 6px;

}

.reaction-btn.active {

    background: #ffe4b5;
    border-color: #ff9800;
    font-weight: bold;

}

/* Reaction section */

.blog-reactions {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 2px solid #e0e0e0;
}

.reaction-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.reaction-btn {

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;

    border: 1px solid #cfcfcf;
    border-radius: 6px;

    background: #fafafa;
    cursor: pointer;

    font-size: 0.9rem;

    transition: all 0.15s ease;
}

.reaction-btn:hover {
    background: #f0f0f0;
}

.reaction-btn.active {

    background: #ffefe0;
    border-color: #ff7a18;
    color: #cc5500;

    font-weight: 600;
}

/* Comment section */

.blog-comments {
    margin-top: 10px;
    padding-top: 10px;
}

.comment {

    padding: 14px 16px;
    margin-bottom: 14px;

    border-left: 4px solid #ff7a18;
    background: #fafafa;

    border-radius: 4px;
}

.comment-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 6px;

    font-size: 0.9rem;
}

.comment-header strong {
    color: #333;
}

.comment-date {
    font-size: 0.75rem;
    color: #888;
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

.comment-children {
    margin-top: 0.75rem;
    margin-left: 1.2rem;
    border-left: 2px solid #ededed;
    padding-left: 0.75rem;
}

.comment-reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.comment-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #d6d6d6;
    background: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.comment-reaction-btn:hover {
    border-color: var(--color-orange-soft);
    background: #fff7f1;
}

.comment-reaction-btn.active {
    border-color: var(--color-orange);
    background: #ffefe0;
    color: #cc5500;
}

.comment-reply-toggle {
    margin-top: 0.6rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #444;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.78rem;
}

.comment-reply-toggle:hover {
    border-color: var(--color-orange-muted);
    color: var(--color-orange-muted);
}

.comment-reply-form {
    margin-top: 0.55rem;
}

.comment-reply-form textarea {
    margin-bottom: 0.5rem;
}

/* Comment form */

.comment-form {
    margin-top: 25px;
}

.comment-form textarea {

    width: 100%;
    padding: 10px;

    border-radius: 6px;
    border: 1px solid #ccc;

    font-size: 0.95rem;
    resize: vertical;

    margin-bottom: 10px;

    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #ff7a18;
}

.comment-form button {

    padding: 8px 16px;

    border-radius: 6px;
    border: none;

    background: #ff7a18;
    color: white;

    font-weight: 600;
    cursor: pointer;

    transition: background 0.15s ease;
}

.comment-form button:hover {
    background: #e86b12;
}

.blog-reactions h3,
.blog-comments h3 {

    font-size: 1.2rem;
    margin-bottom: 12px;

    color: #333;
}

.blog-card-meta {

    display: flex;
    gap: 12px;

    font-size: 0.85rem;
    color: #777;

    margin-top: 6px;

}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-sort {

    display: flex;
    gap: 14px;

    margin-bottom: 20px;

    font-size: 0.9rem;
}

.blog-sort a {

    text-decoration: none;
    color: #777;

    padding: 4px 8px;
    border-radius: 4px;

}

.blog-sort a:hover {
    background: #f2f2f2;
}

.blog-sort a.active {

    background: #ffefe0;
    color: #cc5500;
    font-weight: 600;

}

.blog-back {

    display: inline-block;
    margin-bottom: 16px;

    font-size: 0.9rem;
    color: #777;

    text-decoration: none;

}

.blog-back:hover {
    text-decoration: underline;
}

.about-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.4rem 1rem 2.8rem;
    display: grid;
    gap: 1.15rem;
}

.about-hero {
    background:
        linear-gradient(135deg, #1f1b1c 0%, #2b2426 58%, #3b2c23 100%);
    color: var(--color-white);
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    align-items: stretch;
}

.about-hero-content {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.about-hero h1 {
    font-size: clamp(2rem, 4.8vw, 3rem);
    margin-bottom: 0.2rem;
    font-weight: 500;
    line-height: 1.12;
}

.about-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: #ffc9ad;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.about-motto {
    font-size: 1.1rem;
    color: #f1ddd1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-hero p {
    margin-bottom: 0.5rem;
    color: #f7efea;
}

.about-hero-image {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.18);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.about-block {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.2rem;
}

.about-block h2 {
    margin-bottom: 0.45rem;
}

.about-section-image {
    margin: 0.55rem 0 0.9rem;
    border: 1px solid var(--color-border);
    background: #f4f4f4;
    overflow: hidden;
}

.about-section-image img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.about-block ul {
    margin: 0.35rem 0 1rem 1.1rem;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.about-philosophy {
    border-left: 4px solid var(--color-orange);
}

.about-cta {
    border: 1px solid var(--color-border);
    background:
        linear-gradient(180deg, rgba(243, 116, 49, 0.08), transparent 32%),
        var(--color-white);
    padding: 1.2rem;
}

.about-cta-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: stretch;
}

.about-cta-card {
    border: 1px solid var(--color-border);
    background: #fcfcfc;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
}

.about-cta-card h3 {
    margin: 0;
    font-size: 1.12rem;
}

.about-cta-card p {
    margin: 0;
    flex: 1 0 auto;
}

.about-cta-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    font-weight: 700;
    letter-spacing: 0.03rem;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 0.7rem 0.9rem;
}

.about-contact {
    border: 1px solid var(--color-border);
    background: #f8f7f5;
    padding: 1.2rem;
}

.about-contact ul {
    margin: 0.4rem 0 1rem 1rem;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.contact-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.3rem 1rem 2.8rem;
    display: grid;
    gap: 1rem;
}

.contact-hero {
    border: 1px solid var(--color-border);
    background:
        radial-gradient(circle at top right, rgba(243, 116, 49, 0.14), transparent 56%),
        #fafafa;
    padding: 1.25rem;
}

.contact-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--color-orange-muted);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.contact-card {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 0.9rem;
}

.contact-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.contact-card p {
    margin: 0;
}

.contact-panel {
    border: 1px solid var(--color-border);
    background: #f8f7f5;
    padding: 1.2rem;
}

.contact-panel ul {
    margin: 0.45rem 0 1rem 1rem;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.contact-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.contact-form-panel {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.contact-field {
    display: grid;
    gap: 0.35rem;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-field label {
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.72rem;
    font-family: "Courier New", Courier, monospace;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid rgba(243, 116, 49, 0.32);
    border-color: var(--color-orange);
}

.contact-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    cursor: pointer;
}

.contact-field-error {
    margin: 0;
    color: #8e1a1a;
    font-size: 0.82rem;
}

.contact-errors {
    border: 1px solid #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
    padding: 0.6rem 0.75rem;
}

.contact-message-list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.contact-message-item {
    border: 1px solid #b5d8b6;
    background: #f1fbf1;
    color: #1d6721;
    padding: 0.55rem 0.7rem;
}

.contact-message-item.is-error {
    border-color: #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
}

@media (min-width: 901px) {
    .about-cta-grid,
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    }

    .about-hero-image img {
        aspect-ratio: auto;
        height: 100%;
    }
}

/* Footer */

.site-footer {

    margin-top: 60px;
    background: #111;
    color: #ccc;

    font-size: 0.9rem;

}

.footer-top {
    padding-top: 2rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer-top .footer-brand {
    text-align: center;
}

.footer-brand h3 {

    margin-bottom: 6px;
    color: #fff;

}

.footer-motto {

    color: #888;
    font-style: italic;
    margin: 0;

}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.8rem;
    align-items: start;

}

.footer-column h4 {

    margin-bottom: 10px;
    color: #fff;

}

.footer-column ul {

    list-style: none;
    padding: 0;
    margin: 0;

}

.footer-column li {

    margin-bottom: 6px;

}

.footer-column a {

    color: #bbb;
    text-decoration: none;

}

.footer-column a:hover {

    color: #fff;

}

.footer-bottom {

    border-top: 1px solid #333;
    text-align: center;

    padding: 15px;

    color: #777;

}

.site-footer {
    border-top: 3px solid #cc5500;
}

/* Dropdown */

.nav-dropdown {

    position: relative;
    width: 100%;

}

.dropdown-menu {

    position: static;
    top: auto;
    left: auto;
    right: auto;

    display: none;

    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    list-style: none;
    padding: 0.4rem 0;
    margin: 0.35rem 0 0;

    min-width: 100%;

    box-shadow: none;
    z-index: 2000;
}


.dropdown-menu li {

    margin: 0;
    padding: 0;

}

.dropdown-toggle {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;

}

.dropdown-caret {

    font-size: 0.72rem;
    line-height: 1;
    transition: transform 0.2s ease;

}

.account-menu {

    right: auto;
    left: 0;
    min-width: 100%;

}

.dropdown-menu a,
.dropdown-logout-button {

    display: block;
    width: 100%;
    padding: 0.55rem 0.9rem;
    text-align: center;
    color: var(--color-dark);
    background: none;
    border: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;

}

.dropdown-menu .nav-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.dropdown-menu a:hover,
.dropdown-logout-button:hover {

    color: var(--color-orange-muted);
    background: var(--color-light-gray);

}

.dropdown-divider {

    height: 1px;
    margin: 0.35rem 0;
    background: var(--color-border);

}

.dropdown-logout-form {

    margin: 0;
    width: 100%;

}

/* Show dropdown */

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {

    display: block;

}

.nav-dropdown.open .dropdown-caret,
.nav-dropdown:hover .dropdown-caret {

    transform: rotate(180deg);

}

@media (min-width: 769px) {
    .nav-dropdown {
        width: auto;
    }

    .dropdown-toggle {
        justify-content: flex-start;
        width: auto;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        min-width: 170px;
        margin-top: 0;
        border-radius: 8px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    }

    .account-menu {
        right: 0;
        left: auto;
        min-width: 210px;
    }

    .dropdown-menu a,
    .dropdown-logout-button {
        text-align: left;
    }

    .dropdown-menu .nav-cart-link {
        justify-content: space-between;
    }
}

.guide {

    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;

}

.guide-content {

    margin: 30px 0;

    line-height: 1.7;

}

.guide-content h2 {

    margin-top: 35px;

}

.guide-content pre {

    background: #111;
    color: #eee;

    padding: 15px;

    border-radius: 6px;

    overflow-x: auto;

}

.guide-nav {

    display: flex;
    justify-content: space-between;

    margin: 30px 0;

}

.guide-nav a {

    text-decoration: none;

    font-weight: 600;

}

.guides {

    padding: 40px 20px;

}

.guide-categories-header {
    margin-bottom: 1.1rem;
}

.guide-categories-header p {
    margin: 0;
    color: #555;
}

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-top: 4px solid var(--color-orange);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.guide-category-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.guide-category-body {
    padding: 0.9rem;
    display: grid;
    gap: 0.5rem;
    height: 100%;
}

.guide-category-body h2 {
    margin: 0;
    font-size: 1.1rem;
}

.guide-category-body p {
    margin: 0;
    color: #4f4f4f;
}

.guide-category-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #666;
}

.guide-subcategory-section {
    margin: 1.1rem 0 1.5rem;
}

.guide-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.guide-subcategory-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    background: #fafafa;
    text-decoration: none;
    color: var(--color-dark);
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.guide-subcategory-card:hover {
    border-color: var(--color-orange-muted);
    background: #fff8f2;
}

.guide-subcategory-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.guide-subcategory-body {
    padding: 0.75rem;
}

.guide-subcategory-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.guide-subcategory-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.guide-category-guides h2 {
    margin-bottom: 0.6rem;
}

.guide-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 24px;

    margin-top: 25px;

}

.guide-card {

    display: block;

    text-decoration: none;

    border: 1px solid #eee;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.guide-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);

}

.guide-card-image img {

    width: 100%;

    height: 170px;

    object-fit: cover;

}

.guide-card-body {

    padding: 14px 16px;

}

.guide-card-body h2 {

    font-size: 1.1rem;

    color: #333;

}

.guide-card-body h3 {
    margin: 0;
    font-size: 1.06rem;
    color: #333;
}

/* Guide hero image */

.guide-hero {

    margin: 25px 0;

}

.guide-hero img {

    width: 100%;

    max-height: 420px;

    object-fit: cover;

    border-radius: 8px;

}

/* Guide metadata */

.guide-meta {

    display: flex;
    gap: 18px;

    margin-top: 8px;
    margin-bottom: 20px;

    font-size: 0.9rem;
    color: #666;

}

/* Card metadata */

.guide-card-meta {

    display: flex;
    gap: 12px;

    margin-top: 6px;

    font-size: 0.85rem;
    color: #777;

}

/* Back button */

.guide-back {

    margin-bottom: 20px;

}

.guide-back-btn {

    text-decoration: none;

    font-weight: 600;

    color: #ff7a18;

}

.guide-back-btn:hover {

    text-decoration: underline;

}

.guide-meta-item {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.meta-label {

    font-weight: 600;
    margin-bottom: 4px;
    color: #444;

}

.cart-table {

width: 100%;
border-collapse: collapse;
margin-top: 20px;

}

.cart-table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

.cart-table th,
.cart-table td {

padding: 12px;
border-bottom: 1px solid #eee;

}

.cart-total {

margin-top: 20px;
font-size: 1.2rem;

}

.cart-actions {

margin-top: 20px;
display: flex;
gap: 10px;

}

.cart-actions .button-primary,
.cart-actions .button-secondary {
    text-align: center;
}

.button-disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-row-unavailable {
    background: #fff7f7;
}

.cart-item-link.is-unavailable {
    text-decoration: line-through;
    color: #888;
}

.cart-item-warning {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #9b2e2e;
}

.cart-cell-unavailable {
    color: #7c7c7c;
    font-style: italic;
}

.cart-stock-alert {
    margin-top: 0.75rem;
    border: 1px solid #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
    padding: 0.6rem 0.75rem;
}

.checkout-grid {

display: grid;
grid-template-columns: 1fr;
gap: 1rem;
margin-top: 20px;

}

.checkout-form-panel {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.25rem;
}

.checkout-form {
    display: grid;
    gap: 1rem;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.checkout-field {
    display: grid;
    gap: 0.35rem;
}

.checkout-field.is-wide {
    grid-column: 1 / -1;
}

.checkout-field label {
    font-weight: 600;
}

.checkout-field input {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.72rem;
    font-family: "Courier New", Courier, monospace;
}

.checkout-field input:focus {
    outline: 2px solid rgba(243, 116, 49, 0.32);
    border-color: var(--color-orange);
}

.checkout-field-error {
    margin: 0;
    color: #8e1a1a;
    font-size: 0.82rem;
}

.checkout-coupon-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.checkout-coupon-apply {
    width: 100%;
    white-space: normal;
    padding: 0.65rem 0.9rem;
}

.checkout-coupon-success {
    margin: 0.25rem 0 0;
    color: #2f8450;
    font-size: 0.82rem;
}

@media (min-width: 769px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }

    .checkout-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.checkout-submit {
    width: 100%;
}

.checkout-summary {

background: #fafafa;
padding: 20px;
border: 1px solid var(--color-border);
height: fit-content;

}

.checkout-summary ul {

list-style: none;
padding: 0;

}

.checkout-summary li {

display: flex;
justify-content: space-between;
margin-bottom: 10px;

}

.checkout-total {

font-size: 1.2rem;

}

.checkout-discount-total strong {
    color: #2f8450;
}

.checkout-guest-notice {
    margin-top: 0.8rem;
    border: 1px solid rgba(243, 116, 49, 0.45);
    background: #fff6ef;
    padding: 0.7rem 0.85rem;
}

.checkout-guest-notice p {
    margin: 0;
}

.checkout-guest-notice a {
    color: var(--color-orange-muted);
}

.checkout-guest-notice a:hover {
    color: var(--color-orange);
}

.checkout-errors {
    border: 1px solid #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
    padding: 0.6rem 0.75rem;
}

.site-search-page {
    max-width: 980px;
}

.site-search-header {
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(180deg, #fff, #fff9f4);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.site-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: end;
}

.site-search-form .button-primary {
    width: 100%;
}

.site-search-form label {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-search-form input {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.68rem 0.75rem;
    font-family: "Courier New", Courier, monospace;
}

.site-search-count {
    margin-bottom: 0.8rem;
    color: #5a5254;
}

.site-search-section {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0.95rem;
    margin-bottom: 0.8rem;
}

.site-search-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.site-search-section li {
    border-bottom: 1px solid #f0efef;
    padding-bottom: 0.55rem;
}

.site-search-section li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.site-search-section a {
    color: var(--color-orange-muted);
    text-decoration: none;
}

.site-search-section a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.site-search-section p {
    margin: 0.3rem 0 0;
    color: #5b5556;
}

.order-success {
    max-width: 760px;
}

.order-success-card {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.4rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.order-success-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-size: 0.72rem;
    color: var(--color-orange-muted);
    margin-bottom: 0.45rem;
}

.order-success-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.order-success-details {
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.9rem;
}

.order-success-number {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.order-success-items-label {
    margin: 0 0 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.order-success-receipt {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.order-success-receipt-head,
.order-success-receipt-row,
.order-success-receipt-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px 92px 108px;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    align-items: center;
}

.order-success-receipt-head {
    background: #f5f4f2;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #5f5f5f;
}

.order-success-receipt-row {
    border-top: 1px solid #efefef;
    font-size: 0.9rem;
}

.order-success-receipt-row span:nth-child(2),
.order-success-receipt-row span:nth-child(3),
.order-success-receipt-row span:nth-child(4),
.order-success-receipt-head span:nth-child(2),
.order-success-receipt-head span:nth-child(3),
.order-success-receipt-head span:nth-child(4) {
    text-align: right;
}

.order-success-receipt-row.is-empty {
    grid-template-columns: 1fr;
    color: var(--color-text-muted);
}

.order-success-receipt-total {
    border-top: 1px solid var(--color-border);
    background: #fbfaf8;
    font-size: 0.95rem;
}

.order-success-receipt-total span {
    grid-column: 1 / 4;
    font-weight: 600;
}

.order-success-receipt-total strong {
    text-align: right;
}

.order-success-review-note {
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.9rem;
}

.order-success-review-list {
    margin: 0.4rem 0 0.8rem;
    padding-left: 1.1rem;
}

.order-success-review-list li {
    margin: 0.2rem 0;
}

.order-success-review-list a {
    color: var(--color-orange-muted);
    text-decoration: none;
}

.order-success-review-list a:hover {
    color: var(--color-orange);
}

@media (max-width: 700px) {
    .order-success-receipt-head {
        display: none;
    }

    .order-success-receipt-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 0.2rem;
    }

    .order-success-receipt-row span:nth-child(2),
    .order-success-receipt-row span:nth-child(3),
    .order-success-receipt-row span:nth-child(4) {
        text-align: left;
    }

    .order-success-receipt-total {
        grid-template-columns: 1fr 1fr;
    }

    .order-success-receipt-total span {
        grid-column: 1 / 2;
    }
}

.out-of-stock {

padding: 10px 14px;
background: #eee;
color: #666;
border-radius: 4px;
display: inline-block;

}

.add-to-cart-form {

display: flex;
flex-direction: column;
gap: 10px;
max-width: 200px;

}

.store-card-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: auto;
padding-top: 8px;
}

.store-primary-actions {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
align-items: center;
}

.add-to-cart-inline {
max-width: none;
}

.add-to-cart-inline button {
padding: 0.45rem 0.8rem;
font-size: 0.82rem;
}

.save-item-trigger,
.save-item-guest-link {
padding: 0.45rem 0.8rem;
font-size: 0.82rem;
border-color: rgba(32, 124, 94, 0.5);
color: #1f6f56;
background: #f2fbf7;
}

.save-item-trigger:hover,
.save-item-guest-link:hover {
border-color: #2f7a62;
background: #e7f7ef;
color: #175943;
}

.product-save-item-trigger {
display: inline-flex;
margin-top: 0.55rem;
}

.add-to-cart-form input {

padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;

}

.stock-note {

font-size: 0.8rem;
color: #666;

}

.cart-qty {

display: flex;
align-items: center;
gap: 6px;

}


.qty-btn {

width: 22px;
height: 22px;

font-size: 12px;
font-weight: bold;

border: 1px solid var(--color-border);
background: var(--color-white);
border-radius: 4px;
color: var(--color-dark);

cursor: pointer;

padding: 0;

}

.cart-qty button:hover {

border-color: var(--color-orange);
color: var(--color-orange-muted);
background: #fffaf7;

}

.qty-input {

width: 45px;
text-align: center;

padding: 2px;

border: 1px solid #ccc;
border-radius: 4px;
font-family: "Courier New", Courier, monospace;

}

/* Chrome, Safari, Edge, Opera */

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {

    -webkit-appearance: none;
    margin: 0;

}

/* Firefox */

.qty-input {

    -moz-appearance: textfield;

}

.cart-remove-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border: 1px solid var(--color-border);
background: #fafafa;
border-radius: 6px;
cursor: pointer;
color: #666;
font-size: 0.95rem;
}

.cart-remove-btn:hover {
border-color: #d64545;
color: #d64545;
background: #fff6f6;
}

@media (max-width: 768px) {
    .cart-table-wrap {
        overflow: visible;
    }

    .cart-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
    }

    .cart-table tr {
        display: block;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
        background: var(--color-white);
    }

    .cart-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 8px 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-size: 0.78rem;
        color: #666;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        flex: 0 0 75px;
    }

    .cart-table td > * {
        margin-left: auto;
    }

    .cart-table td[data-label="Product"] a {
        text-align: right;
        max-width: 65%;
    }

    .cart-qty {
        justify-content: flex-end;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions a {
        text-align: center;
    }

}

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

.cart-target-bump {
    animation: cartTargetPulse 0.6s ease;
}

@keyframes cartTargetPulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.14);
    }
    100% {
        transform: scale(1);
    }
}

.cart-float-card {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2200;
    border: 1px solid rgba(47, 122, 98, 0.35);
    border-radius: 10px;
    background: #f4fbf8;
    box-shadow: 0 14px 30px rgba(25, 74, 58, 0.2);
    overflow: hidden;
    pointer-events: none;
    opacity: 0.98;
    display: grid;
    grid-template-rows: 1fr auto;
}

.cart-float-card.is-moving {
    transition:
        left 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        border-radius 0.25s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.cart-float-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(47, 122, 98, 0.2);
    background: #eef8f4;
}

.cart-float-content {
    padding: 0.45rem 0.55rem;
}

.cart-float-name {
    margin: 0;
    font-size: 0.82rem;
    color: #195e47;
}

.cart-float-added {
    margin: 0.2rem 0 0;
    font-size: 0.71rem;
    color: #1f6f56;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.cart-float-card.is-compact {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem;
    border-radius: 8px;
    border-color: rgba(47, 122, 98, 0.5);
    background: #eaf8f1;
    box-shadow: 0 10px 20px rgba(25, 74, 58, 0.18);
}

.cart-float-card.is-compact::after {
    content: "";
    position: absolute;
    top: -11px;
    right: 22px;
    width: 13px;
    height: 13px;
    border-top: 2px solid rgba(47, 122, 98, 0.8);
    border-right: 2px solid rgba(47, 122, 98, 0.8);
    border-top-right-radius: 10px;
}

.cart-float-card.is-compact .cart-float-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(47, 122, 98, 0.28);
    border-radius: 4px;
}

.cart-float-card.is-compact .cart-float-content {
    padding: 0;
    min-width: 0;
    flex: 1;
}

.cart-float-card.is-compact .cart-float-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.79rem;
}

.cart-float-card.is-compact .cart-float-added {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    background: rgba(47, 122, 98, 0.16);
    color: #165340;
    font-size: 0.67rem;
}

.cart-float-card.is-hover {
    box-shadow: 0 12px 24px rgba(25, 74, 58, 0.22);
}

.cart-float-card.is-stack-mode.is-compact::after {
    display: none;
}

.cart-float-card.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.save-target-bump {
    animation: saveTargetPulse 0.6s ease;
}

@keyframes saveTargetPulse {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.save-float-card {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2200;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 14px 30px rgba(35, 31, 32, 0.2);
    overflow: hidden;
    pointer-events: none;
    opacity: 0.98;
    display: grid;
    grid-template-rows: 1fr auto;
}

.save-float-card.is-moving {
    transition:
        left 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        border-radius 0.25s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.save-float-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
    background: #f5f5f5;
}

.save-float-content {
    padding: 0.45rem 0.55rem;
}

.save-float-name {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-dark);
}

.save-float-added {
    margin: 0.2rem 0 0;
    font-size: 0.71rem;
    color: #9f4f22;
    letter-spacing: 0.02em;
}

.save-float-card.is-compact {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem;
    border-radius: 8px;
    border-color: rgba(243, 116, 49, 0.4);
    background: #fff8f2;
    box-shadow: 0 10px 20px rgba(35, 31, 32, 0.18);
}

.save-float-card.is-compact::after {
    content: "";
    position: absolute;
    top: -11px;
    right: 22px;
    width: 13px;
    height: 13px;
    border-top: 2px solid rgba(243, 116, 49, 0.8);
    border-right: 2px solid rgba(243, 116, 49, 0.8);
    border-top-right-radius: 10px;
}

.save-float-card.is-compact .save-float-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.save-float-card.is-compact .save-float-content {
    padding: 0;
    min-width: 0;
    flex: 1;
}

.save-float-card.is-compact .save-float-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.79rem;
}

.save-float-card.is-compact .save-float-added {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    background: rgba(243, 116, 49, 0.18);
    color: #8f4319;
    font-size: 0.67rem;
}

.save-float-card.is-hover {
    box-shadow: 0 12px 24px rgba(35, 31, 32, 0.22);
}

.save-float-card.is-stack-mode.is-compact::after {
    display: none;
}

.save-float-card.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.has-save-item-modal {
    overflow: hidden;
}

.save-item-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
}

.save-item-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.save-item-modal-dialog {
    position: relative;
    width: min(560px, calc(100% - 1.5rem));
    margin: 1.8rem auto 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    padding: 1rem;
}

.save-item-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.save-item-modal-close {
    border: 1px solid var(--color-border);
    background: #fafafa;
    color: #666;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.save-item-modal-close:hover {
    border-color: #c9c9c9;
    color: #444;
}

.save-item-modal-subtext {
    margin: 0.2rem 0 0.8rem;
    color: #555;
}

.save-item-modal-error {
    border: 1px solid #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
    padding: 0.55rem 0.7rem;
    margin: 0 0 0.8rem;
}

.save-item-create-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.save-item-create-row input {
    border: 1px solid var(--color-border);
    padding: 0.55rem 0.65rem;
    font-family: "Courier New", Courier, monospace;
}

.save-item-list-wrap {
    border: 1px solid var(--color-border);
    background: #fafafa;
    max-height: min(320px, 50vh);
    overflow: auto;
}

.save-item-list-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.save-item-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-top: 1px solid #ececec;
}

.save-item-list-row:first-child {
    border-top: none;
}

.save-item-list-row.is-selected {
    background: #eef8f4;
}

.save-item-list-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.2rem;
    gap: 0.45rem;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.save-item-list-name {
    overflow-wrap: anywhere;
}

.save-item-list-count {
    font-size: 0.75rem;
    color: #666;
}

.save-item-list-tag {
    font-size: 0.7rem;
    color: #1d6d54;
    background: rgba(47, 122, 98, 0.14);
    border-radius: 999px;
    padding: 0.1rem 0.35rem;
}

.save-item-list-delete {
    border: 1px solid #e0b3b3;
    background: #fff5f5;
    color: #8e1a1a;
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
    cursor: pointer;
}

.save-item-list-delete:hover {
    background: #ffeaea;
}

.save-item-empty {
    margin: 0;
    padding: 0.75rem;
    color: #666;
}

.save-item-modal-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .compare-stack {
        left: 12px;
        bottom: 12px;
    }
}

/* ======================================================
   AUTH + ACCOUNT
====================================================== */

.auth-shell {
    max-width: 560px;
}

.auth-card {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    margin-bottom: 0.35rem;
}

.auth-card h2 {
    margin-bottom: 0.35rem;
}

.auth-subtext {
    color: #555;
    margin-bottom: 1.3rem;
}

.auth-card label {
    display: block;
    margin: 0.7rem 0 0.35rem;
    font-weight: 600;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.7rem;
    font-family: "Courier New", Courier, monospace;
}

.auth-card input:focus {
    outline: 2px solid rgba(243, 116, 49, 0.35);
    border-color: var(--color-orange);
}

.auth-submit {
    width: 100%;
    margin-top: 1rem;
}

.auth-switch-text {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    text-align: center;
}

.auth-switch-text a {
    color: var(--color-orange-muted);
}

.auth-switch-text a:hover {
    color: var(--color-orange);
}

.auth-errors {
    border: 1px solid #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.8rem;
}

.auth-errors p {
    margin: 0;
}

.auth-field-error {
    color: #8e1a1a;
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
}

.auth-field-error-list {
    margin: 0.35rem 0 0;
    padding-left: 1rem;
}

.auth-field-error-list .auth-field-error {
    margin: 0 0 0.2rem;
}

.auth-card ul.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-shell {
    max-width: 1200px;
}

.account-header {
    margin-bottom: 1.5rem;
}

.account-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--color-orange-muted);
    margin-bottom: 0.5rem;
}

.account-intro {
    color: #555;
    margin-bottom: 0;
}

.account-layout {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
}

.account-nav-panel {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    height: fit-content;
}

.account-nav {
    display: grid;
}

.account-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-nav a:last-child {
    border-bottom: none;
}

.account-nav a:hover {
    background: var(--color-light-gray);
    color: var(--color-orange-muted);
}

.account-nav a.is-active {
    background: var(--color-dark);
    color: var(--color-white);
}

.account-nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    padding: 0 0.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background: var(--color-orange);
    color: var(--color-white);
}

.account-content-panel {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.2rem;
    min-height: 320px;
}

.account-section-card h2 {
    margin-bottom: 0.75rem;
}

.account-stats-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.2rem;
}

.account-stat-card {
    border: 1px solid var(--color-border);
    background: #fafafa;
    padding: 0.85rem;
}

.account-stat-card h2 {
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.account-stat-value {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.account-orders-list {
    display: grid;
    gap: 0.6rem;
}

.account-order-row {
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.account-order-row h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.account-order-row p {
    margin: 0;
}

.account-order-items {
    margin: 0.35rem 0 0;
    padding-left: 1rem;
}

.account-order-items li {
    margin: 0.05rem 0;
    font-size: 0.85rem;
}

.account-order-items a {
    color: var(--color-orange-muted);
    text-decoration: none;
}

.account-order-items a:hover {
    color: var(--color-orange);
}

.account-order-status {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: var(--color-orange-muted);
}

.account-order-total {
    font-weight: 600;
}

.account-table-wrap {
    overflow-x: auto;
}

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

.account-orders-table th,
.account-orders-table td {
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    padding: 0.65rem 0.5rem;
}

.account-orders-table th {
    font-weight: 600;
}

.account-order-cancel-btn {
    border: 1px solid #e0b3b3;
    background: #fff5f5;
    color: #8e1a1a;
    padding: 0.4rem 0.55rem;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
}

.account-order-cancel-btn:hover {
    border-color: #cf9a9a;
    background: #ffeaea;
}

.account-order-action-muted {
    color: #888;
}

.account-empty-state {
    border: 1px dashed var(--color-border);
    background: #fafafa;
    padding: 0.8rem;
    margin-top: 0.75rem;
}

.account-saved-create-form {
    display: grid;
    gap: 0.5rem;
    max-width: 640px;
}

.account-saved-create-form label {
    font-weight: 600;
}

.account-saved-create-form input[type="text"] {
    border: 1px solid var(--color-border);
    padding: 0.62rem 0.7rem;
    font-family: "Courier New", Courier, monospace;
}

.account-saved-list-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-saved-list-card {
    border: 1px solid var(--color-border);
    background: #fafafa;
    padding: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.account-saved-list-card.is-active {
    border-left: 4px solid var(--color-orange);
    background: #fffaf7;
}

.account-saved-list-link {
    text-decoration: none;
    color: var(--color-dark);
}

.account-saved-list-link h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.account-saved-list-link p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.account-saved-delete-list-btn {
    width: 100%;
}

.account-saved-item-list {
    display: grid;
    gap: 0.75rem;
}

.account-saved-item-card {
    border: 1px solid var(--color-border);
    background: #fafafa;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.7rem;
}

.account-saved-item-card h3 {
    margin: 0;
    font-size: 1rem;
}

.account-saved-item-card h3 a {
    color: var(--color-dark);
    text-decoration: none;
}

.account-saved-item-card h3 a:hover {
    color: var(--color-orange-muted);
}

.account-saved-remove-btn {
    white-space: nowrap;
}

.account-activity-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.6rem;
}

.account-activity-filters label {
    font-weight: 600;
}

.account-activity-filters select {
    border: 1px solid var(--color-border);
    padding: 0.55rem 0.65rem;
    font-family: "Courier New", Courier, monospace;
}

.account-activity-toolbar {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.account-activity-toolbar p {
    margin: 0;
}

.account-activity-list {
    display: grid;
    gap: 0.7rem;
}

.account-activity-item {
    border: 1px solid var(--color-border);
    background: #fafafa;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
}

.account-activity-item.is-unread {
    border-left: 4px solid var(--color-orange);
}

.account-activity-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.account-activity-item h3 a {
    color: var(--color-dark);
    text-decoration: none;
}

.account-activity-item h3 a:hover {
    color: var(--color-orange-muted);
}

.account-activity-item p {
    margin: 0.25rem 0;
}

.account-activity-meta {
    color: #666;
    font-size: 0.82rem;
}

.account-toast-container {
    position: fixed;
    top: 76px;
    right: 0.75rem;
    left: 0.75rem;
    z-index: 2200;
    display: grid;
    gap: 0.45rem;
    max-width: none;
    pointer-events: none;
}

.account-toast {
    border: 1px solid rgba(243, 116, 49, 0.34);
    background: #fff8f2;
    color: #8f4319;
    padding: 0.55rem 0.72rem;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(35, 31, 32, 0.18);
    font-size: 0.86rem;
    pointer-events: auto;
    animation: accountToastIn 0.24s ease, accountToastOut 0.32s ease 3.4s forwards;
}

@keyframes accountToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes accountToastOut {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.account-settings-form {
    display: grid;
    gap: 0.55rem;
    max-width: 560px;
}

.account-settings-form label {
    font-weight: 600;
}

.account-settings-form input[type="text"],
.account-settings-form input[type="email"] {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.62rem 0.7rem;
    font-family: "Courier New", Courier, monospace;
}

.account-message-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.account-message-item {
    border: 1px solid #b5d8b6;
    background: #f1fbf1;
    color: #1d6721;
    padding: 0.55rem 0.7rem;
}

.account-message-item.is-error {
    border-color: #e0b3b3;
    background: #fff2f2;
    color: #8e1a1a;
}

.account-subhead {
    margin: 1.25rem 0 0.8rem;
    font-size: 1.1rem;
}

.account-address-toolbar {
    margin-bottom: 0.7rem;
}

.account-address-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    background: #fafafa;
    color: var(--color-dark);
    font-family: "Courier New", Courier, monospace;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.account-address-toggle:hover {
    border-color: var(--color-orange-muted);
    color: var(--color-orange-muted);
}

.account-address-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
}

.account-address-form-wrap {
    display: none;
}

.account-address-form-wrap.is-open {
    display: block;
}

.account-address-form {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.account-address-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

.account-address-field {
    display: grid;
    gap: 0.35rem;
}

.account-address-field.is-wide {
    grid-column: 1 / -1;
}

.account-address-field label {
    font-weight: 600;
}

.account-address-field input[type="text"],
.account-address-field input[type="email"],
.account-address-field select {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.62rem 0.7rem;
    font-family: "Courier New", Courier, monospace;
}

.account-address-field input[type="checkbox"] {
    width: auto;
}

.account-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.account-checkbox-inline input[type="checkbox"] {
    margin: 0;
}

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

.account-address-card {
    border: 1px solid var(--color-border);
    background: #fafafa;
    padding: 0.8rem;
}

.account-address-card p {
    margin: 0 0 0.3rem;
}

.account-address-label {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.account-address-label span {
    font-size: 0.75rem;
    border: 1px solid var(--color-orange);
    color: var(--color-orange-muted);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

@media (min-width: 901px) {
    .account-layout {
        grid-template-columns: 240px 1fr;
    }

    .account-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-saved-item-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .account-toast-container {
        top: 84px;
        right: 1rem;
        left: auto;
        max-width: min(360px, calc(100vw - 1.5rem));
    }

    .save-item-modal-dialog {
        margin: clamp(2.5rem, 12vh, 6.5rem) auto 0;
    }

    .save-item-create-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .save-item-list-option {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }
}

@media (min-width: 1151px) {
    .account-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ======================================================
   DESKTOP LAYOUT EXPANSION
====================================================== */

@media (min-width: 1280px) {
    .container {
        width: 90vw;
        max-width: 2600px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .store-layout {
        grid-template-columns: minmax(260px, 18vw) minmax(0, 1fr);
        gap: 2rem;
    }

    .store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }

    .guide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guide-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guide-subcategory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .about-page,
    .contact-page,
    .account-shell,
    .blog-post,
    .guide,
    .order-success,
    .auth-shell {
        max-width: none;
        width: 100%;
    }

    .about-hero-inner {
        width: 90vw;
        max-width: 2600px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .account-layout {
        grid-template-columns: 270px 1fr;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
        gap: 2rem;
    }
}

@media (min-width: 1600px) {
    .container {
        width: 90vw;
        max-width: 2800px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .store-layout {
        grid-template-columns: minmax(280px, 16vw) minmax(0, 1fr);
        gap: 2.5rem;
    }

    .about-hero-inner {
        width: 90vw;
        max-width: 2800px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1850px) {
    .store-grid,
    .blog-grid,
    .guide-grid,
    .guide-category-grid,
    .guide-subcategory-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1700px) and (min-aspect-ratio: 19/9) and (max-aspect-ratio: 21/9) {
    .container {
        width: 90vw;
        max-width: 3200px;
        padding-left: 2.2rem;
        padding-right: 2.2rem;
    }

    .store-layout {
        grid-template-columns: minmax(300px, 15vw) minmax(0, 1fr);
        gap: 2.7rem;
    }

    .store-grid,
    .blog-grid,
    .guide-grid,
    .guide-category-grid,
    .guide-subcategory-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.7rem;
    }

    .about-hero-inner {
        width: 90vw;
        max-width: 3200px;
        padding-left: 2.2rem;
        padding-right: 2.2rem;
    }
}

/* ======================================================
   SUPPORT + DATASHEET PAGES
====================================================== */

.support-menu {
    min-width: 100%;
}

@media (min-width: 769px) {
    .support-menu {
        min-width: 260px;
    }
}

.support-index,
.support-page,
.datasheet-page {
    max-width: 980px;
}

.support-page-header,
.datasheet-header {
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(180deg, #fff, #fff9f5);
    padding: 1.25rem 1.1rem;
    margin-bottom: 1rem;
}

.support-page-header p,
.datasheet-header p {
    color: #555;
    margin: 0;
}

.support-page-section,
.support-page-links,
.datasheet-actions,
.datasheet-related {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1rem 1.1rem;
    margin-top: 0.8rem;
}

.support-page-section h2,
.support-page-links h2,
.datasheet-actions h2,
.datasheet-related h2 {
    margin-bottom: 0.45rem;
}

.support-page-links ul,
.datasheet-related ul {
    margin: 0;
    padding-left: 1.15rem;
}

.support-page-links li,
.datasheet-related li {
    margin: 0.25rem 0;
}

.support-page-links a,
.datasheet-related a {
    color: var(--color-orange-muted);
    text-decoration: none;
}

.support-page-links a:hover,
.datasheet-related a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.datasheet-actions .button-primary,
.datasheet-actions .button-secondary {
    margin-right: 0.5rem;
    margin-bottom: 0.45rem;
}

.product-datasheet {
    margin-top: 1rem;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    background: #fffaf7;
    padding: 0.9rem 1rem;
}

.product-datasheet h2 {
    margin-bottom: 0.35rem;
}

.product-datasheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.datasheet-dropdown {
    position: relative;
    display: inline-block;
}

.datasheet-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.datasheet-dropdown summary::-webkit-details-marker {
    display: none;
}

.datasheet-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 12;
    width: min(280px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.datasheet-dropdown-menu li {
    margin: 0;
}

.datasheet-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #2d2526;
    text-decoration: none;
    font-size: 0.88rem;
}

.datasheet-dropdown-menu a:hover {
    background: #fbf6f1;
    color: var(--color-orange);
}

/* ======================================================
   FOOTER POLISH (NEW COLUMNS)
====================================================== */

.footer-column {
    min-width: 0;
}

@media (min-width: 701px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) {
    .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-column:last-child {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .support-index,
    .support-page,
    .datasheet-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .support-page-header,
    .datasheet-header,
    .support-page-section,
    .support-page-links,
    .datasheet-actions,
    .datasheet-related {
        padding: 0.9rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-top .footer-brand {
        text-align: left;
    }
}

/* ======================================================
   ADMIN WORKBENCH DASHBOARD
====================================================== */

.admin-dashboard {
    max-width: 1200px;
}

.admin-dashboard-header {
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(180deg, #fff, #fff9f4);
    padding: 1.2rem 1.1rem;
    margin-bottom: 1rem;
}

.admin-dashboard-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--color-orange-muted);
    margin-bottom: 0.35rem;
}

.admin-dashboard-header p {
    margin: 0;
    color: #575254;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.admin-metric-card {
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-orange);
    background: var(--color-white);
    padding: 0.85rem 0.85rem 0.75rem;
}

.admin-metric-card h2 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.admin-metric-value {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.admin-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.admin-chart-card {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 0.8rem;
}

.admin-chart-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.admin-chart-support {
    margin: 0 0 0.55rem;
    color: #5b5456;
    font-size: 0.84rem;
}

.admin-chart-empty {
    margin: 0;
    border: 1px dashed #d8ceca;
    background: #faf7f5;
    border-radius: 8px;
    color: #6a6063;
    font-size: 0.86rem;
    padding: 0.75rem;
}

.admin-chart-card canvas {
    width: 100% !important;
    height: 240px !important;
}

.admin-refurb-section {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0.9rem;
}

.admin-refurb-section h2 {
    margin-bottom: 0.55rem;
}

.admin-refurb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

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

.admin-refurb-table th,
.admin-refurb-table td {
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    padding: 0.62rem 0.52rem;
    vertical-align: top;
}

.admin-refurb-table th {
    font-size: 0.82rem;
    letter-spacing: 0.02rem;
    text-transform: uppercase;
    color: #5c585a;
}

.admin-refurb-table td a {
    color: var(--color-orange-muted);
    text-decoration: none;
}

.admin-refurb-table td a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

@media (max-width: 960px) {
    .admin-refurb-table {
        min-width: 920px;
        width: max-content;
    }

    .admin-refurb-table th,
    .admin-refurb-table td {
        white-space: nowrap;
    }

    .admin-refurb-table td:first-child {
        min-width: 230px;
        white-space: normal;
    }
}

@media (min-width: 961px) {
    .admin-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-chart-card canvas {
        height: 280px !important;
    }
}

/* ======================================================
   REFURBISHMENT WORKFLOW PAGES
====================================================== */

.admin-dashboard .refurb-board-header-actions {
    margin-top: 0.7rem;
}

.refurb-board,
.refurb-create-page,
.refurb-detail-page,
.refurb-customer-page {
    max-width: 1240px;
}

.refurb-board-header,
.refurb-detail-header,
.refurb-customer-header {
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(180deg, #fff, #fff9f4);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.refurb-board-header p:last-child,
.refurb-detail-header p:last-child,
.refurb-customer-header p:last-child {
    margin-bottom: 0;
}

.refurb-board-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-flash-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.admin-flash-item {
    border: 1px solid #d2e8d7;
    border-left: 4px solid #2f8450;
    background: #f4fcf6;
    padding: 0.65rem 0.75rem;
}

.admin-flash-item.is-error {
    border-color: #f1d2d2;
    border-left-color: #b13333;
    background: #fff4f4;
}

.status-pill,
.priority-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.5rem;
    font-size: 0.76rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    white-space: nowrap;
}

.status-pill {
    background: #f5f5f5;
    color: #514c4d;
}

.status-received,
.status-inspection,
.status-diagnosis {
    background: #f3f3f3;
    color: #4e4a4b;
}

.status-awaiting_approval,
.status-awaiting_parts,
.status-needs_attention {
    background: #fff3e2;
    color: #9a5c1f;
    border-color: #f0d5b7;
}

.status-in_progress,
.status-testing {
    background: #eaf2ff;
    color: #29589a;
    border-color: #cad8f4;
}

.status-ready,
.status-ready_for_listing,
.status-listed,
.status-completed,
.status-pass {
    background: #e8f7ee;
    color: #2f8450;
    border-color: #bfe2cb;
}

.status-sold {
    background: #e6fbf8;
    color: #15746c;
    border-color: #b6e5df;
}

.status-cancelled,
.status-archived,
.status-fail {
    background: #f7ecec;
    color: #9a3b3b;
    border-color: #e8c7c7;
}

.priority-low {
    background: #f4f4f4;
    color: #5d585a;
}

.priority-normal {
    background: #f5f3ee;
    color: #5a5148;
}

.priority-high {
    background: #fff1e8;
    color: #8e4d23;
    border-color: #f0ccb5;
}

.priority-urgent {
    background: #fee9e9;
    color: #9a2e2e;
    border-color: #efc2c2;
}

.refurb-board-stats,
.refurb-cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.refurb-stat-card {
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-orange);
    background: #fff;
    padding: 0.75rem;
}

.refurb-stat-card h2 {
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.refurb-stat-card p {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.refurb-filter-panel,
.refurb-panel,
.refurb-customer-panel,
.refurb-form-shell {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0.95rem;
    margin-bottom: 1rem;
}

.refurb-filter-panel h2,
.refurb-panel h2,
.refurb-customer-panel h2 {
    margin-bottom: 0.6rem;
}

.refurb-panel-collapsible {
    padding: 0;
    overflow: hidden;
}

.refurb-panel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.82rem 0.95rem;
    background: #faf8f7;
    list-style: none;
    cursor: pointer;
}

.refurb-panel-summary::-webkit-details-marker {
    display: none;
}

.refurb-panel-summary h2 {
    margin: 0;
}

.refurb-panel-summary-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.refurb-panel-summary:focus-visible {
    outline: 2px solid rgba(243, 116, 49, 0.4);
    outline-offset: -2px;
}

.refurb-panel-disclosure::before {
    content: "+";
    color: #5a5354;
    font-weight: 700;
}

.refurb-panel-collapsible[open] .refurb-panel-disclosure::before {
    content: "-";
}

.refurb-panel-body {
    padding: 0.95rem;
    border-top: 1px solid #e7dfdc;
}

.refurb-filter-form,
.refurb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
}

.refurb-filter-form label,
.refurb-form-field label {
    display: grid;
    gap: 0.28rem;
    font-size: 0.87rem;
    font-weight: 700;
    color: #473f41;
}

.refurb-filter-search {
    grid-column: auto;
}

.refurb-form-field-wide {
    grid-column: 1 / -1;
}

.refurb-filter-actions,
.refurb-form-actions,
.refurb-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.refurb-filter-actions {
    align-self: end;
}

.refurb-form-field input,
.refurb-form-field select,
.refurb-form-field textarea,
.refurb-filter-form input,
.refurb-filter-form select {
    width: 100%;
    padding: 0.56rem 0.6rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-charcoal);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.92rem;
}

.refurb-form-field textarea {
    resize: vertical;
    min-height: 92px;
}

.refurb-form-field.has-error input,
.refurb-form-field.has-error select,
.refurb-form-field.has-error textarea {
    border-color: #c65b5b;
}

.field-error {
    margin: 0.18rem 0 0;
    color: #b13737;
    font-size: 0.8rem;
}

.refurb-field-help {
    margin: 0.22rem 0 0;
    color: #665f61;
    font-size: 0.8rem;
}

.refurb-derived-value {
    margin: 0.1rem 0 0;
    padding: 0.56rem 0.6rem;
    border: 1px dashed #d8ceca;
    background: #faf6f3;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.92rem;
}

.refurb-detail-header,
.refurb-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.refurb-detail-single-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .refurb-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.refurb-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.refurb-inline-form {
    display: grid;
    gap: 0.5rem;
}

.refurb-inline-form label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #51484a;
}

.refurb-inline-form input,
.refurb-inline-form select,
.refurb-inline-form textarea {
    width: 100%;
    padding: 0.56rem 0.6rem;
    border: 1px solid var(--color-border);
    font-family: "Courier New", Courier, monospace;
}

.refurb-customer-status-box {
    margin-top: 0.9rem;
    border: 1px dashed #d8d8d8;
    background: #fafafa;
    padding: 0.75rem;
}

.refurb-customer-status-box h3 {
    margin-bottom: 0.45rem;
}

.refurb-customer-update {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.refurb-job-item {
    margin: 0.28rem 0 0;
    font-size: 0.82rem;
    color: #5a5456;
}

.refurb-open-button {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
}

.refurb-feed-list,
.refurb-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.refurb-feed-item {
    border: 1px solid var(--color-border);
    background: #fffdfc;
    padding: 0.68rem;
}

.refurb-feed-item p:last-child {
    margin-bottom: 0;
}

.refurb-feed-meta {
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    color: #5e5658;
}

.refurb-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}

.refurb-photo-card {
    margin: 0;
    border: 1px solid var(--color-border);
    background: #fff;
    overflow: hidden;
}

.refurb-photo-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.refurb-photo-card figcaption {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    color: #5a5354;
}

.refurb-customer-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.refurb-summary-card {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0.75rem;
}

.refurb-summary-card h2 {
    font-size: 0.86rem;
    margin-bottom: 0.36rem;
}

.refurb-summary-card p {
    margin: 0;
}

.refurb-timeline-panel h2 {
    margin-bottom: 0.8rem;
}

.refurb-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.refurb-timeline-item {
    position: relative;
    padding-left: 1.2rem;
}

.refurb-timeline-item::before {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0;
    bottom: -1rem;
    width: 2px;
    background: #e8dfda;
}

.refurb-timeline-item:last-child::before {
    bottom: 0.9rem;
}

.refurb-timeline-step {
    border: 1px solid #e2d8d3;
    background: #fffdfb;
    padding: 0.85rem 0.9rem;
}

.refurb-timeline-item.is-current .refurb-timeline-step {
    border-color: #dfb8a1;
    background: #fff9f3;
}

.refurb-timeline-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.refurb-timeline-step-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #2c2728;
}

.refurb-timeline-step-time {
    margin: 0.42rem 0 0;
    color: #645c5e;
    font-size: 0.84rem;
}

.refurb-timeline-step-note {
    margin: 0.52rem 0 0;
    color: #3f3839;
}

.refurb-timeline-note-list {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 2px solid #ede2dc;
    display: grid;
    gap: 0.55rem;
}

.refurb-timeline-note {
    background: #faf6f2;
    border: 1px solid #ece1db;
    padding: 0.58rem 0.65rem;
}

.refurb-timeline-note p:last-child {
    margin-bottom: 0;
}

.refurb-timeline-note-meta {
    margin-bottom: 0.35rem;
    color: #706769;
    font-size: 0.79rem;
}

.refurb-quality-step-list {
    gap: 0.6rem;
}

.refurb-quality-step-row {
    display: block;
}

.refurb-quality-step-title {
    display: block;
    color: #1f5f3a;
    font-weight: 700;
}

.refurb-quality-step-note {
    margin-top: 0.48rem;
    margin-left: 1rem;
    padding: 0.5rem 0.62rem;
    border-left: 2px solid #e2c6b7;
    background: #faf4ef;
    color: #4b4345;
    font-size: 0.9rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.refurb-quality-step-note p {
    margin: 0;
}

.refurb-quality-step-note-meta {
    margin-bottom: 0.28rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: #8b6f62;
}

.refurb-quality-table .is-complete td {
    background: #f5faf7;
}

.refurb-static-checkbox-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.refurb-static-checkbox-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-orange);
    pointer-events: none;
}

.refurb-static-checkbox-input:disabled {
    opacity: 1;
}

.refurb-progress-list {
    margin: 0;
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.35rem;
}

ol.refurb-progress-list {
    list-style: none;
    padding-left: 0;
    counter-reset: refurb-progress-counter;
}

ol.refurb-progress-list > .refurb-progress-item {
    counter-increment: refurb-progress-counter;
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    column-gap: 0.4rem;
    align-items: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

ol.refurb-progress-list > .refurb-progress-item > * {
    min-width: 0;
}

ol.refurb-progress-list > .refurb-progress-item::before {
    display: block;
    content: counter(refurb-progress-counter) ".";
    text-align: right;
    font-weight: 700;
    color: #7a7274;
    white-space: nowrap;
}

ol.refurb-progress-list > .refurb-progress-item.is-complete::before {
    color: #2e7d4c;
}

ol.refurb-progress-list > .refurb-progress-item.is-current::before {
    color: #d96326;
}

.refurb-sop-progress-shell {
    margin: 0.6rem 0 0.9rem;
}

.refurb-sop-progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #ece6e3;
    overflow: hidden;
}

.refurb-sop-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f37431, #d96326);
}

.refurb-sop-section {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

.refurb-item-intake-card {
    border: 1px solid var(--color-border);
    background: #fcfcfc;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.refurb-item-intake-card h3 {
    margin-bottom: 0.55rem;
}

.intake-edit-action {
    text-decoration: none;
    padding: 0.35rem 0.52rem;
    font-size: 0.78rem;
}

.refurb-sop-section h3 {
    margin-bottom: 0.35rem;
}

.refurb-customer-page .refurb-sop-section h3 {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.4px;
}

.refurb-sop-summary-line {
    margin-bottom: 0.4rem;
}

.refurb-sop-section-heading {
    margin: 0;
}

.refurb-sop-section-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.72rem;
    width: 100%;
    padding: 0.78rem 0.9rem;
    background: #faf8f7;
    border: 0;
    cursor: pointer;
    list-style: none;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background-color 0.2s ease;
}

.refurb-sop-section-summary::-webkit-details-marker {
    display: none;
}

.refurb-sop-disclosure {
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.1rem;
    border-right: 2px solid #5c5254;
    border-bottom: 2px solid #5c5254;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.refurb-sop-section[open] .refurb-sop-disclosure {
    transform: rotate(45deg);
}

.refurb-sop-section-name {
    font-weight: 700;
}

.refurb-sop-section-progress {
    color: #5f5759;
    font-size: 0.83rem;
}

.refurb-customer-sop-section .refurb-sop-section-content {
    border-top: 1px solid #e7dfdc;
    padding: 0.72rem 0.85rem;
}

.refurb-customer-sop-section .refurb-quality-step-list {
    margin: 0;
}

.refurb-customer-sop-section .admin-refurb-table-wrap {
    margin: 0;
}

.refurb-sop-section-table {
    border-top: 1px solid #e7dfdc;
    background: #fff;
}

.refurb-sop-step-head,
.refurb-sop-step-summary {
    display: grid;
    grid-template-columns: 100px 75px minmax(220px, 1.5fr) 140px 170px 110px;
    gap: 0;
}

.refurb-sop-step-head {
    background: #f5f0ee;
    border-bottom: 1px solid #e5dbd8;
}

.refurb-sop-step-head span {
    padding: 0.52rem 0.65rem;
    border-right: 1px solid #eadfdb;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #574d50;
}

.refurb-sop-step-head span:last-child {
    border-right: 0;
}

.refurb-sop-step {
    border-bottom: 1px solid #eee6e4;
}

.refurb-sop-step:last-child {
    border-bottom: 0;
}

.refurb-sop-step-summary {
    align-items: center;
    list-style: none;
    cursor: pointer;
    background: #fff;
}

.refurb-sop-step-summary::-webkit-details-marker {
    display: none;
}

.refurb-sop-step.is-complete .refurb-sop-step-summary {
    background: #f4fbf7;
}

.refurb-sop-step.is-saving .refurb-sop-step-summary {
    opacity: 0.7;
}

.refurb-sop-cell {
    padding: 0.58rem 0.65rem;
    border-right: 1px solid #f0e8e6;
    font-size: 0.84rem;
    color: #2d2527;
}

.refurb-sop-cell:last-child {
    border-right: 0;
}

.refurb-sop-cell-complete {
    display: flex;
    align-items: center;
}

.refurb-sop-step-detail {
    border-top: 1px solid #eadfdb;
    background: #fcfbfb;
    padding: 0.72rem;
}

.refurb-sop-step-form {
    display: grid;
    gap: 0.35rem;
}

.refurb-sop-step-form label {
    display: grid;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: #544b4d;
}

.refurb-sop-step-form textarea {
    width: 100%;
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--color-border);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.84rem;
}

#sop-checklist .repair-checklist-section {
    overflow: visible;
}

#sop-checklist .refurb-sop-section-content {
    margin: 0;
    padding: 0;
    background: #fff;
}

#sop-checklist .refurb-sop-section-heading {
    margin: 0;
    padding: 0;
}

#sop-checklist .checklist-table-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#sop-checklist .repair-checklist-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    background: #fff;
}

#sop-checklist .repair-checklist-table thead {
    display: table-header-group;
}

#sop-checklist .repair-checklist-table tbody {
    display: table-row-group;
}

#sop-checklist .repair-checklist-table tr {
    display: table-row;
}

#sop-checklist .repair-checklist-table th,
#sop-checklist .repair-checklist-table td {
    display: table-cell;
    border-bottom: 1px solid #eee6e4;
    text-align: left;
    vertical-align: middle;
    padding: 0.62rem 0.66rem;
}

#sop-checklist .repair-checklist-table th {
    background: #f5f0ee;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #574d50;
    white-space: nowrap;
}

#sop-checklist .repair-checklist-table tbody tr.is-complete {
    background: #f4fbf7;
}

#sop-checklist .repair-checklist-table tbody tr.is-saving {
    opacity: 0.7;
}

#sop-checklist .repair-checklist-col-complete,
#sop-checklist .repair-checklist-col-technician,
#sop-checklist .repair-checklist-col-date,
#sop-checklist .repair-checklist-col-status {
    white-space: nowrap;
}

#sop-checklist .repair-checklist-col-complete {
    width: 84px;
}

#sop-checklist .repair-checklist-col-task {
    min-width: 320px;
}

#sop-checklist .repair-checklist-task-main {
    display: grid;
    gap: 0.22rem;
}

#sop-checklist .repair-checklist-task-step {
    display: inline-flex;
    width: fit-content;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: #f0e6e2;
    color: #5f5558;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#sop-checklist .repair-checklist-task-text {
    color: #2f2729;
    line-height: 1.4;
}

#sop-checklist .repair-checklist-col-notes {
    min-width: 220px;
    white-space: normal;
    line-height: 1.35;
}

#sop-checklist .repair-checklist-notes-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
}

#sop-checklist .repair-checklist-note-text {
    flex: 1 1 auto;
}

#sop-checklist .repair-checklist-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
}

#sop-checklist .repair-checklist-checkbox-wrap input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

#sop-checklist .repair-checklist-step-editor {
    margin: 0;
}

#sop-checklist .refurb-sop-section-summary {
    appearance: none;
    border-bottom: 0;
}

#sop-checklist .refurb-sop-section-summary:hover {
    background: #f5f0ed;
}

#sop-checklist .refurb-sop-section-summary:focus-visible,
#sop-checklist .js-step-row-toggle:focus-visible {
    outline: 2px solid #d96326;
    outline-offset: 2px;
}

#sop-checklist .refurb-sop-disclosure::before {
    content: none;
}

#sop-checklist .refurb-sop-disclosure {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #5c5254;
    border-bottom: 2px solid #5c5254;
    transform: rotate(-45deg);
    transition: transform 0.22s ease;
}

#sop-checklist .refurb-sop-section.is-expanded .refurb-sop-disclosure {
    transform: rotate(45deg);
}

#sop-checklist .refurb-sop-section.is-expanded .refurb-sop-section-summary {
    border-bottom: 1px solid #efe6e2;
}

#sop-checklist .js-section-content {
    overflow: hidden;
}

#sop-checklist .refurb-sop-section-table {
    border-top: 0;
}

#sop-checklist .js-step-row-toggle {
    cursor: pointer;
    transition: background-color 0.18s ease;
}

#sop-checklist .js-step-row-toggle:hover {
    background: #faf7f6;
}

#sop-checklist .js-step-row-toggle.is-complete:hover {
    background: #ebf7f0;
}

#sop-checklist .js-step-row-toggle[aria-expanded="true"] {
    background: #f7f3f1;
}

#sop-checklist .repair-checklist-row-caret {
    width: 0.46rem;
    height: 0.46rem;
    flex-shrink: 0;
    border-right: 2px solid #5c5254;
    border-bottom: 2px solid #5c5254;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

#sop-checklist .js-step-row-toggle[aria-expanded="true"] .repair-checklist-row-caret {
    transform: rotate(45deg);
}

#sop-checklist .repair-checklist-step-detail-row.is-hidden {
    display: none;
}

#sop-checklist .repair-checklist-step-detail-row td {
    padding: 0;
    border-bottom: 1px solid #eee6e4;
    background: #fcfbfb;
}

#sop-checklist .repair-checklist-step-editor-panel {
    padding: 0.72rem;
}

#sop-checklist .repair-checklist-step-detail-meta {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.58rem;
}

#sop-checklist .repair-checklist-inline-complete {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.8rem;
    color: #4f4548;
}

#sop-checklist .repair-checklist-inline-complete input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

#sop-checklist .repair-checklist-step-editor-panel .refurb-sop-step-form {
    min-width: 260px;
}

#sop-checklist .repair-checklist-step-editor-panel .refurb-sop-step-form button {
    min-height: 44px;
}

@media (max-width: 767px) {
    #sop-checklist .checklist-table-wrapper {
        overflow: visible;
    }

    #sop-checklist .checklist-table-wrapper::after {
        content: none;
    }

    #sop-checklist .repair-checklist-table {
        display: block;
        border-collapse: separate;
        background: transparent;
    }

    #sop-checklist .repair-checklist-table thead {
        display: none;
    }

    #sop-checklist .repair-checklist-table tbody,
    #sop-checklist .repair-checklist-table tr,
    #sop-checklist .repair-checklist-table td {
        display: block;
        width: 100%;
    }

    #sop-checklist .repair-checklist-table tbody tr.refurb-sop-step {
        border: 1px solid #e8ddda;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 0.5rem;
        background: #fff;
    }

    #sop-checklist .repair-checklist-table tbody tr.repair-checklist-step-detail-row {
        margin: -0.35rem 0 0.75rem;
    }

    #sop-checklist .repair-checklist-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.55rem 0.7rem;
    }

    #sop-checklist .repair-checklist-table td::before {
        content: attr(data-label);
        color: #6e6467;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    #sop-checklist .repair-checklist-col-complete {
        width: auto;
        min-width: 0;
    }

    #sop-checklist .repair-checklist-col-task {
        min-width: 0;
    }

    #sop-checklist .repair-checklist-col-task,
    #sop-checklist .repair-checklist-col-notes {
        align-items: flex-start;
    }

    #sop-checklist .repair-checklist-notes-main {
        justify-content: flex-end;
    }

    #sop-checklist .repair-checklist-col-technician,
    #sop-checklist .repair-checklist-col-date,
    #sop-checklist .repair-checklist-col-status {
        white-space: normal;
    }

    #sop-checklist .repair-checklist-step-detail-row td {
        border: 1px solid #e8ddda;
        border-top: 0;
        border-radius: 0 0 10px 10px;
        background: #fcfbfb;
    }
}

.refurb-form-grid h3 {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0.2rem;
    font-size: 0.92rem;
    color: #443b3d;
}

.sop-template-step-action-stack {
    width: 190px;
    margin-top: 0.35rem;
}

.sop-template-step-action-stack .button-secondary,
.sop-template-step-action-stack .button-danger-solid {
    width: 100%;
}

.button-danger-solid {
    border: 1px solid #9e3128;
    background: #b83e33;
    color: #fff;
}

.button-danger-solid:hover {
    background: #9f342a;
    color: #fff;
}

.sop-editor-section .refurb-sop-section-summary {
    background: #f7f3f1;
}

.sop-editor-section-body {
    padding: 0.7rem 0.75rem 0.85rem;
    display: grid;
    gap: 0.75rem;
}

.sop-editor-section-toolbar {
    display: grid;
    gap: 0.6rem;
    align-items: start;
}

.sop-editor-section-meta {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.8fr));
    gap: 0.55rem;
    align-items: end;
}

.sop-editor-step-table {
    border: 1px solid #e8dfdb;
    border-radius: 8px;
    overflow: hidden;
}

.sop-editor-checklist-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sop-editor-checklist-table th,
.sop-editor-checklist-table td {
    border-bottom: 1px solid #eee6e4;
    text-align: left;
    vertical-align: middle;
    padding: 0.58rem 0.66rem;
}

.sop-editor-checklist-table th {
    background: #f5f0ee;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #574d50;
    white-space: nowrap;
}

.sop-editor-checklist-table tbody tr:last-child td {
    border-bottom: 0;
}

.sop-editor-step-row {
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.sop-editor-step-row:hover {
    background: #faf7f6;
}

.sop-editor-step-row:focus-visible {
    outline: 2px solid #d96326;
    outline-offset: -2px;
}

.sop-editor-step-row.is-expanded {
    background: #f7f3f1;
}

.sop-editor-col-step {
    width: 92px;
    white-space: nowrap;
    font-weight: 700;
    color: #52484b;
}

.sop-editor-col-task {
    min-width: 260px;
    line-height: 1.4;
    color: #2f2729;
}

.sop-editor-col-order {
    width: 90px;
    white-space: nowrap;
    color: #43393c;
}

.sop-editor-col-flags {
    width: 200px;
}

.sop-editor-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.42rem;
    margin: 0.1rem 0.25rem 0.1rem 0;
    border-radius: 999px;
    background: #f0e7e3;
    color: #5d5356;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sop-editor-col-actions {
    width: 140px;
    text-align: right;
    white-space: nowrap;
    color: #574d50;
}

.sop-editor-step-toggle-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sop-editor-step-caret {
    display: inline-block;
    width: 0.44rem;
    height: 0.44rem;
    margin-left: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.sop-editor-step-row[aria-expanded="true"] .sop-editor-step-caret {
    transform: rotate(45deg);
}

.sop-editor-step-detail-row.is-hidden {
    display: none;
}

.sop-editor-step-detail-cell {
    padding: 0;
    background: #fcfbfb;
}

.sop-editor-step-detail-panel {
    padding: 0.72rem;
    border-top: 1px solid #ece4e1;
    display: grid;
    gap: 0.45rem;
}

.sop-editor-step-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.55rem;
    align-items: end;
}

.sop-editor-step-task,
.sop-editor-step-note {
    grid-column: 1 / -1;
}

.sop-editor-step-form .refurb-form-field {
    margin: 0;
}

.sop-editor-step-form .refurb-form-field label {
    font-size: 0.79rem;
    color: #544b4d;
}

.sop-editor-step-form .refurb-form-field input,
.sop-editor-step-form .refurb-form-field select,
.sop-editor-step-form .refurb-form-field textarea {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--color-border);
    background: #fff;
}

.sop-editor-step-form .refurb-form-field textarea {
    min-height: 66px;
}

.sop-editor-add-step {
    border-top: 1px solid #ece4e1;
    padding-top: 0.65rem;
}

.sop-editor-add-step h3 {
    margin-bottom: 0.45rem;
}

@media (max-width: 767px) {
    .sop-editor-checklist-table thead {
        display: none;
    }

    .sop-editor-checklist-table,
    .sop-editor-checklist-table tbody,
    .sop-editor-checklist-table tr,
    .sop-editor-checklist-table td {
        display: block;
        width: 100%;
    }

    .sop-editor-step-row {
        border: 1px solid #e8ddda;
        border-radius: 10px;
        margin-bottom: 0.5rem;
        overflow: hidden;
        background: #fff;
    }

    .sop-editor-step-detail-row {
        margin: -0.35rem 0 0.75rem;
    }

    .sop-editor-checklist-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.55rem 0.7rem;
    }

    .sop-editor-checklist-table td::before {
        content: attr(data-label);
        color: #6e6467;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .sop-editor-col-step,
    .sop-editor-col-order,
    .sop-editor-col-flags,
    .sop-editor-col-actions,
    .sop-editor-col-task {
        width: auto;
        min-width: 0;
        white-space: normal;
        text-align: right;
    }

    .sop-editor-step-detail-cell {
        border: 1px solid #e8ddda;
        border-top: 0;
        border-radius: 0 0 10px 10px;
    }
}

.refurb-progress-item {
    color: #7a7274;
}

.refurb-progress-item.is-complete {
    color: #2e7d4c;
    font-weight: 700;
}

.refurb-progress-item.is-current {
    color: #d96326;
}

@media (min-width: 961px) {
    .refurb-filter-search {
        grid-column: span 2;
    }

    .sop-editor-section-meta {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .sop-editor-step-form {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (min-width: 701px) {
    .checkout-coupon-row {
        grid-template-columns: 1fr auto;
    }

    .checkout-coupon-apply {
        width: auto;
        white-space: nowrap;
    }

    .site-search-form {
        grid-template-columns: 1fr auto;
    }

    .site-search-form .button-primary {
        width: auto;
    }
}

@media (max-width: 700px) {
    .refurb-timeline-item {
        padding-left: 0.85rem;
    }

    .refurb-timeline-item::before {
        left: 0.14rem;
    }

    .refurb-timeline-step {
        padding: 0.72rem 0.75rem;
    }

    .refurb-timeline-note-list {
        padding-left: 0.62rem;
    }
}

.workbench-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
}

.workbench-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #2e2728;
    font-size: 0.86rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.workbench-nav a:hover,
.workbench-nav a.is-active {
    background: #231f20;
    color: #fff;
    border-color: #231f20;
}

.workbench-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.workbench-control-card {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0.85rem;
    display: grid;
    gap: 0.6rem;
}

.workbench-control-card h2 {
    margin: 0;
    font-size: 0.95rem;
}

.workbench-control-card p {
    margin: 0;
    color: #584f52;
    font-size: 0.86rem;
}

.workbench-inline-form {
    display: grid;
    gap: 0.5rem;
}

.workbench-inline-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: #52494b;
}

.workbench-inline-form input[type="number"],
.workbench-inline-form select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--color-border);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.88rem;
}

.kanban-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin-bottom: 0.75rem;
}

.kanban-helper-text {
    margin: 0;
    color: #594f52;
    font-size: 0.86rem;
}

.kanban-sync-status {
    margin: 0;
    min-height: 1.2rem;
    font-size: 0.8rem;
    color: #535053;
}

.kanban-sync-status.is-success {
    color: #2f8450;
}

.kanban-sync-status.is-error {
    color: #9a3535;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(230px, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.kanban-column {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fbfbfb;
    box-shadow: 0 8px 18px rgba(28, 20, 22, 0.06);
    padding: 0.75rem;
    display: grid;
    gap: 0.7rem;
    min-height: 340px;
}

.kanban-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.kanban-column-head h2 {
    margin: 0;
    font-size: 0.95rem;
}

.kanban-column-count {
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1ecea;
    font-size: 0.8rem;
    color: #4e4748;
}

.kanban-cards {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    min-height: 140px;
    border-radius: 8px;
    padding: 0.2rem;
    transition: background-color 0.18s ease, outline-color 0.18s ease;
}

.kanban-cards.is-drop-target {
    background: #fff2e8;
    outline: 1px dashed #d46327;
    outline-offset: 2px;
}

.kanban-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 0.7rem;
    display: grid;
    gap: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: grab;
}

.kanban-card:hover {
    border-color: #d8b8a5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.kanban-card.is-dragging {
    opacity: 0.65;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    cursor: grabbing;
}

.kanban-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.kanban-card h3 {
    margin: 0;
    font-size: 0.92rem;
}

.kanban-card h3 a {
    color: #1f1a1b;
    text-decoration: none;
}

.kanban-card h3 a:hover {
    color: #d96326;
}

.kanban-card-body-text {
    margin: 0;
    color: #5f595a;
    font-size: 0.82rem;
    line-height: 1.45;
}

.kanban-meta {
    display: grid;
    gap: 0.15rem;
}

.kanban-due-date,
.kanban-updated-date {
    margin: 0;
    color: #62595c;
    font-size: 0.76rem;
}

.kanban-due-date {
    font-weight: 700;
}

.kanban-status-form {
    display: grid;
    gap: 0.3rem;
}

.kanban-status-form label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #594f52;
}

.kanban-status-form select {
    width: 100%;
    padding: 0.42rem 0.5rem;
    border: 1px solid var(--color-border);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.84rem;
}

.kanban-empty {
    margin: 0;
    color: #7b7274;
    font-size: 0.84rem;
    border: 1px dashed #d9d1ce;
    background: #faf7f5;
    border-radius: 8px;
    padding: 0.6rem 0.65rem;
}

.workbench-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.button-danger,
.button-danger-outline {
    border-color: #b23f31;
    color: #b23f31;
}

.button-danger:hover,
.button-danger-outline:hover {
    background: #b23f31;
    color: #fff;
}

.workbench-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.workbench-modal[hidden] {
    display: none !important;
}

.workbench-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 13, 0.62);
}

.workbench-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid #2b2224;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

.workbench-modal-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #312729;
    cursor: pointer;
}

.workbench-modal-content h2 {
    margin-right: 2rem;
}

.workbench-delete-warning {
    color: #8b2f24;
}

.workbench-modal-open {
    overflow: hidden;
}

.product-refurb-units {
    margin-top: 1rem;
}

.product-refurb-units p {
    margin-bottom: 0.6rem;
}

@media (min-width: 701px) {
    .kanban-board {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (min-width: 981px) {
    .kanban-board {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (min-width: 1401px) {
    .kanban-board {
        grid-template-columns: repeat(5, minmax(220px, 1fr));
    }

    .kanban-card {
        cursor: default;
    }

    .refurb-sop-step-head {
        display: none;
    }

    .refurb-sop-step-summary {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .refurb-sop-cell {
        border-right: 0;
        border-bottom: 1px solid #f0e8e6;
    }

    .refurb-sop-cell::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #7a7174;
        margin-bottom: 0.2rem;
    }

    .refurb-sop-cell-complete::before {
        margin-bottom: 0.35rem;
    }

    .sop-editor-section-body {
        padding: 0.65rem;
    }

    .sop-editor-section-meta,
    .sop-editor-step-form {
        grid-template-columns: 1fr;
    }

    .sop-template-step-action-stack {
        width: 100%;
    }
}

