:root {
    --accent-color: #FFD700;
    --accent-dark: #FFA500;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-light: #e5e5e5;
    --banner-height: 36px;
}

/* Utility Classes */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 0;
    margin: 0;
    background-color: #000000;
}

@keyframes slideRight {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes fadeScale {
    0% {
        transform: scale(0.98);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-right {
    animation: slideRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-top {
    animation: slideTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-scale {
    animation: fadeScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

input:focus, textarea:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
}

#smooth-wrapper {
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    margin-top: var(--banner-height);
}

#smooth-content {
    width: 100%;
    min-width: 100%;
}

/* Top announcement banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--banner-height);
    background: var(--accent-color);
    color: #000;
    display: flex;
    overflow: hidden;
    z-index: 50000;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.top-banner-content {
    display: flex;
    gap: 3rem;
    flex-shrink: 0;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    margin-right: 3rem;
}

.top-banner-content.scroll {
    animation: scroll 135s linear infinite;
}

@media (min-width: 768px) {
    .top-banner-content.scroll {
        animation: scroll 105s linear infinite;
    }
}

.top-banner-text {
    color: #000;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: var(--banner-height);
    flex-shrink: 0;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 3rem));
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 50;
    background-color: #000000;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.header-logo-container {
    position: absolute;
    left: calc(5rem + 10%);
    display: flex;
    align-items: center;
    gap: 0;
}

.header-logo-text {
    height: 3rem;
    width: auto;
    cursor: pointer;
}

.header-logo-mobile-text {
    display: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.header-nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.045rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--accent-color);
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 2.1rem;
    height: 1.55rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    left: calc(5rem + 10%);
    top: 1.4rem;
    z-index: 60;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo-mobile {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo-mobile img {
    height: 2.5rem;
    width: auto;
}

.header-account-mobile {
    display: none;
    position: fixed;
    right: 8px;
    top: calc(var(--banner-height) + 30px);
    transform: translateY(-50%);
    z-index: 4000;
}

.mobile-nav-overlay {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 12000 !important;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    height: calc(100vh - var(--banner-height));
    width: min(320px, 78vw);
    background: linear-gradient(140deg, rgba(0, 0, 0, 1) 0%, rgba(25, 25, 25, 1) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 12001 !important;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.85rem 1.75rem 2.5rem;
    overflow-y: auto;
}

.mobile-nav-container.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.mobile-nav-close {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
    position: absolute;
    top: 12px;
    right: 12px;
}

.mobile-nav-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    transform: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--accent-color);
    padding-left: 0.4rem;
}

.mobile-nav-link span {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover span,
.mobile-nav-link:focus span {
    color: var(--accent-color);
    transform: translateX(0.2rem);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.mobile-nav-button {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    padding: 0.95rem 1.5rem;
    border: 2px solid var(--accent-color);
    background: var(--accent-color);
    color: #000000;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-button.secondary {
    background: transparent;
    color: var(--accent-color);
}

.mobile-nav-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #000000;
}

.mobile-nav-button.secondary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
}

.header-account-mobile { 
    z-index: 11000 !important; 
    position: fixed !important; 
}

/* Account Toolbar */
.cart-toolbar {
    position: fixed;
    top: calc(var(--banner-height) + 36px);
    transform: translateY(-50%);
    right: 8px;
    z-index: 4000;
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
}

#accountButton,
#accountButtonMobile {
    background: var(--accent-color);
    border: none;
    border-radius: 0;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 0;
    height: 48px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.18);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
}

#accountDropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.5rem 0;
    display: none;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5000;
}

#accountDropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #333;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: background 0.2s ease;
}

#accountDropdown a:hover {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
}

#hero-section {
    height: 60vh;
    min-height: 60vh;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 26, 0.85) 100%), url('../images/heropage-etusivu.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    width: 100%;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

@media (min-width: 768px) {
    *::-webkit-scrollbar {
        width: 10px;
    }
    *::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    *::-webkit-scrollbar-thumb {
        background-color: var(--accent-color);
        border-radius: 0;
    }
    *::-webkit-scrollbar-thumb:hover {
        background-color: var(--accent-dark);
    }
}

/* Hero Content */
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    box-sizing: border-box;
}

.hero-left {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-intro {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: black;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Wave SVG */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 1;
}

/* Varaosa Section Styles */
.varaosa-section {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    min-height: 50vh;
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.varaosa-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.varaosa-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.varaosa-subtitle {
    max-width: 620px;
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.varaosa-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.varaosa-search {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    border: 2px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
    height: 50px;
}

.varaosa-search:hover,
.varaosa-search:focus-within {
    border-color: #000;
}

.varaosa-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    background: #000;
    border: none;
    cursor: pointer;
}

.varaosa-search-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.varaosa-search-input {
    border: none;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    min-width: 300px;
    background: #ffffff;
}

.varaosa-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.varaosa-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.varaosa-pagination-top {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-right: 3px;
}

.varaosa-page-btn {
    padding: 0.65rem 1.2rem;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0;
    cursor: pointer;
    transition: outline 0.05s ease, background 0.05s ease, font-weight 0s;
    font-family: 'Outfit', sans-serif;
    outline: 2px solid transparent;
    outline-offset: 0;
}

.varaosa-page-btn:hover {
    outline: 2px solid #fff;
}

.varaosa-page-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 800;
    outline: 2px solid #fff;
}

.varaosa-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(520px, auto);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-bottom: 2rem;
    padding: 3px;
}

.varaosa-card {
    background: #ffffff;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: visible;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
    z-index: 1;
}

.varaosa-card:hover {
    border-color: #000;
    z-index: 10;
}

.varaosa-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 220px;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.varaosa-card-image::before {
    content: 'Kuva latautuu..';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    z-index: 1;
    background: #f3f3f3;
    pointer-events: none;
}

.varaosa-card-image.img-loaded::before {
    display: none !important;
}

.varaosa-card-image.error::before {
    content: 'Ei kuvaa';
    background: #f3f3f3;
}

.varaosa-card-image img {
    opacity: 0;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 0.5rem;
}

.varaosa-card-image img.loaded {
    opacity: 1;
}

.image-carousel-dots {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    justify-content: center;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background: #FFD700;
    transform: scale(1.1);
}

.carousel-dot:hover {
    background: rgba(255, 215, 0, 0.85);
}

.image-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.varaosa-card-content {
    padding: 1.6rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 260px;
    position: relative;
    background: #ffffff;
}

.varaosa-card-spacer {
    flex: 1;
    min-height: 0;
}

.varaosa-card-location {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
    margin-bottom: 0.2rem;
}

.varaosa-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.varaosa-card-description {
    color: #5c5c5c;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

.varaosa-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #111111;
    margin-top: 0.1rem;
}

.varaosa-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-color);
}

.varaosa-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background-color: var(--accent-color);
    color: #111111;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.varaosa-card-btn:hover {
    background: var(--accent-dark);
}

/* Pagination */
.varaosa-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.varaosa-page-link {
    background: white;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    border: 1px solid var(--border-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
}

.varaosa-page-link:hover,
.varaosa-page-link.active {
    background: var(--accent-color);
    color: black;
}

body.modal-open {
    overflow: hidden !important;
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 70000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    z-index: 70001;
    transition: background 0.2s ease;
}

.image-lightbox-close:hover {
    background: #FFD700;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Modal Styles */
.varaosa-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60000;
    overflow: hidden;
}

.varaosa-contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.varaosa-modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.varaosa-modal-content::-webkit-scrollbar {
    display: none;
}

.varaosa-modal-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 1.5rem 2rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.varaosa-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px);
}

.varaosa-modal-close {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    transition: background 0.2s ease;
}

.varaosa-modal-close:hover {
    background: #f0f0f0;
}

.varaosa-modal-body {
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
}

.varaosa-modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #111;
}

.varaosa-modal-body p {
    margin: 0.5rem 0;
    color: #333;
    line-height: 1.6;
}

.varaosa-modal-body strong {
    font-weight: 700;
    color: #000;
}

#modalDescription {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    padding: 0.75rem;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-top: 0.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: border-color 0.2s ease;
    cursor: text;
}

#modalDescription::-webkit-scrollbar {
    display: none;
}

#modalDescription:hover,
#modalDescription:focus {
    border-color: #FFD700;
    outline: none;
}

.modal-image-section {
    text-align: center;
    margin-bottom: 0.5rem;
    background: #ffffff;
    padding: 0;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.modal-image-section::before {
    content: 'Kuva latautuu..';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    z-index: 1;
    background: #f3f3f3;
    pointer-events: none;
}

.modal-image-section.img-loaded::before {
    display: none !important;
}

.modal-image {
    opacity: 0;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image.loaded {
    opacity: 1;
}

.modal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 0 1rem 0;
    background: transparent;
}

.modal-carousel-dots .carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.modal-carousel-dots .carousel-dot.active {
    background: #FFD700;
    transform: scale(1.15);
    border-color: #FFD700;
}

.modal-carousel-dots .carousel-dot:hover {
    background: rgba(255, 215, 0, 0.8);
    border-color: #FFD700;
}

/* Responsive Design */
@media (min-width: 1280px) and (max-width: 1600px) {
    .varaosa-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1200px) {
    .varaosa-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .varaosa-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
    
    .varaosa-card-image {
        height: 200px;
    }
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-logo-mobile {
        display: block !important;
    }
    
    .header-account-mobile {
        display: block !important;
    }
    
    .header-logo-container {
        display: none;
    }
    
    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-nav, .cart-toolbar {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-logo-mobile {
        display: block;
    }

    .header-logo-mobile-text {
        display: none;
    }

    .header-account-mobile {
        display: block;
    }

    .header-logo-container {
        display: none;
    }

    header {
        padding: 1rem 0;
        min-height: 60px;
        height: auto;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-content {
        padding: 4rem 1rem 2rem;
        text-align: center;
        top: 42%;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .varaosa-controls-bar {
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
        margin-top: 10px;
        position: relative;
        z-index: 100;
    }

    .varaosa-title {
        order: -1;
        margin-bottom: 0;
        margin-top: 0;
        position: relative;
        z-index: 100;
        width: 100%;
        text-align: center;
        padding: 0;
        transform: none;
        left: auto;
    }
    
    .varaosa-title > div {
        flex-wrap: wrap;
        gap: 0.5rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    .category-filter-btn {
        font-size: 0.85rem !important;
        padding: 0 1rem !important;
        height: 44px !important;
        flex: 1 1 auto;
        min-width: 90px;
        box-sizing: border-box;
    }

    .varaosa-search {
        position: relative;
        z-index: 100;
        height: 44px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .varaosa-pagination-top {
        width: 100%;
        max-width: 100%;
    }
    
    .varaosa-pagination-bottom {
        display: flex !important;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-bottom: 1.5rem;
        flex-wrap: wrap;
    }

    .varaosa-search,
    .varaosa-pagination-top {
        max-width: 100%;
        width: 100%;
    }

    .varaosa-pagination-top {
        justify-content: center;
        position: relative;
        z-index: 100;
    }

    .varaosa-title h2 {
        font-size: 1.5rem;
    }

    .varaosa-section {
        padding: 1rem 1rem 2rem;
        overflow: visible;
        position: relative;
        z-index: 10;
        margin-top: -12px;
    }

    .varaosa-container {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        overflow-x: hidden;
        position: relative;
        z-index: 10;
    }

    .wave-bottom {
        z-index: 1;
    }

    .varaosa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(440px, auto);
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        padding: 4px;
        margin: 0;
    }
    
    .varaosa-card {
        min-width: 0;
        min-height: 440px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .varaosa-card-image {
        height: 180px;
    }

    .varaosa-contact-modal.active {
        padding: 0.5rem;
        align-items: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .varaosa-modal-content {
        margin: 0 auto;
        max-height: none;
        width: 100%;
        max-width: 100%;
        overflow-y: visible;
        border-radius: 0;
    }

    .varaosa-modal-body {
        padding: 1rem;
        padding-bottom: 2rem;
    }

    .varaosa-modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-image-section {
        padding: 0;
        margin-bottom: 0.25rem;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .modal-image {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .varaosa-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.9rem;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .varaosa-card-image {
        height: 200px;
    }
    
    .category-filter-btn {
        font-size: 0.8rem !important;
        padding: 0 0.75rem !important;
        min-width: 80px;
    }
}

/* Footer responsive styles */
footer .footer-columns a:hover {
    color: #FFD700;
}

@media (max-width: 1024px) {
    footer .footer-columns {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 0 !important;
    }
    
    footer .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    footer .footer-columns > div {
        text-align: center !important;
        align-items: center !important;
    }

    footer .footer-bottom {
        gap: 1rem !important;
    }

    footer .footer-bottom > div {
        justify-content: center !important;
    }
}
