/* ==========================================================================
   Sober Premium Minimalist Design System & Stylesheet
   ========================================================================== */

/* --- CSS Variables & Color Palette --- */
:root[data-theme="dark"] {
    --bg-app: #0e0e10;
    --bg-header: rgba(14, 14, 16, 0.9);
    --bg-card: #18181c;
    --bg-card-hover: #1e1e24;
    --bg-modal: #18181c;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --primary: #d4af37;
    /* Warm Gold */
    --primary-glow: rgba(212, 175, 55, 0.15);
    --secondary: #e5e5e5;

    --text-main: #f3f4f6;
    --text-sub: #a1a1aa;
    --text-muted: #71717a;

    --glass-blur: blur(20px);
    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
    --bg-app: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-modal: #ffffff;
    --border-color: #ededed;
    --border-hover: #111111;

    --primary: #111111;
    /* Clean Black */
    --primary-glow: rgba(17, 17, 17, 0.05);
    --secondary: #71717a;

    --text-main: #111111;
    --text-sub: #666666;
    --text-muted: #a1a1aa;

    --glass-blur: blur(12px);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
    --card-shadow: none;
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* --- Global Resets & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button,
input,
select {
    font-family: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #111;
}

/* --- Layout --- */
.app-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header (Sober Style) --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo-dot {
    color: #ff5e00;
    /* Vibrant Orange Point */
}

/* Navigation Links (Categories) */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Inline Minimal Search */
.search-box-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 4px 8px;
    gap: 8px;
    width: 180px;
    transition: width 0.3s ease, border-color 0.3s;
}

.search-box-container:focus-within {
    width: 240px;
    border-color: var(--text-main);
}

.search-icon {
    font-size: 13px;
    color: var(--text-muted);
}

.search-box-container input {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
}

.search-box-container input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
}

/* Action Icons */
.theme-toggle-btn {
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: transform 0.3s;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

.amazon-badge-minimal {
    font-size: 20px;
    color: var(--text-main);
    opacity: 0.8;
}

.amazon-badge-minimal:hover {
    opacity: 1;
    color: #ff9900;
}

/* --- Hero Banner (Sober Home v15 style) --- */
.hero-banner-sober {
    background-color: #f7f7f7;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="dark"] .hero-banner-sober {
    background-color: #121214;
}

.hero-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
}

.hero-banner-content {
    flex: 1;
    max-width: 550px;
    padding: 40px 0;
}

.hero-mini-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-banner-desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 32px;
}

.sober-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #111111;
    color: #ffffff;
    padding: 16px 36px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

[data-theme="dark"] .sober-btn-primary {
    background-color: #ffffff;
    color: #111111;
}

.sober-btn-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

[data-theme="dark"] .sober-btn-primary:hover {
    background-color: #e5e5e5;
}

.hero-banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-banner-image img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* --- Filter & Sort Bar (Sober Style) --- */
.filter-sort-bar-sober {
    max-width: 1400px;
    margin: 60px auto 30px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.results-count-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}

.sort-select {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding: 4px 8px;
    background: transparent;
    transition: border-color 0.3s;
}

.sort-select:hover {
    border-color: var(--text-main);
}

/* --- Main Grid --- */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 80px;
    width: 100%;
}

/* --- Sober Portfolio Filter Style --- */

/* Sober Filter Panel */
.sober-filter-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px 40px;
    margin: 0 auto 40px auto;
    max-width: 900px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.4s ease;
    animation: fadeInDown 0.4s ease forwards;
}

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

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: var(--text-color);
}

/* Brand options */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-checkbox {
    display: none;
}

.brand-label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-label:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.brand-checkbox:checked + .brand-label {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Price options */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 90px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.price-inputs input:focus {
    border-color: var(--text-color);
}

.price-inputs span {
    color: var(--text-muted);
}

.sober-btn-outline {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sober-btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Theme adjustments */
html[data-theme="dark"] .sober-filter-panel {
    background-color: #1a1a1d;
}

.portfolio-filter-wrapper {
    text-align: center;
    margin: 40px 0 30px 0;
}

ul.portfolio-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    flex-wrap: wrap;
    gap: 32px;
}

ul.portfolio-filter li {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: capitalize;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

ul.portfolio-filter li:hover,
ul.portfolio-filter li.active {
    color: var(--text-main);
}

ul.portfolio-filter li:after {
    transition: all 0.5s;
    content: "";
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--text-main);
}

ul.portfolio-filter li.active:after,
ul.portfolio-filter li:hover:after {
    left: 0;
    width: 100%;
}

/* --- Portfolio Grid Layout --- */
.portfolio-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    transition: height 0.5s ease;
}




@media (max-width: 991px) {

    .portfolio-items,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {

    .portfolio-items,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Blog Post Card */



@media (max-width: 991px) {
    .portfolio-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.portfolio-items .portfolio {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-items .portfolio .project-thumbnail-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
}

[data-theme="dark"] .portfolio-items .portfolio .project-thumbnail-wrap {
    background-color: #ffffff;
}

.portfolio-items .portfolio .project-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.portfolio-items .portfolio .project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    mix-blend-mode: multiply;
    transition: transform 0.6s cubic-bezier(0.15, 0.75, 0.5, 1);
}

[data-theme="dark"] .portfolio-items .portfolio .project-thumbnail img {
    mix-blend-mode: normal;
}

.portfolio-items .portfolio:hover .project-thumbnail img {
    transform: scale(1.08);
}

/* Dark overlay */
.portfolio-items .portfolio .view-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 44, 0.75);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.portfolio-items .portfolio:hover .view-more-overlay {
    opacity: 1;
}

/* Circle arrow button */
.portfolio-items .portfolio .view-more {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.8);
    opacity: 0;
}

.portfolio-items .portfolio:hover .view-more {
    transform: scale(1);
    opacity: 1;
}

.portfolio-items .portfolio .view-more svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    stroke: none;
}

.portfolio-items .portfolio .project-title {
    font-size: 24px;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.portfolio-items .portfolio .project-title a {
    color: var(--text-main);
}

.portfolio-items .portfolio:hover .project-title a {
    color: #ff5e00;
}

.portfolio-items .portfolio .project-type a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-items .portfolio .project-type a:hover {
    color: var(--text-main);
}

.portfolio-items .portfolio .project-price {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-main);
}

.portfolio-items .portfolio .project-old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.grid-stock-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
}

.grid-stock-status.in-stock {
    color: #00b862;
}

.grid-stock-status.out-of-stock {
    color: #e63946;
}


/* Custom Minimal Badges Stack (Flat Rectangular) - Top Right Pin */
.card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    align-items: flex-end;
}

.card-badge {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    text-transform: uppercase;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    border-radius: 2px;
}

.badge-hot {
    background: #ff5e00;
    /* Vibrant Orange for Deals */
}

/* Skeletons */
.product-skeleton {
    height: 380px;
    background: linear-gradient(90deg, #f7f7f7 25%, #ededed 50%, #f7f7f7 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

[data-theme="dark"] .product-skeleton {
    background: linear-gradient(90deg, #18181c 25%, #22222a 50%, #18181c 75%);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Modals (Sober Style Glassmorphism) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Minimalist sharp edges */
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

.modal-image-area {
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px;
    aspect-ratio: 1;
}

[data-theme="dark"] .modal-image-area {
    background: #1d1d22;
}

.modal-image-area img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .modal-image-area img {
    mix-blend-mode: normal;
}

.modal-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    text-transform: uppercase;
}

.modal-info-area {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-main);
}

.modal-rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 24px;
}

.modal-stars {
    color: #facc15;
}

.modal-rating-avg {
    font-weight: 700;
}

.modal-reviews-count {
    color: var(--text-muted);
}

.modal-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 30px;
}

.modal-price-container {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.old-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.modal-cta-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buy-now-btn {
    background-color: #111111;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 18px 24px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

[data-theme="dark"] .buy-now-btn {
    background-color: #ffffff;
    color: #111111;
}

.buy-now-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

[data-theme="dark"] .buy-now-btn:hover {
    background-color: #e5e5e5;
}

.cta-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --- Footer --- */
.app-footer {
    background: #f7f7f7;
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 30px;
    margin-top: auto;
}

[data-theme="dark"] .app-footer {
    background: #121214;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-top: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
    max-width: 580px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Responsive & Mobile tweaks --- */
@media (max-width: 991px) {
    .header-container {
        padding: 20px 24px;
    }

    .header-nav {
        display: none;
        /* Hide categories in header menu on mobile, let them use standard grid filter or actions */
    }

    .hero-banner-container {
        flex-direction: column-reverse;
        padding: 40px 24px;
        min-height: auto;
        gap: 30px;
    }

    .hero-banner-content {
        max-width: 100%;
        text-align: center;
        padding: 0;
    }

    .hero-banner-image {
        justify-content: center;
    }

    .hero-main-title {
        font-size: 38px;
    }

    .main-content {
        padding: 0 24px 60px;
    }

    .filter-sort-bar-sober {
        margin: 40px auto 20px;
        padding: 0 24px 20px;
    }
}

/* --- Blog Section (Sober Grid Layout) --- */
.blog-section {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 991px) {
    .blog-section {
        padding: 0 24px;
        margin: 40px auto 60px auto;
    }
}

.blog-header-title {
    text-align: center;
    padding: 80px 0 50px;
    margin-bottom: 20px;
}

.blog-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.blog-sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-sub);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.5px;
}



/* --- Single Blog Post Template (Sober Style) --- */
.single-post-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.single-post-header {
    text-align: center;
    padding: 80px 24px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.single-post-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.single-post-meta a {
    color: var(--text-main);
    transition: color 0.2s;
}

.single-post-meta a:hover {
    color: #ff5e00;
}

.single-post-meta .meta-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.single-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 24px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.single-post-featured {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.single-post-container {
    max-width: 740px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.post-entry-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
}

.post-entry-content p {
    margin-bottom: 28px;
}

.post-entry-content p.lead-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 35px;
}

.post-entry-content h2,
.post-entry-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    margin: 48px 0 20px;
    color: var(--text-main);
}

.post-entry-content h3 {
    font-size: 22px;
}

.post-entry-content blockquote {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-main);
    border-left: 2px solid var(--text-main);
    padding: 10px 0 10px 30px;
    margin: 40px 0;
}

.post-entry-content ul,
.post-entry-content ol {
    margin: 0 0 30px 20px;
    padding: 0;
}

.post-entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-footer-cta {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    margin: 60px 0 40px;
}

[data-theme="dark"] .post-footer-cta {
    background-color: #121214;
}

[data-theme="dark"] .post-footer-cta {
    background-color: #121214;
}

.post-footer-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 0 0 12px;
}

.post-footer-cta p {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0 0 24px;
}

.sober-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #111111;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

[data-theme="dark"] .sober-btn-cta {
    background-color: #ffffff;
    color: #111111;
}

.sober-btn-cta:hover {
    background-color: #ff5e00;
    color: #ffffff;
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 60px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 45%;
}

.post-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.post-nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.post-nav-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    transition: color 0.2s;
}

.post-nav-title:hover {
    color: #ff5e00;
}

/* --- Product Card Link & Amazon Button --- */
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link-wrapper:hover {
    color: inherit;
}

.card-amazon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 10px 16px;
    background: #ff9900;
    color: #111 !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.card-amazon-btn:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.card-amazon-btn i {
    font-size: 14px;
}

/* 3D Benchy Stats Container */
.benchy-stats-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: stretch;
    background-color: #f7f7f7;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .benchy-stats-container {
        flex-wrap: wrap;
    }
}

html[data-theme="dark"] .benchy-stats-container {
    background-color: #1a1a1d;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.benchy-image {
    flex: 0 0 40%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.benchy-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    min-height: 250px;
}

.benchy-table-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benchy-table-container h3 {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
    color: var(--text-main) !important;
    border-bottom: 2px solid #ff5e00;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.benchy-stats-table {
    width: 100%;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benchy-stats-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benchy-stats-table tr {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

.benchy-stats-table tr:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.benchy-stats-table th, .benchy-stats-table td {
    padding: 0;
    text-align: left;
    border: none;
    line-height: 1.4;
}

.benchy-stats-table th {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

.benchy-stats-table th i {
    margin-right: 10px;
    color: #ff5e00;
    width: 20px;
    text-align: center;
}

.benchy-stats-table td {
    color: var(--text-sub);
    font-weight: 500;
    font-size: 14px;
    padding-left: 34px;
}
.sober-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.sober-select:focus {
    border-color: var(--text-color);
}
.sober-select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}
