@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #F5F5F0 0%, #E8E8E0 100%);
    color: #2C2C2C;
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Color Classes */
.text-primary-wood { color: #A67C52; }
.text-aqua-mist { color: #7FB3D5; }
.text-charcoal-ash { color: #2C2C2C; }
.text-soft-steam { color: #F5F5F0; }
.bg-soft-steam { background-color: #F5F5F0; }
.bg-primary-wood { background-color: #A67C52; }
.bg-aqua-mist { background-color: #7FB3D5; }
.bg-charcoal-ash { background-color: #2C2C2C; }
.bg-white { background-color: white; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

nav .logo-container img {
    height: 8rem;
    width: auto;
}

nav .company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: bold;
    letter-spacing: -0.025em;
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
}

nav .nav-links a {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #A67C52;
}

nav .nav-links .shop-button {
    background-color: rgba(166, 124, 82, 0.1);
    color: #A67C52;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
}

nav .nav-links .shop-button:hover {
    background-color: #A67C52;
    color: white;
}

nav .dropdown {
    position: relative;
}

nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

nav .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2C2C2C;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav .dropdown-menu a:hover {
    background-color: rgba(166, 124, 82, 0.1);
    color: #A67C52;
}

nav .cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav .cart-button {
    position: relative;
}

nav .cart-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2C2C2C;
}

nav .cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #7FB3D5;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

nav .cta-button {
    background-color: #7FB3D5;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav .cta-button:hover {
    background-color: rgba(127, 179, 213, 0.9);
}

/* Main Content */
main {
    min-height: 100vh;
    padding-top: 8rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 5rem;
}

main .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
}

/* WooCommerce Cart */
.woocommerce-cart-form {
    width: 100%;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.shop_table thead th {
    font-weight: 600;
    color: #2C2C2C;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #E8E8E0;
}

.shop_table tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #E8E8E0;
}

.shop_table .product-thumbnail img {
    max-width: 100px;
    height: auto;
    border-radius: 0.5rem;
}

.shop_table .product-name a {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
}

.shop_table .product-name a:hover {
    color: #A67C52;
}

.shop_table .product-price {
    color: #A67C52;
    font-weight: 600;
}

.shop_table .product-subtotal {
    color: #7FB3D5;
    font-weight: 700;
    font-size: 1.25rem;
}

.shop_table .product-remove a {
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
}

.shop_table .product-remove a:hover {
    color: #dc2626;
}

.shop_table .actions button {
    background-color: #7FB3D5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.shop_table .actions button:hover {
    background-color: rgba(127, 179, 213, 0.9);
}

/* Cart Totals */
.cart-collaterals {
    margin-top: 2rem;
}

.cart_totals {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 30rem;
    margin-left: auto;
}

.cart_totals h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2C2C2C;
    margin-bottom: 1rem;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E8E8E0;
}

.cart_totals .order-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7FB3D5;
}

.wc-proceed-to-checkout {
    margin-top: 1.5rem;
}

.wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    background-color: #A67C52;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.wc-proceed-to-checkout .button:hover {
    background-color: rgba(166, 124, 82, 0.9);
}

/* ================================
   WooCommerce: Alle Buttons global
   ================================ */

/* Eigener Checkout-Button aus Template */
a.pw-checkout-btn {
    display: block;
    width: 100%;
    background-color: #A67C52 !important;
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    box-sizing: border-box;
}

a.pw-checkout-btn:hover {
    background-color: rgba(166, 124, 82, 0.85) !important;
    color: white !important;
}

/* Leerer Warenkorb Buttons */
a.pw-btn-primary {
    display: inline-block;
    background-color: #A67C52;
    color: white !important;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.3s;
}

a.pw-btn-primary:hover { background-color: rgba(166, 124, 82, 0.85); }

a.pw-btn-secondary {
    display: inline-block;
    background-color: #7FB3D5;
    color: white !important;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.3s;
}

a.pw-btn-secondary:hover { background-color: rgba(127, 179, 213, 0.85); }

/* Alle sonstigen WooCommerce Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
button[name="update_cart"],
button[name="apply_coupon"] {
    display: inline-block;
    background-color: #7FB3D5;
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.checkout-button:hover,
button[name="update_cart"]:hover,
button[name="apply_coupon"]:hover {
    background-color: rgba(127, 179, 213, 0.85);
    color: white !important;
}

/* Zur Kasse Button besonders hervorheben */
.woocommerce a.checkout-button,
.woocommerce .checkout-button {
    background-color: #A67C52;
    display: block;
    text-align: center;
}

.woocommerce a.checkout-button:hover,
.woocommerce .checkout-button:hover {
    background-color: rgba(166, 124, 82, 0.85);
}

/* Mengenfeld im Warenkorb */
.woocommerce .quantity input.qty {
    width: 4rem;
    padding: 0.5rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.5rem;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2C2C2C;
}

/* Gutschein-Bereich */
.woocommerce .coupon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.woocommerce .coupon input.input-text {
    padding: 0.75rem 1rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.75rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2C2C2C;
    background: white;
}

/* Checkout-Formular */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E8E8E0;
}

.woocommerce-checkout #payment {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    background-color: #A67C52;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.woocommerce-checkout #place_order:hover {
    background-color: rgba(166, 124, 82, 0.85);
}

/* Checkout Formularfelder */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.75rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2C2C2C;
    background: white;
    transition: border-color 0.3s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #7FB3D5;
    box-shadow: 0 0 0 3px rgba(127, 179, 213, 0.15);
}

.woocommerce form .form-row label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.375rem;
    display: block;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2C2C2C;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
}

/* Woocommerce Notices */
.woocommerce-message,
.woocommerce-info {
    background: rgba(127, 179, 213, 0.1);
    border-left: 4px solid #7FB3D5;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    list-style: none;
}

/* Leerer Warenkorb */
.pw-empty-cart {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 2rem;
}

.pw-empty-cart h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2C2C2C;
    margin-bottom: 1rem;
}

.pw-empty-cart p {
    color: rgba(44, 44, 44, 0.6);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #2C2C2C;
    color: #F5F5F0;
    padding: 4rem 1.5rem;
}

footer .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #A67C52;
    margin-bottom: 1rem;
}

footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

footer p {
    font-size: 0.875rem;
    color: rgba(245, 245, 240, 0.7);
    line-height: 1.6;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(245, 245, 240, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #7FB3D5;
}

footer .contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 245, 240, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

footer .contact-info svg {
    width: 1rem;
    height: 1rem;
    color: #7FB3D5;
}

footer .footer-bottom {
    border-top: 1px solid rgba(245, 245, 240, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .footer-bottom p {
    font-size: 0.875rem;
    color: rgba(245, 245, 240, 0.5);
}

footer .footer-links {
    display: flex;
    gap: 1.5rem;
}

footer .footer-links a {
    color: rgba(245, 245, 240, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: #7FB3D5;
}

/* ================================
   WooCommerce Block Editor: Cart
   ================================ */

/* 1. Smiley-Icon im leeren Warenkorb ausblenden */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
    display: none !important;
}

/* 2. Leerer Warenkorb - Produktvorschläge ausblenden */
.wp-block-woocommerce-empty-cart-block .wc-block-product-new,
.wp-block-woocommerce-empty-cart-block .wp-block-product-new,
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-grid {
    display: none !important;
}

/* 3. Leerer Warenkorb - Titel stylen */
.wc-block-cart__empty-cart__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    color: #2C2C2C !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* 4. Leerer Warenkorb Container */
.wp-block-woocommerce-empty-cart-block {
    text-align: center !important;
    padding: 5rem 2rem !important;
    background: white !important;
    border-radius: 2rem !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* 5. "Weiter zur Kasse" Button - Block Editor Version */
.wc-block-cart__submit-button {
    background-color: #A67C52 !important;
    color: white !important;
    border-radius: 9999px !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.wc-block-cart__submit-button:hover {
    background-color: rgba(166, 124, 82, 0.85) !important;
    color: white !important;
}

/* 6. Block-based "Return to shop" Link */
.wp-block-woocommerce-empty-cart-block a {
    color: #A67C52 !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.3s !important;
}

.wp-block-woocommerce-empty-cart-block a:hover {
    color: #7FB3D5 !important;
}

/* 7. Block-Warenkorb allgemein */
.wp-block-woocommerce-cart {
    font-family: 'Lato', sans-serif !important;
}

/* ================================
   Cookie Consent Banner (DSGVO)
   ================================ */

#pw-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(44, 44, 44, 0.97);
    backdrop-filter: blur(8px);
    color: #F5F5F0;
    padding: 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

#pw-cookie-banner.is-visible {
    display: block;
}

.pw-cookie-banner__inner {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2rem;
    align-items: start;
}

.pw-cookie-banner__text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #A67C52;
    margin-bottom: 0.5rem;
}

.pw-cookie-banner__text p {
    font-size: 0.875rem;
    color: rgba(245, 245, 240, 0.8);
    line-height: 1.5;
    margin: 0;
}

.pw-cookie-banner__options {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pw-cookie-banner__options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(245, 245, 240, 0.9);
    cursor: pointer;
    user-select: none;
}

.pw-cookie-banner__options input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #7FB3D5;
    cursor: pointer;
    flex-shrink: 0;
}

.pw-cookie-banner__options input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pw-cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    min-width: 200px;
}

.pw-cookie-banner__actions .pw-btn-primary,
.pw-cookie-banner__actions .pw-btn-secondary {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.pw-cookie-banner__actions .pw-btn-primary {
    background-color: #A67C52;
    color: white;
}

.pw-cookie-banner__actions .pw-btn-primary:hover {
    background-color: rgba(166, 124, 82, 0.85);
}

.pw-cookie-banner__actions .pw-btn-secondary {
    background-color: transparent;
    color: rgba(245, 245, 240, 0.8);
    border: 1px solid rgba(245, 245, 240, 0.3);
}

.pw-cookie-banner__actions .pw-btn-secondary:hover {
    border-color: rgba(245, 245, 240, 0.6);
    color: white;
}

.pw-cookie-banner__link {
    font-size: 0.8rem;
    color: #7FB3D5;
    text-decoration: underline;
    text-align: center;
    display: block;
}

.pw-cookie-banner__link:hover {
    color: rgba(127, 179, 213, 0.8);
}

@media (max-width: 768px) {
    .pw-cookie-banner__inner {
        grid-template-columns: 1fr;
    }

    .pw-cookie-banner__actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset;
    }

    .pw-cookie-banner__actions .pw-btn-primary,
    .pw-cookie-banner__actions .pw-btn-secondary {
        flex: 1;
        min-width: 140px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
    
    .shop_table {
        font-size: 0.875rem;
    }
    
    footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
