/* CSS Variables & Base */

:root{
    --cardinal:#990000;
    --cardinal-dark:#7a0000;
    --gold:#FFC72C;

    --bg:#f7f7f8;
    --panel:#ffffff;
    --text:#1f2328;
    --muted:#6b7280;
    --border:#e5e7eb;

    --max:1200px;
    --radius-lg:14px;
    --radius-md:12px;
    --radius-sm:8px;
    --shadow-sm:0 1px 2px rgba(0,0,0,.04);
    --shadow-md:0 6px 18px rgba(0,0,0,.06);
}

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

html, body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

img, picture, video, canvas, svg { display:block; max-width:100%; }
input, button, select, textarea { font:inherit; color:inherit; }
button { cursor:pointer; }

a { color:var(--cardinal); text-decoration:none; }
a:hover { text-decoration:underline; }

:focus-visible {
    outline:3px solid var(--gold);
    outline-offset:2px;
}

/* Motion safety */

@media (prefers-reduced-motion:reduce){
    * { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* Layout Helpers */

.wrap { max-width:var(--max); margin:0 auto; padding:0 16px; }
.w-full { width:100%; }

/* Header / Navbar */

header{
    position:sticky; top:0; z-index:50;
    background:linear-gradient(90deg,var(--cardinal),var(--cardinal-dark));
    color:#fff;
    border-bottom:4px solid var(--gold);
    box-shadow:var(--shadow-sm);
}

.nav{ display:flex; align-items:center; gap:18px; justify-content:space-between; padding:14px 0; }
.brand{
    font-weight:800;
    letter-spacing:.4px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    color: #fff !important;
}
.brand:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    text-decoration: none !important;
}
.brand small{ font-weight:600; opacity:.9; }
.links{ display:flex; gap:14px; flex-wrap:wrap; }
.links a{
    color:#fff;
    opacity:.95;
    padding:6px 10px;
    border-radius:8px;
    position: relative;
    transition: all 0.3s ease;
}
.links a:hover{
    background:rgba(255,255,255,.1);
    border-radius: 12px;
    text-decoration:none;
}

.cta{
    background:var(--gold); color:#3b2f00;
    border-radius:10px; padding:8px 12px; font-weight:700;
    border:1px solid rgba(0,0,0,.06);
}
.cta:hover {
    background: rgba(255, 199, 44, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero */

.hero{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    margin:18px 0;
    padding:22px;
    box-shadow:var(--shadow-sm);
}
.hero h1{ margin:2px 0 6px; font-size:clamp(22px,3.2vw,30px); }
.hero p{ margin:0 0 14px; color:var(--muted); }

.search{ display:flex; gap:10px; }
.search input{
    flex:1;
    padding:14px 14px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    font-size:16px;
    background:#fff;
}
.search button{
    padding:12px 16px; border:0; border-radius:var(--radius-md);
    background:var(--cardinal); color:#fff; font-weight:700;
}
.hero-video {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-video__overlay {
    position: absolute;
    inset: 0;
    background: rgba(240, 240, 240, 0.35);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-video__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 780px;
    padding: 0 20px;
    animation: fadeUp 1.4s ease forwards;
}
.hero-video__content h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

.hero-video__content p {
    font-size: clamp(18px, 2.2vw, 22px);
    color: #f8f8f8;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Stats + Summary Bar */
.stats{
    display:flex; gap:18px; flex-wrap:wrap;
    color:#111; background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    padding:10px 14px; margin:14px 0;
    box-shadow:var(--shadow-sm);
}
.stats span{ color:#111; }

.summary{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); padding:10px 14px; box-shadow:var(--shadow-sm);
}
.summary .left{ font-weight:600; }
.summary .right{ display:flex; gap:8px; align-items:center; }
.summary select,
.summary button{
    padding:10px 12px; border:1px solid var(--border);
    border-radius:var(--radius-sm); background:#fff;
}
.summary .reset{ background:#fff; color:#111; }

/* Main Layout (Filters + Grid) */

.layout{ display:grid; grid-template-columns:260px 1fr; gap:18px; margin:18px 0; }
@media (max-width:980px){ .layout{ grid-template-columns:1fr; } }

/* Sidebar Filters */

.filters{
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-sm);
}
.filters h3{ margin:6px 0 8px; }
.filters hr{ border:0; border-top:1px solid var(--border); margin:12px 0; }
.check{ display:flex; align-items:center; gap:8px; margin:8px 0; }
.range{ margin:8px 0; }
.range input[type="range"]{ width:100%; }
.filters select{
    width:100%;
    padding:10px;
    border-radius:var(--radius-sm);
    border:1px solid var(--border);
    background:#fff;
}
.filters .btn{ margin-top:8px; }

/* Grid & Cards */

.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:1180px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .grid{ grid-template-columns:1fr; } }

.card{
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); overflow:hidden;
    display:flex; flex-direction:column;
    box-shadow:var(--shadow-sm);
}
.thumb{
    aspect-ratio:4/3;
    background:#f2f2f2;
    display:block; background-size:cover; background-position:center;
}
.card .meta{ padding:12px; }
.title{ font-weight:700; margin:0 0 6px; }
.price{ font-weight:800; }
.badge{
    display:inline-block; font-size:12px;
    border:1px solid var(--border);
    border-radius:999px; padding:2px 8px; margin-left:8px;
    color:#333; background:#fafafa;
}
.meet{ color:var(--muted); font-size:14px; margin-top:4px; }
.actions{ margin-top:auto; padding:12px; display:flex; gap:8px; }

/* Buttons */

.btn{
    flex:1; text-align:center; border-radius:10px; padding:10px 12px;
    border:1px solid var(--border); background:#fff;
    transition:transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn.primary{ background:var(--cardinal); color:#fff; border-color:var(--cardinal); }
.btn.primary:hover{ background:var(--cardinal-dark); }



/* LANDING PAGE - Featured Picks */
.featured h2, .deals h2, .price-cards h2, .edit h2, .post-cta h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 10px;
}
.featured-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}
.featured-item {
    background: #f5f5f5;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.featured-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.featured-item:hover {
    transform: translateY(-5px);
}
.price-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.price-card {
    background: linear-gradient(120deg, var(--cardinal), var(--gold));
    border-radius: var(--radius-lg);
    padding: 40px 60px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}
.price-card:hover {
    transform: translateY(-3px);
}

/* LANDING PAGE - Edit Section */
.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 20px;
}
.edit-header h2 {
    margin: 0;
}
.edit-header p {
    color: var(--muted);
    margin: 0;
}
.see-more {
    color: var(--cardinal);
    text-decoration: none;
    font-weight: 600;
}
.edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.edit-grid img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* Footer */

footer{ color:var(--muted); text-align:center; padding:28px 0 44px; }

/* Utility (screen-reader) */

.sr-only{
    position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.item-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 260px;
    padding: 10px 12px;
    background: #ffffff;
    color: #990000;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: none;
    border: 1px solid #ddd;
    display: block;
}

.item-tooltip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #111;
    font-weight: 600;
}
#floating-logo {
    position: absolute; /* Changed from fixed to absolute so it scrolls WITH the page */
    top: 10px;          /* Adjust vertical position */
    left: 5%;           /* Adjust horizontal alignment */
    width: 100px;       /* Big size */
    height: 100px;
    z-index: 9999;      /* On top of EVERYTHING */
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3)); /* Nice shadow */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    #floating-logo {
        width: 70px;
        height: 70px;
        top: 5px;
        left: 10px;
    }
    .brand {
        padding-left: 70px !important; /* Adjust text padding for mobile */
    }
}