/*
 * Theme Name:  AwesGO
 * Theme URI:   https://awesgo.at
 * Description: Astra Child Theme für AwesGO Lebensmittel-Lieferdienst Tirol
 * Author:      Church of AI
 * Author URI:  https://churchofai.at
 * Template:    astra
 * Version:     1.0.0
 * Text Domain: awesgo
 */

/* ==========================================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --awg-orange:       #f97316;
    --awg-orange-dark:  #ea580c;
    --awg-orange-light: #fff7ed;
    --awg-dark:         #1f2937;
    --awg-gray:         #f9fafb;
    --awg-text:         #111827;
    --awg-success:      #16a34a;
    --awg-border:       #e5e7eb;

    --awg-radius-sm:   8px;
    --awg-radius-md:   12px;
    --awg-radius-lg:   16px;
    --awg-radius-xl:   24px;
    --awg-radius-full: 9999px;

    --awg-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --awg-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --awg-shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --awg-shadow-orange: 0 8px 24px rgba(249,115,22,0.25);

    --awg-transition: all 0.2s ease;
    --awg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   BASE RESET / FONT
   ========================================================================== */

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

body {
    font-family: var(--awg-font);
    color: var(--awg-text);
    background: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Verhindert horizontales Scrollen durch Swiper auf Mobile */
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */

/* Astra Layout Override — AWG templates always full-width
   Astra's .ast-container is a flex row; our .awg-main-content
   must fill the full width regardless of Astra sidebar/page-type CSS */
.ast-container > .awg-main-content,
#awg-shop-page,
#awg-cat-page {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
}

/* Disable Astra sidebar space on WooCommerce archive/category pages */
.woocommerce-page .ast-container,
.tax-product_cat .ast-container {
    flex-wrap: nowrap;
}

#masthead,
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 1px 0 var(--awg-border), 0 2px 12px rgba(0,0,0,0.06);
}

.awg-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo */
.awg-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.awg-logo .awg-logo-img {
    height: 28px !important;
    width: auto !important;
    max-width: 140px;
    max-height: 28px;
    display: block;
    object-fit: contain;
}

.awg-logo:hover .awg-logo-img {
    opacity: 0.8;
}

/* Search Bar */
.awg-search-bar {
    display: flex;
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
    position: relative;
}

.awg-search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-full);
    font-size: 14px;
    font-family: var(--awg-font);
    color: var(--awg-text);
    background: #fff;
    outline: none;
    transition: var(--awg-transition);
}

.awg-search-bar input:focus {
    border-color: var(--awg-orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.awg-search-bar input::placeholder {
    color: #9ca3af;
}

/* Header Right */
.awg-header-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* PLZ Chip */
.awg-plz-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--awg-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--awg-radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--awg-font);
    transition: var(--awg-transition);
    white-space: nowrap;
}

.awg-plz-chip:hover {
    background: #374151;
    transform: translateY(-1px);
}

/* Cart Button */
.awg-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--awg-orange);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--awg-radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--awg-font);
    position: relative;
    text-decoration: none;
    transition: var(--awg-transition);
}

.awg-cart-btn:hover {
    background: var(--awg-orange-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--awg-shadow-orange);
}

/* Cart Count Badge */
.awg-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--awg-orange-dark);
    color: #fff;
    border-radius: var(--awg-radius-full);
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

.awg-cart-count:empty,
.awg-cart-count[data-count="0"] {
    display: none;
}

/* ==========================================================================
   USP BAR
   ========================================================================== */

.awg-usp-bar {
    background: var(--awg-dark);
    color: #fff;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}

.awg-usp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}
.awg-usp-item .awg-icon {
    flex-shrink: 0;
    opacity: 0.85;
}
.awg-usp-item:hover {
    opacity: 1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.awg-hero {
    position: relative;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Decorative Blob Shapes */
.awg-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.06);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    pointer-events: none;
    z-index: 1;
}

.awg-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    pointer-events: none;
    z-index: 1;
}

.awg-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.awg-hero-blob--1 {
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.07);
    top: -80px;
    left: -80px;
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    animation: blobFloat 8s ease-in-out infinite;
}

.awg-hero-blob--2 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    bottom: -40px;
    left: 40%;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(12px, -18px) scale(1.04); }
    66%  { transform: translate(-8px, 10px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Hero Inner — begrenzt Content auf max-width, Background bleibt full-width */
.awg-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero Content */
.awg-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    max-width: 600px;
}

.awg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--awg-radius-full);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

.awg-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.awg-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    margin: 0 0 32px 0;
    max-width: 480px;
    line-height: 1.6;
}

/* Hero PLZ Form */
.awg-hero-plz-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin-bottom: 24px;
}

.awg-hero-plz-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--awg-radius-full);
    border: none;
    font-size: 15px;
    font-family: var(--awg-font);
    outline: none;
    color: var(--awg-text);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.awg-hero-plz-form input::placeholder {
    color: #9ca3af;
}

.awg-hero-plz-form button {
    background: #fff;
    color: var(--awg-orange);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--awg-radius-full);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    font-family: var(--awg-font);
    transition: var(--awg-transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.awg-hero-plz-form button:hover {
    background: var(--awg-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Hero Zone Result */
.awg-hero-zones {
    margin-top: 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--awg-radius-md);
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(4px);
    max-width: 480px;
}

.awg-hero-zones.error {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.4);
}

.awg-hero-zones.success {
    background: rgba(22,163,74,0.2);
    border-color: rgba(22,163,74,0.4);
}

/* Hero WhatsApp Button */
.awg-hero-wa {
    margin-top: 16px;
}
.awg-hero-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,211,102,0.9);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--awg-radius-full);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}
.awg-hero-wa-btn:hover {
    background: rgba(37,211,102,1);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Hero Tags */
.awg-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.awg-hero-tags span {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 5px 12px;
    border-radius: var(--awg-radius-full);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.awg-hero-tags span .awg-icon {
    stroke: rgba(255,255,255,0.85);
    flex-shrink: 0;
}
.awg-plz-chip .awg-icon {
    stroke: #fff;
    flex-shrink: 0;
}

/* Floating Product Cards */
.awg-hero-floats {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
    flex-shrink: 0;
}

.awg-float-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--awg-radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--awg-shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    min-width: 180px;
}
.awg-float-icon {
    display: flex;
    align-items: center;
    color: var(--awg-orange);
    flex-shrink: 0;
}
.awg-float-icon .awg-icon {
    stroke: var(--awg-orange);
}

.awg-float-card--animated {
    animation: cardFloat 3s ease-in-out infinite;
}

.awg-float-card--animated:nth-child(2) {
    animation-duration: 3.5s;
    animation-delay: 0.3s;
}

.awg-float-card--animated:nth-child(3) {
    animation-duration: 4s;
    animation-delay: 0.6s;
}

@keyframes cardFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */

.awg-categories {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.awg-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--awg-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.awg-section-title .awg-icon {
    stroke: var(--awg-orange);
    flex-shrink: 0;
}

.awg-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.awg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.awg-section-link {
    font-size: 14px;
    color: var(--awg-orange);
    font-weight: 600;
    text-decoration: none;
    transition: var(--awg-transition);
}

.awg-section-link:hover {
    color: var(--awg-orange-dark);
    text-decoration: underline;
}

.awg-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.awg-cat-card {
    background: #fff;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--awg-transition);
    text-decoration: none;
    display: block;
    color: inherit;
}

.awg-cat-card:hover {
    border-color: var(--awg-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.15);
    text-decoration: none;
    color: inherit;
}

.awg-cat-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--awg-orange);
}
.awg-cat-icon .awg-icon {
    width: 28px;
    height: 28px;
    stroke: var(--awg-orange);
}

.awg-cat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--awg-text);
    margin: 0 0 4px 0;
}

.awg-cat-count {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ==========================================================================
   PRODUCT SECTION
   ========================================================================== */

.awg-products-section {
    padding: 0 0 60px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible; /* Swiper darf über Rand hinausschauen */
}

.awg-section-header {
    padding: 0 24px;
}

.awg-products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 24px 16px;
    padding-right: 48px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.awg-products-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* snap während drag deaktivieren */
}

.awg-products-scroll::-webkit-scrollbar {
    display: none;
}

.awg-product-card {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-lg);
    overflow: hidden;
    transition: var(--awg-transition);
    scroll-snap-align: start;
    position: relative;
}

.awg-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    border-color: #d1d5db;
}

.awg-product-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    padding: 12px;
    background: #fafafa;
    display: block;
}

/* WC Standard-Loop Bilder ebenfalls begrenzen */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: 180px;
    max-height: 180px;
    object-fit: contain;
    background: #fafafa;
    padding: 10px;
    box-sizing: border-box;
}

.awg-product-body {
    padding: 12px;
}

.awg-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--awg-text);
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lagerstatus — klein, unter dem Titel */
.awg-stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.awg-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.awg-stock-dot.in-stock {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}

.awg-stock-dot.out-of-stock {
    background: #d1d5db;
}

.awg-stock-label {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1;
}

.awg-stock-dot.in-stock ~ .awg-stock-label {
    color: #16a34a;
}

.awg-product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.awg-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--awg-orange);
    margin: 0;
    flex: 1;
}

.awg-product-price-unit {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

/* Stock Badge */
.awg-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.awg-stock-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.awg-stock-badge.in-stock {
    color: var(--awg-success);
}

.awg-stock-badge.in-stock::before {
    background: var(--awg-success);
    box-shadow: 0 0 0 2px rgba(22,163,74,0.2);
}

.awg-stock-badge.out-of-stock {
    color: #9ca3af;
}

.awg-stock-badge.out-of-stock::before {
    background: #d1d5db;
}

/* Add to Cart Button */
.awg-product-atc {
    width: 100%;
    background: var(--awg-orange);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--awg-transition);
    font-family: var(--awg-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.awg-product-atc:hover {
    background: var(--awg-orange-dark);
    transform: translateY(-1px);
}

.awg-product-atc.out-of-stock {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.awg-product-atc.out-of-stock:hover {
    transform: none;
    background: #e5e7eb;
}

.awg-product-atc.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.awg-trust-bar {
    background: var(--awg-gray);
    border-top: 1px solid var(--awg-border);
    border-bottom: 1px solid var(--awg-border);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.awg-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.awg-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--awg-orange);
}
.awg-trust-icon .awg-icon {
    stroke: var(--awg-orange);
}

.awg-trust-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--awg-text);
    margin: 0;
}

.awg-trust-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* ==========================================================================
   SKELETON LOADER
   ========================================================================== */

.awg-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: awg-shimmer 1.5s infinite;
    border-radius: var(--awg-radius-md);
}

@keyframes awg-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.awg-skeleton-card {
    border-radius: var(--awg-radius-lg);
    width: 200px;
    height: 280px;
    flex-shrink: 0;
}

.awg-skeleton-text {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.awg-skeleton-text--sm {
    width: 60%;
}

.awg-skeleton-text--md {
    width: 80%;
}

.awg-skeleton-text--lg {
    width: 100%;
}

.awg-skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--awg-radius-md);
}

.awg-skeleton-btn {
    height: 36px;
    width: 100%;
    border-radius: 10px;
    margin-top: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.awg-footer {
    background: var(--awg-dark);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 48px;
}

.awg-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--awg-transition);
}

.awg-footer a:hover {
    color: var(--awg-orange);
}

.awg-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.awg-footer-col-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.awg-footer-col-title .awg-icon {
    stroke: var(--awg-orange);
    flex-shrink: 0;
}

.awg-footer-logo-link {
    display: inline-block;
    margin-bottom: 14px;
}

.awg-footer-logo {
    height: 30px !important;
    width: auto !important;
    max-height: 30px !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.awg-footer-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    margin: 0 0 20px;
}

.awg-footer-hours { margin-top: 4px; }

.awg-footer-hours-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.awg-footer-hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.awg-footer-hours-list li span { color: rgba(255,255,255,0.5); }
.awg-footer-hours-list li strong { color: rgba(255,255,255,0.85); }

.awg-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.awg-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.awg-footer-contact .awg-icon {
    stroke: var(--awg-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.awg-footer-zones-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 12px;
    line-height: 1.5;
}

.awg-footer-zones-btn {
    display: inline-block;
    background: var(--awg-orange);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--awg-radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--awg-transition);
}

.awg-footer-zones-btn:hover {
    background: var(--awg-orange-dark);
}

.awg-footer-payment {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.awg-footer-payment-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: var(--awg-radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.awg-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.awg-footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.awg-footer-nav a:hover { color: var(--awg-orange); }

.awg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.awg-footer-bottom p { margin: 0; }

.awg-footer-tagline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.awg-footer-tagline .awg-icon { stroke: var(--awg-orange); }

/* Legacy — kept for compat */
.awg-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CART / CHECKOUT — MIN ORDER BAR
   ========================================================================== */

.awg-min-order-bar {
    background: var(--awg-orange-light);
    border: 1.5px solid var(--awg-orange);
    border-radius: var(--awg-radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.awg-min-order-bar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.awg-min-order-bar__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--awg-text);
}

.awg-min-order-bar__amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--awg-orange);
}

.awg-min-order-bar__hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.awg-min-order-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.awg-min-order-fill {
    height: 100%;
    background: var(--awg-orange);
    transition: width 0.3s ease;
    border-radius: 3px;
    min-width: 0;
    max-width: 100%;
}

.awg-min-order-fill.reached {
    background: var(--awg-success);
}

/* ==========================================================================
   PLZ MODAL
   ========================================================================== */

.awg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.awg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.awg-modal-box {
    position: relative;
    background: #fff;
    border-radius: var(--awg-radius-xl);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    z-index: 1;
    animation: slideUp 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--awg-border) transparent;
}

.awg-modal-box::-webkit-scrollbar {
    width: 4px;
}

.awg-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.awg-modal-box::-webkit-scrollbar-thumb {
    background: var(--awg-border);
    border-radius: 2px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.awg-modal-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding-top: 8px;
}

.awg-modal-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--awg-orange);
}
.awg-modal-icon .awg-icon {
    stroke: var(--awg-orange);
}

.awg-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--awg-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.awg-modal-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.awg-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--awg-transition);
    font-family: var(--awg-font);
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 10;
}

.awg-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.awg-modal-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.awg-modal-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-md);
    font-size: 15px;
    font-family: var(--awg-font);
    color: var(--awg-text);
    outline: none;
    transition: var(--awg-transition);
}

.awg-modal-input:focus {
    border-color: var(--awg-orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.awg-modal-input::placeholder {
    color: #9ca3af;
}

.awg-modal-btn-primary {
    background: var(--awg-orange);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--awg-radius-md);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--awg-font);
    transition: var(--awg-transition);
}

.awg-modal-btn-primary:hover {
    background: var(--awg-orange-dark);
    transform: translateY(-1px);
}

.awg-modal-result {
    background: rgba(22,163,74,0.08);
    border: 1.5px solid rgba(22,163,74,0.25);
    border-radius: var(--awg-radius-md);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--awg-text);
}

.awg-modal-result__title {
    font-weight: 700;
    color: var(--awg-success);
    margin: 0 0 6px 0;
    font-size: 15px;
}

.awg-modal-result__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.awg-modal-result__value {
    font-weight: 600;
    color: var(--awg-orange);
}

.awg-modal-error {
    background: rgba(239,68,68,0.08);
    border: 1.5px solid rgba(239,68,68,0.25);
    border-radius: var(--awg-radius-md);
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
}

.awg-modal-zones-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.awg-modal-zones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Zone Items */
.awg-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-md);
    cursor: pointer;
    transition: var(--awg-transition);
    background: #fff;
}

.awg-zone-item:hover {
    border-color: var(--awg-orange);
    background: var(--awg-orange-light);
    transform: translateX(2px);
}

.awg-zone-item.active {
    border-color: var(--awg-orange);
    background: var(--awg-orange-light);
}

.awg-zone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.awg-zone-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--awg-text);
    margin: 0;
}

.awg-zone-plz {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.awg-zone-meta {
    text-align: right;
    font-size: 12px;
    color: var(--awg-orange);
    font-weight: 600;
    flex-shrink: 0;
}

.awg-zone-meta__fee {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--awg-orange);
}

.awg-zone-meta__min {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 2px;
}

/* Zone Search Filter */
.awg-modal-zone-search {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-md);
    font-size: 14px;
    font-family: var(--awg-font);
    color: var(--awg-text);
    outline: none;
    transition: var(--awg-transition);
    margin-bottom: 12px;
}

.awg-modal-zone-search:focus {
    border-color: var(--awg-orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

/* ==========================================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .awg-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .awg-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .awg-hero-inner {
        padding: 0 24px;
    }

    .awg-hero-content {
        padding: 48px 0;
        max-width: 100%;
    }

    .awg-hero-floats {
        display: none; /* Auf Tablet ausblenden — zu wenig Platz */
    }

    .awg-float-card {
        min-width: 160px;
        padding: 12px 16px;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Header */
    .awg-header-inner {
        padding: 0 16px;
        height: 56px;
        gap: 8px;
    }

    .awg-logo {
        font-size: 1.3rem;
    }

    .awg-search-bar {
        display: none;
    }

    .awg-header-right {
        gap: 8px;
    }

    .awg-plz-chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    .awg-cart-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* USP Bar */
    .awg-usp-bar {
        justify-content: center;
        gap: 12px;
        font-size: 11px;
        padding: 8px 16px;
        flex-wrap: wrap;
    }

    /* Hero */
    .awg-hero {
        min-height: 360px;
        align-items: flex-start;
    }

    .awg-hero-inner {
        padding: 0 16px;
    }

    .awg-hero-content {
        padding: 40px 0;
        max-width: 100%;
    }

    .awg-hero-floats {
        display: none;
    }

    .awg-hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .awg-hero-subtitle {
        font-size: 1rem;
    }

    .awg-hero-plz-form {
        flex-direction: column;
        gap: 8px;
    }

    .awg-hero-plz-form input,
    .awg-hero-plz-form button {
        width: 100%;
        border-radius: var(--awg-radius-lg);
    }

    /* Categories */
    .awg-categories {
        padding: 40px 16px;
    }

    .awg-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .awg-cat-card {
        padding: 16px 12px;
        min-width: 0;
    }

    .awg-cat-img-wrap {
        width: 100%;
    }

    .awg-cat-icon {
        margin-bottom: 8px;
    }
    .awg-cat-icon .awg-icon {
        width: 24px;
        height: 24px;
    }

    .awg-cat-name {
        font-size: 13px;
    }

    /* Products */
    .awg-products-section {
        padding: 0 16px 40px;
    }

    .awg-product-card {
        width: 160px;
    }

    .awg-skeleton-card {
        width: 160px;
        height: 250px;
    }

    /* Trust Bar */
    .awg-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 12px;
    }

    /* Modal */
    .awg-modal-box {
        padding: 24px 20px;
        border-radius: var(--awg-radius-lg);
        max-height: 90vh;
    }

    /* Min Order Bar */
    .awg-min-order-bar {
        padding: 12px 16px;
    }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .awg-header-inner {
        padding: 0 12px;
    }

    .awg-plz-chip span {
        display: none;
    }

    .awg-usp-bar {
        display: none; /* auf sehr kleinen Screens ausblenden */
    }

    .awg-hero-content {
        padding: 32px 16px;
    }

    .awg-hero-tags {
        gap: 6px;
    }

    .awg-hero-tags span {
        font-size: 11px;
        padding: 4px 10px;
    }

        grid-template-columns: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .awg-trust-bar {
        grid-template-columns: 1fr 1fr;
    }

    .awg-modal-box {
        padding: 20px 16px;
    }

    .awg-modal-input-row {
        flex-direction: column;
    }

    .awg-modal-btn-primary {
        width: 100%;
    }
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

/* Cart Notices */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    border-radius: var(--awg-radius-md);
    font-family: var(--awg-font);
    font-size: 14px;
}

/* Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
    background: var(--awg-orange);
    color: #fff;
    border-radius: var(--awg-radius-full);
    font-weight: 600;
    font-family: var(--awg-font);
    transition: var(--awg-transition);
    border: none;
    padding: 12px 24px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover {
    background: var(--awg-orange-dark);
    color: #fff;
}

/* Product Price */
.woocommerce .price,
.woocommerce-Price-amount.amount {
    color: var(--awg-orange);
}

/* Astra Default Footer + Copyright-Leiste verstecken */
#footer-widget-area,
#footer-siteinfo,
.footer-siteinfo,
.ast-footer-copyright,
.site-footer .ast-footer-copyright,
.footer-bar-section,
#footer-bar-section,
.ast-builder-layout-element[data-section*="footer"],
footer.site-footer:not(.awg-footer) {
    display: none !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.awg-text-orange { color: var(--awg-orange); }
.awg-text-dark   { color: var(--awg-dark); }
.awg-text-muted  { color: #6b7280; }
.awg-text-small  { font-size: 12px; }

.awg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--awg-radius-full);
    font-size: 11px;
    font-weight: 600;
}

.awg-badge--orange {
    background: var(--awg-orange-light);
    color: var(--awg-orange);
    border: 1px solid rgba(249,115,22,0.2);
}

.awg-badge--success {
    background: rgba(22,163,74,0.1);
    color: var(--awg-success);
    border: 1px solid rgba(22,163,74,0.2);
}

.awg-badge--dark {
    background: var(--awg-dark);
    color: #fff;
}

.awg-divider {
    height: 1px;
    background: var(--awg-border);
    margin: 32px 0;
    border: none;
}

.awg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   CATEGORY CARDS — mit Bild + Icon Overlay (Homepage)
   ========================================================================== */

.awg-cat-img-wrap {
    position: relative;
    width: 182px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--awg-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto 12px auto;
}

.awg-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.awg-cat-card:hover .awg-cat-img {
    transform: scale(1.08);
}

.awg-cat-icon-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(249,115,22,0.9);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.awg-cat-icon-overlay .awg-icon {
    stroke: #fff;
}

/* ==========================================================================
   CATEGORY PAGE TEMPLATE (taxonomy-product_cat.php)
   ========================================================================== */

/* Category Header */
.awg-cat-header {
    position: relative;
    background: var(--awg-dark);
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
}

.awg-cat-header-img-wrap {
    position: absolute;
    inset: 0;
}

.awg-cat-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.awg-cat-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,24,39,0.5), rgba(17,24,39,0.85));
}

.awg-cat-header-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.awg-cat-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.awg-cat-header-icon .awg-icon {
    stroke: var(--awg-orange);
}

.awg-cat-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.awg-cat-header-desc {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 8px;
}

.awg-cat-header-count {
    color: var(--awg-orange);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Breadcrumb */
.awg-breadcrumb {
    padding: 12px 24px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
}

.awg-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.awg-breadcrumb a:hover { color: var(--awg-orange); }
.awg-breadcrumb span[aria-current] { color: var(--awg-dark); font-weight: 600; }

/* Toolbar */
.awg-cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

.awg-cat-result-count {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.awg-cat-orderby {
    font-size: 13px;
    padding: 6px 12px;
    border: 1.5px solid var(--awg-border);
    border-radius: var(--awg-radius-sm);
    background: #fff;
    color: var(--awg-dark);
    font-family: var(--awg-font);
    cursor: pointer;
    outline: none;
}

.awg-cat-orderby:focus {
    border-color: var(--awg-orange);
}

/* Product Grid — 5 cols on desktop */
.awg-cat-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 0 0 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Badge */
.awg-product-img-link {
    position: relative;
    display: block;
}

.awg-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--awg-radius-full);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.awg-badge-sale {
    background: var(--awg-orange);
    color: #fff;
}

.awg-badge-sale .awg-icon { stroke: #fff; }

.awg-badge-oos {
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.8);
}

/* Pagination */
.awg-cat-pagination {
    padding: 0 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.awg-cat-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.awg-cat-pagination .page-numbers li a,
.awg-cat-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--awg-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--awg-transition);
    border: 1.5px solid var(--awg-border);
    color: var(--awg-dark);
}

.awg-cat-pagination .page-numbers li span.current {
    background: var(--awg-orange);
    border-color: var(--awg-orange);
    color: #fff;
}

.awg-cat-pagination .page-numbers li a:hover {
    border-color: var(--awg-orange);
    color: var(--awg-orange);
}

/* Empty state */
.awg-cat-empty {
    text-align: center;
    padding: 80px 24px;
    color: #9ca3af;
}

.awg-cat-empty .awg-icon {
    stroke: #d1d5db;
    margin-bottom: 16px;
}

.awg-cat-empty h2 {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0 0 8px;
}

.awg-cat-empty p { margin: 0 0 24px; }

.awg-btn-primary {
    display: inline-block;
    background: var(--awg-orange);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--awg-radius-full);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: var(--awg-transition);
}

.awg-btn-primary:hover {
    background: var(--awg-orange-dark);
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE — Footer + Category Grid
   ========================================================================== */

@media (max-width: 1280px) and (min-width: 901px) {
    .awg-cat-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) and (min-width: 641px) {
    .awg-cat-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .awg-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .awg-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 16px 24px;
    }

    .awg-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px;
    }

    .awg-cat-product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 12px 24px;
    }

    .awg-cat-header-title { font-size: 1.5rem; }

    .awg-cat-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   SHOP ARCHIVE — Kategorie Filter Chips
   ========================================================================== */

.awg-shop-cat-filter,
.awg-subcat-filter {
    display: flex;
    gap: 8px;
    padding: 0 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.awg-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--awg-radius-full);
    border: 1.5px solid var(--awg-border);
    background: #fff;
    color: var(--awg-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--awg-transition);
    white-space: nowrap;
}

.awg-cat-chip:hover,
.awg-cat-chip.active {
    background: var(--awg-orange);
    border-color: var(--awg-orange);
    color: #fff;
}

.awg-cat-chip.active .awg-icon,
.awg-cat-chip:hover .awg-icon {
    stroke: #fff;
}

.awg-cat-chip .awg-icon {
    stroke: var(--awg-orange);
}

.awg-cat-chip-count {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
}

.awg-cat-chip.active .awg-cat-chip-count,
.awg-cat-chip:hover .awg-cat-chip-count {
    background: rgba(255,255,255,0.25);
}

/* Kategorie SEO-Text Block */
.awg-cat-seo-block {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 16px 24px;
    background: var(--awg-bg-light, #f8f8f8);
    border-radius: var(--awg-radius, 8px);
    color: var(--awg-text-muted, #666);
    font-size: 14px;
    line-height: 1.7;
}

/* Section-Header separat paddieren (nach Swiper-Fix) */
.awg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ==========================================================================
   FLOATING CONTACT BUTTONS (WhatsApp + Telefon)
   ========================================================================== */

/* ==========================================================================
   WOOCOMMERCE PRODUCT GALLERY — Image Clipping Fix
   ========================================================================== */

/* Ensure product gallery images scale to fit their container */
.woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce-product-gallery__wrapper img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

/* Flex-child gallery wrapper should not overflow */
.woocommerce-product-gallery__image {
    overflow: hidden !important;
}

/* ==========================================================================
   WOOCOMMERCE RELATED PRODUCTS — Out-of-Stock Overlap Fix
   ========================================================================== */

/* Hide duplicate Astra card-action tooltip for out-of-stock products in loops.
   The "Nicht vorrätig" badge and "Weiterlesen" button overlap due to Astra positioning.
   Solution: stack them vertically so they don't overlap. */
.woocommerce ul.products li.product.outofstock .ast-card-content-wrap .button,
.woocommerce ul.products li.product.outofstock .ast-woocommerce-container .button {
    position: relative !important;
    display: block !important;
    margin-top: 4px !important;
}

/* Ensure out-of-stock badge in loop doesn't overlap with button */
.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__title,
.woocommerce ul.products li.product.outofstock .ast-card-content-wrap {
    position: relative;
    z-index: 1;
}

/* Separate the "Nicht vorrätig" span and "Weiterlesen" link vertically */
.woocommerce ul.products li.product.outofstock .button.product_type_simple {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* ==========================================================================
   WC DEFAULT BADGES — hide in related/upsell (custom badges used on main pages)
   ========================================================================== */

/* Hide WC default sale badge everywhere (replaced by .awg-badge-sale) */
.woocommerce span.onsale {
    display: none !important;
}

/* Hide default WC out-of-stock mark in related/upsell loops */
.related.products .stock.out-of-stock,
.upsells.products .stock.out-of-stock,
.cross-sells .stock.out-of-stock {
    display: none !important;
}

/* ==========================================================================
   FLOATING CONTACT BUTTONS
   ========================================================================== */

.awg-floating-contact {
    position: fixed;
    bottom: 32px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.awg-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.awg-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #fff;
    text-decoration: none;
}

.awg-fab-wa {
    background: #25d366;
}

.awg-fab-phone {
    background: var(--awg-orange, #f97316);
}

@media (max-width: 768px) {
    .awg-floating-contact {
        bottom: 20px;
        right: 16px;
    }
    .awg-fab {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   WOOCOMMERCE PRODUCT GALLERY FIXES
   ========================================================================== */

/* Fix: Gallery bleibt nicht bei opacity:0 haengen wenn Bild fehlt */
.woocommerce-product-gallery {
    opacity: 1 !important;
}

/* Fix: Kein riesiger Leerraum wenn Placeholder-Bild verwendet wird */
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__wrapper,
.wc-placeholder-img-wrapper {
    min-height: 0 !important;
}

/* Produktbild: vollstaendig sichtbar, nicht abgeschnitten */
.woocommerce-product-gallery .wp-post-image,
.woocommerce-product-gallery .woocommerce-placeholder {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ==========================================================================
   RELATED / UPSELL / CROSS-SELL PRODUKTBILDER
   Maximale Höhe ohne Proportionsverlust
   ========================================================================== */

/* Bildcontainer bei ähnlichen / empfohlenen Produkten */
.related.products ul.products li.product .woocommerce-loop-product__link img,
.up-sells ul.products li.product .woocommerce-loop-product__link img,
.cross-sells ul.products li.product .woocommerce-loop-product__link img,
.related.products ul.products li.product .ast-loop-product__img-wrap img,
.up-sells ul.products li.product .ast-loop-product__img-wrap img,
.related.products ul.products li.product img.attachment-woocommerce_thumbnail,
.related.products ul.products li.product img.wp-post-image {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    background: #fafafa;
    padding: 12px;
    box-sizing: border-box;
    display: block;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (DSGVO)
   ========================================================================== */

.awg-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #fff;
    border-top: 3px solid var(--awg-orange);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.14);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.awg-cookie-banner--visible {
    transform: translateY(0);
}

.awg-cookie-banner--hiding {
    transform: translateY(100%);
}

.awg-cookie-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.awg-cookie-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.awg-cookie-text {
    flex: 1;
    min-width: 200px;
}

.awg-cookie-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--awg-text);
    margin-bottom: 4px;
}

.awg-cookie-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.awg-cookie-link {
    color: var(--awg-orange);
    text-decoration: underline;
    white-space: nowrap;
}

.awg-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.awg-cookie-btn {
    padding: 10px 20px;
    border-radius: var(--awg-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--awg-transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.awg-cookie-btn--primary {
    background: var(--awg-orange);
    color: #fff;
    border-color: var(--awg-orange);
}

.awg-cookie-btn--primary:hover {
    background: var(--awg-orange-dark);
    border-color: var(--awg-orange-dark);
    transform: translateY(-1px);
}

.awg-cookie-btn--secondary {
    background: transparent;
    color: var(--awg-text);
    border-color: var(--awg-border);
}

.awg-cookie-btn--secondary:hover {
    border-color: #9ca3af;
    background: var(--awg-gray);
}

@media (max-width: 600px) {
    .awg-cookie-inner {
        padding: 14px 16px;
        gap: 12px;
    }
    .awg-cookie-icon {
        display: none;
    }
    .awg-cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .awg-cookie-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }
}

/* ─── Search Dropdown ──────────────────────────────────────────────────────── */
#awg-search-dropdown {
    display: none;
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid var(--awg-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.awg-search-loading,
.awg-search-noresult {
    padding: 16px 18px;
    color: #6b7280;
    font-size: 14px;
}

.awg-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awg-search-item {
    border-bottom: 1px solid var(--awg-border, #f3f4f6);
}

.awg-search-item:last-child {
    border-bottom: none;
}

.awg-search-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.awg-search-link:hover {
    background: #f9fafb;
}

.awg-search-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
    background: #fafafa;
    flex-shrink: 0;
}

.awg-search-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.awg-search-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.awg-search-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.awg-search-stock--in  { color: #16a34a; }
.awg-search-stock--out { color: #dc2626; }

.awg-search-all {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--awg-primary, #2563eb);
    text-decoration: none;
    border-top: 1px solid var(--awg-border, #e5e7eb);
    background: #f9fafb;
}

.awg-search-all:hover {
    background: #f3f4f6;
}

@media (max-width: 600px) {
    #awg-search-dropdown {
        border-radius: 0 0 12px 12px;
        max-height: 60vh;
    }
    .awg-search-thumb {
        width: 40px;
        height: 40px;
    }
}

/* ── WhatsApp temporär deaktiviert (TODO: wieder aktivieren wenn bereit) ── */
.awg-hero-wa,

/* ── woo-exfood Checkout-Elemente ausblenden (awesgo-child übernimmt PLZ/Zone) ── */
.exwf-cksp-method,
.exwf-user-dl-info,
.exwf-mbnav {
    display: none !important;
}

/* FIX: Produktbilder vollstaendig anzeigen - nie abschneiden */
.awg-product-img,
.awg-product-card img,
.awg-cat-product-grid .awg-product-card img {
    height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    padding: 8px;
    background: #fafafa;
}

/* ==========================================================================
   RESPONSIVE — VERY SMALL MOBILE (max-width: 420px) — FIX 2-PRODUCT OVERFLOW
   ========================================================================== */

@media (max-width: 420px) {
    .awg-cat-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 8px 20px;
        gap: 12px;
    }

    .awg-product-card {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY CHECKOUT BUTTON — Appears when cart has items
   ═══════════════════════════════════════════════════════════════════════════ */

#awg-sticky-checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    padding: 16px 16px 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

#awg-sticky-checkout.visible {
    transform: translateY(0);
    opacity: 1;
}

#awg-sticky-checkout.hidden {
    display: none;
}

.awg-sticky-checkout-inner {
    max-width: 100%;
    margin: 0 auto;
}

.awg-sticky-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--awg-orange) 0%, #ff9c3a 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--awg-radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.awg-sticky-checkout-btn:hover {
    background: linear-gradient(135deg, #ff9c3a 0%, var(--awg-orange) 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.awg-sticky-checkout-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #awg-sticky-checkout {
        padding: 12px 12px 16px;
    }
    
    .awg-sticky-checkout-btn {
        padding: 13px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #awg-sticky-checkout {
        padding: 10px 10px 14px;
    }
    
    .awg-sticky-checkout-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ─── Blog Single Post Sidebar ─────────────────────────────────────── */
.awg-blog-sidebar {
    padding-left: 30px;
}

.awg-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 24px;
}

.awg-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--awg-orange, #f97316);
}

/* Recent Posts */
.awg-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awg-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.awg-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.awg-rp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.awg-rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awg-rp-info {
    flex: 1;
    min-width: 0;
}

.awg-rp-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.awg-rp-title:hover {
    color: var(--awg-orange, #f97316);
}

.awg-rp-date {
    font-size: 11px;
    color: #888;
}

/* Sale Products Sidebar */
.awg-sale-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awg-sale-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.awg-sale-product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.awg-sp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.awg-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.awg-sp-info {
    flex: 1;
    min-width: 0;
}

.awg-sp-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.awg-sp-name:hover {
    color: var(--awg-orange, #f97316);
}

.awg-sp-price {
    font-size: 13px;
}

.awg-sp-price ins {
    color: #e44;
    font-weight: 700;
    text-decoration: none;
}

.awg-sp-price del {
    color: #aaa;
    font-size: 11px;
}

@media (max-width: 767px) {
    .awg-blog-sidebar {
        padding-left: 15px;
        padding-top: 24px;
    }
}

/* ─── Blog Single Post Layout (2-column) ───────────────────────────── */
.awg-single-post-wrap {
    padding: 24px 0 48px;
}

.awg-single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.awg-single-content {
    min-width: 0;
    width: 100% !important;
    float: none !important;
    max-width: none !important;
}

.awg-blog-sidebar {
    position: sticky;
    top: 100px;
}

.awg-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 24px;
}

.awg-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--awg-orange, #f97316);
}

/* Recent Posts Sidebar */
.awg-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awg-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.awg-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.awg-rp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.awg-rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awg-rp-info {
    flex: 1;
    min-width: 0;
}

.awg-rp-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.awg-rp-title:hover {
    color: var(--awg-orange, #f97316);
}

.awg-rp-date {
    font-size: 11px;
    color: #888;
}

/* Sale Products Sidebar */
.awg-sale-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awg-sale-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.awg-sale-product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.awg-sp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.awg-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.awg-sp-info {
    flex: 1;
    min-width: 0;
}

.awg-sp-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.awg-sp-name:hover {
    color: var(--awg-orange, #f97316);
}

.awg-sp-price {
    font-size: 13px;
}

.awg-sp-price ins {
    color: #e44;
    font-weight: 700;
    text-decoration: none;
}

.awg-sp-price del {
    color: #aaa;
    font-size: 11px;
}

@media (max-width: 900px) {
    .awg-single-post-layout {
        grid-template-columns: 1fr;
    }
    .awg-blog-sidebar {
        position: static;
    }
}

/* ─── Fix: Astra content-area width override inside blog sidebar layout ─ */
.awg-single-post-layout #primary.content-area.awg-single-content,
.awg-single-post-layout .content-area.awg-single-content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    flex: none !important;
    padding: 0 !important;
}

/* Remove Astra's default secondary sidebar if present */
.awg-single-post-wrap #secondary {
    display: none !important;
}

/* ─── Blog single: use full-width container, not Astra narrow ─────── */
.awg-single-post-wrap .ast-container {
    max-width: var(--ast-normal-container-width, 1200px) !important;
}

/* ─── Blog single: expand Astra narrow container + grid layout ──────── */
body.single-post .site-content > .ast-container {
    max-width: var(--ast-normal-container-width, 1200px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.awg-single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    padding: 16px 0 48px;
}

.awg-single-post-layout #primary.content-area.awg-single-content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.awg-blog-sidebar {
    position: sticky;
    top: 100px;
    min-width: 0;
}

@media (max-width: 900px) {
    .awg-single-post-layout {
        grid-template-columns: 1fr;
    }
    .awg-blog-sidebar {
        position: static;
    }
    body.single-post .site-content > .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Hide empty author meta on single posts */
body.single-post .entry-meta .posted-by,
body.single-post .entry-meta .ast-author-meta {
    display: none !important;
}

/* ─── Blog Prev/Next Navigation ────────────────────────────────────── */
.awg-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.awg-post-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #f0f0f0;
}

.awg-post-nav-item:hover {
    box-shadow: 0 4px 20px rgba(249,115,22,0.15);
    transform: translateY(-2px);
    border-color: var(--awg-orange, #f97316);
}

.awg-post-nav-next {
    justify-content: flex-end;
}

.awg-pn-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.awg-pn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awg-pn-info {
    flex: 1;
    min-width: 0;
}

.awg-pn-info-right {
    text-align: right;
}

.awg-pn-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--awg-orange, #f97316);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.awg-pn-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 600px) {
    .awg-post-nav {
        grid-template-columns: 1fr;
    }
    .awg-pn-thumb {
        width: 60px;
        height: 45px;
    }
}

/* ─── Blog: Featured Image Hero ─────────────────────────────────────── */
.awg-post-hero {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.awg-post-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .awg-post-hero {
        border-radius: 10px;
        max-height: 220px;
        margin-bottom: 20px;
    }
    .awg-post-hero img {
        height: 220px;
    }
}

/* ==========================================================================
   MOBILE HEADER — Compact Icon-Only Cart + Account
   ========================================================================== */

/* Account button base styles (desktop) */
.awg-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.awg-account-btn:hover {
    background: #e5e7eb;
    color: var(--awg-orange);
    text-decoration: none;
}

/* On mobile: hide "Warenkorb" text label, keep icon + badge */
@media (max-width: 768px) {
    /* Hide cart text label */
    .awg-cart-btn > span:not(.awg-cart-count) {
        display: none;
    }

    /* Cart button: compact circle */
    .awg-cart-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Badge: keep visible */
    .awg-cart-count {
        top: -4px;
        right: -4px;
    }

    /* Account button: matches cart size */
    .awg-account-btn {
        width: 40px;
        height: 40px;
    }

    /* Header right: tighter gap for 3 items */
    .awg-header-right {
        gap: 6px;
    }

    /* PLZ chip: keep compact, show icon + short text */
    .awg-plz-chip {
        padding: 6px 10px;
        font-size: 11px;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Very small phones: PLZ shows icon only (already done at 480px), ensure layout is fine */
@media (max-width: 400px) {
    .awg-header-right {
        gap: 4px;
    }

    .awg-cart-btn,
    .awg-account-btn {
        width: 36px;
        height: 36px;
    }

    .awg-plz-chip {
        padding: 5px 8px;
    }
}

/* Cross-Sells Section: Zwingt als eigene Zeile unter dem Astra-Produkt-Flexbox-Layout */
/* Astra div.product verwendet display:flex flex-wrap:wrap */
.awg-cross-sells-section,
.awg-cart-suggestions {
    flex: 0 0 100%;
    width: 100%;
    clear: both;
    margin-top: 2rem;
}
