/*
Theme Name: My Asia Shop
Description: Child-Theme von Storefront für myasiashop.ch — helles, minimalistisches Design nach Vorbild order.asiaexpressfood.nl
Template: storefront
Version: 1.0.0
Text Domain: myasiashop
*/

:root {
    --mas-accent: #d0021b;
    --mas-accent-dark: #a80116;
    --mas-text: #1f2937;
    --mas-muted: #6b7280;
    --mas-border: #e5e7eb;
    --mas-bg-soft: #f8f9fa;
}

/* ── Grundlayout: hell & ruhig ─────────────────────────── */
body {
    background: #fff;
    color: var(--mas-text);
}

/* ── Topbar: Versandinfo (Vorbild piccantino) ──────────── */
.mas-topbar {
    background: #fff;
    border-bottom: 1px solid var(--mas-border);
    font-size: 0.88em;
    padding: 0.65em 0;
    text-align: center;
    color: var(--mas-text);
}

.mas-topbar .mas-topbar-sep {
    margin: 0 0.9em;
    color: var(--mas-muted);
}

/* ── Header: Logo links, grosse runde Suche mittig, Konto/Warenkorb rechts ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--mas-border);
    padding-top: 1.2em;
    padding-bottom: 0;
}

.site-header .site-branding h1 a,
.site-header .site-branding .beta.site-title a {
    color: var(--mas-text);
    font-weight: 700;
}

/* Flex-Layout: Logo | Suche (flexibel) | Anmelden+Warenkorb */
.site-header > .col-full {
    display: flex;
    align-items: center;
    gap: 2.5em;
    flex-wrap: wrap;
    padding-bottom: 1.2em;
}

.woocommerce-active .site-header .site-branding {
    width: auto;
    flex: 0 0 auto;
    float: none;
    margin-bottom: 0;
}

.woocommerce-active .site-header .site-search {
    width: auto;
    flex: 1 1 320px;
    float: none;
    margin-bottom: 0;
}

.site-search .widget_product_search input[type="search"] {
    background: #fff;
    border: 2px solid var(--mas-text);
    border-radius: 999px;
    padding: 0.85em 1.5em;
}

.site-search .widget_product_search input[type="search"]:focus {
    border-color: var(--mas-accent);
}

/* Rechter Header-Bereich: Anmelden + Warenkorb */
.mas-header-right {
    display: flex;
    align-items: center;
    gap: 1.8em;
    flex: 0 0 auto;
    margin-left: auto;
    order: 99;
}

.mas-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    color: var(--mas-text) !important;
    text-decoration: none;
    font-weight: 600;
}

.mas-header-link:hover {
    color: var(--mas-accent) !important;
}

.mas-header-link svg {
    width: 28px;
    height: 28px;
}

.mas-cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mas-cart-total {
    font-weight: 700;
    font-size: 0.92em;
}

/* Suche in der DOM-Reihenfolge hinter dem Konto-Block — per order zurück in die Mitte */
.woocommerce-active .site-header .site-search {
    order: 50;
}

.woocommerce-active .site-header .site-branding {
    order: 1;
}

@media (max-width: 47em) {
    .site-header > .col-full {
        gap: 1em;
    }

    .woocommerce-active .site-header .site-search {
        order: 100;
        flex-basis: 100%;
    }

    .mas-header-right {
        margin-left: auto;
    }
}

/* ── Hauptnavigation: dunkle Leiste wie Vorbild ────────── */
.storefront-primary-navigation {
    background: var(--mas-text);
}

.main-navigation ul li a,
.secondary-navigation ul li a {
    color: #fff;
}

.main-navigation ul li a:hover {
    color: #fecaca;
}

.main-navigation ul.menu > li.current-menu-item > a {
    box-shadow: inset 0 -3px 0 var(--mas-accent);
}

/* Dropdown-Untermenüs hell */
.main-navigation ul.menu ul.sub-menu,
.main-navigation ul.nav-menu ul.children {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
}

.main-navigation ul.menu ul.sub-menu li a {
    color: var(--mas-text);
}

.main-navigation ul.menu ul.sub-menu li a:hover {
    color: var(--mas-accent);
    background: var(--mas-bg-soft);
}

/* ── Produktkarten ─────────────────────────────────────── */
ul.products li.product {
    background: #fff;
    border: 1px solid var(--mas-border);
    border-radius: 8px;
    padding: 1em;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--mas-text);
}

ul.products li.product .price {
    color: var(--mas-text);
    font-weight: 700;
}

ul.products li.product .button {
    background: var(--mas-accent);
    color: #fff;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    font-weight: 600;
}

ul.products li.product .button:hover {
    background: var(--mas-accent-dark);
}

/* Sale-Badge */
.onsale {
    background: var(--mas-accent);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
}

/* ── Buttons global ────────────────────────────────────── */
.button.alt,
button.alt,
input[type="submit"].alt,
.added_to_cart.alt,
.widget a.button.checkout,
.single_add_to_cart_button {
    background: var(--mas-accent) !important;
    color: #fff !important;
    border-radius: 6px;
}

.button.alt:hover,
.single_add_to_cart_button:hover {
    background: var(--mas-accent-dark) !important;
}

a {
    color: var(--mas-accent);
}

/* ── Footer: ruhig, hell-grau, 4 Spalten wie Vorbild ───── */
.site-footer {
    background: var(--mas-bg-soft);
    color: var(--mas-muted);
    border-top: 1px solid var(--mas-border);
}

.site-footer a {
    color: var(--mas-text);
}

.site-footer .widget .widget-title,
.site-footer .widget .gamma {
    color: var(--mas-text);
    font-size: 1.05em;
    font-weight: 700;
    border-bottom: 0;
    margin-bottom: 1em;
}

.mas-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mas-footer-links li {
    margin: 0 0 0.65em;
}

.mas-footer-links a {
    color: var(--mas-muted);
    text-decoration: none;
}

.mas-footer-links a:hover {
    color: var(--mas-accent);
    text-decoration: underline;
}

.mas-footer-social {
    display: flex;
    gap: 0.75em;
}

.mas-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--mas-accent);
    color: #fff;
    transition: background 0.15s ease;
}

.mas-footer-social a:hover {
    background: var(--mas-accent-dark);
}

.mas-footer-social svg {
    width: 22px;
    height: 22px;
}

/* ── Storefront-Elemente ausblenden, die das Vorbild nicht hat ── */
.storefront-breadcrumb {
    background: var(--mas-bg-soft);
    border-bottom: 1px solid var(--mas-border);
}

.site-header-cart .widget_shopping_cart {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
