/* =========================================================
   OO L E M B – Unified Stylesheet
   =========================================================
   This file consolidates ALL styles from across the site into
   one place. It replaces:
     - The old style.css
     - The inline <style> nav/menu block on every page
     - The inline <style> calculator block on calculator page
     - The inline <style> prices table block on prices page
   
   After deploying this file, remove the inline <style> blocks
   from each HTML page (see INSTRUCTIONS at the bottom).
   ========================================================= */


/* =========================================================
   §1  DESIGN TOKENS  (CSS Custom Properties)
   =========================================================
   Change a value HERE → it ripples to every page.
   ========================================================= */
:root {
    /* -- Primary palette -- */
    --color-black:       #000000;
    --color-white:       #ffffff;
    --color-primary:     #111827;   /* main text / headings */
    --color-secondary:   #374151;   /* body text, icons */
    --color-muted:       #6b7280;   /* captions, labels */
    --color-light:       #9ca3af;   /* placeholders */
    --color-border:      #e5e7eb;   /* thin borders */
    --color-border-dark: #374151;   /* input borders */
    --color-surface:     #f9fafb;   /* subtle bg cards */
    --color-surface-alt: #f3f4f6;   /* tabs, hover bg */
    --color-danger:      #ef4444;   /* OOP badge */
    --color-success-bg:  #ecfdf5;
    --color-success-fg:  #065f46;
    --color-success-border: #a7f3d0;
    --color-link:        #2563eb;
    --color-danger-link: #dc2626;
    --color-nav-hover:   #ff0000;   /* sidebar nav hover */
    --color-copyright:   #444444;
    --color-gradient-green: 0, 255, 0;
    --color-gradient-red: 255, 0, 0;
    
    /* Aliases for specific uses (easier to read) */
    --gradient-link-color: var(--color-gradient-green);
    --gradient-hover-color: var(--color-gradient-green);

    /* -- Typography -- */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-weight-light:    300;
    --font-weight-regular:  400;
    --font-weight-medium:   500;
    --font-weight-semibold: 600;
    --font-weight-bold:     700;

    /* -- Type scale (rem) -- */
    --text-xs:    0.65rem;
    --text-sm:    0.75rem;
    --text-base:  1rem; /* 0.875*/
    --text-md:    1rem;
    --text-lg:    1.1rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   1.875rem;
    --text-4xl:   2.25rem;

    /* -- Letter spacing -- */
    --tracking-wide:    0.05em;
    --tracking-wider:   0.1em;
    --tracking-widest:  0.15em;

    /* -- Spacing -- */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;

    /* -- Radius -- */
    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-lg:   10px;
    --radius-xl:   12px;

    /* -- Shadows -- */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-deep:
        0 30px 40px -15px rgba(0, 0, 0, 0.1),
        0 20px 25px -10px rgba(0, 0, 0, 0.1);
    --shadow-map:
        0 25px 30px -15px rgba(0, 0, 0, 0.3),
        0 15px 25px -8px rgba(0, 0, 0, 0.15);

    /* -- Transitions -- */
    --transition-fast:  0.2s ease;
    --transition-base:  0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* -- Layout -- */
    --header-height: 80px;
    --footer-height: 48px;
    --sidebar-width: 280px;
    --global-sidebar-width: 50px;
}


/* =========================================================
   §2  RESET & BASE
   ========================================================= */
*,
::before,
::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    overflow: hidden;
}

p 	{
	/*text-indent: 40px;*/
}

/*p::first-letter { font-weight: var(--font-weight-semibold);}*/

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

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


/* =========================================================
   §3  APP LAYOUT
   ========================================================= */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.layout-middle-section {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: row;
}


/* =========================================================
   §4  HEADER
   ========================================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 2rem;
   /*background: var(--color-white);*/
    background: linear-gradient(to right, rgba(var(--gradient-link-color), 0.12), transparent 10%);
    border-bottom: 1px solid var(--color-border);
    z-index: 300;
    flex-shrink: 0;
}

.site-logo {
    height: var(--header-height);
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.site-logo-link {
    display: flex;
    align-items: center;
    height: var(--header-height);
    text-decoration: none;
}

.site-logo-link:hover {
    opacity: 0.9;
}

.user-info {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    white-space: nowrap;
}


/* =========================================================
   §5  HAMBURGER MENU  (extracted from every page's inline CSS)
   ========================================================= */
#menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 300;
    border-radius: 50%;
    transition: background var(--transition-base);
    /* Red gradient background — uncomment to enable */
    /*background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 0, 0.2) 50%, transparent 100%);*/
}

.hamburger:hover {
    /*background: linear-gradient(to bottom, transparent 0%, rgba(0,255, 0, 0.12) 50%, transparent 100%);*/
}

.hamburger svg {
    transition: transform var(--transition-base), stroke var(--transition-base);
    stroke: var(--color-black);
}

.hamburger:hover svg {
    transform: translateX(-3px) scale(1.05);
    stroke: var(--color-nav-hover);
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: var(--color-white);
    box-shadow: none;
    transform: translateX(-100%);
    transition:
        transform var(--transition-smooth),
        visibility var(--transition-smooth),
        box-shadow var(--transition-smooth);
    z-index: 250;
    padding-top: 80px;
    visibility: hidden;
}

#menu-toggle:checked ~ .side-nav {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 240;
}

#menu-toggle:checked ~ .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

.nav-link {
    display: block;
    padding: 15px 30px;
    font-size: 13px;          /* was 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
}

.nav-link:hover {
    background: #fbfbfb;
    color: var(--color-nav-hover);
}

.nav-link.active {
    color: var(--color-nav-hover);
    border-left: 4px solid var(--color-nav-hover);
}


/* =========================================================
   §6  SCROLLABLE MAIN CONTENT
   ========================================================= */
.main-content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-6) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-light) transparent;
    transition: opacity var(--transition-base);
}

.layout-middle-section .main-content {
    min-width: 0;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--color-light);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
}

/* Page fade-in animation */
.page-fade {
    animation: fadeInPage 0.2s ease-out forwards;
}

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


/* =========================================================
   §7  FOOTER
   ========================================================= */
.site-footer {
    height: var(--footer-height);
    background: var(--color-white);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-widest);
    border-top: 1px solid var(--color-border);
    z-index: 500;
    position: relative;
    flex-shrink: 0;
}

.calculator-link {
    position: absolute;
    left: 2rem;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.calculator-link:hover {
    background: var(--color-surface-alt);
    transform: translateY(-1px);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    width: 24px;
    height: 24px;
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    line-height: 1;
    background: var(--color-border);
    padding: 1px;
    border-radius: 3px;
}

.calc-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
}

.footer-text {
    color: var(--color-copyright) !important;
    font-weight: var(--font-weight-semibold);
    margin: 0 auto;
}

.footer-login {
    position: absolute;
    right: 2rem;
}

.login-link, .logout-link {
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.login-link  { color: var(--color-link); }
.logout-link { color: var(--color-danger-link); }

.login-link:hover,
.logout-link:hover {
    text-decoration: underline;
}


/* =========================================================
   §8  GLOBAL SIDEBAR NAVIGATION ARROWS
   ========================================================= */
.global-sidebar {
    width: var(--global-sidebar-width);
    flex-shrink: 0;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--gradient-hover-color), 0.25) 50%, transparent 100%);
    //background: linear-gradient(to bottom, transparent 0%, rgba(255, 0, 0, 0.25) 50%, transparent 100%);
}

.sidebar-link:hover {
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--gradient-hover-color), 0.12) 50%, transparent 100%);
    //background: linear-gradient(to bottom, transparent 0%, rgba(255, 0, 0, 0.12) 50%, transparent 100%);
}

.nav-arrow-icon {
    font-size: 4rem;
    line-height: 0.5;
    font-weight: 200;
    transform: scaleY(1.8);
    color: #000;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}


/* =========================================================
   §9  REUSABLE UI COMPONENTS
   ========================================================= */

/* -- Oolemb brand metadata tag -- */
.oolemb-meta {
    font-size: var(--text-sm);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border-top: 1px solid var(--color-muted);
    padding-top: 15px;
    margin-top: auto;
}

/* -- Deep shadow -- */
.shadow-deep {
    box-shadow: var(--shadow-deep);
}

/* -- Clear float helper -- */
.clear-both {
    clear: both;
}

/* -- Image container (used on Home, About, Materials) -- */
.oolemb-img-container {
    position: relative;
    overflow: hidden;
}

.oolemb-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover zoom — applies to wrapper so slideshows don't jump */
.oolemb-img-container:hover > img,
.oolemb-img-container:hover > div {
    transform: scale(1.1);
}

.oolemb-img-container > img,
.oolemb-img-container > div {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Oolemb grid (homepage) -- */
.oolemb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-10);
}

/* -- Mobile link -- */
.mobile-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: var(--text-md);
    color: var(--color-black);
    text-decoration: none;
}


/* =========================================================
   §10  UNIFIED FORM ELEMENTS
   =========================================================
   Use these everywhere instead of page-specific classes.
   ========================================================= */

/* -- Labels -- */
.form-label {
    display: block;
    font-size: var(--text-xl);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-muted);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
}



/* -- Text inputs & textareas -- */
.bordered-input,
.oo-input {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border-dark);
    padding: var(--space-3) 14px;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-family);
    font-size: var(--text-base);
    color: var(--color-primary);
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.bordered-input:focus,
.oo-input:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.bordered-input::placeholder,
.oo-input::placeholder {
    color: var(--color-light);
}

/* -- Select dropdowns -- */
.oo-select {
    background: var(--color-white);
    border: 1px solid var(--color-border-dark);
    color: var(--color-primary);
    padding: var(--space-3) 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-family: var(--font-family);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.oo-select:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* -- Buttons -- */
.oo-btn {
    width: 100%;
    padding: 12px var(--space-6);
    background: var(--color-black);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: var(--font-family);
    box-sizing: border-box;
}

.oo-btn:hover {
    background: #1f2937;
}

/* -- Cards -- */
.oo-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}


/* =========================================================
   §11  CONTACT PAGE
   ========================================================= */
.contact-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 92%;
    display: flex;
    flex-direction: column;
}

.contact-slideshow-container {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.contact-heading {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-light);
    text-align: center;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.section-subheading {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.submit-button {
    margin-top: 1.5rem;
    padding: 12px 48px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-base);
    font-family: var(--font-family);
}

.submit-button:hover {
    background: #1f2937;
}

/* Slides */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    overflow-y: auto;
    padding: var(--space-5) 0;
}

.slide-content.active {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}

.slide-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Dot navigation */
.dot-nav-container {
    position: absolute;
    top: 2px;
    left: 40px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.dot::after {
    content: '';
    display: block;
    height: 3px;
    width: 8px;
    background-color: var(--color-muted);
    border-radius: 9999px;
    transition: all var(--transition-base);
}

.dot:hover::after {
    background-color: var(--color-black);
}

.dot.active::after {
    background-color: var(--color-black);
    width: 20px;
    transform: scale(1.1);
}

/* Map */
.map-wrapper {
    width: 100%;
    flex: 1;
    min-height: 300px;
    margin: auto 0;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-map);
    background: #f8fafc;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.otsekontaktid {
    text-align: right;
}

.otsekontaktid .contact-info-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-bottom: 0.75rem;
}

.otsekontaktid .contact-icon {
    order: 2;
    font-size: 1.25rem;
    opacity: 0.75;
    width: 28px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rekvisiidid {
    text-align: left;
}

.note {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-muted);
    margin: 0;
}

.label {
    color: var(--color-muted);
    font-size: var(--text-xl);
    text-transform: uppercase;
    margin-right: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

/* Success alert */
.alert-floating-wrapper {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 420px;
}

.success-alert {
    background: var(--color-success-bg);
    color: var(--color-success-fg);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-success-border);
    text-align: center;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   §12  MATERIALS PAGE
   ========================================================= */

/* Grid */
.mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: var(--space-3);
}

@media screen and (max-width: 640px) {
    .mat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-2);
    }
    .mirror-floor-container { display: none; }
}

/* Hide scrollbar utility */
.scroll-wrapper::-webkit-scrollbar { width: 0; }
.scroll-wrapper { scrollbar-width: none; }

/* Thumbnail card */
.mat-card {
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mat-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mat-card:hover img {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mat-card.active {
    opacity: 0.5;
    transform: scale(0.98);
}

/* Out of production badge */
.oop-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 7px;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    z-index: 5;
    font-weight: var(--font-weight-bold);
}

.mat-name-thumb {
    display: block;
    font-size: 9px;
    font-weight: var(--font-weight-semibold);
    margin-top: 6px;
    text-transform: uppercase;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mat-card.hover-sync img {
    transform: scale(1.05);
}

/* Main image cross-fade */
.mat-hero .oolemb-img-container {
    position: relative;
    overflow: hidden;
}

.mat-hero .oolemb-img-container img:hover {
    transform: none !important;
}

.mat-img-desktop {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cross-fade-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.4s ease-in-out;
    border-radius: var(--radius-md);
}

/* Disabled overlay (kept for compatibility) */
.mat-white-overlay {
    display: none;
}

/* Mirror floor */
.mirror-floor-container {
    height: 110px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
    background: var(--color-white);
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.mirror-floor-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to bottom, transparent 0%, var(--color-white) 100%);
    pointer-events: none;
    z-index: 2;
}

.reflection-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform-origin: top center;
    will-change: transform;
}

.reflection-grid {
    opacity: 0.35;
    filter: blur(2px);
    pointer-events: none;
    padding-bottom: 10px;
}

.reflection-grid .mat-card {
    opacity: 1 !important;
    cursor: default;
}


/* =========================================================
   §13  PRICES PAGE TABLE STYLES  (extracted from inline CSS)
   ========================================================= */
.items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.items-table th {
    text-align: left;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-muted);
    padding-bottom: var(--space-2);
}

.items-table td {
    padding: 6px;
    vertical-align: middle;
}

.items-table input,
.items-table select {
    width: 100%;
}

.items-table input:focus,
.items-table select:focus {
    outline: none;
    border-color: var(--color-black);
}

/* Prices mobile layout */
@media (max-width: 1023px) {
    .mobile-items-wrap .items-table,
    .desktop-table {
        display: none;
    }

    .mobile-items-wrap {
        display: block;
    }

    .mobile-item-card {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: var(--space-3);
        margin-bottom: 10px;
        background: var(--color-white);
    }

    .mobile-item-card:first-child {
        margin-top: 0;
    }

    .mobile-sel {
        width: 100%;
        font-family: var(--font-family);
        background: var(--color-white);
        border: 1px solid var(--color-border-dark);
        color: var(--color-primary);
        padding: var(--space-3) 12px;
        border-radius: var(--radius-sm);
        outline: none;
        box-sizing: border-box;
    }

    .mobile-sel:focus {
        border-color: var(--color-black);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    }

    .mobile-dim-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .mobile-dim-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .mobile-dim-label {
        display: flex;
        flex-direction: column;
        font-size: 11px;
        font-weight: var(--font-weight-semibold);
        text-transform: uppercase;
        letter-spacing: var(--tracking-wide);
        color: var(--color-muted);
        margin-bottom: var(--space-1);
    }

    .mobile-dim-label input {
        background: var(--color-white);
        border: 1px solid var(--color-border-dark);
        color: var(--color-primary);
        padding: var(--space-3) 12px;
        border-radius: var(--radius-sm);
        font-size: var(--text-base);
        font-family: var(--font-family);
        outline: none;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-dim-label input:focus {
        border-color: var(--color-black);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    }
}


/* =========================================================
   §14  CALCULATOR PAGE STYLES  (extracted from inline CSS)
   ========================================================= */
.calc-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 6px;
}

.calc-wrapper h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.calc-wrapper .calc-subtitle {
    font-size: var(--text-sm);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-5);
}

/* Tabs */
.calc-tabs {
    display: flex;
    gap: 2px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.calc-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-muted);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-family);
}

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

.calc-tab.active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* Panels */
.calc-panel {
    display: none;
    animation: calcFadeIn 0.2s ease;
}

.calc-panel.active {
    display: block;
}

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

/* Card */
.calc-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.calc-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.calc-card-header svg {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.calc-card-header h2 {
    font-size: var(--text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.calc-card-header p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin: 0;
}

/* Row */
.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .calc-row {
        grid-template-columns: 1fr;
    }
}

/* Field */
.calc-field {
    margin-bottom: 14px;
}

.calc-label {
    display: block;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-muted);
    margin-bottom: 6px;
    font-weight: var(--font-weight-semibold);
}

/* Input (reuses border) */
.calc-input {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border-dark);
    color: var(--color-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-sizing: border-box;
}

.calc-input:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.calc-input::placeholder {
    color: var(--color-light);
}

/* Select */
.calc-select {
    background: var(--color-white);
    border: 1px solid var(--color-border-dark);
    color: var(--color-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-family: var(--font-family);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.calc-select:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* Button */
.calc-btn {
    width: 100%;
    padding: 12px var(--space-6);
    background: var(--color-black);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: var(--font-family);
    margin-top: 4px;
}

.calc-btn:hover {
    background: #1f2937;
}

/* Result */
.calc-result {
    margin-top: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    text-align: center;
}

.calc-result-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.calc-result-label {
    font-size: var(--text-sm);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: 4px;
}


/* =========================================================
   §15  RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .site-header,
    .site-footer {
        padding: 0 1rem;
        background: var(--color-white);
    }

    .main-content {
        padding: var(--space-4) 0;
    }

    .site-logo {
        height: 60px;
    }

    .contact-page {
        width: 100%;
        height: 95%;
    }

    .map-wrapper {
        width: 95%;
        height: 380px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .otsekontaktid {
        text-align: left;
    }

    .otsekontaktid .contact-info-line {
        justify-content: flex-start;
    }

    .otsekontaktid .contact-icon {
        order: -1;
        text-align: right;
    }

    .dot-nav-container {
        top: 15px;
        left: 15px;
        flex-direction: row;
    }
}

/* Materials mobile drawer */
@media screen and (max-width: 1024px) {
    .right-panel-mobile {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        transform: translateX(100%);
        z-index: 9999;
        background: var(--color-white);
        transition: transform var(--transition-base);
        cursor: pointer;
    }

    .right-panel-mobile.open {
        transform: translateX(0);
    }

    .main-image-wrapper-mobile {
        padding: 0 !important;
    }

    .mat-hero-mobile {
        height: 100%;
    }

    .oolemb-img-container-mobile {
        height: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }

    .mat-img-desktop {
        object-fit: cover;
    }

    .cross-fade-layer {
        object-fit: cover;
    }
}


/* =========================================================
   §16  PRINT STYLES
   ========================================================= */
@media print {
    .site-header,
    .site-footer,
    .side-nav,
    .menu-overlay,
    .global-sidebar,
    .hamburger,
    #menu-toggle {
        display: none !important;
    }

    .main-content {
        overflow: visible;
        padding: 0;
    }

    body {
        overflow: visible;
    }
}

/* =========================================================
   §17  RESPONSIVE TYPOGRAPHY (Desktop / Laptop / Large)
   =========================================================
   Mobile sizes stay fine via Tailwind defaults.
   These rules scale up text inside .page-content wrappers.
   ========================================================= */

/* --- Laptop (768px–1439px) --- */
@media (min-width: 768px) {
    .page-content h2 {
        font-size: 2.5rem;
    }
    .page-content h3 {
        font-size: 1.5rem;
    }
    .page-content p,
    .page-content .text-sm {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    .page-content .text-lg {
        font-size: 1.25rem;
    }
    .page-content .oolemb-meta {
        font-size: 0.8rem;
    }
}

/* --- Desktop / Large monitor (1440px+) --- */
@media (min-width: 1440px) {
    .page-content h2 {
        font-size: 3rem;
    }
    .page-content h3 {
        font-size: 1.75rem;
    }
    .page-content p,
    .page-content .text-sm {
        font-size: 1.15rem;
        line-height: 1.8;
    }
    .page-content .text-lg {
        font-size: 1.35rem;
    }
    .page-content .oolemb-meta {
        font-size: 0.85rem;
    }
}

/* --- Extra large (1920px+) --- */
@media (min-width: 1920px) {
    .page-content h2 {
        font-size: 3.5rem;
    }
    .page-content h3 {
        font-size: 2rem;
    }
    .page-content p,
    .page-content .text-sm {
        font-size: 1.25rem;
        line-height: 1.85;
    }
    .page-content .text-lg {
        font-size: 1.5rem;
    }
    .page-content .oolemb-meta {
        font-size: 0.9rem;
    }
}

/*§18*/
.shop-card-grid {
    background: white;
    border: 1px solid var(--color-border);  /* #e5e7eb */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);  /* light gray border */
	box-shadow: var(--shadow-md);           /* subtle depth shadow */
}
/* =========================================================
   §19  SHOP PAGE ADDITIONS
   ========================================================= */

/* 1. The Mask Fade (Applied only to text description) */
.shop-desc-fade {
    max-height: 100%;
    overflow: hidden;
    /* Gradient mask: 60% visible, fading to transparent */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    line-height: 1.5;
}

/* 2. Line Clamp for Mobile (4 lines limit) */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. Reset Clamp for Desktop */
.md\:line-clamp-none {
    display: block;
    -webkit-line-clamp: unset;
}

/* 4. Discount Badge Float */
.shop-discount-float {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    pointer-events: none;
}

/* 5. Card Styling */
.shop-card-grid {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}


/* =========================================================
   §20  SHOP PAGE RESPONSIVE FIX
   ========================================================= */

/* Add to §19 SHOP PAGE ADDITIONS */
/* Mobile Line Clamp for Look Book View */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reset for Desktop */
.md\:line-clamp-none {
    display: block;
    -webkit-line-clamp: unset;
}

    .mobile-dim-label.disabled-label { opacity: 0.4; }
    .mobile-dim-label.disabled-label input { background-color: #f3f4f6; border-color: #e5e7eb; color: #9ca3af; }
    
.btn-delete-icon {
    color: var(--color-danger-link);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 var(--space-2);
    transition: color var(--transition-fast);
}

.btn-delete-icon:hover {
    color: var(--color-danger); /* Uses your OOP badge red for hover */
}
/*
 =========================================================
   DEPLOYMENT INSTRUCTIONS
   =========================================================

   STEP 1: Replace your current Css/style.css with this file.

   STEP 2: Remove the FIRST inline <style> block from EVERY HTML
           page (the one starting with /* Completely hide the
           checkbox... and containing .hamburger, .side-nav,
           .menu-overlay, .nav-link styles).
           
           These styles are now in §5 of this file.

   STEP 3: Remove the THIRD inline <style> block from the
           CALCULATOR page (the .calc-wrapper block).
           
           These styles are now in §14 of this file.

   STEP 4: Remove the THIRD inline <style> block from the
           PRICES page (the .items-table block).
           
           These styles are now in §13 of this file.

   STEP 5: Optionally replace inline styles on elements:
           - On calculator page, replace style="..." attributes
             with the classes defined in §14
           - On prices page, replace style="..." attributes
             with classes defined in §13

   STEP 6: Test all pages to verify visual consistency.

   GOING FORWARD: When you need to change a color, font-size,
   spacing, or radius — change it ONCE in §1 (Design Tokens)
   and every page updates automatically.
 =========================================================
*/
