/*
Theme Name: Dental Instruments Theme
Description: Ein WordPress-Theme für Dentalinstrumente, basierend auf dentale-instrumente.de
Version: 1.0
Author: Your Name
*/

/* Bootstrap 5 CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Custom Styles - strikt basierend auf dentale-instrumente.de */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --header-bg: #ffffff;
    --nav-bg: #f8f9fa;
    --border-color: #dee2e6;
    
    /* Responsive Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* Mobile Typography Scale */
    --font-size-xs-mobile: 0.6875rem;  /* 11px */
    --font-size-sm-mobile: 0.75rem;    /* 12px */
    --font-size-base-mobile: 0.875rem; /* 14px */
    --font-size-lg-mobile: 1rem;       /* 16px */
    --font-size-xl-mobile: 1.125rem;   /* 18px */
    --font-size-2xl-mobile: 1.25rem;   /* 20px */
    --font-size-3xl-mobile: 1.5rem;    /* 24px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: var(--font-size-base-mobile);
}

@media (min-width: 768px) {
    body {
        font-size: var(--font-size-base);
    }
}

/* Responsive Typography Utilities */
.text-xs { font-size: var(--font-size-xs-mobile) !important; }
.text-sm { font-size: var(--font-size-sm-mobile) !important; }
.text-base { font-size: var(--font-size-base-mobile) !important; }
.text-lg { font-size: var(--font-size-lg-mobile) !important; }
.text-xl { font-size: var(--font-size-xl-mobile) !important; }
.text-2xl { font-size: var(--font-size-2xl-mobile) !important; }
.text-3xl { font-size: var(--font-size-3xl-mobile) !important; }

@media (min-width: 768px) {
    .text-xs { font-size: var(--font-size-xs) !important; }
    .text-sm { font-size: var(--font-size-sm) !important; }
    .text-base { font-size: var(--font-size-base) !important; }
    .text-lg { font-size: var(--font-size-lg) !important; }
    .text-xl { font-size: var(--font-size-xl) !important; }
    .text-2xl { font-size: var(--font-size-2xl) !important; }
    .text-3xl { font-size: var(--font-size-3xl) !important; }
}

/* Header - strikt wie dentale-instrumente.de */
header.bg-white {
    background: var(--header-bg) !important;
    max-width: 990px;
    margin: 0 auto;
    width: 100%;
}



/* Header Container zentrieren */
.header-wrapper .container {
    max-width: none;
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile Navigation Icons zentrieren */
.mobile-nav-icons {
    padding-left: 15px;
    padding-right: 15px;
}

/* Top Navigation Container zentrieren */
.top-nav .container {
    max-width: 990px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

header img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Header Image Container - Full Width */
.header-image-container {
    width: 100%;
    max-width: 990px;
    margin: 0 auto;
    background: #fff;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Header-Bild selbst zentrieren */
.header-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Header-Bild Link zentrieren */
.header-image-container a {
    display: block;
    text-align: center;
    max-width: 990px;
    margin: 0 auto;
}

.header-logo {
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding: 0;
}

.header-logo:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Responsive Header-Bild für kleinere Bildschirme */
@media (max-width: 1200px) {
    .header-logo {
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    .header-logo {
        max-height: 100px;
    }
}

header h1 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl-mobile);
    font-weight: 600;
    margin: 0;
}

@media (min-width: 768px) {
    header h1 {
        font-size: var(--font-size-2xl);
    }
}

/* Search Box Styling - wie in dentale-instrumente.de */
.search-box {
    max-width: 100%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    border: 1px solid var(--border-color);
    height: 45px;
    border-right: none;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-base-mobile);
}

@media (min-width: 768px) {
    .search-box .form-control {
        font-size: var(--font-size-base);
    }
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    height: 45px;
    padding: 0 20px;
    font-size: var(--font-size-base-mobile);
}

@media (min-width: 768px) {
    .search-box .btn {
        font-size: var(--font-size-base);
    }
}

.search-box .btn:hover {
    background: #1e4a8a;
    border-color: #1e4a8a;
}

/* Top Navigation Bar - wie auf dentale-instrumente.de */
.top-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-sm-mobile);
    min-height: 35px;
}

@media (min-width: 768px) {
    .top-nav {
        font-size: var(--font-size-sm);
    }
}

.top-nav .nav-link {
    color: #666 !important;
    padding: 0.4rem 0.8rem;
    border-right: 1px solid var(--border-color);
    font-weight: 400;
    text-decoration: none;
}

.top-nav .nav-link:last-child {
    border-right: none;
}

.top-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: #e9ecef;
    text-decoration: none;
}

.top-nav .navbar-nav {
    align-items: center;
}

/* Navigation - strikt wie dentale-instrumente.de */
.navbar.navbar-expand-lg {
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

.navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Main Navigation - wie auf dentale-instrumente.de */
.main-nav {
    background: var(--header-bg);
    border-bottom: 2px solid var(--primary-color);
    min-height: 50px;
}

.main-nav .navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: var(--font-size-base-mobile);
}

@media (min-width: 768px) {
    .main-nav .navbar-nav .nav-link {
        font-size: var(--font-size-sm);
    }
}

.main-nav .navbar-nav .nav-link:last-child {
    border-right: none;
}

.main-nav .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: #f8f9fa;
    text-decoration: none;
}

.main-nav .navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
}

.main-nav .navbar-toggler:focus {
    box-shadow: none;
}

/* Header and navigation container width */
header, nav {
    width: 100%;
    max-width: 100%;
}

/* Container max-width für Desktop */
.container {
    max-width: 990px !important;
}

/* Header Wrapper überschreibt Container-Regel */
.header-wrapper {
    max-width: 990px !important;
    margin: 0 auto !important;
    width: 100%;
}

/* Header Navigation Bar - wie im Bild */
.header-navigation-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
    font-size: var(--font-size-xs-mobile);
    color: #333;
}

@media (min-width: 768px) {
    .header-navigation-bar {
        font-size: var(--font-size-xs);
    }
}

.nav-container {
    max-width: 990px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Search Styling */
.header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.header-search-input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: var(--font-size-xs-mobile);
    background: #fff;
    outline: none;
}

@media (min-width: 768px) {
    .header-search-input {
        font-size: var(--font-size-xs);
    }
}

.header-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.header-search-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    font-size: var(--font-size-xs-mobile);
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .header-search-btn {
        font-size: var(--font-size-xs);
    }
}

.header-search-btn:hover {
    background: #1e4a8a;
    border-color: #1e4a8a;
}

.breadcrumb-nav {
    font-weight: 400;
}

.breadcrumb-nav span {
    color: #333;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.account-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.account-nav .separator {
    color: #666;
    font-weight: 300;
}

/* Search Box Styling - wie in dentale-instrumente.de */
.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ced4da;
}

.search-box .btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid #ced4da;
    border-left: none;
}

/* Main Content Layout - strikt wie dentale-instrumente.de */
main.container {
    min-height: 60vh;
    padding-top: 1rem;
    padding-bottom: 2rem;
    max-width: 990px !important;
}

/* Mobile: Padding-Top entfernen */
@media (max-width: 767.98px) {
    main.container {
        padding-top: 0;
        margin-top: 0 !important;
    }
}

/* Content Area - wie auf dentale-instrumente.de */
.content-area {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card Styling - wie in dentale-instrumente.de */
.card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    /* Entferne height/min-height/max-height falls vorhanden */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    /* Entferne height/min-height/max-height falls vorhanden */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 1rem 1.25rem;
}

/* Sidebar Styling - wie in dentale-instrumente.de */
aside .card {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 185px;
    max-width: 185px;
}

/* Mobile: Sidebar Cards volle Breite */
@media (max-width: 768px) {
    aside .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

aside .card-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-sm-mobile);
}

@media (min-width: 768px) {
    aside .card-header {
        font-size: var(--font-size-sm);
    }
}

aside .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.1rem 1rem;
    background: #fff;
    margin: 0;
    line-height: 1.1;
    min-height: auto;
    height: auto;
    max-height: none;
}

/* WordPress Menu Item Styling - Minimale Höhe */
aside .list-group-item .menu-item,
aside .list-group-item .menu-item-type-taxonomy,
aside .list-group-item .menu-item-object-product_cat,
aside .list-group-item li.menu-item,
aside .list-group-item li.menu-item-type-taxonomy,
aside .list-group-item li.menu-item-object-product_cat {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

/* WordPress Menu Links */
aside .list-group-item .menu-item a,
aside .list-group-item .menu-item-type-taxonomy a,
aside .list-group-item .menu-item-object-product_cat a {
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

aside .list-group-item:last-child {
    border-bottom: none;
}

aside .list-group-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: var(--font-size-sm-mobile);
    display: block;
}

@media (min-width: 768px) {
    aside .list-group-item a {
        font-size: var(--font-size-sm);
    }
}

aside .list-group-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Category Navigation - wie auf dentale-instrumente.de */
.category-nav .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.1rem 1rem;
    margin: 0;
    line-height: 1.1;
    min-height: auto;
    height: auto;
    max-height: none;
}

.category-nav .list-group-item .menu-item,
.category-nav .list-group-item .menu-item-type-taxonomy,
.category-nav .list-group-item .menu-item-object-product_cat,
.category-nav .list-group-item li.menu-item,
.category-nav .list-group-item li.menu-item-type-taxonomy,
.category-nav .list-group-item li.menu-item-object-product_cat {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

.category-nav .list-group-item .menu-item a,
.category-nav .list-group-item .menu-item-type-taxonomy a,
.category-nav .list-group-item .menu-item-object-product_cat a {
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

.category-nav .list-group-item:hover {
    border-left-color: var(--primary-color);
    background: #f8f9fa;
}

/* Main Menu Navigation - wie auf dentale-instrumente.de */
.main-menu-nav .list-group-item {
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2em !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    list-style-type: square !important;
    color: #003399 !important;
    width: 100% !important;
    display: block !important;
}

.main-menu-nav .list-group-item .menu-item,
.main-menu-nav .list-group-item .menu-item-type-taxonomy,
.main-menu-nav .list-group-item .menu-item-object-product_cat,
.main-menu-nav .list-group-item li.menu-item,
.main-menu-nav .list-group-item li.menu-item-type-taxonomy,
.main-menu-nav .list-group-item li.menu-item-object-product_cat {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2em !important;
    display: block !important;
    color: #003399 !important;
    list-style-type: square !important;
    width: 100% !important;
    font-size: 12px !important;
}

.main-menu-nav .list-group-item .menu-item a,
.main-menu-nav .list-group-item .menu-item-type-taxonomy a,
.main-menu-nav .list-group-item .menu-item-object-product_cat a {
    padding: 0.01rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

.main-menu-nav .list-group-item:hover {
    border-left-color: var(--primary-color);
    background: #f8f9fa;
}

.main-menu-nav .list-group-item a {
    color: #003399 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 12px !important;
    display: block !important;
    line-height: 1.2em !important;
    width: 100% !important;
    padding: 0.15rem 0.5rem !important;
    margin: 0 !important;
}

/* Spezifische Regeln für Bootstrap list-group-flush Überschreibung */
.main-menu-nav .list-group-flush .list-group-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.main-menu-nav .list-group-flush .list-group-item a {
    padding: 0.1rem 0.5rem !important;
    margin: 0 !important;
    line-height: 1.1em !important;
    min-height: 1.5rem !important;
}

/* Noch kompaktere Variante */
.main-menu-nav .list-group-item:not(:last-child) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    .main-menu-nav .list-group-item a {
        font-size: var(--font-size-sm);
    }
}

.main-menu-nav .list-group-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Information Widget Styling */
.card-body p {
    margin-bottom: 0.75rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.card-body a:hover {
    text-decoration: underline;
}

.card-body img {
    margin-bottom: 0.5rem;
}

/* Welcome Message Card Title Styling */
.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Warenkorb Page Styling */
.warenkorb-page {
    color: white;
}

.warenkorb-page h1,
.warenkorb-page h2,
.warenkorb-page h3,
.warenkorb-page h4,
.warenkorb-page h5,
.warenkorb-page h6,
.warenkorb-page p,
.warenkorb-page span,
.warenkorb-page div {
    color: white !important;
}

.warenkorb-page a {
    color: #ffffff !important;
}

.warenkorb-page a:hover {
    color: #f0f0f0 !important;
}

/* Breadcrumb Styling - wie in dentale-instrumente.de */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Bottom Area Cards - strikt wie dentale-instrumente.de */
#bottom-area .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}

#bottom-area .card-header {
    background-color: var(--primary-color);
    border-bottom: none;
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

#bottom-area .card-body {
    padding: 0;
}

#bottom-area .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.1rem 1.25rem;
    background: #fff;
    margin: 0;
    line-height: 1.1;
    min-height: auto;
    height: auto;
    max-height: none;
}

#bottom-area .list-group-item .menu-item,
#bottom-area .list-group-item .menu-item-type-taxonomy,
#bottom-area .list-group-item .menu-item-object-product_cat,
#bottom-area .list-group-item li.menu-item,
#bottom-area .list-group-item li.menu-item-type-taxonomy,
#bottom-area .list-group-item li.menu-item-object-product_cat {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

#bottom-area .list-group-item .menu-item a,
#bottom-area .list-group-item .menu-item-type-taxonomy a,
#bottom-area .list-group-item .menu-item-object-product_cat a {
    padding: 0.05rem 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

#bottom-area .list-group-item:last-child {
    border-bottom: none;
}

#bottom-area .list-group-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

#bottom-area .list-group-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Product Grid - wie auf dentale-instrumente.de */
.product-grid .card,
.product-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1rem;
}

.product-grid .card:hover,
.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-grid .card-img-top,
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #dee2e6;
}

.product-grid .card-body,
.product-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.product-grid .card-title,
.product-card .card-title {
    font-size: var(--font-size-base-mobile);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-grid .card-title,
    .product-card .card-title {
        font-size: var(--font-size-base);
    }
}

.product-grid .product-price,
.product-card .product-price {
    font-size: var(--font-size-xl-mobile);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-grid .product-price,
    .product-card .product-price {
        font-size: var(--font-size-xl);
    }
}

.product-grid .btn,
.product-card .btn {
    width: 100%;
    border-radius: 4px;
    margin-top: auto;
}

/* Mobile optimizations for product cards */
@media (max-width: 768px) {
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        padding: 0.75rem !important;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
    
    .product-card .card-title {
        font-size: var(--font-size-sm-mobile);
    }
    
    .product-card .product-price {
        font-size: var(--font-size-lg-mobile);
    }
    
    /* Ensure main content section takes full width on mobile */
    .taxonomy-product_cat .col-12.col-lg-8,
    .woocommerce .col-12.col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure the row container doesn't add margins */
    .taxonomy-product_cat .row,
    .woocommerce .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .product-card {
        padding: 0.5rem !important;
    }
    
    .product-card .card-img-top {
        height: 120px;
    }
    
    .product-card .card-title {
        font-size: var(--font-size-xs-mobile);
    }
    
    .product-card .product-price {
        font-size: var(--font-size-base-mobile);
    }
}

/* Archive page specific styling */
.archive .card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.archive .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.archive .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #dee2e6;
}

.archive .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.archive .card-title {
    font-size: var(--font-size-base-mobile);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .archive .card-title {
        font-size: var(--font-size-base);
    }
}

.archive .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.archive .btn {
    margin-top: auto;
    border-radius: 4px;
}

/* Mobile optimizations for archive pages */
@media (max-width: 768px) {
    .archive .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .archive .card {
        margin-bottom: 0;
    }
    
    .archive .card-img-top {
        height: 150px;
    }
    
    .archive .card-title {
        font-size: var(--font-size-sm-mobile);
    }
    
    .archive .card-text {
        font-size: var(--font-size-xs-mobile);
    }
    
    .archive .btn {
        font-size: var(--font-size-xs-mobile);
        padding: 0.375rem 0.75rem;
    }
    
    /* Ensure proper spacing on mobile */
    .archive .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .archive .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile sidebar adjustments */
    .archive aside {
        margin-bottom: 2rem;
    }
    
    .archive aside .card {
        margin-bottom: 1rem;
    }
    
    .archive aside .card-header {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .archive aside .card-body {
        padding: 0.75rem;
    }
    
    .archive aside .list-group-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .archive .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .archive .card-img-top {
        height: 120px;
    }
    
    .archive .card-body {
        padding: 0.75rem;
    }
    
    .archive .card-title {
        font-size: var(--font-size-xs-mobile);
    }
    
    .archive .card-text {
        font-size: var(--font-size-xs-mobile);
    }
}

/* Footer - strikt wie dentale-instrumente.de */
footer.bg-dark {
    background-color: #343a40 !important;
    color: white;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Buttons - wie in dentale-instrumente.de */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:hover:link,
.btn-primary:hover:visited {
    background-color: #1e4a8a !important;
    border-color: #1e4a8a !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Responsive Design - wie in dentale-instrumente.de */
@media (max-width: 768px) {
    .d-none.d-lg-block {
        display: none !important;
    }
    
    /* Mobile: Spalten auf volle Breite setzen */
    .col-lg-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Mobile: Sidebar Cards volle Breite */
    aside .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Desktop: Spalten korrekt anzeigen */
@media (min-width: 769px) {
    .col-lg-2 {
        flex: 0 0 185px;
        max-width: 185px;
        display: block !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .col-lg-8 {
        flex: 0 0 calc(100% - 370px);
        max-width: calc(100% - 370px);
        display: block !important;
    }
    
    .col-lg-10 {
        flex: 0 0 calc(100% - 185px);
        max-width: calc(100% - 185px);
        display: block !important;
    }
    
    /* Ensure sidebars are visible */
    aside.col-lg-2 {
        display: block !important;
        visibility: visible !important;
        width: 185px;
        max-width: 185px;
    }
}

/* Mobile: Alle 185px Regeln überschreiben */
@media (max-width: 768px) {
    .col-lg-2,
    aside.col-lg-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .col-lg-10 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Alle Sidebar Cards volle Breite */
    aside .card,
    .col-lg-2 .card,
    aside.col-lg-2 .card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobile: Bottom Area standardmäßig ausblenden */
@media (max-width: 991.98px) {
    /* Bottom Area standardmäßig anzeigen */
#bottom-area,
#bottom-area.container,
#bottom-area.container.my-4 {
  display: block !important;
}
    
    #bottom-area.show,
    #bottom-area.container.show,
    #bottom-area.container.my-4.show,
    #bottom-area.collapse.show {
        display: block !important;
    }
    
    /* Fix for Bootstrap collapse functionality */
    #bottom-area.collapse:not(.show) {
        display: none !important;
    }
    
    #bottom-area.collapsing {
        display: block !important;
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }
    
    /* Ensure proper animation for slideToggle */
    #bottom-area {
        transition: all 0.3s ease;
    }
    
    /* Mobile debug panel */
    #mobile-debug {
        font-family: monospace;
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Desktop: Bottom Area immer anzeigen */
@media (min-width: 992px) {
    #bottom-area,
    #bottom-area.container,
    #bottom-area.container.my-4 {
        display: block !important;
    }
}

/* Navigation Links - wie in dentale-instrumente.de */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: var(--font-size-2xl-mobile);
    color: var(--primary-color) !important;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: var(--font-size-2xl);
    }
} 

/* Mobile Menu Styles */
.mobile-menu-toggle {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #1e4a8a;
    color: white;
}

.mobile-menu-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

#mobileMainMenu .card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#mobileMainMenu .card-header {
    background: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--primary-color);
}

#mobileMainMenu .list-group-item {
    border-left: none;
    border-right: none;
    padding: 4px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    line-height: 1.1;
    min-height: auto;
    height: auto;
    max-height: none;
}

#mobileMainMenu .list-group-item .menu-item,
#mobileMainMenu .list-group-item .menu-item-type-taxonomy,
#mobileMainMenu .list-group-item .menu-item-object-product_cat,
#mobileMainMenu .list-group-item li.menu-item,
#mobileMainMenu .list-group-item li.menu-item-type-taxonomy,
#mobileMainMenu .list-group-item li.menu-item-object-product_cat {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

#mobileMainMenu .list-group-item .menu-item a,
#mobileMainMenu .list-group-item .menu-item-type-taxonomy a,
#mobileMainMenu .list-group-item .menu-item-object-product_cat a {
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

#mobileMainMenu .list-group-item:last-child {
    border-bottom: none;
}

#mobileMainMenu .list-group-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    width: 100%;
}

#mobileMainMenu .list-group-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Animation für das mobile Menü */
#mobileMainMenu.collapse {
    transition: all 0.3s ease;
}

#mobileMainMenu.collapsing {
    transition: all 0.3s ease;
} 

/* Header-Logo Optimierung: Immer vollständig anzeigen, nicht abschneiden */
.header-image-container {
    width: 100%;
    overflow: visible !important;
    padding: 0;
    margin: 0;
    background: #fff;
    text-align: center;
}

.header-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 200px; /* Nach Bedarf anpassen */
    object-fit: contain;
    margin: 0 auto;
    border: none;
} 

/* Header-Bild zentriert */
.header-image-fullwidth {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
  padding: 0;
}

.header-image-fullwidth img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile Icon Bar wie im Screenshot */
@media (max-width: 991.98px) {
  .mobile-nav-icons {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin: 0;
    width: 100%;
    z-index: 1000;
    gap: 0.7rem;
  }
  
  /* Mobile Search Overlay */
  .mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    backdrop-filter: blur(5px);
  }
  
  .mobile-search-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
  }
  
  .mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .mobile-search-header h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
  }
  
  .mobile-search-form .form-control {
    font-size: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
  }
  
  .mobile-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
  }
  
  .mobile-search-form .btn {
    transition: all 0.3s ease;
  }
  
  .mobile-search-form .btn:hover {
    transform: scale(1.05);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideUp {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-20px);
    }
  }
  
  .mobile-search-overlay.closing {
    animation: slideUp 0.3s ease-in;
  }
}
  .mobile-nav-icons .mobile-icon-link {
    color: #14287a;
    text-decoration: none;
    padding: 0 0.2rem;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    position: relative;
    z-index: 1001;
    touch-action: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    transition: all 0.2s ease;
  }
  .mobile-nav-icons .mobile-icon-link:active,
  .mobile-nav-icons .mobile-icon-link:focus {
    color: #1e4a8a;
    background-color: rgba(30, 74, 138, 0.1);
    border-radius: 4px;
  }
  .mobile-nav-icons .mobile-icon-link:hover {
    color: #1e4a8a;
  }
  .mobile-nav-icons .mobile-icon-link.touched {
    background-color: rgba(30, 74, 138, 0.2);
    border-radius: 4px;
    transform: scale(0.95);
  }
  .mobile-nav-icons i {
    font-size: 1.5rem;
    line-height: 1;
  }
  .search-box {
    display: none !important;
  }
  
  /* Mobile search box when shown */
  .search-box.mobile-search-active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    align-items: center;
    gap: 10px;
  }
  
  .search-box.mobile-search-active .form-control {
    flex: 1;
    margin: 0;
  }
  
  .search-box.mobile-search-active .btn {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .mobile-nav-icons {
    display: none !important;
  }
}

/* WooCommerce Product SKU Styling */
.product-sku {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #f8f9fa;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.product-sku i {
    color: #6c757d;
}

.product-sku strong {
    color: #495057;
    font-weight: 600;
}

/* WooCommerce Product Images Styling */
.woocommerce-product-gallery__image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.woocommerce-product-gallery__image:hover {
    opacity: 0.8;
}

.woocommerce-loop-product__link {
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce-loop-product__link:hover {
    transform: scale(1.02);
}

/* Force image sizes for WooCommerce */
.woocommerce-loop-product__link img,
.woocommerce-loop-product__link .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    width: 168px !important;
    height: auto !important;
    max-width: 168px !important;
    object-fit: contain;
    background-color: #f8f9fa;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image .attachment-woocommerce_single,
.wp-post-image {
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    object-fit: contain;
    background-color: #f8f9fa;
}

.woocommerce-product-gallery-thumbs img,
.woocommerce-product-gallery-thumbs .attachment-woocommerce_gallery_thumbnail {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Lightbox Modal */
.product-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.product-lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.product-lightbox-close:hover,
.product-lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Responsive image sizes */
@media (max-width: 768px) {
    .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
    }
    
    .woocommerce ul.products li.product a img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

/* Additional specific selectors for WooCommerce product images */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .size-woocommerce_thumbnail {
    width: 168px !important;
    height: auto !important;
    max-width: 168px !important;
    object-fit: contain !important;
    background-color: #f8f9fa !important;
}

/* WooCommerce Product Title and Price Styling */
.woocommerce-loop-product__title {
    font-weight: bold !important;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #333;
}

.woocommerce ul.products li.product .price {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount {
    font-weight: bold !important;
    color: #000 !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-weight: bold !important;
    color: #000 !important;
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Add to Cart Button Styling */
.add-to-cart-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.add-to-cart-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.add-to-cart-form .quantity-input {
    text-align: center;
    font-weight: 600;
}

.add-to-cart {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Product page specific styling */
.single-product .add-to-cart-form {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Notification styling */
.alert.position-fixed {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    z-index: 9999;
} 

/* WooCommerce Sidebar Layout */
.woocommerce .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Login Widget Styling */
.woocommerce-form-login .form-control {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.woocommerce-form-login .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.woocommerce-form-login .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.woocommerce-form-login .btn {
    transition: all 0.3s ease;
}

.woocommerce-form-login .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User Profile in Login Widget */
.login-widget-user-profile {
    text-align: center;
    padding: 1rem 0;
}

.login-widget-user-profile .fa-user-circle {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-widget-stats {
    border-top: 1px solid #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 0;
    margin: 1rem 0;
}

.login-widget-stats .col-6 {
    text-align: center;
}

.login-widget-stats .border-end {
    border-right: 1px solid #dee2e6 !important;
}

/* Registration Section Styling */
.registration-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.registration-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.registration-section .btn-success,
.registration-section .btn-success:link,
.registration-section .btn-success:visited,
.registration-section .btn-success:active,
.registration-section .btn-success:focus {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
}

.registration-section .btn-success:hover,
.registration-section .btn-success:hover:link,
.registration-section .btn-success:hover:visited {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    color: white !important;
}

.registration-section .fa-user-plus {
    color: #28a745;
}

.registration-section .fa-shield-alt {
    color: #6c757d;
}

/* Force white text on registration button - highest specificity */
.registration-section .btn.btn-success,
.registration-section .btn.btn-success:link,
.registration-section .btn.btn-success:visited,
.registration-section .btn.btn-success:active,
.registration-section .btn.btn-success:focus,
.registration-section .btn.btn-success:hover,
.registration-section a.btn.btn-success,
.registration-section a.btn.btn-success:link,
.registration-section a.btn.btn-success:visited,
.registration-section a.btn.btn-success:active,
.registration-section a.btn.btn-success:focus,
.registration-section a.btn.btn-success:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Ultra-specific rule for anchor buttons */
.registration-section a[href*="mein-konto"].btn.btn-success,
.registration-section a[href*="mein-konto"].btn.btn-success:link,
.registration-section a[href*="mein-konto"].btn.btn-success:visited,
.registration-section a[href*="mein-konto"].btn.btn-success:active,
.registration-section a[href*="mein-konto"].btn.btn-success:focus,
.registration-section a[href*="mein-konto"].btn.btn-success:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Responsive adjustments for login widget */
@media (max-width: 768px) {
    .woocommerce-form-login .form-control {
        font-size: var(--font-size-base-mobile);
    }
    
    .woocommerce-form-login .btn {
        font-size: var(--font-size-sm-mobile);
        padding: 0.375rem 0.75rem;
    }
    
    .login-widget-user-profile h6 {
        font-size: var(--font-size-sm-mobile);
    }
    
    .login-widget-user-profile small {
        font-size: var(--font-size-xs-mobile);
    }
    
    .registration-section {
        padding: 0.75rem;
    }
    
    .registration-section h6 {
        font-size: var(--font-size-sm-mobile);
    }
    
    .registration-section small {
        font-size: var(--font-size-xs-mobile);
    }
}

.woocommerce .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Ensure WooCommerce pages use the same layout as index.php */
.woocommerce .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.woocommerce .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.woocommerce .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

/* Responsive adjustments for WooCommerce sidebars */
@media (max-width: 768px) {
    .woocommerce .row {
        flex-direction: column;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .woocommerce aside {
        order: 2;
        margin-top: 20px;
    }
    
    .woocommerce .col-12 {
        order: 1;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure cards take full width on mobile */
    .woocommerce .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }
    
    .woocommerce .card-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Product items full width on mobile */
    .woocommerce .product-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.75rem !important;
    }
    
    /* Container adjustments for mobile */
    .woocommerce .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 769px) {
    .woocommerce .col-lg-2 {
        flex: 0 0 185px;
        max-width: 185px;
    }
    
    .woocommerce .col-lg-8 {
        flex: 0 0 calc(100% - 370px);
        max-width: calc(100% - 370px);
    }
    
    .woocommerce .col-lg-10 {
        flex: 0 0 calc(100% - 185px);
        max-width: calc(100% - 185px);
    }
}

/* Mobile: WooCommerce 185px Regeln überschreiben */
@media (max-width: 768px) {
    .woocommerce .col-lg-2,
    .woocommerce aside.col-lg-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .woocommerce .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .woocommerce .col-lg-10 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* WooCommerce Sidebar Cards volle Breite */
    .woocommerce aside .card,
    .woocommerce .col-lg-2 .card,
    .woocommerce aside.col-lg-2 .card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
} 

/* Bottom Logos - Responsive Design */
.bottom-logos {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.bottom-logos img {
    max-width: 120px;
    height: auto;
    margin: 0 10px;
    transition: all 0.3s ease;
}

/* Mobile Optimierung für die beiden Logos */
@media (max-width: 768px) {
    .bottom-logos {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .bottom-logos img {
        max-width: 80px; /* Kleinere Logos auf mobilen Geräten */
        margin: 0 5px; /* Weniger Abstand zwischen den Logos */
        height: auto;
    }
}

@media (max-width: 480px) {
    .bottom-logos img {
        max-width: 60px; /* Noch kleinere Logos auf sehr kleinen Bildschirmen */
        margin: 0 3px; /* Minimaler Abstand */
    }
}

/* Desktop Optimierung */
@media (min-width: 769px) {
    .bottom-logos img {
        max-width: 120px;
        margin: 0 10px;
    }
}

/* Hover-Effekt für die Logos */
.bottom-logos img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
} 

/* Product Logos - Responsive Design für die beiden Logos in der Mitte */
.product-logos {
    text-align: center;
    margin: 25px 0;
}

.product-logos img {
    max-width: 180px;
    height: auto;
    margin: 0 10px;
    transition: all 0.3s ease;
}

/* Mobile Optimierung für die beiden Logos in der Mitte */
@media (max-width: 768px) {
    .product-logos {
        margin: 20px 0;
    }
    
    .product-logos img {
        width: 200px; /* Angemessene Breite für moderne Smartphones */
        margin: 0 5px; /* Weniger Abstand zwischen den Logos */
        height: auto;
    }
}

@media (max-width: 480px) {
    .product-logos img {
        width: 180px; /* Angemessene Breite für kleinere Smartphones */
        margin: 0 3px; /* Minimaler Abstand */
        height: auto;
    }
}

/* Desktop Optimierung */
@media (min-width: 769px) {
    .product-logos img {
        max-width: 180px;
        margin: 0 10px;
    }
}

/* Hover-Effekt für die Logos */
.product-logos img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Product Logos Container - Responsive Design für die beiden Logos in der Mitte */
.product-logos-container {
    text-align: center;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.product-logos-container img {
    max-width: 180px;
    height: auto;
    margin: 0 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile Optimierung für die beiden Logos in der Mitte */
@media (max-width: 768px) {
    .product-logos-container {
        margin: 20px 0;
    }
    
    .product-logos-container img {
        width: 200px !important; /* Angemessene Breite für moderne Smartphones */
        max-width: 200px !important; /* Überschreibt alle max-width Regeln */
        margin: 0 5px; /* Weniger Abstand zwischen den Logos */
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .product-logos-container img {
        width: 180px !important; /* Angemessene Breite für kleinere Smartphones */
        max-width: 180px !important; /* Überschreibt alle max-width Regeln */
        margin: 0 3px; /* Minimaler Abstand */
        height: auto !important;
    }
}

/* Desktop Optimierung */
@media (min-width: 769px) {
    .product-logos-container img {
        max-width: 180px;
        margin: 0 10px;
    }
}

/* Hover-Effekt für die Logos */
.product-logos-container img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Product Images in formatted-content.html */
.product-images {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.product-images img {
    max-width: 100%;
    height: auto;
    margin: 0 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Mobile Optimierung für die Logos in formatted-content.html */
@media (max-width: 768px) {
    .product-images img {
        width: 200px; /* Angemessene Breite für moderne Smartphones */
        margin: 0 5px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .product-images img {
        width: 180px; /* Angemessene Breite für kleinere Smartphones */
        margin: 0 3px;
        height: auto;
    }
}

/* Hover-Effekt für die Logos in formatted-content.html */
.product-images img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}