/* Solimeo.it - E-Commerce Stylesheet */

:root {
    /* Farben - Warme Musik-Instrumente Töne */
    --primary: #8B4513;          /* Saddle Brown - Holz */
    --primary-dark: #5D2E0C;     /* Dunkleres Braun */
    --secondary: #DAA520;        /* Goldenrod - Messing */
    --accent: #B22222;           /* Firebrick - Italienisch */

    --bg-main: #FAFAF8;          /* Leicht warmes Weiß */
    --bg-card: #FFFFFF;
    --bg-dark: #2C1810;          /* Dunkles Holz */
    --bg-light: #F5F0E8;         /* Warmes Hellgrau */

    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #f5f5f5;
    --text-muted: #888888;

    --border: #e0d6cc;
    --border-dark: #c9b99a;

    /* Buttons */
    --btn-primary: #8B4513;
    --btn-success: #228B22;
    --btn-disabled: #999999;

    /* Spacing */
    --container-width: 1200px;
    --gap: 20px;
    --radius: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* Header */
.header {
    background: var(--bg-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact a {
    color: var(--text-light);
    margin-right: 20px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover {
    color: var(--secondary);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-main {
    background: var(--primary);
}

.nav-main ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-main li {
    position: relative;
}

.nav-main a {
    display: block;
    padding: 12px 25px;
    color: var(--text-light);
    font-weight: 500;
    transition: background 0.2s ease;
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--primary-dark);
    color: var(--secondary);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 8px;
    color: var(--border-dark);
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
    padding: 30px 0;
}

.page-layout main {
    order: 1;
}

.page-layout .sidebar {
    order: 2;
}

.page-layout.no-sidebar {
    grid-template-columns: 1fr;
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: var(--text-secondary);
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.product-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Make entire card clickable */
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-card-title a {
    position: relative;
    z-index: 2;
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.product-card-badge.usato {
    background: var(--secondary);
    color: var(--text-primary);
}

.product-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    padding-top: 10px;
}

.product-card-price .old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--btn-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--btn-success);
    color: white;
}

.btn-success:hover {
    background: #1a6b1a;
    color: white;
}

.btn-esaurito {
    background: var(--btn-disabled);
    color: white;
    cursor: not-allowed;
}

.btn-acquista {
    background: var(--btn-success);
    color: white;
}

.btn-acquista:hover {
    background: #1a6b1a;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-main-image {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.product-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-brand {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-price-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-availability {
    margin-top: 10px;
    font-size: 0.9rem;
}

.product-availability.in-stock {
    color: var(--btn-success);
}

.product-availability.out-of-stock {
    color: var(--accent);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.product-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    width: 35%;
}

.specs-table tr:hover {
    background: var(--bg-light);
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.content-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin: 15px 0 15px 25px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Pro/Contra */
.pro-contra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pro-box,
.contra-box {
    padding: 20px;
    border-radius: var(--radius);
}

.pro-box {
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.3);
}

.contra-box {
    background: rgba(178, 34, 34, 0.1);
    border: 1px solid rgba(178, 34, 34, 0.3);
}

.pro-box h4,
.contra-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pro-box h4 {
    color: var(--btn-success);
}

.contra-box h4 {
    color: var(--accent);
}

.pro-box ul,
.contra-box ul {
    list-style: none;
    margin: 0;
}

.pro-box li::before {
    content: "✓ ";
    color: var(--btn-success);
    font-weight: bold;
}

.contra-box li::before {
    content: "✗ ";
    color: var(--accent);
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-light);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: var(--border);
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    padding: 20px;
    background: var(--bg-card);
}

.faq-answer p {
    margin: 0;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Featured Products */
.featured-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Notice Box */
.notice-box {
    background: rgba(218, 165, 32, 0.15);
    border: 1px solid var(--secondary);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.notice-box.info {
    background: rgba(139, 69, 19, 0.1);
    border-color: var(--primary);
}

.notice-box strong {
    color: var(--primary);
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.related-products h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr 220px;
    }

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

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

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.contact-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
}

.contact-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-link:hover {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .pro-contra {
        grid-template-columns: 1fr;
    }

    .nav-main ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-main a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .header-top {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }
}
