:root {
    --rail-dark: #1a1f2e; --rail-mid: #2c3347; --rail-amber: #e8951a;
    --rail-amber2: #f5a623; --rail-steel: #8899aa; --rail-light: #f4f1ec;
    --rail-white: #ffffff; --rail-green: #2e7d32; --rail-red: #c62828;
    --sidebar-w: 220px; --header-h: 72px;
    --font-head: "Oswald", sans-serif; --font-body: "Source Sans 3", sans-serif;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.15); --shadow-md: 0 3px 12px rgba(0,0,0,0.2);
    --radius: 4px;
}
html { font-size: 16px; }
body { font-family: var(--font-body); background: var(--rail-light); color: #222; line-height: 1.5; }
a { color: #1a5fa8; text-decoration: none; }
a:hover { color: var(--rail-amber); }
img { border: none; max-width: 100%; height: auto; }

/* =====================
   HEADER
   ===================== */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--rail-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    width: 100%;
    overflow: visible !important;
    clip: unset !important;
    clip-path: none !important;
}
.ui-autocomplete {
    z-index: 1001 !important;
}
#header-inner {
    display: flex !important;
    align-items: center !important;
    height: 72px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: visible !important;
}
#site-logo { flex-shrink: 0; }
#site-logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
#site-logo img { height: 44px; width: auto; display: block; }

.logo-text {
    font-family: var(--font-head);
    font-size: 1.15rem; font-weight: 700;
    color: #fff; letter-spacing: 0.03em; line-height: 1.15;
}
.logo-text span { color: var(--rail-amber); }

#header-search { flex: 1; min-width: 0; display: flex; }
#header-search form { display: flex; align-items: center; width: 100%; }

#header-search input[type=text] {
    flex: 1; height: 36px; padding: 0 12px;
    font-family: var(--font-body); font-size: 0.9rem;
    border: 2px solid var(--rail-steel);
    border-radius: var(--radius);
    background: var(--rail-mid); color: var(--rail-white);
    outline: none; min-width: 0;
}
#header-search input[type=text]::placeholder { color: var(--rail-steel); }
#header-search input[type=text]:focus { border-color: var(--rail-amber); }
#header-search button[type=submit] {
    height: 36px; padding: 0 14px; margin-left: 5px;
    background: var(--rail-amber); border: 2px solid var(--rail-amber);
    border-radius: var(--radius);
    color: var(--rail-dark); font-family: var(--font-head);
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
#header-search button[type=submit]:hover { background: var(--rail-amber2); }

#header-right {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0; font-size: 0.78rem; color: #ccc;
    margin-left: auto;
}
#header-right a {
    color: #ccc; display: flex; align-items: center;
    gap: 4px; white-space: nowrap; text-decoration: none; transition: color 0.2s;
}
#header-right a:hover { color: var(--rail-amber); }
#header-right img { width: 16px; height: 16px; }
.header-sep { color: #444; font-size: 0.7rem; }
.header-label { font-size: 0.78rem; }

#cart-count-display {
    background: var(--rail-amber); color: var(--rail-dark);
    font-family: var(--font-head); font-weight: 700;
    font-size: 0.75rem; padding: 2px 8px; border-radius: 20px;
}

#hamburger-btn {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
#hamburger-btn span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px; transition: 0.25s;
}
#hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger-btn.open span:nth-child(2) { opacity: 0; }
#hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   LAYOUT
   ===================== */
#page-wrap {
    display: flex;
    min-height: calc(100vh - 72px);
    max-width: 1400px;
    margin: 0 auto;
}

/* SIDEBAR */
#sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--rail-white); border-right: 1px solid #ddd;
    padding: 16px 12px;
    position: sticky; top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}
.nav-section-title {
    font-family: var(--font-head); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--rail-steel);
    padding: 12px 4px 4px; border-bottom: 1px solid #eee; margin-bottom: 4px;
}
.nav-section-title:first-child { padding-top: 0; }
a.nav, a.navb {
    display: block; width: 100%; padding: 7px 10px; margin-bottom: 2px;
    border-radius: 4px; font-family: var(--font-body); font-size: 0.85rem;
    color: #333; text-decoration: none; transition: background 0.2s;
    border: none; background: transparent; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.nav { font-weight: 600; color: var(--rail-dark); }
a.nav:hover { background: var(--rail-amber); color: white; }
a.navb:hover { background: var(--rail-light); }
.nav-select {
    width: 100%; padding: 6px 8px; margin-bottom: 6px;
    font-family: var(--font-body); font-size: 0.82rem;
    border: 1px solid #ccc; border-radius: 4px;
    background: #f9f9f9; color: #333; cursor: pointer;
}
.nav-sep { height: 1px; background: #e0e0e0; margin: 8px 0; }
.paypal-badge { text-align: center; padding: 12px 0 4px; }

@keyframes cart-glow {
    0%, 100% { background: #e8f5e9; }
    10%       { background: #b9f6ca; }
}
a.navb.cart-highlight {
    color: var(--rail-green) !important;
    font-weight: 700; border: 1px solid #a5d6a7;
    animation: cart-glow 1.5s ease-in-out infinite;
    border-radius: 4px;
}
/* MAIN */
#main { flex: 1; min-width: 0; padding: 20px 20px 40px; }

/* OVERLAY */
#nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1099;
}
#nav-overlay.visible { display: block; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1 { font-family: var(--font-head); font-size: 1rem; font-weight: 400; color: #555; padding: 0 0 12px; }
h2 {
    font-family: var(--font-head); font-size: 1.2rem; color: var(--rail-red);
    font-weight: 600; letter-spacing: 0.03em; margin: 20px 0 10px;
    border-bottom: 2px solid var(--rail-red); padding-bottom: 4px;
    display: flex; align-items: baseline; gap: 10px;
}
h2 a { color: var(--rail-steel); font-size: 0.8rem; font-family: var(--font-body); font-weight: 400; margin-left: auto; }

.site-tagline {
    font-size: 0.85rem; font-weight: 400; color: #555;
    line-height: 1.5; margin: 10px 0 4px; font-family: var(--font-body);
}

/* =====================
   SECTION HEADINGS
   ===================== */
.section-heading {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 3px solid var(--rail-amber); margin: 24px 0 12px; padding-bottom: 6px;
}
.section-heading h2 {
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
    color: var(--rail-amber); letter-spacing: 0.06em;
    margin: 0; border: none; background: none; padding: 0;
}
.section-more { font-size: 0.8rem; color: var(--rail-steel); text-decoration: none; white-space: nowrap; }
a.section-more:hover { color: var(--rail-amber); }

/* =====================
   PRODUCT GRID
   ===================== */
ul.responsive-thumbnails {
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    width: 100% !important;
}
ul.responsive-thumbnails li {
    background: white !important;
    border-radius: 4px !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    width: auto !important; float: none !important; display: block !important;
}
ul.responsive-thumbnails li:hover {
    box-shadow: var(--shadow-md) !important; transform: translateY(-2px);
}
ul.responsive-thumbnails li a { display: block; color: #333; text-decoration: none; }
ul.responsive-thumbnails li img { width: 100% !important; height: auto !important; display: block !important; }
ul.responsive-thumbnails li div:last-child {
    font-size: 0.72rem; line-height: 1.35; padding: 6px 8px 8px;
    color: #333; font-weight: 600; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 0;
}

/* =====================
   SHIPPING BANNER
   ===================== */
.shipping-banner {
    display: flex; align-items: center; flex-wrap: wrap;
    background: var(--rail-dark); border-radius: var(--radius);
    border: 1px solid var(--rail-amber); margin: 0 0 20px;
    padding: 7px 14px; gap: 6px 16px;
}
.shipping-banner-header {
    font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; color: var(--rail-amber); white-space: nowrap;
    padding-right: 10px; border-right: 1px solid rgba(255,255,255,0.15);
}
.shipping-col {
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.shipping-col .country {
    font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.06em; color: #90caf9;
}
.shipping-col .amount {
    font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; color: #fff;
}
.shipping-col.free-col .amount { color: #69f0ae; }
.shipping-col.free-col .country { color: #a5d6a7; }
.shipping-banner-footer {
    flex-basis: 100%; font-size: 0.7rem; color: #888;
    padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.08);
}
.shipping-banner-footer a { color: var(--rail-amber); font-weight: 600; }
/* =====================
   MAILING LIST SIGNUP BOX
   ===================== */
.signup-box {
    background: var(--rail-dark); border-left: 4px solid var(--rail-amber);
    border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; max-width: 520px;
}
.signup-box h2 {
    font-family: var(--font-head); font-size: 1.1rem; color: var(--rail-amber);
    border: none; margin: 0 0 6px; padding: 0; letter-spacing: 0.06em;
}
.signup-box p { font-size: 0.82rem; color: #aaa; margin: 0 0 14px; line-height: 1.4; }

/* Robly overrides */
#robly_embed_signup {
    background: transparent !important; width: 100% !important;
    border: none !important; font-family: var(--font-body) !important; clear: none !important;
}
#robly_embed_signup form {
    display: flex !important; align-items: center !important; gap: 8px !important;
    position: static !important; text-align: left !important;
}
#robly_embed_signup h2 { display: none !important; }
#robly_embed_signup label { display: none !important; }
#robly_embed_signup input.slim_email {
    flex: 1 !important; display: block !important; height: 38px !important;
    padding: 0 12px !important; font-family: var(--font-body) !important;
    font-size: 0.9rem !important; border: 2px solid var(--rail-steel) !important;
    border-radius: 4px 0 0 4px !important; background: var(--rail-mid) !important;
    color: #fff !important; outline: none !important; width: auto !important;
    min-width: 0 !important; margin: 0 !important; text-indent: 0 !important;
    -webkit-appearance: none !important;
}
#robly_embed_signup input.slim_email::placeholder { color: var(--rail-steel) !important; }
#robly_embed_signup input.slim_email:focus { border-color: var(--rail-amber) !important; background: #333d52 !important; }
#robly_embed_signup input.slim_button,
#robly_embed_signup .slim_button {
    flex-shrink: 0 !important; display: inline-block !important; height: 38px !important;
    padding: 0 16px !important; background: var(--rail-amber) !important;
    border: 2px solid var(--rail-amber) !important; border-radius: 0 4px 4px 0 !important;
    color: var(--rail-dark) !important; font-family: var(--font-head) !important;
    font-size: 0.85rem !important; font-weight: 700 !important;
    letter-spacing: 0.06em !important; cursor: pointer !important;
    white-space: nowrap !important; margin: 0 !important; line-height: 38px !important;
    width: auto !important; min-width: 0 !important;
}
#robly_embed_signup input.slim_button:hover,
#robly_embed_signup .slim_button:hover { background: var(--rail-amber2) !important; border-color: var(--rail-amber2) !important; }

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--rail-dark); color: #aaa; text-align: center;
    font-size: 0.8rem; padding: 24px 20px; margin-top: 40px;
}
.footer a { color: var(--rail-amber); }

/* =====================
   LOGIN PAGE
   ===================== */
.login-wrap {
    display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px;
}
.login-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-md); width: 100%; max-width: 420px; overflow: hidden;
}
.login-card-header {
    background: var(--rail-dark); padding: 24px 28px 20px;
    border-bottom: 3px solid var(--rail-amber);
}
.login-card-header h1 {
    font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
    color: white; letter-spacing: 0.05em; padding: 0; margin: 0 0 4px;
    background: none; border: none; text-align: left;
}
.login-card-header p { color: var(--rail-steel); font-size: 0.85rem; margin: 0; }
.login-error {
    background: #fdecea; border-left: 4px solid var(--rail-red); color: #b71c1c;
    padding: 12px 16px; font-size: 0.85rem; margin: 16px 28px 0; border-radius: var(--radius);
}
.login-error a { color: var(--rail-red); font-weight: 600; }
.login-form {
    padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px;
}

/* =====================
   SHARED FORM ELEMENTS
   (login, signup, settings)
   ===================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.82rem; font-weight: 600; color: #444;
    letter-spacing: 0.03em; float: none; width: auto; text-align: left; margin: 0;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=tel] {
    height: 42px; padding: 0 12px;
    font-family: var(--font-body); font-size: 0.95rem;
    border: 2px solid #ccc; border-radius: var(--radius);
    color: #222; background: #fafafa; outline: none;
    width: 100%; box-sizing: border-box;
}
.form-group input:focus { border-color: var(--rail-amber); background: #fffdf7; }

.form-select {
    height: 42px; padding: 0 32px 0 10px;
    font-family: var(--font-body); font-size: 0.95rem;
    border: 2px solid #ccc; border-radius: var(--radius);
    background-color: #fafafa; color: #222; width: 100%; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.form-select:focus { border-color: var(--rail-amber); background-color: #fffdf7; outline: none; }

.terms-box {
    width: 100%; height: 160px; font-size: 0.78rem; line-height: 1.6;
    color: #444; background: #fafafa; border: 2px solid #ccc;
    border-radius: var(--radius); padding: 10px 12px;
    resize: none; font-family: var(--font-body); box-sizing: border-box;
}

.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #555; }
.form-check input[type=checkbox] {
    width: 16px; height: 16px; border: 2px solid #ccc;
    border-radius: 3px; accent-color: var(--rail-amber); flex-shrink: 0;
}
.form-check label { float: none; width: auto; font-size: 0.85rem; color: #555; font-weight: 400; margin: 0; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.login-btn {
    height: 44px; background: var(--rail-amber); border: none;
    border-radius: var(--radius); color: var(--rail-dark);
    font-family: var(--font-head); font-size: 1rem; font-weight: 700;
    letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s; margin-top: 4px;
}
.login-btn:hover { background: var(--rail-amber2); }
.login-links { text-align: center; font-size: 0.82rem; color: #888; padding-top: 4px; }
.login-links a { color: #1a5fa8; }
.login-links a:hover { color: var(--rail-amber); }
.login-links-sep { margin: 0 8px; color: #ccc; }

/* =====================
   SIGNUP PAGE
   ===================== */
.signup-page-wrap { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; }
.signup-benefits {
    width: 240px; flex-shrink: 0; background: var(--rail-dark);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.signup-benefits-header { background: var(--rail-amber); padding: 14px 18px; }
.signup-benefits-header h2 {
    font-family: var(--font-head); font-size: 1rem; color: var(--rail-dark);
    border: none; margin: 0; padding: 0; letter-spacing: 0.04em;
}
.benefits-list {
    list-style: none; padding: 16px 18px; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.benefits-list li { font-size: 0.85rem; color: #ddd; line-height: 1.4; }
.benefits-note { padding: 0 18px 16px; font-size: 0.78rem; }
.benefits-note a { color: var(--rail-amber); }
.signup-card { max-width: 580px; width: 100%; }
.signup-section-title {
    font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--rail-amber);
    border-bottom: 1px solid #e0d8cc; padding-bottom: 4px; margin-top: 4px;
}
.signup-hint { font-size: 0.78rem; color: #888; margin: 0; line-height: 1.4; }

/* =====================
   MEDIA QUERIES
   ===================== */
@media (max-width: 480px) {
    .shipping-col .amount { font-size: 1.3rem; }
    .shipping-col .country { font-size: 0.72rem; }
}

@media (max-width: 600px) {
    .g-recaptcha {
        transform: scale(0.77); -webkit-transform: scale(0.77);
        transform-origin: 0 0; -webkit-transform-origin: 0 0;
    }
    .signup-box { padding: 16px; }
    #robly_embed_signup form { flex-wrap: wrap; }
    #robly_embed_signup input.slim_email {
        border-radius: 4px !important; border-right: 2px solid var(--rail-steel) !important;
        width: 100% !important; margin-bottom: 8px !important;
    }
    #robly_embed_signup input.slim_button,
    #robly_embed_signup .slim_button { border-radius: 4px !important; width: 100% !important; }
}

@media (max-width: 768px) {
    #site-header { position: relative; }
    #hamburger-btn { display: flex; }
    #header-inner { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
    #site-logo { flex: 1; }
    #header-right { order: 2; margin-left: 0; flex-shrink: 0; }
    #header-search { order: 3; width: 100%; flex-basis: 100%; }
    #header-right .header-label { display: none; }
    #header-right .header-sep { display: none; }
    #site-logo img { height: 38px; }
    .logo-text { font-size: 0.9rem; }

    body { overflow-x: hidden; }

    #sidebar {
        position: fixed; top: 0; left: 0;
        width: 280px; height: 100vh; z-index: 1100;
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        -webkit-transition: -webkit-transform 0.3s ease, visibility 0s linear 0.3s;
        border-right: 2px solid var(--rail-amber);
        padding-top: 68px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        visibility: hidden;
    }
    #sidebar.open {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s ease, visibility 0s linear 0s;
        -webkit-transition: -webkit-transform 0.3s ease, visibility 0s linear 0s;
    }

    #main { padding: 12px; width: 100%; }

    ul.responsive-thumbnails {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .signup-page-wrap { flex-direction: column; padding: 16px 0; }
    .signup-benefits { width: 100%; }
    .form-row { flex-direction: column; gap: 14px; }
    .signup-card { max-width: 100%; }

    .login-wrap { padding: 16px; }
}

@media (min-width: 769px) {
    #hamburger-btn { display: none !important; }
    #nav-overlay { display: none !important; }
}

/* =====================
   MY STUFF / ACCOUNT PAGE
   ===================== */
.mystuff-welcome {
    background: var(--rail-dark);
    border-radius: var(--radius);
    border-left: 4px solid var(--rail-amber);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.mystuff-welcome-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.mystuff-greeting {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.03em;
}
.mystuff-subline {
    font-size: 0.82rem;
    color: var(--rail-steel);
    margin-top: 4px;
}
.mystuff-points {
    text-align: right;
    flex-shrink: 0;
}
.mystuff-points-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rail-amber);
    line-height: 1;
}
.mystuff-points-label {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
    line-height: 1.4;
}
.mystuff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.mystuff-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: #333;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.mystuff-card:hover {
    border-color: var(--rail-amber);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: #333;
}
.mystuff-card-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.mystuff-card-body { flex: 1; }
.mystuff-card-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rail-dark);
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.mystuff-card-desc { font-size: 0.8rem; color: #777; line-height: 1.4; }
.mystuff-card-arrow { font-size: 1.5rem; color: #ccc; flex-shrink: 0; transition: color 0.2s; }
.mystuff-card:hover .mystuff-card-arrow { color: var(--rail-amber); }

@media (max-width: 480px) {
    .mystuff-welcome-inner { flex-direction: column; align-items: flex-start; }
    .mystuff-points { text-align: left; }
    .mystuff-grid { grid-template-columns: 1fr; }
}
/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: #1a5fa8; }
.breadcrumb a:hover { color: var(--rail-amber); }
.breadcrumb-sep { color: #ccc; }

/* =====================
   WISH LIST
   ===================== */
.wishlist-note {
    font-size: 0.82rem;
    color: #777;
    margin: 0 0 16px;
    padding: 8px 12px;
    background: #fff8e1;
    border-left: 3px solid var(--rail-amber);
    border-radius: var(--radius);
}
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}
.wishlist-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.wishlist-empty h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 8px;
}
.wishlist-empty p { font-size: 0.88rem; margin-bottom: 20px; }
.wishlist-wrap {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.wishlist-table { border-collapse: collapse; }
.wishlist-table tr { border-bottom: 1px solid #eee; }
.wishlist-table tr:last-child { border-bottom: none; }
.wishlist-table td { padding: 12px; vertical-align: top; }
/* =====================
   ORDER HISTORY
   ===================== */
.history-notes {
    background: white;
    border-left: 4px solid var(--rail-amber);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #555;
    box-shadow: var(--shadow-sm);
}
.history-notes ul {
    margin: 0; padding: 0 0 0 18px;
    display: flex; flex-direction: column; gap: 6px;
}
.history-notes a { color: var(--rail-amber); }

.order-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #ddd;
    margin-bottom: 24px;
    overflow: hidden;
    overflow-x: auto;
}
.order-box table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.order-box th {
    background: var(--rail-dark);
    color: white;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 8px 10px;
}
td.order-header {
    background: var(--rail-mid);
    color: white;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-bottom: 3px solid var(--rail-amber);
}
.order-header-num {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rail-amber);
}
.order-header-sep { color: #555; margin: 0 8px; }

td.order-points-row {
    background: #f0f4ff;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-bottom: 1px solid #dde;
    color: #444;
}
tr.order-line td {
    font-size: 0.82rem;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    background: #fafafa;
}
tr.order-line:nth-child(even) td { background: white; }
tr.voided-line td {
    background: #fff0f0 !important;
    text-decoration: line-through;
    color: #aaa;
}
td.order-totals-row {
    text-align: right;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f4f4f4;
    border-top: 2px solid #ddd;
    color: #333;
}
.tracking-link {
    font-size: 0.78rem;
    color: #1a5fa8;
    word-break: break-all;
}
.tracking-same { font-size: 0.75rem; color: #aaa; }

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}
.history-empty h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .order-box { font-size: 0.78rem; }
}
/* =====================
   SETTINGS PAGE
   ===================== */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 680px;
}
.settings-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.settings-card-header {
    background: var(--rail-dark);
    color: white;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border-bottom: 2px solid var(--rail-amber);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.settings-card-hint {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--rail-steel);
    font-weight: 400;
    letter-spacing: 0;
}
.settings-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-pw-current {
    max-width: 320px;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-top: 4px;
}

.settings-save-btn {
    height: 42px;
    padding: 0 32px;
    background: var(--rail-amber);
    border: none;
    border-radius: var(--radius);
    color: var(--rail-dark);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.settings-save-btn:hover {
    background: var(--rail-amber2);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.settings-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.settings-success {
    background: #e8f5e9;
    border-left: 4px solid var(--rail-green);
    color: var(--rail-green);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .settings-form { max-width: 100%; }
    .settings-pw-current { max-width: 100%; }
}
/* =====================
   CONTACT PAGE
   ===================== */
.contact-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
}
.contact-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.contact-card-header {
    background: var(--rail-dark);
    color: white;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 12px 20px;
    border-bottom: 2px solid var(--rail-amber);
}
.contact-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    margin-top: 2px;
}
.contact-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rail-steel);
    margin-bottom: 4px;
}
.contact-value {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}
.contact-value a { color: var(--rail-amber); font-weight: 600; }
.contact-value a:hover { color: var(--rail-amber2); }

.contact-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff8e1;
    border-left: 4px solid var(--rail-amber);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}
.contact-notice-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-notice a { color: var(--rail-amber); font-weight: 600; }
.contact-notice a:hover { color: var(--rail-amber2); }
/* =====================
   PRIVACY PAGE
   ===================== */
.privacy-intro {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: white;
    border-left: 4px solid var(--rail-amber);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.privacy-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 3px solid var(--rail-amber);
}
.privacy-card-icon { font-size: 2rem; margin-bottom: 10px; }
.privacy-card-title {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rail-dark);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.privacy-card-desc { font-size: 0.8rem; color: #666; line-height: 1.5; }

.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.privacy-section {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.privacy-section:last-child { border-bottom: none; }
.privacy-section h3 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rail-dark);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.privacy-section p {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
    margin: 8px 0 8px 20px;
}
.privacy-section a { color: var(--rail-amber); font-weight: 600; }

.privacy-contact-bar {
    background: var(--rail-dark);
    color: #ccc;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    max-width: 720px;
}
.privacy-contact-bar a { color: var(--rail-amber); font-weight: 600; }

@media (max-width: 600px) {
    .privacy-grid { grid-template-columns: 1fr; }
}
/* =====================
   SITEMAP PAGE
   ===================== */
.sitemap-block {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.sitemap-block-header {
    background: var(--rail-dark);
    color: white;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 12px 20px;
    border-bottom: 2px solid var(--rail-amber);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitemap-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    background: var(--rail-amber);
    color: var(--rail-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}
.sitemap-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 16px 20px;
    gap: 4px 20px;
}
.sitemap-link-grid--narrow {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.sitemap-link-grid--titles {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.sitemap-link-grid a {
    font-size: 0.82rem;
    color: #1a5fa8;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sitemap-link-grid a:hover { color: var(--rail-amber); }

@media (max-width: 600px) {
    .sitemap-link-grid,
    .sitemap-link-grid--narrow,
    .sitemap-link-grid--titles {
        grid-template-columns: 1fr;
    }
}
/* =====================
   SHIPPING PAGE
   ===================== */
.shipping-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.shipping-highlight-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 12px;
    text-align: center;
    border-top: 3px solid var(--rail-amber);
}
.shipping-highlight-icon { font-size: 1.8rem; margin-bottom: 8px; }
.shipping-highlight-title {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rail-dark);
    margin-bottom: 4px;
}
.shipping-highlight-desc { font-size: 0.76rem; color: #777; line-height: 1.4; }

.shipping-intro {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: white;
    border-left: 4px solid var(--rail-amber);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Generic info card used on shipping + other pages */
.info-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 760px;
}
.info-card-header {
    background: var(--rail-dark);
    color: white;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 12px 20px;
    border-bottom: 2px solid var(--rail-amber);
}
.info-card-body {
    padding: 20px 24px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
}
.info-card-body p { margin-bottom: 10px; }
.info-card-body p:last-child { margin-bottom: 0; }
.info-card-footer {
    background: #f9f7f3;
    border-top: 1px solid #eee;
    padding: 12px 20px;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.6;
}
.info-card-footer a { color: var(--rail-amber); font-weight: 600; }

.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 480px;
}
.shipping-table thead tr {
    background: var(--rail-mid);
    color: white;
}
.shipping-table th {
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: var(--rail-mid);
    color: white;
}
.shipping-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #333;
    display: table-cell;
    width: auto;
}
.shipping-table-group-header td {
    background: #f0ede6;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rail-dark);
    padding: 7px 14px;
    border-top: 2px solid var(--rail-amber);
}
.shipping-table-free td { background: #f0fff4; }
.shipping-free {
    color: var(--rail-green);
    font-size: 1rem;
    font-family: var(--font-head);
}
.shipping-badge {
    display: inline-block;
    font-size: 0.68rem;
    background: var(--rail-amber);
    color: var(--rail-dark);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.returns-steps {
    margin: 10px 0 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.returns-steps li { line-height: 1.5; }
.returns-note {
    background: #fff8e1;
    border-left: 3px solid var(--rail-amber);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #555;
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .shipping-highlights { grid-template-columns: repeat(2, 1fr); }
}
/* =====================
   ORDER STATUS PAGE
   ===================== */
.orderstatus-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 580px;
}
.orderstatus-form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.orderstatus-option { margin-bottom: 4px; }
.orderstatus-option-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rail-amber);
    margin-bottom: 10px;
}
.orderstatus-divider {
    text-align: center;
    color: #bbb;
    font-size: 0.82rem;
    margin: 16px 0;
    position: relative;
}
.orderstatus-help {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border-left: 3px solid var(--rail-amber);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.84rem;
    color: #555;
    line-height: 1.6;
}
.orderstatus-help-icon { font-size: 1.4rem; flex-shrink: 0; }

/* Results */
.orderstatus-result {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 820px;
}
.orderstatus-header {
    background: var(--rail-dark);
    padding: 16px 20px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--rail-amber);
}
.orderstatus-label {
    font-size: 0.7rem;
    font-family: var(--font-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rail-steel);
    margin-bottom: 4px;
}
.orderstatus-value {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}
.orderstatus-shipped {
    color: #69f0ae;
    font-weight: 700;
}
.orderstatus-pending {
    color: var(--rail-amber);
    font-weight: 600;
}
.orderstatus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    min-width: 520px;
}
.orderstatus-table th {
    background: var(--rail-mid);
    color: white;
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 9px 14px;
    text-align: left;
}
.orderstatus-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #333;
    vertical-align: top;
    display: table-cell;
    width: auto;
}
.orderstatus-table tr:last-child td { border-bottom: none; }
.orderstatus-note {
    background: #f9f7f3;
    border-top: 1px solid #eee;
    padding: 10px 20px;
    font-size: 0.78rem;
    color: #888;
}
.orderstatus-note a { color: var(--rail-amber); }

@media (max-width: 600px) {
    .orderstatus-header { gap: 16px; }
}

/* =====================
   PRODUCT PAGE (show.php)
   ===================== */
.product-wrap { display: flex; gap: 24px; align-items: flex-start; }
.product-main { flex: 1; min-width: 0; }
.product-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }

.product-cover { float: left; margin: 0 20px 16px 0; }
.product-cover img {
    display: block; width: 220px; height: auto;
    border-radius: var(--radius); box-shadow: var(--shadow-md); cursor: pointer;
}
.product-cover-caption { font-size: 0.7rem; color: #888; text-align: center; margin-top: 4px; width: 220px; }
.product-cover-enlarge {
    display: block; font-size: 0.72rem; font-weight: 600; text-align: center;
    background: #eee; color: #555; padding: 3px;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none; width: 220px;
}
.product-cover-enlarge:hover { background: var(--rail-amber); color: white; }

.price-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid #e0e0e0;
}
.price-card-header {
    padding: 8px 14px; font-family: var(--font-head); font-size: 1rem;
    font-weight: 700; letter-spacing: 0.06em; color: white;
    display: flex; align-items: center; gap: 8px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.price-card-header.dvd { background: var(--rail-red); }
.price-card-header.blu { background: #1565c0; }

/* No side padding on body — push it to children so add-btn can be edge-to-edge */
.price-card-body { padding: 12px 0 12px; display: flex; flex-direction: column; gap: 8px; }

/* All generic divs inside the card body (stock row, "when" link, etc.) get side padding */
.price-card-body > div  { padding-left: 14px; padding-right: 14px; }
.price-card-body > p    { padding-left: 14px; padding-right: 14px; font-size: 0.85rem; color: #888; }

.price-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: #555; padding-left: 14px; padding-right: 14px; }
.price-amount { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--rail-red); line-height: 1; }
.price-list { font-size: 0.78rem; color: #aaa; text-decoration: line-through; }

.stock-badge {
    display: inline-block; font-family: var(--font-head); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 20px;
}
.stock-badge.in  { background: #e8f5e9; color: var(--rail-green); border: 1px solid #a5d6a7; }
.stock-badge.out { background: #fdecea; color: var(--rail-red);   border: 1px solid #ffcdd2; }

.ship-msg { font-size: 0.78rem; color: #555; text-align: center; padding-left: 14px; padding-right: 14px; }
.ship-msg-eta { background: #fff9c4; padding: 6px 14px; border-radius: var(--radius); margin: 0 14px; }

/* add-btn spans the full card width (edge-to-edge, clipped by overflow:hidden on card) */
.add-btn {
    display: block; padding: 10px;
    font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.05em; text-align: center; border-radius: var(--radius);
    cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.1s; border: none;box-sizing: border-box;margin: 0 14px;
}
.add-btn.dvd { background: var(--rail-red);  color: white; }
.add-btn.blu { background: #1565c0; color: white; }
.add-btn.dvd:hover { background: #b71c1c; color: white; }
.add-btn.blu:hover { background: #0d47a1; color: white; }
.add-btn.disabled { background: #ccc; color: #888; cursor: default; }

/* wishlist-btn is inset — margin keeps it off the card edges */
.wishlist-btn {
    display: block; margin: 0 14px; padding: 7px; font-size: 0.8rem;
    text-align: center; border: 1px solid #ccc; border-radius: var(--radius);
    color: #555; text-decoration: none; background: #fafafa;
    transition: border-color 0.2s, color 0.2s;
}
.wishlist-btn:hover { border-color: var(--rail-amber); color: var(--rail-amber); }

.spec-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    border: 1px solid #e0e0e0; font-size: 0.8rem;
}
.spec-card-header {
    background: var(--rail-dark); color: white;
    font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.08em; padding: 7px 14px; border-bottom: 2px solid var(--rail-amber);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 6px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: top; color: #333; }
.spec-table td:first-child { color: #888; white-space: nowrap; width: 40%; }
.spec-table tr:last-child td { border-bottom: none; }

.info-strip {
    background: var(--rail-dark); border-left: 3px solid var(--rail-amber);
    border-radius: var(--radius); padding: 10px 14px; font-size: 0.8rem; color: #ccc;
}
.info-strip strong { color: var(--rail-amber); }
.info-strip a { color: var(--rail-amber); }

.review-btn {
    display: block; width: 100%; padding: 9px;
    background: var(--rail-amber); color: var(--rail-dark);
    font-family: var(--font-head); font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.05em; text-align: center; border-radius: var(--radius);
    text-decoration: none; transition: background 0.2s;box-sizing: border-box;
}
.review-btn:hover { background: var(--rail-amber2); color: var(--rail-dark); }

.closeout-strip {
    background: #fff9c4; border: 1px solid #f9a825;
    border-radius: var(--radius); padding: 8px 12px;
    font-size: 0.8rem; color: #e65100; font-weight: 600;
    margin-left: 14px; margin-right: 14px;
}

.product-description { font-size: 0.9rem; line-height: 1.7; color: #333; margin-bottom: 16px; overflow-x: hidden; }
.product-description::after { content: ""; display: table; clear: both; }
.product-description img { max-width: 100%; height: auto; }
.product-description table { max-width: 100%; }

.reviews-section { margin-top: 32px; }
.review-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid #e0e0e0;
    padding: 16px 20px; margin-bottom: 16px;
}
.review-meta {
    font-size: 0.78rem; color: #888; margin-bottom: 8px;
    padding-bottom: 8px; border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
}
.review-meta strong { color: #444; }
.review-body { font-size: 0.88rem; line-height: 1.7; color: #333; }
.review-extras { margin-top: 10px; font-size: 0.82rem; }
.review-q { color: var(--rail-red); font-weight: 600; }
.review-a { color: var(--rail-green); }
.review-useful-btn {
    background: #fff9c4; border: 1px solid #f0d040; color: #666;
    font-size: 0.75rem; padding: 3px 10px; border-radius: var(--radius);
    cursor: pointer; margin-top: 10px;
}
.review-useful-btn:hover { background: #f9e84a; }

#tvd-lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); z-index: 9999;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 12px; padding: 20px;
}
#tvd-lightbox.active { display: flex; }
#tvd-lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: 4px; box-shadow: 0 4px 40px rgba(0,0,0,0.8); display: block; }
#tvd-lightbox-title { color: white; font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.04em; text-align: center; max-width: 90vw; }
#tvd-lightbox-close {
    position: fixed; top: 16px; right: 20px; color: white;
    font-size: 2rem; line-height: 1; cursor: pointer;
    background: none; border: none; font-weight: 300; opacity: 0.8; transition: opacity 0.2s;
}
#tvd-lightbox-close:hover { opacity: 1; }

.tvd-stars { position: relative; display: inline-block; color: #ddd; font-size: 1.1rem; letter-spacing: 3px; line-height: 1; }
.tvd-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #f5a623; }

@media (max-width: 768px) {
    .product-wrap { flex-direction: column; }
    .product-sidebar { width: 100%; }
    .product-cover { float: none; margin: 0 0 16px 0; }
    .product-cover img,
    .product-cover-enlarge,
    .product-cover-caption { width: 100%; max-width: 280px; }
}

/* =====================
   CATEGORY LIST (catlist.php)
   ===================== */
.cat-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px; padding: 0; margin: 0 0 24px;
}
.cat-card {
    background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card-link { display: block; text-decoration: none; color: inherit; flex: 1; }
.cat-card-img-wrap { position: relative; background: #f0f0f0; }
.cat-card-img-wrap img { width: 100%; height: auto; display: block; }

.cat-blu-badge {
    position: absolute; top: 6px; right: 6px;
    background: #1565c0; color: white; font-family: var(--font-head);
    font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px;
    letter-spacing: 0.06em; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cat-sale-badge {
    position: absolute; top: 6px; left: 6px;
    background: yellow; color: red; font-family: var(--font-head);
    font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px;
    letter-spacing: 0.06em; border: 2px solid red; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cat-card-body { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 3px; }
.cat-card-title {
    font-size: 0.78rem; font-weight: 600; color: var(--rail-dark); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-vendor { font-size: 0.7rem; color: var(--rail-steel); margin-bottom: 2px; }

.cat-price-row {
    display: flex; align-items: baseline; gap: 5px;
    padding: 3px 0; border-top: 1px solid #f0f0f0; flex-wrap: wrap;
}
.cat-price-row-bd { border-top: 1px dashed #dde4ff; }
.cat-format-label {
    font-family: var(--font-head); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.06em; color: white; padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.cat-format-dvd { background: var(--rail-red); }
.cat-format-bd  { background: #1565c0; }
.cat-price-amt { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--rail-red); }
.cat-price-amt-bd { color: #1565c0; }
.cat-discontinued { font-size: 0.72rem; color: #aaa; font-style: italic; }
.cat-card-list { font-size: 0.72rem; color: #bbb; text-decoration: line-through; font-weight: 400; font-family: var(--font-body); }
.cat-card-stock { font-size: 0.65rem; font-weight: 700; font-family: var(--font-head); letter-spacing: 0.03em; margin-left: auto; }
.cat-card-stock.in  { color: var(--rail-green); }
.cat-card-stock.out { color: #bbb; }

.cat-card-actions { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 5px; }
.cat-add-btn {
    display: block; width: 100%; padding: 6px 0;
    font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.04em; text-align: center; border-radius: var(--radius);
    text-decoration: none; transition: background 0.2s;
}
.cat-add-dvd { background: var(--rail-amber); color: var(--rail-dark); }
.cat-add-dvd:hover { background: var(--rail-amber2); color: var(--rail-dark); }
.cat-add-blu { background: #1565c0; color: white; }
.cat-add-blu:hover { background: #0d47a1; color: white; }

.cat-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 8px 12px;
    background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 0.82rem;
}
.cat-count { color: var(--rail-steel); }
.cat-sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-sort span { color: #888; font-size: 0.78rem; }
.sort-btn {
    padding: 4px 10px; border-radius: 20px; font-size: 0.75rem;
    font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em;
    text-decoration: none; color: #555; background: #f0f0f0;
    border: 1px solid #ddd; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.sort-btn:hover  { background: var(--rail-amber); color: var(--rail-dark); border-color: var(--rail-amber); }
.sort-btn.active { background: var(--rail-dark);  color: white; border-color: var(--rail-dark); }

.load-more-wrap { text-align: center; padding: 24px 0 8px; }
.load-more-btn {
    display: inline-block; padding: 10px 32px;
    background: var(--rail-dark); color: var(--rail-amber);
    font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.06em; border-radius: var(--radius);
    border: 2px solid var(--rail-amber); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.load-more-btn:hover { background: var(--rail-amber); color: var(--rail-dark); }
.load-more-btn:disabled { background: #eee; color: #aaa; border-color: #ddd; cursor: default; }
.load-more-progress { font-size: 0.82rem; color: #888; margin-top: 8px; }

.seo-pagination {
    display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
    margin: 16px 0 8px; padding-top: 16px; border-top: 1px solid #e0e0e0;
}
.seo-pagination a, .seo-pagination span {
    padding: 5px 10px; font-size: 0.78rem; border-radius: var(--radius);
    border: 1px solid #ddd; color: #555; text-decoration: none; background: white;
}
.seo-pagination a:hover { background: var(--rail-amber); color: var(--rail-dark); border-color: var(--rail-amber); }
.seo-pagination .current { background: var(--rail-dark); color: white; border-color: var(--rail-dark); }

.pentrex-notice {
    background: #fff8cc; border: 2px solid #b9b000; border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 16px; font-size: 0.88rem; line-height: 1.5;
}
.pentrex-notice strong { font-size: 0.95rem; display: block; margin-bottom: 6px; }

@media (max-width: 600px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
#header-right #cart-count-display {
    background: var(--rail-amber);
    color: var(--rail-dark) !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
}
#header-right #cart-count-display:hover {
    background: var(--rail-amber2);
    color: var(--rail-dark) !important;
}
/* === WISHLIST HEART BUTTON === */
.cat-heart {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px 6px;
    color: #ccc;
    transition: color 0.2s, transform 0.15s;
    flex-shrink: 0;
    align-self: center;
}

.cat-heart:hover {
    color: #e05;
    transform: scale(1.2);
}

.cat-heart.active {
    color: #e05;
}

@keyframes heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cat-heart-pop {
    animation: heart-pop 0.35s ease forwards;
}
/* === END WISHLIST HEART BUTTON === */
/* === SHOW ME EVERYTHING (showmeeverything.php) === */

.sme-catalog {
    column-count: 2;
    column-gap: 32px;
}

@media (max-width: 700px) {
    .sme-catalog { column-count: 1; }
}

.sme-vendor-group {
    break-inside: avoid;
    margin-bottom: 24px;
}

.sme-vendor-heading {
    font-family: 'Oswald', Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #1c1c0f;
    padding: 5px 10px;
    margin: 0 0 6px;
    border-radius: 3px;
}

.sme-vendor-link {
    color: #c8a55a;
    text-decoration: none;
}

.sme-vendor-link:hover {
    color: #fff;
}

.sme-title-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sme-title-item {
    font-size: 0.8rem;
    line-height: 1.6;
    border-bottom: 1px dotted #e5e0d5;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sme-title-item:last-child {
    border-bottom: none;
}

.sme-title-item a:first-child {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.sme-title-item a:first-child:hover {

    color: #1a4fa0;
}

.sme-bd-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 5px;
    border-radius: 3px;
    background: #1a4fa0;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.5;
}

.sme-bd-badge:hover {
    background: #0d3270;
    color: #fff;
}

/* === END SHOW ME EVERYTHING === */
/* ============================================================
   WISHLIST HEART BUTTON — replace previous heart block in stylev3.css
   ============================================================ */

.cat-card-img-wrap {
    position: relative;
    display: block;
    /* NO line-height:0 here — it shrinks the SALE/HD badges */
}


/* Kill the baseline gap under the image without touching line-height */
.cat-card-img-wrap img {
    display: block;
}

/* Ensure badges keep their own sizing regardless of parent */
.cat-blu-badge,
.cat-sale-badge {
    line-height: normal;
    font-size: 11px;   /* restore if inherited value collapses them */
}

/* Bottom-right of the thumbnail */
.cat-heart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);

    /* Empty state: grey heart */
    color: transparent;
    text-shadow: 0 0 0 #aaa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, text-shadow 0.15s, color 0.15s, transform 0.12s;
    flex-shrink: 0;
}

.cat-heart:hover {
    background: rgba(255, 255, 255, 1);
    text-shadow: 0 0 0 #c0392b;
    transform: scale(1.15);
}

/* Active / saved: bold solid red */
.cat-heart.active {
    background: rgba(255, 255, 255, 0.95);
    color: #c0392b;
    text-shadow: none;
}

.cat-heart.active:hover {
    color: #96231a;
    text-shadow: none;
    transform: scale(1.15);
}

/* Pop animation */
@keyframes heartPop {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1);    }
}

.cat-heart.cat-heart-pop {
    animation: heartPop 0.35s ease-out forwards;
}

/* Actions row — just cart buttons now */
.cat-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 8px;
    flex-wrap: wrap;
}
/* === WISHLIST CARDS (mywishlist.php / single_col) === */

.wishlist-note {
    background: #fdf8ee;
    border-left: 4px solid #c8a55a;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: #555;
    margin: 0 0 18px;
    border-radius: 0 3px 3px 0;
}

/* Outer list — stacks cards vertically */
.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Card shell ── */
.wl-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px;
    transition: box-shadow 0.15s;
}

.wl-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ── Thumbnail ── */
.wl-card-img-link {
    flex: 0 0 auto;
    display: block;
}

.wl-card-img {
    display: block;
    width: 100px !important;
    height: auto !important;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* ── Body ── */
.wl-card-body {
    flex: 1;
    min-width: 0;
}

.wl-card-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.wl-card-title {
    font-family: 'Oswald', Verdana, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1c1c0f;
    text-decoration: none;
    line-height: 1.3;
}

.wl-card-title:hover { color: #c8a55a; }

.wl-sale-badge {
    display: inline-block;
    background: #b92b27;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

.wl-card-desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    margin: 4px 0 10px;
}

/* ── Price / meta ── */
.wl-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wl-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wl-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d7a3a;
}

.wl-list {
    font-size: 0.82rem;
    color: #999;
    text-decoration: line-through;
}

.wl-discontinued {
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
}

.wl-meta-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wl-meta-item { font-size: 0.78rem; color: #777; }

.wl-stock       { font-size: 0.78rem; font-weight: 600; }
.wl-stock.in    { color: #2d7a3a; }
.wl-stock.out   { color: #b92b27; }

/* ── Action buttons ── */
.wl-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Oswald', Verdana, sans-serif;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.wl-btn-cart {
    background: #1c1c0f;
    color: #c8a55a !important;
}

.wl-btn-cart:hover {
    background: #333320;
    color: #fff !important;
}

.wl-btn-delete {
    background: #f5f5f5;
    color: #555 !important;
    border: 1px solid #ccc;
}

.wl-btn-delete:hover {
    background: #b92b27;
    color: #fff !important;
    border-color: #b92b27;
}

/* ── Empty state ── */
.wishlist-empty {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.wishlist-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.wishlist-empty h3 {
    font-family: 'Oswald', Verdana, sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-style: normal;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .wl-card { flex-direction: column; }
    .wl-card-img { width: 100% !important; max-width: 160px !important; }
    .wl-card-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* === END WISHLIST CARDS === */


/* ============================================================
   WISHLIST HEART BUTTON — replace previous heart block in stylev3.css
   ============================================================ */

.cat-card-img-wrap {
    position: relative;
    display: block;
    /* NO line-height:0 here — it shrinks the SALE/HD badges */
}

/* Kill the baseline gap under the image without touching line-height */
.cat-card-img-wrap img {
    display: block;
}

/* Ensure badges keep their own sizing regardless of parent */
.cat-blu-badge,
.cat-sale-badge {
    line-height: normal;
    font-size: 11px;   /* restore if inherited value collapses them */
}

/* Bottom-right of the thumbnail */
.cat-heart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);

    /* Empty state: grey heart */
    color: transparent;
    text-shadow: 0 0 0 #aaa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, text-shadow 0.15s, color 0.15s, transform 0.12s;
    flex-shrink: 0;
}

.cat-heart:hover {
    background: rgba(255, 255, 255, 1);
    text-shadow: 0 0 0 #c0392b;
    transform: scale(1.15);
}

/* Active / saved: bold solid red */
.cat-heart.active {
    background: rgba(255, 255, 255, 0.95);
    color: #c0392b;
    text-shadow: none;
}

.cat-heart.active:hover {
    color: #96231a;
    text-shadow: none;
    transform: scale(1.15);
}

/* Pop animation */
@keyframes heartPop {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1);    }
}

.cat-heart.cat-heart-pop {
    animation: heartPop 0.35s ease-out forwards;
}

/* Actions row — just cart buttons now */
.cat-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 8px;
    flex-wrap: wrap;
}

/* ============================================================
   COMPACT CARD STARS — append to stylev3.css
   Used by catlist.php cards (not the full review widget)
   ============================================================ */

.cat-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 3px 0 5px;
    cursor: default;
    line-height: 1;
}

/* Each star position */
.cat-star {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

/* Full: solid gold */
.cat-star-full {
    color: #f5a623;
}

/* Empty: grey outline star ☆ */
.cat-star-empty {
    color: #ccc;
}

/* Half: grey ☆ base with gold ★ clipped to left 50% on top */
.cat-star-half {
    position: relative;
    display: inline-block;
    color: #ccc;            /* grey ☆ shows through on right half */
}

.cat-star-half-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;         /* gold ★ clipped to left half */
    display: block;
    white-space: nowrap;
}

/* Review count */
.cat-stars-count {
    font-size: 0.72rem;
    color: #888;
    line-height: 1;
    margin-left: 3px;
}
/* =====================
   FAQ PAGE (faqs.php)
   ===================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rail-dark);
    letter-spacing: 0.02em;
    padding: 14px 20px 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--rail-amber);
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-q:hover {
    background: #fdf8ee;
    border-left-color: var(--rail-amber);
}

.faq-item.open .faq-q {
    background: var(--rail-dark);
    color: var(--rail-amber);
    border-left-color: var(--rail-amber);
}

.faq-item.open .faq-q::after {
    color: var(--rail-amber);
}

.faq-a {
    display: none;
    padding: 0 20px 16px 20px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.75;
    border-left: 3px solid var(--rail-amber);
    background: #fdfbf7;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-a p {
    margin-bottom: 10px;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a a {
    color: var(--rail-amber);
    font-weight: 600;
}

.faq-a a:hover {
    color: var(--rail-dark);
}

@media (max-width: 600px) {
    .faq-q { font-size: 0.88rem; padding: 12px 14px; }
    .faq-a { padding: 0 14px 14px; }
}
/* === END FAQ PAGE === */

/* ── Search filter panel (light background version) ─────────────────
   Replace the entire srch-* block in stylev3.css with this
   ────────────────────────────────────────────────────────────────── */

.srch-filter-box {
    border: 1px solid #d4b483;
    border-left: 5px solid var(--rail-amber, #f5a623);
    border-radius: var(--radius, 6px);
    background: #fdf6ea;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Header bar */
.srch-filter-hdr {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #f5a623;
    padding: .5rem 1rem;
}
.srch-filter-hdr-icon {
    color: #5a3800;
    font-size: .7rem;
}
.srch-filter-hdr-text {
    font-family: var(--font-head, Oswald, sans-serif);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #3a2200;
}
.srch-filter-badge {
    background: #3a2200;
    color: #f5a623;
    font-family: var(--font-head, Oswald, sans-serif);
    font-size: .68rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
}
.srch-clear-lnk {
    margin-left: auto;
    font-size: .78rem;
    color: #5a3800;
    text-decoration: underline;
    cursor: pointer;
    transition: color .15s;
}
.srch-clear-lnk:hover { color: #000; }

/* Body */
.srch-filter-body {
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

/* Three toggle pills */
.srch-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.srch-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .9rem;
    border: 2px solid #c8a96e;
    border-radius: 20px;
    font-size: .85rem;
    color: #555;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
    user-select: none;
    white-space: nowrap;
    font-weight: 500;
}
.srch-pill input[type="checkbox"] { display: none; }
.srch-pill:hover {
    border-color: var(--rail-amber, #f5a623);
    color: #222;
    background: #fffbf0;
}
.srch-pill-on {
    background: var(--rail-amber, #f5a623) !important;
    border-color: #c8820a !important;
    color: #2a1800 !important;
    font-weight: 700;
}
.srch-pill-icon { font-size: .78rem; }

/* Producer section */
.srch-prod-section {
    border-top: 1px solid #e0c990;
    padding-top: .75rem;
}
.srch-prod-label {
    font-family: var(--font-head, Oswald, sans-serif);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #888;
    margin-bottom: .5rem;
}
.srch-prod-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .1rem .5rem;
    max-height: 150px;
    overflow-y: auto;
    padding-right: .25rem;
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}
.srch-prod-scroll:hover {
    mask-image: none;
    -webkit-mask-image: none;
}
.srch-prod-scroll::-webkit-scrollbar { width: 4px; }
.srch-prod-scroll::-webkit-scrollbar-track { background: #f0e4c8; }
.srch-prod-scroll::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 2px; }

.srch-prod-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .35rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: .83rem;
    color: #444;
    transition: background .1s;
}
.srch-prod-item input[type="checkbox"] { display: none; }
.srch-prod-item:hover { background: #f0e4c8; color: #111; }
.srch-prod-on {
    color: #1a4a2a !important;
    background: #d4edda !important;
    font-weight: 600;
}
.srch-prod-on::before {
    content: '✓';
    color: #2a7a44;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}
.srch-prod-name { flex: 1; }
.srch-prod-count {
    color: #aaa;
    font-size: .75rem;
    flex-shrink: 0;
}
.srch-prod-on .srch-prod-count { color: #6aaa84; }

/* Footer */
.srch-filter-foot {
    padding: .6rem 1rem .75rem;
    border-top: 1px solid #e0c990;
    background: #fdf0d5;
}
.srch-apply-btn {
    background: var(--rail-green, #4a7c59);
    color: #fff;
    border: none;
    border-radius: var(--radius, 6px);
    padding: .45rem 1.5rem;
    font-family: var(--font-head, Oswald, sans-serif);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .06em;
    transition: background .15s;
}
.srch-apply-btn:hover { background: #3a6849; }

/* No results message */
.srch-no-results {
    margin: 2rem 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
    .srch-prod-scroll { grid-template-columns: 1fr 1fr; max-height: 200px; }
    .srch-pill { font-size: .8rem; padding: .32rem .7rem; }
}
.ac-vendor {
    font-size: .78rem;
    color: #888;
    font-weight: normal;
    margin-left: .3rem;
}
/* ── Sale pill — category listing cards ─────────────────────── */
.cat-price-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 3px;
    font-size: 0.78rem;
}

.cat-list-label {
    color: #888;
    font-size: 0.75rem;
}
.cat-sale-pill {
    display: inline-block;
    background: #FFD700;
    color: #1a1a1a;
    font-family: var(--font-head, sans-serif);
    font-weight: 700;
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: 4px;
}
/* ── Sale badge — show.php detail page price cards ──────────── */
.sale-badge-strip {
    margin: 4px 0 6px;
}
.sale-badge-pill {
    display: inline-block;
    background: #FFD700;
    color: #1a1a1a;
    font-family: var(--font-head, sans-serif);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}
.ac-search-link {
    color: var(--rail-amber);
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    margin-bottom: 2px;
}