/* ===================================
   Helmuts Schirmhalter – Custom CSS
   =================================== */

:root {
    --accent: #FFB800;
    --accent-hover: #E5A600;
    --accent-light: #FFF3D0;
    --dark: #1A1A2E;
    --dark-blue: #16213E;
    --body-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: #333;
    overflow-x: hidden;
}

/* --- Accent Utilities --- */
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; color: #1A1A2E !important; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #FFC940);
    color: var(--dark) !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.4);
}
.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--dark);
}

/* --- Navbar --- */
#mainNav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    padding: 1rem 0;
}
#mainNav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover { color: var(--accent) !important; }
.cart-icon {
    cursor: pointer;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--accent) !important;
    color: var(--dark) !important;
    font-weight: 700;
    animation: cartPop 0.3s ease;
}

@keyframes cartPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 50%, #0F3460 100%);
    position: relative;
    overflow: hidden;
}

.hero-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 184, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-main-image {
    max-height: 550px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-stats {
    animation: fadeInUp 1s ease 0.3s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.opacity-85 { opacity: 0.85; }

/* --- Trust Bar --- */
.trust-bar {
    background: var(--accent-light);
    border-bottom: 2px solid var(--accent);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.x-small { font-size: 0.7rem; }

/* --- Section Spacing --- */
.py-section { padding: 6rem 0; }

/* --- Section Badge --- */
.section-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-badge-light {
    display: inline-block;
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Product Gallery --- */
.product-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.product-main-img {
    width: 100%;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}
.product-main-img:hover {
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bestseller-badge {
    background: linear-gradient(135deg, var(--accent), #FFC940);
    color: var(--dark);
}

.new-badge {
    background: linear-gradient(135deg, #00C9A7, #00B4D8);
    color: white;
}

.thumbnail-row {
    overflow-x: auto;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.product-thumb:hover,
.product-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Feature List --- */
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

/* --- Quantity Selector --- */
.qty-selector {
    min-width: 110px;
}
.qty-input {
    width: 40px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.qty-btn {
    font-size: 1.1rem;
    font-weight: 700;
    width: 36px;
    color: #666;
}
.qty-btn:hover { color: var(--accent); }

/* --- Combo Deal --- */
.combo-deal {
    background: var(--accent-light);
    border: 2px dashed var(--accent);
}

/* --- Innovation Section --- */
.innovation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 50%, rgba(255, 184, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.innovation-image-wrapper {
    position: relative;
    display: inline-block;
}

.glow-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse, rgba(255, 184, 0, 0.2) 0%, transparent 70%);
    border-radius: 2rem;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.coming-soon-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.coming-soon-text {
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-align: center;
}
.feature-card:hover {
    background: rgba(255, 184, 0, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.preorder-counter {
    background: rgba(255,255,255,0.03);
}

/* --- Reviews --- */
.review-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

/* --- Newsletter --- */
.newsletter-form .form-control {
    border: 2px solid #ddd;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}
.newsletter-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(255, 184, 0, 0.15);
}

.rounded-pill-start {
    border-radius: 50px 0 0 50px !important;
}
.rounded-pill-end {
    border-radius: 0 50px 50px 0 !important;
}

/* --- Footer --- */
.footer-section a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

/* --- Cart Offcanvas --- */
.offcanvas {
    width: 400px !important;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.3s ease;
}

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

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--accent-hover);
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.cart-item-remove:hover { color: #e74c3c; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    background: #f0f0f0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.cart-item-qty button:hover {
    background: var(--accent);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* --- Checkout Button --- */
.checkout-btn {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.4);
}

/* --- Add to Cart Button Animation --- */
.add-to-cart-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.add-to-cart-btn:hover {
    transform: translateY(-2px);
}
.add-to-cart-btn.added {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}
.add-to-cart-btn.added::after {
    content: '✓ Hinzugefügt!';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    font-weight: 600;
}

/* --- Checkout Modal --- */
.checkout-success-icon {
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* --- Selection Color --- */
::selection {
    background: var(--accent);
    color: var(--dark);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }
    .hero-text {
        margin-bottom: 2rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-main-image {
        max-height: 350px;
    }
    .hero-scroll-indicator {
        display: none;
    }
    .py-section {
        padding: 4rem 0;
    }
    .d-flex.gap-3.flex-wrap {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .display-3 { font-size: 2.2rem; }
    .display-5 { font-size: 1.8rem; }
    .display-6 { font-size: 1.4rem; }
    .py-section { padding: 3rem 0; }
    .offcanvas { width: 100% !important; }
    .hero-main-image { max-height: 280px; }
    .stat-number { font-size: 1.1rem; }
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
