/*
Theme Name: SwissBioLuxe
Theme URI: https://swissbioluxe.com
Author: SwissBioLuxe
Author URI: https://swissbioluxe.com
Description: Clean and minimal WordPress theme for SwissBioLuxe
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swissbioluxe
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Page Layout */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 40px 0 0 0;
}

/* Posts */
article {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #666;
}

.entry-meta {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.entry-content {
    margin-top: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 5px 0;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #666;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo,
.modern-logo-link svg,
.sidebar-logo svg {
    max-height: 45px;
    width: auto;
    height: auto;
}

/* Footer logo */
.blx-logo svg {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ========================================
   SwissBioLuxe Custom HTML Pages - Global Styles
   ======================================== */

:root {
    --ink: #4C5867;
    --card: #fcfcfd;
    --gap: clamp(16px, 3.5vw, 28px);
    --pad: clamp(12px, 3vw, 20px);
    --xpad: clamp(10px, 3.5vw, 20px);
    --space: clamp(12px, 3vw, 24px);
}

.sbl {
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sbl section {
    padding: var(--pad) var(--xpad);
    margin-block: var(--space);
}

.sbl .container {
    max-width: 1200px;
    margin: 0 auto;
}

.sbl .card {
    background: var(--card);
    border-radius: 12px;
}

.sbl h1 {
    margin: 0 0 12px 0;
    font-size: clamp(22px, 3.6vw, 30px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--ink);
}

.sbl h2 {
    margin: 0 0 12px 0;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--ink);
}

.sbl p {
    margin: 0;
    font-size: clamp(15px, 2.6vw, 17px);
    line-height: 1.6;
      margin-bottom: 1.2em!important;
}

.sbl .grid {
    display: grid;
    gap: var(--gap);
}

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

.sbl .three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.sbl .six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sbl figure {
    margin: 0;
}

.sbl img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform .35s ease;
}

.sbl img:hover {
    transform: scale(1.03);
}

.sbl .square {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.sbl .btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sbl .btn {
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    color: #aa7e45;
    background: var(--card);
    transition: all .2s ease;
}

.sbl .btn:hover {
    background: var(--ink);
    color: #fff;
}

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

.sbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(14px, 2.4vw, 16px);
}

.sbl th,
.sbl td {
    padding: .6rem .7rem;
    text-align: left;
    border-bottom: 1px solid #e6e8eb;
    white-space: nowrap;
}

.sbl th {
    font-weight: 600;
}

.sbl thead th {
    position: sticky;
    top: 0;
    background: #fff;
}

.sbl caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    padding: .2rem .2rem .6rem;
}

.no-top-margin {
    margin-top: 0 !important;
}

.offer-title {
    font-size: clamp(22px, 3.6vw, 30px) !important;
}

/* Utility Classes - Eliminating Inline CSS Repetition */
.sbl .card.pad-sm {
    padding: clamp(12px, 3.5vw, 20px);
}

.sbl .card.pad,
.sbl .card-pad {
    padding: clamp(16px, 4vw, 28px);
}

.sbl .card.pad-grid {
    padding: clamp(12px, 3vw, 20px);
}

.sbl .card.pad-grid-sm {
    padding: clamp(12px, 2.6vw, 18px);
}

.sbl .card.text-center {
    text-align: center;
}

.sbl .product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.sbl .product-layout > * {
    flex: 1 1 360px;
}

.sbl .product-img {
    display: flex;
    justify-content: center;
}

.sbl .product-img img {
    width: 100%;
    max-width: 520px;
    object-fit: cover;
}

.sbl .mt-12 {
    margin-top: 12px;
}

.sbl .mb-12 {
    margin-bottom: 12px;
}

.sbl .centered-img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.sbl .text-left {
    text-align: left;
}

figure > img  {
    margin-bottom:40px;
}


@media (max-width: 1024px) {
    .sbl .four {
        grid-template-columns: repeat(2, 1fr);
    }
    .sbl .six {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    .sbl .two {
        grid-template-columns: 1fr;
    }
    .sbl .three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sbl .four {
        grid-template-columns: 1fr;
    }
    .sbl .six {
        grid-template-columns: repeat(2, 1fr);
    }
    .offer-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 400px) {
    .sbl .six {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .sbl .btn {
        padding: 12px 20px;
    }
}

/* ========================================
   Common Styles from Custom HTML Pages
   Extracted to eliminate code duplication
   ======================================== */

/* Video Frame Components */
.sbl #promo-video {
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.sbl .video-frame-container {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.sbl .video-frame-video {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.3);
    transform-origin: center;
}

@media (max-width: 480px) {
    .sbl #promo-video .video-frame video,
    .sbl .video-frame-video {
        transform: scale(1.15);
    }
}

/* Luxus HiTech Section Responsive Grid */
@media (max-width: 960px) {
    .sbl #luxus-hitech > div > div:first-child {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sbl #luxus-hitech > div > div:first-child {
        grid-template-columns: 1fr;
    }
}

/* Swiss BioLuxe Matratzen Section */
@media (max-width: 640px) {
    section[aria-label="Swiss BioLuxe Matratzen"] > div > div {
        position: static !important;
        text-align: center !important;
        margin-bottom: 15px;
    }
}

/* Common Section Styles */
.sbl .section-white {
    box-sizing: border-box;
    display: block;
    width: 100%;
    background: #ffffff;
    padding: clamp(20px, 6vw, 40px) clamp(12px, 5vw, 20px);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: #4C5867;
}

.sbl .section-gradient {
    box-sizing: border-box;
    border-radius: 12px;
    width: 100%;
    background: linear-gradient(180deg, #fafafa, #f5f5f5);
    padding: clamp(30px, 8vw, 60px) clamp(16px, 5vw, 32px);
    text-align: center;
}

/* Common Utility Classes */
.sbl .max-w-1100 {
    max-width: 1100px;
    margin: 0 auto;
}

.sbl .text-center {
    text-align: center;
}

.sbl .m-0 {
    margin: 0;
}

.sbl .mb-10 {
    margin-bottom: 10px;
}

.sbl .mt-gap {
    margin-top: var(--gap);
}

.sbl .border-radius-12 {
    border-radius: 12px;
}

/* Product Card Styles */
.sbl article.card[itemscope][itemtype*="Product"] {
    display: flex;
    flex-direction: column;
}

.sbl article.card[itemscope][itemtype*="Product"] figure {
    margin: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sbl article.card[itemscope][itemtype*="Product"] figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.sbl article.card[itemscope][itemtype*="Product"] > div {
    padding: clamp(16px, 4vw, 24px);
    flex: 1;
}

/* Legacy Product Figure Styles (for backwards compatibility) */
.sbl #produkte figure,
.sbl #produkte-2 figure,
.sbl #produkte-4 figure,
.sbl #produkte-5 figure,
.sbl #produkte-no-price figure {
    margin: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 24px;
}

/* Bio Stoffe Grid Enhancements */
.sbl #bio-stoffe .grid.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.sbl #bio-stoffe .grid.three > div {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.sbl #bio-stoffe .grid.three > div .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sbl #bio-stoffe .grid.three > div h3 {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .sbl #bio-stoffe .grid.three {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sbl #bio-stoffe .grid.three > div {
        margin-bottom: 20px;
    }
}

/* Image Top Square Utility */
.sbl .img-top-square {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Luxus HiTech Section Images */
.sbl #luxus-hitech figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Features-4 Grid Enhancements (4-column card style) */
.sbl #features-4 .grid.four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.sbl #features-4 .grid.four > div {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.sbl #features-4 .grid.four > div .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .sbl #features-4 .grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sbl #features-4 .grid.four {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sbl #features-4 .grid.four > div {
        margin-bottom: 20px;
    }
}

/* General Grid Card Enhancements (for all pages except specific IDs) */
.sbl .grid.three > div:has(.img-top-square),
.sbl .grid.two > div:has(.img-top-square) {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.sbl .grid.three > div .card-body,
.sbl .grid.two > div .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Common Element Styles */
.sbl figure {
    margin: 0;
}

.sbl .rounded {
    border-radius: 12px;
}

/* Video Frame Styles (consistent across all pages) */
.sbl .video-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.sbl .video-frame video {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.28);
    transform-origin: center;
    max-width: 100%;
}

/* Section Variants */
.sbl .section-white {
    box-sizing: border-box;
    display: block;
    width: 100%;
    background: #ffffff;
    padding: clamp(20px, 6vw, 40px) clamp(12px, 5vw, 20px);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: #4C5867;
}

/* Typography Utility Classes */
.sbl .mt-6 {
    margin-top: 6px;
}

.sbl .mt-8 {
    margin-top: 8px;
}

.sbl .mt-10 {
    margin-top: 10px;
}

.sbl .mb-8 {
    margin-bottom: 8px;
}

.sbl .mb-10 {
    margin-bottom: 10px;
}

.sbl .pt-12 {
    padding-top: 12px;
}

/* Responsive Heading Adjustments */
@media (max-width: 640px) {
    .sbl h1 {
        font-size: 24px !important;
    }
}


