/* ============================================================
   LOGAN'S REPLICAS — Design System
   Based on Layout A (Cinematic Stack) + Mockup G (Definitive)
   Light-to-dark transition, Playfair Display + Plus Jakarta Sans
   ============================================================ */

/* Google Fonts loaded in header.html */

/* ---- CSS Variables ---- */
:root {
    /* Light palette */
    --ivory: #faf8f3;
    --ivory-warm: #f2efe6;
    --cream: #e4dfd4;
    --text-dark: #18160f;
    --text-mid: #6b6458;
    --text-light: #a09882;
    --border-light: #ddd7cc;

    /* Dark palette */
    --dark: #0c0b09;
    --dark-mid: #141310;
    --dark-card: #18170f;
    --dark-elevated: #1e1c16;
    --ivory-on-dark: #ede8da;
    --dim-on-dark: #8a8474;
    --muted-on-dark: #5c5850;
    --border-dark: #26231c;

    /* Accents */
    --amber: #c8a04a;
    --amber-hover: #d8b05a;
    --amber-glow: rgba(200, 160, 74, 0.12);
    --copper: #c07040;
    --copper-soft: rgba(192, 112, 64, 0.08);

    /* Spacing */
    --page-pad: 60px;
    --section-pad: 100px;
    --max-width: 1400px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--ivory);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--copper); }
h1 strong, h2 strong { font-weight: 700; }

/* ---- Custom Fonts ---- */
@font-face {
    font-family: 'Apple Garamond';
    src: url('/static/fonts/AppleGaramond.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---- Navigation ---- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 var(--page-pad);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(221, 215, 204, 0.6);
    transition: background 0.4s, border-color 0.4s;
}
.site-nav.nav-dark {
    background: rgba(12, 11, 9, 0.92);
    border-color: rgba(38, 35, 28, 0.6);
}
.site-nav.nav-dark .nav-logo { color: var(--ivory-on-dark); }
.site-nav.nav-dark .nav-links a { color: var(--muted-on-dark); }
.site-nav.nav-dark .nav-links a:hover { color: var(--ivory-on-dark); }
.site-nav.nav-dark .nav-cta { background: var(--amber); color: var(--dark) !important; }

.nav-logo {
    font-family: 'Apple Garamond', 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: normal;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.4s;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-dark); }
.nav-cta {
    background: var(--text-dark) !important;
    color: var(--ivory) !important;
    padding: 9px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all 0.3s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-dark); margin: 5px 0;
    transition: all 0.3s;
}
.site-nav.nav-dark .nav-toggle span { background: var(--ivory-on-dark); }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s;
    text-align: center;
}
.btn-primary {
    background: var(--text-dark);
    color: var(--ivory);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--text-dark); }
.btn-amber {
    background: var(--amber);
    color: var(--dark);
}
.btn-amber:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--amber-glow);
}

/* Dark section button variants */
.dark-section .btn-primary { background: var(--amber); color: var(--dark); }
.dark-section .btn-primary:hover { background: var(--amber-hover); box-shadow: 0 8px 25px var(--amber-glow); }
.dark-section .btn-outline { color: var(--ivory-on-dark); border-color: var(--border-dark); }
.dark-section .btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ---- Section Helpers ---- */
.section { padding: var(--section-pad) var(--page-pad); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
}

/* Dark sections */
.dark-section {
    background: var(--dark);
    color: var(--ivory-on-dark);
}
.dark-section .section-title { color: var(--ivory-on-dark); }
.dark-section p { color: var(--dim-on-dark); }

/* Transition gradient */
.section-transition {
    height: 140px;
    background: linear-gradient(to bottom, var(--ivory), var(--dark));
}

/* ---- Marquee ---- */
.marquee {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    overflow: hidden;
    background: var(--ivory-warm);
}
.marquee-track {
    display: flex;
    gap: 50px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    flex-shrink: 0;
}
.marquee-item span {
    color: var(--amber);
    margin: 0 18px;
    font-size: 0.55rem;
}

/* ---- Cards (Light) ---- */
.card-light {
    background: var(--ivory-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}
.card-light:hover {
    transform: translateY(-5px);
    border-color: var(--cream);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* ---- Cards (Dark) ---- */
.card-dark {
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s;
}
.card-dark:hover {
    border-color: #333;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ---- Product Cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card { cursor: pointer; transition: transform 0.45s; text-decoration: none; color: inherit; display: block; }
.product-card:hover { transform: translateY(-6px); }
.product-card-img {
    width: 100%;
    min-height: 250px;
    background: var(--ivory-warm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    padding: 20px;
}
.product-card:hover .product-card-img {
    border-color: var(--cream);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}
.product-card-img img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-card-era {
    position: absolute;
    top: 16px; left: 16px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--ivory);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
}
.product-card-numeral {
    position: absolute;
    bottom: 16px; right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
    opacity: 0.7;
}
.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.product-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
    max-width: 260px;
}
.product-card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}
.product-card-link {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--amber);
    text-decoration: none;
    transition: color 0.3s;
}
.product-card-link:hover { color: var(--copper); }

/* ---- Video Cards (Dark) ---- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.video-card:hover {
    border-color: #333;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.video-card-thumb {
    min-height: 180px;
    background: var(--dark-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
    padding: 16px;
}
.video-card-thumb img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.video-play {
    width: 52px; height: 52px;
    border: 2px solid var(--amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: 1.1rem;
    transition: all 0.3s;
    position: absolute;
}
.video-card:hover .video-play {
    background: var(--amber);
    color: var(--dark);
    box-shadow: 0 0 25px var(--amber-glow);
}
.video-card-info { padding: 20px 22px; }
.video-card-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ivory-on-dark);
    margin-bottom: 5px;
}
.video-card-date { font-size: 0.72rem; color: var(--muted-on-dark); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--text-mid);
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--ivory);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--amber);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* Dark form variants */
.dark-section .form-input,
.dark-section .form-textarea,
.dark-section .form-select {
    background: var(--dark-card);
    border-color: var(--border-dark);
    color: var(--ivory-on-dark);
}
.dark-section .form-input:focus,
.dark-section .form-textarea:focus {
    border-color: var(--amber);
}
.dark-section .form-label { color: var(--dim-on-dark); }

/* Email subscribe row */
.email-row { display: flex; gap: 8px; max-width: 400px; width: 100%; }
.email-row input {
    flex: 1;
    padding: 13px 18px;
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--ivory-on-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.email-row input:focus { border-color: var(--amber); }
.email-row button {
    padding: 13px 26px;
    background: var(--amber);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.email-row button:hover { background: var(--amber-hover); }

/* ---- Dual CTA (Community + Newsletter) ---- */
.dual-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-dark);
}
.dual-cta .cta-half {
    padding: 85px var(--page-pad);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dual-cta .cta-half:first-child {
    border-right: 1px solid var(--border-dark);
}
.dual-cta .cta-half h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--ivory-on-dark);
    margin-bottom: 12px;
}
.dual-cta .cta-half p {
    font-size: 0.88rem;
    color: var(--muted-on-dark);
    margin-bottom: 30px;
    max-width: 340px;
    line-height: 1.6;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--border-dark);
    padding: 60px var(--page-pad) 28px;
}
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 55px;
    margin-bottom: 50px;
}
.footer-brand .nav-logo { color: var(--ivory-on-dark); font-size: 1.2rem; }
.footer-brand p {
    font-size: 0.82rem;
    color: var(--muted-on-dark);
    line-height: 1.7;
    margin-top: 12px;
}
.footer-col h4 {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--dim-on-dark);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 4px 0;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bar {
    border-top: 1px solid var(--border-dark);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bar p { font-size: 0.7rem; color: var(--muted-on-dark); }

/* ---- Page Hero (reusable for inner pages) ---- */
.page-hero {
    padding: 140px var(--page-pad) 60px;
    text-align: center;
    position: relative;
}
.page-hero-dark {
    background: var(--dark);
    color: var(--ivory-on-dark);
}
.page-hero .section-eyebrow { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .page-hero-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}
.page-hero-dark .page-hero-desc { color: var(--dim-on-dark); }

/* ---- Content Container ---- */
.content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* ---- Blog/News Cards ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.4s;
}
.post-card:hover { transform: translateY(-5px); }
.post-card-img {
    width: 100%;
    min-height: 180px;
    background: var(--ivory-warm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 18px;
    overflow: hidden;
    transition: border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.post-card:hover .post-card-img { border-color: var(--cream); }
.post-card-img img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.post-card-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 6px;
}
.post-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.post-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* ---- Article/Post Content ---- */
.article-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px var(--page-pad);
}
.article-content p {
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 24px;
    color: var(--text-mid);
}
.article-content h2 {
    font-size: 1.8rem;
    margin: 48px 0 20px;
    color: var(--text-dark);
}
.article-content h3 {
    font-size: 1.3rem;
    margin: 36px 0 16px;
    color: var(--text-dark);
}
.article-content img {
    border-radius: var(--radius-md);
    margin: 30px 0;
}
.article-content ul, .article-content ol {
    margin: 0 0 24px 24px;
    color: var(--text-mid);
}
.article-content li { margin-bottom: 8px; font-size: 1rem; }
.article-content blockquote {
    border-left: 3px solid var(--amber);
    padding: 16px 24px;
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-dark);
    background: var(--ivory-warm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content code {
    background: var(--ivory-warm);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
}
.article-content pre {
    background: var(--dark);
    color: var(--ivory-on-dark);
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ---- Wiki Cards ---- */
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wiki-card {
    background: var(--ivory-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.wiki-card:hover {
    border-color: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.wiki-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.wiki-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* ---- Auth Forms (Login/Register) ---- */
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 140px var(--page-pad) 80px;
}
.auth-box {
    background: var(--ivory-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.auth-box h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}
.auth-box .auth-sub {
    text-align: center;
    color: var(--text-mid);
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.auth-box .btn { width: 100%; margin-top: 8px; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-mid);
}
.auth-footer a { color: var(--amber); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { color: var(--copper); }

/* ---- Error/Message States ---- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.alert-error {
    background: rgba(192, 64, 64, 0.08);
    border: 1px solid rgba(192, 64, 64, 0.2);
    color: #c04040;
}
.alert-success {
    background: rgba(64, 160, 80, 0.08);
    border: 1px solid rgba(64, 160, 80, 0.2);
    color: #40a050;
}

/* ---- Admin Styles ---- */
.admin-layout {
    padding: 100px var(--page-pad) 60px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.admin-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.admin-card {
    background: var(--ivory-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.admin-card:hover {
    border-color: var(--cream);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.admin-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.admin-card p { font-size: 0.82rem; color: var(--text-mid); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-light);
}
.admin-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.admin-table tr:hover { background: var(--ivory-warm); }

.admin-btn {
    display: inline-block;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 6px;
}
.admin-btn-approve { background: rgba(64, 160, 80, 0.1); color: #40a050; border: 1px solid rgba(64, 160, 80, 0.2); }
.admin-btn-delete { background: rgba(192, 64, 64, 0.1); color: #c04040; border: 1px solid rgba(192, 64, 64, 0.2); }
.admin-btn-edit { background: rgba(200, 160, 74, 0.1); color: var(--amber); border: 1px solid rgba(200, 160, 74, 0.2); }

/* ---- Shipping Options ---- */
.shipping-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--ivory-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ---- Star Rating ---- */
.star { font-size: 1.3rem; }
.star-filled { color: var(--amber); }
.star-empty { color: var(--cream); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 50px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.pagination a {
    border: 1px solid var(--border-light);
    color: var(--text-mid);
}
.pagination a:hover { border-color: var(--amber); color: var(--amber); }
.pagination .active {
    background: var(--text-dark);
    color: var(--ivory);
    border: none;
}

/* ---- Slideshow ---- */
.slideshow-container {
    position: relative;
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}
.slideshow-container { position: relative; overflow: hidden; }
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.slide img { max-width: 100%; max-height: 500px; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-lg); margin: 0 auto; }
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.slide-nav:hover { background: rgba(0, 0, 0, 0.7); }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }

/* ---- Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.42s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    :root { --page-pad: 32px; --section-pad: 70px; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .video-grid { grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: 1fr 1fr; }
    .wiki-grid { grid-template-columns: 1fr 1fr; }
    .dual-cta { grid-template-columns: 1fr; }
    .dual-cta .cta-half:first-child { border-right: none; border-bottom: 1px solid var(--border-dark); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    :root { --page-pad: 20px; --section-pad: 50px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-toggle { display: block; }
    .product-grid, .video-grid, .post-grid, .wiki-grid { grid-template-columns: 1fr; }
    .product-card-img { min-height: 200px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bar { flex-direction: column; gap: 4px; }
    .auth-container { padding-top: 100px; }
}
</style>
