/* 
 * Impreza Child Theme - Desktop Style CSS
 * 
 * A responsive macOS desktop-inspired interface
 */

:root {
    /* Typography */
    --font-size-base: clamp(0.875rem, 1vw + 0.6rem, 1.125rem);
    --font-size-small: clamp(0.75rem, 0.8vw + 0.5rem, 0.875rem);
    --font-size-medium: clamp(1rem, 1.2vw + 0.8rem, 1.25rem);
    --font-size-large: clamp(1.25rem, 1.5vw + 1rem, 1.5rem);
    
    /* Spacing */
    --spacing-xs: clamp(0.5rem, 0.5vw + 0.25rem, 0.75rem);
    --spacing-sm: clamp(0.75rem, 1vw + 0.5rem, 1.5rem);
    --spacing-md: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    --spacing-lg: clamp(2.5rem, 3vw + 1.5rem, 4rem);
    
    /* Layout */
    --content-padding: clamp(1rem, 5vw, 4rem);
    
    /* Colors */
    --window-bg: #ffffff;
    --window-header: #f0f0f0;
    --control-red: #ff5f56;
    --control-yellow: #ffbd2e;
    --control-green: #27c93f;

    /* Impreza settings */
    --inputs-padding: 0;
    --inputs-height: 0;
    --inputs-border-width: 0;
}

@font-face {
    font-family: 'RetroComputerCondensed';
    src: url('../fonts/retro_computer_condensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === Base Styles === */
body {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.canvas {
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

main section:first-child {
    padding-top: var(--content-padding, 5vmax) !important;
}

main section {
    padding-left: var(--content-padding, 2.5rem) !important;
    padding-right: var(--content-padding, 2.5rem) !important;
}

/* === Impreza Header === */

#page-header {
    transition: box-shadow 0.2s ease-in-out; /* Smooth transition for properties like box-shadow */
}

#page-header.sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


.website-logo {
    /* position: absolute !important; */
    perspective: 1000px; /* Adds perspective to create 3D effect */
}

.website-logo img {
    animation: logo-yaw-rotation 8s infinite linear; /* 8-second rotation cycle, linear timing, infinite loop */
    transform-style: preserve-3d; /* Preserves the 3D effect */
    backface-visibility: visible; /* Shows the back face during animation */
    transform-origin: center center; /* Rotation happens around the center */
}

/* Yaw rotation animation keyframes */
@keyframes logo-yaw-rotation {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.website:hover img {
    animation-play-state: paused;
}

.menu-item a {
    font-size: var(--font-size-medium);
}

/* === Impreza Footer === */
.l-footer .l-section {
    padding: var(--spacing-sm) 0 !important;
}

.l-footer {
    font-size: var(--font-size-medium);
}

.l-footer .footer-image {
    width: 80%;
    margin: 0 auto;
}

.l-footer .menu-item a {
    font-size: var(--font-size-small);
    color: #333;
}

/* === Shop notice (info box) === */
.shop-notice-important {
    background: #43ff5e !important;
    color: black !important;
    position: relative;
    text-align: left;
    border-radius: 0.3rem;
    margin-bottom: 1.5rem !important;
    line-height: 1.2rem;
}

.shop-notice-important.with_close .w-message-body {
    padding-right: 1.5rem !important;
}

.shop-notice-important.with_close .w-message-close {
    position: absolute;
    right: 0;
}

.shop-notice-important .wpb_wrapper {
    padding: 1.5rem;
}

.shop-notice-important span.important {
    font-family: 'RetroComputerCondensed', monospace;
    font-size: 2em;
    font-weight: normal;
    line-height: 1em;
}

/* === Newsletter Response === */
/* Style only the inner .mc4wp-response if nested inside another .mc4wp-response */
.mc4wp-response .mc4wp-response {
    border-radius: 6px;
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
    padding-top: var(--spacing-xs);
}

.mc4wp-alert {
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mc4wp-alert p {
    margin: 0;
    line-height: 1.4;
}

.mc4wp-alert::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Success message */
.mc4wp-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
}

.mc4wp-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z' fill='%232ecc71'/%3E%3C/svg%3E");
}

/* Notice/Info message */
.mc4wp-notice {
    background-color: rgba(41, 128, 185, 0.1);
    border-left: 3px solid #3498db;
}

.mc4wp-notice::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z' fill='%233498db'/%3E%3C/svg%3E");
}

/* Error message */
.mc4wp-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
}

.mc4wp-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z' fill='%23e74c3c'/%3E%3C/svg%3E");
}

/* Animation for response messages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mc4wp-response {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .mc4wp-alert {
        padding: calc(var(--spacing-xs) - 2px) var(--spacing-xs);
    }
    
    .mc4wp-alert::before {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
}


/* === Sold Out Badge === */
.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%) rotate(-15deg); */
    transform: translate(-50%, -50%);
    background-color: #43ff5e;
    color: #000;
    padding: 0.5rem 1.5rem !important;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    /* border: 1.5px solid #fff; */
    box-shadow: 0 1.5px 10px rgba(0, 0, 0, 0.3);
}

/* Darken sold out product images in product listings (shop page both desktop/mobile) */
.w-vwrapper .sold-out-badge ~ .post_image img {
    filter: brightness(0.6);
}

/* Darken sold out product images in RoyalSlider (mobile homepage) */
.w-vwrapper .sold-out-badge ~ .w-slider .rsImg {
    filter: brightness(0.6);
}

/* Darken sold out product images in carousel (desktop homepage) */
.c-carousel__item.sold-out img {
    filter: brightness(0.6);
}