﻿:root {
    --primary-color: #007aff;
    --primary-hover: #005ce6;
    --primary-text: #1d1d1f;
    --secondary-text: #6e6e73;
    --background-color: #f5f5f7;
    --card-background: #ffffff;
    --border-color: #d2d2d7;
    --action-btn-bg: #e8e8ea;
    --action-btn-hover: #dcdce0;
}

body.dark-theme {
    --primary-color: #8a8cff;
    --primary-hover: #a1a3ff;
    --primary-text: #ffffff;
    --secondary-text: #a1a1aa;
    --background-color: #18181b;
    --card-background: #27272a;
    --border-color: #3f3f46;
    --action-btn-bg: var(--card-background);
    --action-btn-hover: #3f3f46;
}

body.sunset-theme {
    --primary-color: #ff6e40;
    --primary-hover: #ff8a65;
    --primary-text: #263238;
    --secondary-text: #546e7a;
    --background-color: #fff3e0;
    --card-background: #ffffff;
    --border-color: #ffd180;
    --action-btn-bg: #ffcc80;
    --action-btn-hover: #ffb74d;
}

body.midnight-mint-theme {
    --primary-color: #00c49a;
    --primary-hover: #00ab86;
    --primary-text: #e0e0e0;
    --secondary-text: #8899a6;
    --background-color: #1a202c;
    --card-background: #2d3748;
    --border-color: #4a5568;
    --action-btn-bg: #4a5568;
    --action-btn-hover: #718096;
}

body.rose-gold-theme {
    --primary-color: #e5a7a7;
    --primary-hover: #d58a8a;
    --primary-text: #4c4c4c;
    --secondary-text: #8c8c8c;
    --background-color: #fdfbfb;
    --card-background: #ffffff;
    --border-color: #f3e5e5;
    --action-btn-bg: #f3e5e5;
    --action-btn-hover: #e5dada;
}

body.forest-green-theme {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --primary-text: #3E2723;
    --secondary-text: #795548;
    --background-color: #fdf8f0;
    --card-background: #ffffff;
    --border-color: #D7CCC8;
    --action-btn-bg: #ece6e1;
    --action-btn-hover: #D7CCC8;
}

body.cherry-blossom-theme {
    --primary-color: #E91E63;
    --primary-hover: #C2185B;
    --primary-text: #424242;
    --secondary-text: #888888;
    --background-color: #fce4ec;
    --card-background: #ffffff;
    --border-color: #f8bbd0;
    --action-btn-bg: #f8bbd0;
    --action-btn-hover: #f4a1c1;
}

body.ocean-deep-theme {
    --primary-color: #FFC107;
    --primary-hover: #FFA000;
    --primary-text: #E0E1DD;
    --secondary-text: #778DA9;
    --background-color: #0D1B2A;
    --card-background: #1B263B;
    --border-color: #415A77;
    --action-btn-bg: var(--card-background);
    --action-btn-hover: #415A77;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-text);
}

.background-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(4px) brightness(0.6);
    transform: scale(1.1);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--background-color) 0%, transparent 50%, transparent 100%);
    z-index: -1;
}

.welcome-page-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
}

main {
    display: contents;
}

.welcome-card {
    background: var(--card-background);
    border-radius: 24px;
    padding: 2rem 1rem 1rem 1rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    margin-top: auto;
    margin-bottom: auto;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin: -70px auto 1rem auto;
    border: 4px solid var(--card-background);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.welcome-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.welcome-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- Styles for Social Media Icons --- */
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows icons to wrap on smaller screens */
    gap: 1rem; /* Space between icons */
    margin-top: 1.5rem; /* Space above the icon section */
    margin-bottom: 1.5rem;
}

    .social-media .CardLink {
        /* Shape and Size */
        width: 44px;
        height: 44px;
        border-radius: 50%; /* Makes the link a perfect circle */
        /* Centering the icon inside */
        display: grid;
        place-items: center;
        /* Theming and Colors */
        background-color: var(--action-btn-bg);
        border: 1px solid var(--border-color);
        text-decoration: none; /* Removes the default link underline */
        /* Smooth Animation */
        transition: all 0.2s ease-in-out;
    }

        /* Hover effect for interaction */
        .social-media .CardLink:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            background-color: var(--action-btn-hover);
        }

        /* Style for the <i> tag itself */
        .social-media .CardLink i {
            font-size: 1.25rem; /* 20px - a good size for a 44px circle */
            line-height: 1; /* Ensures perfect vertical alignment */
            color: var(--primary-text); /* Use a themed color for monochrome icons */
        }

            /* This part is optional but good. It keeps brand colors from your DB, but for icons without inline styles (like the phone), it uses a theme color */
            .social-media .CardLink i[style] {
                color: unset; /* If a style attribute exists (e.g., style="color: #1877f2;"), let it override the theme color */
            }


footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.language-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: color-mix(in srgb, var(--card-background) 80%, transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}

.header-menu-language {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
}

.body-menu-language {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

    .body-menu-language a {
        color: var(--primary-text);
        background-color: var(--action-btn-bg);
        border: 1px solid var(--border-color);
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.2s ease;
        font-weight: 500;
    }

        .body-menu-language a:hover {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }

/* Add these styles to your main <style> block */

.table-selection-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

    .table-selection-form label {
        display: block;
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: var(--secondary-text);
    }

    .table-selection-form select {
        width: 100%;
        padding: 0.75rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        background-color: var(--action-btn-bg);
        font-size: 1rem;
        color: var(--primary-text);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
    }

[dir='rtl'] .table-selection-form select {
    background-position: left 0.75rem center;
}

.table-selection-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Add these styles to your main <style> block */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

    .popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.popup-content {
    background: var(--card-background);
    color: var(--primary-text);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.popup-content p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.selection-details {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

    .popup-actions button {
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .popup-actions .button-primary {
        background-color: var(--primary-color);
        color: #fff;
    }

        .popup-actions .button-primary:hover {
            background-color: var(--primary-hover);
        }

    .popup-actions .button-secondary {
        background-color: var(--action-btn-bg);
        color: var(--primary-text);
    }

        .popup-actions .button-secondary:hover {
            background-color: var(--action-btn-hover);
        }


/* In ~/Static/css/ShopSlideshow.css */

/* Keyframes for the Ken Burns zoom-in effect */
@keyframes kenburns-zoom-in {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.slideshow-container {
    position: relative;
    max-width: 800px; /* <--- THIS IS THE KEY CHANGE. Adjust this value to your liking. */
    width: 100%; /* Ensures it's still responsive on smaller screens */
    margin-left: auto; /* These two lines center the container */
    margin-right: auto;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.2);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.slideshow-slides {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #333;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

    .slide.slide-active {
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }

        .slide.slide-active img {
            animation: kenburns-zoom-in 8s ease-out forwards;
        }

    .slide img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .slide::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
        z-index: 1;
    }

.slide-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out 0.4s, opacity 0.6s ease-out 0.4s;
}

[dir='rtl'] .slide-caption {
    text-align: right;
}

.slide.slide-active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

/* --- Navigation --- */
.slideshow-container .slideshow-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 8px;
}

.slideshow-container .dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .slideshow-container .dot:hover {
        background-color: rgba(255, 255, 255, 0.8);
    }

    .slideshow-container .dot.active-dot {
        background-color: #ffffff;
        width: 24px;
        border-radius: 5px;
    }

.slideshow-container .slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.slideshow-container:hover .slide-nav {
    opacity: 1;
}

.slideshow-container .slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.slideshow-container .slide-prev {
    left: 1rem;
}

.slideshow-container .slide-next {
    right: 1rem;
}


.custom-catalog-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.custom-bg-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
