/* Clean Minimalist Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

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

:root {
    /* Soft purple palette */
    --primary: #7C6BAD;
    --primary-light: #9B8AC4;
    --primary-dark: #5A4A7A;
    --accent: #D4AF37;
    --accent-light: #E8D4A0;

    /* Neutral tones */
    --bg: #0F0A1E;
    --bg-elevated: #1A1529;
    --bg-soft: #251D38;
    --text: #E8E3F0;
    --text-muted: #B8AEC9;
    --border: rgba(156, 138, 196, 0.15);

    /* Subtle effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Header */
.header {
    background: rgba(26, 21, 41, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    padding: 50px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    padding: 18px;
    font-size: 1.05rem;
}

.btn-checkout:hover {
    background: var(--accent-light);
}

/* Order Section */
.order-section {
    padding: 40px 0 50px;
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Product Display */
.product-display {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.product-display h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--accent);
    font-weight: 600;
}

.product-display h3 {
    font-size: 1.25rem;
    margin: 28px 0 16px;
    color: var(--primary-light);
    font-weight: 600;
}

/* Product Card */
.product-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.product-image {
    width: 280px;
    height: 400px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.03);
}

/* Elegant placeholder - Spa themed */
.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #2A2139 0%,
        #1F1733 50%,
        #2A2139 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

.product-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(124, 107, 173, 0.1) 0%, transparent 50%);
}

.spa-aesthetic {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.roll-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.4;
    filter: grayscale(20%);
}

.spa-aesthetic p {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.product-info h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.4rem;
}

.specs {
    list-style: none;
    margin-top: 16px;
}

.specs li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.specs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.product-description {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#quantity {
    width: 100px;
    height: 48px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

/* Subscription Toggle */
.subscription-toggle {
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent);
}

.subscription-info {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Display */
.pricing-display {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text);
}

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

.old-price {
    text-decoration: line-through;
    opacity: 0.6;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.total-price {
    color: var(--accent);
    font-weight: 600;
}

.savings-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Form Styles */
.delivery-section {
    margin-top: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-soft);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.payment-info {
    margin-bottom: 20px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* Order Summary */
.order-summary {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
}

.summary-content {
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.summary-row:first-child {
    color: var(--text-muted);
}

.subscription-badge {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.savings-info {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.trust-badges {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.badge {
    background: var(--bg-soft);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Features Section */
.features {
    background: var(--bg-elevated);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--text);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}


.feature h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 600;
}

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

/* About & Contact */
.about,
.contact {
    padding: 40px 0;
}

.about {
    background: var(--bg);
}

.contact {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.about h2,
.contact h2 {
    font-size: 1.85rem;
    margin-bottom: 24px;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
}

.about p,
.contact-info {
    max-width: 800px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-light);
}

/* Footer */
.footer {
    background: var(--bg-elevated);
    color: var(--text);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Order Summary - hidden by default, shown on mobile */
.mobile-order-summary {
    display: none;
}

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

    /* Hide desktop order summary on mobile */
    .order-summary {
        display: none;
    }

    /* Show mobile order summary */
    .mobile-order-summary {
        display: block;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border: 1px solid #D4AF37;
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
    }

    .mobile-order-summary h3 {
        color: #D4AF37;
        margin: 0 0 15px 0;
        font-size: 1.2rem;
        text-align: center;
    }

    .mobile-order-summary .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        color: #ccc;
    }

    .mobile-order-summary .summary-row small {
        color: #888;
    }

    .mobile-order-summary .total-row {
        font-size: 1.1rem;
    }

    .mobile-order-summary .total-price {
        color: #D4AF37;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .mobile-order-summary hr {
        border: none;
        border-top: 1px solid #444;
        margin: 10px 0;
    }

    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-image {
        margin: 0 auto;
    }

    .product-info {
        text-align: center;
    }

    .product-info .specs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
        text-align: left;
        max-width: 400px;
        margin: 16px auto 0;
    }

    .product-description {
        text-align: center;
    }

    .placeholder-image {
        margin: 0 auto;
    }

    /* Centrera rubriker och sektioner */
    .product-display h2,
    .product-display h3 {
        text-align: center;
    }

    /* Centrera antal-väljare */
    .quantity-selector {
        justify-content: center;
    }

    /* Centrera abonnemang-toggle */
    .subscription-toggle {
        text-align: center;
    }

    .checkbox-label {
        justify-content: center;
    }

    /* Centrera prisvisning */
    .pricing-display {
        text-align: center;
    }

    .price-row {
        justify-content: center;
        gap: 10px;
    }

    /* Centrera kundtyp-knappar (Företag/Privatkund) - stapla på mobil */
    .new-customer-options {
        grid-template-columns: 1fr !important;
    }

    /* Centrera formulärfält */
    .delivery-section {
        text-align: center;
    }

    .form-group {
        text-align: left;
    }

    /* Centrera savings badge */
    .savings-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    nav a {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-display,
    .order-summary {
        padding: 24px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   LANGUAGE SELECTOR
   Elegant språkväljare med soft purple theme
   ============================================ */

.language-selector {
    position: relative;
    margin-left: 24px;
    display: inline-flex;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.language-btn:hover {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 107, 173, 0.3);
}

.language-btn.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.language-btn .flag {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.language-btn .lang-code {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.language-btn .chevron {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.language-btn.active .chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    position: relative;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.language-option:hover {
    background: rgba(124, 107, 173, 0.15);
    color: var(--text);
}

.language-option:hover::before {
    transform: scaleY(1);
}

.language-option.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
    color: var(--text);
}

.language-option.active::before {
    transform: scaleY(1);
    background: var(--accent);
}

.language-option .flag {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.language-option:hover .flag {
    transform: scale(1.1);
}

.language-option .lang-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.language-option .lang-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease;
}

.language-option .lang-english {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.language-option.active .lang-name {
    color: var(--accent);
    font-weight: 600;
}

/* Separator between options */
.language-option:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: var(--border);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 16px;
    }

    .language-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .language-btn .flag {
        font-size: 18px;
    }

    .language-dropdown {
        right: 0;
        min-width: 200px;
    }

    .language-option {
        padding: 12px 16px;
    }

    .language-option .flag {
        font-size: 24px;
    }
}

/* ============================
   CONTACT CTA
   ============================ */

.contact-cta {
    margin: 60px auto;
    padding: 48px 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

.contact-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.contact-cta .btn {
    margin-top: 8px;
}

@media (max-width: 480px) {
    .language-selector {
        margin-left: 0;
        margin-top: 8px;
    }

    .language-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .contact-cta {
        margin: 40px auto;
        padding: 32px 24px;
    }

    .contact-cta h3 {
        font-size: 1.4rem;
    }

    .contact-cta p {
        font-size: 1rem;
    }
}
