/* =========================================
   FANTOUKIS - main stylesheet
   ========================================= */

/* ----- Colors and fonts in one place -----
   Change a value here and it updates everywhere. */
:root {
    --cream: #FFF8F1;
    --yellow: #FFE9A8;
    --mint: #C4EBDF;
    --pink: #F7C6D6;
    --peach: #FFD9C7;
    --accent: #D9467A;       /* main button color */
    --accent-dark: #B8335F;  /* button hover color */
    --ink: #2B2230;          /* main text color */
    --muted: #6B5E66;        /* softer text color */
    --white: #FFFFFF;

    --line: rgba(43, 34, 48, 0.12);   /* thin, soft border color */
    --shadow: 0 12px 30px rgba(43, 34, 48, 0.10);  /* soft hover shadow */

    --font-logo: "Fredoka", sans-serif;
    /* Manrope is listed second because it has Greek letters:
       English uses Outfit / DM Sans, Greek text uses Manrope */
    --font-heading: "Outfit", "Manrope", sans-serif;
    --font-body: "DM Sans", "Manrope", sans-serif;

    --radius: 14px;
}

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Keeps content centered with a max width */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 17px;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(217, 70, 122, 0.30);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--white);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
}

.logo {
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 30px;
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
}

.main-nav a {
    white-space: nowrap;
}

/* Medium screens: let the menu wrap neatly under the logo if needed */
@media (max-width: 1100px) and (min-width: 601px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

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

.nav-button {
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    padding: 8px 18px;
}

.main-nav .nav-button:hover {
    background: var(--ink);
    color: var(--white);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    background: var(--yellow);
    padding: 70px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.eyebrow {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image .photo {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    /* Layered shadow: a tight one for depth, a wide one for softness,
       and a pink glow underneath to match the brand */
    box-shadow:
        0 4px 10px rgba(43, 34, 48, 0.10),
        0 30px 60px rgba(43, 34, 48, 0.22),
        0 40px 90px rgba(217, 70, 122, 0.20);
    object-fit: cover;
    width: 100%;
}

/* =========================================
   PHOTO PLACEHOLDERS
   (delete these once you add real photos)
   ========================================= */
.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    aspect-ratio: 1 / 1;
}

/* Real photos sit on top of the placeholder and fill the box.
   If a photo file is missing, the colored placeholder shows instead. */
.photo {
    position: relative;
    overflow: hidden;
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-pink   { background: var(--pink); }
.photo-mint   { background: var(--mint); }
.photo-yellow { background: var(--yellow); }
.photo-peach  { background: var(--peach); }

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 80px 0;
}

.section-tinted {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 44px;
}

/* ----- Category cards ----- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card,
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card .photo,
.product-card .photo {
    border-bottom: 1px solid var(--line);
}

.category-card h3 {
    font-size: 20px;
    padding: 16px;
    text-align: center;
}

/* ----- Steps ----- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 0 10px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--mint);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
}

/* ----- Product cards ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card h3 {
    font-size: 20px;
    padding: 16px 18px 4px;
}

.price {
    padding: 0 18px 18px;
    color: var(--accent);
    font-weight: 700;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 50px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-small {
    font-size: 26px;
    color: var(--pink);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-top: 40px;
}

/* =========================================
   ACTIVE MENU LINK (shows which page you're on)
   ========================================= */
.main-nav a.active {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* =========================================
   INNER PAGE INTRO (About, Shop, etc.)
   ========================================= */
.page-hero {
    background: var(--yellow);
    padding: 70px 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: 46px;
    margin-bottom: 16px;
}

.page-hero-sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
}

/* =========================================
   FEATURE CARDS (About page)
   ========================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.feature-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tag-pink   { background: var(--pink); }
.tag-mint   { background: var(--mint); }
.tag-yellow { background: var(--yellow); }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
}

/* =========================================
   SPLIT SECTION (photo on one side, text on the other)
   ========================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.split-image .photo {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(43, 34, 48, 0.14);
    object-fit: cover;
    width: 100%;
}

.split-text h2 {
    font-size: 34px;
    margin-bottom: 16px;
}

.split-text p {
    color: var(--muted);
    margin-bottom: 14px;
}

/* =========================================
   CALL TO ACTION BOX
   ========================================= */
.cta-box {
    text-align: center;
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

.cta-box p {
    color: var(--muted);
    margin-bottom: 28px;
}

.cta-buttons {
    justify-content: center;
}

/* =========================================
   SHOP PAGE
   ========================================= */
.page-hero-small {
    padding: 50px 0;
}

.shop-section {
    padding-top: 40px;
}

/* ----- Category buttons ----- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-btn {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 17px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-btn:hover {
    border-color: var(--ink);
}

.filter-btn.active {
    background: var(--ink);
    color: var(--white);
}

/* ----- Info box (used on the Events and Business pages) ----- */
.info-box {
    background: #FFF0E8;
    border: 1px solid var(--peach);
    border-radius: var(--radius);
    padding: 24px 28px;
    max-width: 760px;
    margin: 0 auto 28px;
}

.info-box[hidden] {
    display: none;
}

.info-box h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.product-count {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 16px;
}

/* ----- Product grid ----- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.shop-card .photo,
.shop-card img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px 18px;
    flex: 1;
}

.shop-card h3 {
    font-size: 19px;
}

.shop-card .price {
    padding: 0;
    margin-bottom: 10px;
}

.shop-card .btn-small {
    margin-top: auto;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    background: var(--mint);
    color: #1F4D40;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 6px;
}

.btn-small {
    font-size: 15px;
    padding: 8px 22px;
    background: var(--white);
    color: var(--ink);
}

.btn-small:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ----- Custom order banner ----- */
.custom-banner {
    text-align: center;
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    margin-top: 60px;
}

.custom-banner h2 {
    font-size: 30px;
    margin-bottom: 6px;
}

.custom-banner p {
    margin-bottom: 24px;
}

/* =========================================
   EVENTS: homepage promo
   ========================================= */
.event-promo {
    background: var(--pink);
    padding: 80px 0;
}

.event-promo .split-text h2 {
    font-size: 40px;
}

.event-promo .split-text p {
    color: var(--ink);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 28px;
}

.chip {
    background: var(--white);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   EVENTS PAGE
   ========================================= */
.events-hero {
    background: var(--pink);
}

.events-hero .page-hero-sub {
    color: var(--ink);
    margin-bottom: 32px;
}

.tag-peach { background: var(--peach); }

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.event-card .feature-tag {
    font-size: 15px;
    padding: 6px 14px;
}

.event-card p {
    color: var(--muted);
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.idea-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.idea-card .photo {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line);
}

.idea-body {
    padding: 18px 20px 22px;
}

.idea-body h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.idea-body p {
    color: var(--muted);
}

.order-early {
    margin-top: 48px;
}

.section-no-top {
    padding-top: 0;
}

.section-no-top .custom-banner {
    margin-top: 0;
}

/* =========================================
   BUSINESS: homepage section and page
   ========================================= */
.business-promo {
    background: var(--mint);
    padding: 80px 0;
}

.business-promo .split-text h2 {
    font-size: 40px;
}

.business-promo .split-text p {
    color: var(--ink);
}

/* Photo on the left, text on the right (desktop only) */
.split-reverse .split-image {
    order: -1;
}

.business-hero {
    background: var(--mint);
}

.business-hero .page-hero-sub {
    color: var(--ink);
    margin-bottom: 32px;
}

.tech-box {
    background: var(--white);
    border-color: var(--line);
    margin-bottom: 40px;
}

.text-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   LANGUAGE: switcher in the menu
   ========================================= */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--white);
}

.lang-switch button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: none;
    border-radius: 999px;
    padding: 5px 10px;
    cursor: pointer;
}

.lang-switch button.active {
    background: var(--ink);
    color: var(--white);
}

/* Hides the page for a split second while Greek loads */
.i18n-pending body {
    visibility: hidden;
}

.no-scroll {
    overflow: hidden;
}

/* =========================================
   LANGUAGE: welcome screen
   ========================================= */
.lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(43, 34, 48, 0.45);
    backdrop-filter: blur(6px);
    animation: fade-in 0.25s ease;
}

.lang-overlay.closing {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lang-dialog {
    width: 100%;
    max-width: 420px;
    background: var(--cream);
    border-radius: 24px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(43, 34, 48, 0.30);
    animation: pop-in 0.3s ease;
}

.lang-logo {
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 14px;
}

.lang-dialog h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.lang-dialog h2 span,
.lang-sub span,
.lang-note span {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.lang-dialog h2 span {
    font-size: 18px;
    margin-top: 4px;
}

.lang-sub {
    font-weight: 600;
    margin: 18px 0 18px;
}

.lang-sub span {
    font-size: 14px;
}

.lang-choices {
    display: grid;
    gap: 12px;
}

.lang-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lang-choice:hover,
.lang-choice:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    outline: none;
}

.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    background: var(--yellow);
}

.lang-choice[data-choose="en"] .lang-code {
    background: var(--mint);
}

.lang-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 18px;
}

.lang-note span {
    font-size: 13px;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

/* =========================================
   TABLETS
   ========================================= */
@media (max-width: 900px) {
    .split-reverse .split-image {
        order: 0;
    }
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .idea-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .chip-row {
        justify-content: center;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        max-width: 480px;
        margin: 0 auto;
    }

    .split-text {
        text-align: center;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid,
    .steps {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* =========================================
   PHONES
   ========================================= */
@media (max-width: 600px) {
    /* On phones the menu is taller, so it scrolls away instead of
       staying stuck at the top and covering the page */
    .site-header {
        position: static;
    }

    .header-inner {
        flex-direction: column;
    }

    .main-nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 15px;
    }

    .hero {
        padding: 44px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .page-hero {
        padding: 44px 0;
    }

    .shop-grid {
        gap: 12px;
    }

    .shop-card-body {
        padding: 12px;
    }

    .shop-card h3 {
        font-size: 16px;
    }

    .filter-btn {
        font-size: 15px;
        padding: 6px 14px;
    }

    .info-box {
        padding: 20px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-promo {
        padding: 56px 0;
    }

    .business-promo {
        padding: 56px 0;
    }

    .business-promo .split-text h2,
    .event-promo .split-text h2,
    .split-text h2,
    .cta-box h2 {
        font-size: 28px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .category-grid {
        gap: 14px;
    }

    .category-card h3 {
        font-size: 16px;
        padding: 12px;
    }
}


/* =========================================
   ANIMATION SETTINGS AND BUTTON POPS
   Everything below this line only adds movement.
   It doesn't change sizes, spacing or layout.
   ========================================= */
:root {
    /* "spring" overshoots a little, which gives the bouncy pop */
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Every button pops up a little on hover, and squishes when pressed */
.btn {
    cursor: pointer;
    transition: transform 0.35s var(--spring), box-shadow 0.25s ease,
                background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px) scale(1.04);
}

.btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.1s;
}

.btn-secondary:hover {
    box-shadow: 0 10px 24px rgba(43, 34, 48, 0.18);
}

/* =========================================
   SHOP: "coming soon" message (shown when the shop is empty)
   ========================================= */
.shop-empty {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 56px 24px;
    max-width: 640px;
    margin: 10px auto 0;
    animation: pop-up 0.7s var(--spring) backwards;
}

.shop-empty h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.shop-empty p {
    color: var(--muted);
}

/* Three pastel dots that bounce one after another */
.shop-empty-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.shop-empty-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink);
    animation: dot-bounce 1.6s ease-in-out infinite;
}

.shop-empty-dots span:nth-child(2) {
    background: var(--yellow);
    animation-delay: 0.2s;
}

.shop-empty-dots span:nth-child(3) {
    background: var(--mint);
    animation-delay: 0.4s;
}

/* Hidden parts of the shop really stay hidden */
.shop-empty[hidden],
.filter-bar[hidden],
.product-count[hidden] {
    display: none;
}

/* =========================================
   ANIMATIONS
   Soft, bouncy "pop" effects. animations.js adds the classes;
   this section decides how they look.
   ========================================= */

/* ----- Pop in while scrolling -----
   Hidden until it scrolls into view, then pops up into place.
   --delay makes things that appear together pop one after another. */
.js-anim .reveal:not(.is-visible) {
    opacity: 0;
}

.js-anim .reveal.is-visible {
    animation: pop-up 0.7s var(--spring) var(--delay, 0ms) backwards;
}

/* Photos pop with a little more scale */
.js-anim .hero-image.is-visible,
.js-anim .split-image.is-visible {
    animation-name: pop-photo;
    animation-duration: 0.9s;
}

/* Chips bounce in like little bubbles */
.js-anim .chip.is-visible {
    animation-name: pop-bubble;
    animation-duration: 0.55s;
}

/* Step numbers pop a moment after their step appears */
.js-anim .step.is-visible .step-number {
    animation: pop-bubble 0.5s var(--spring) calc(var(--delay, 0ms) + 0.15s) backwards;
}

/* Shop cards pop in every time a category is opened */
.shop-card {
    animation: pop-up 0.55s var(--spring) var(--delay, 0ms) backwards;
}

/* ----- The main photo on the homepage floats gently ----- */
.hero-image .photo {
    animation: float 7s ease-in-out infinite;
}

/* ----- Logo: a playful wiggle on hover ----- */
.site-header .logo:hover {
    animation: wiggle 0.6s ease;
}

/* ----- Menu links hop up a little ----- */
.main-nav a {
    transition: transform 0.3s var(--spring), color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    transform: translateY(-2px);
}

.lang-switch button {
    transition: transform 0.3s var(--spring), background 0.2s ease, color 0.2s ease;
}

.lang-switch button:active {
    transform: scale(0.9);
}

/* ----- Shop category buttons ----- */
.filter-btn {
    transition: transform 0.3s var(--spring), background 0.2s ease,
                color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:active {
    transform: scale(0.94);
}

/* ----- Step numbers turn and grow when you point at a step ----- */
.step-number {
    transition: transform 0.4s var(--spring), background 0.2s ease;
}

/* ----- Cards: all cards share the same smooth lift ----- */
.category-card,
.product-card,
.shop-card,
.feature-card,
.event-card,
.idea-card {
    transition: transform 0.4s var(--spring), box-shadow 0.3s ease;
}

/* Photos inside cards zoom in slightly on hover */
.category-card .photo img,
.product-card .photo img,
.idea-card .photo img,
.shop-card img {
    transition: transform 0.6s var(--smooth);
}

/* Hover effects only on devices with a mouse,
   so cards don't get "stuck" lifted after a tap on phones */
@media (hover: hover) {
    .category-card:hover,
    .product-card:hover,
    .shop-card:hover,
    .idea-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow);
    }

    .feature-card:hover,
    .event-card:hover {
        transform: translateY(-5px) rotate(-0.6deg);
        box-shadow: var(--shadow);
    }

    .category-card:hover .photo img,
    .product-card:hover .photo img,
    .idea-card:hover .photo img,
    .shop-card:hover img {
        transform: scale(1.06);
    }

    .step:hover .step-number {
        transform: rotate(-10deg) scale(1.12);
        background: var(--pink);
    }

    .chip {
        transition: transform 0.3s var(--spring);
    }

    .chip:hover {
        transform: translateY(-2px) scale(1.07) rotate(-2deg);
    }

    .filter-btn:hover {
        transform: translateY(-2px);
    }

    .footer-links a {
        transition: transform 0.3s var(--spring), color 0.2s ease;
    }

    .footer-links a:hover {
        transform: translateX(4px);
    }
}

/* ----- The animations themselves ----- */
@keyframes pop-up {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

@keyframes pop-photo {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to   { opacity: 1; transform: none; }
}

@keyframes pop-bubble {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: none; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-6deg) scale(1.05); }
    50%      { transform: rotate(5deg) scale(1.05); }
    75%      { transform: rotate(-2deg); }
}

@keyframes dot-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-10px); }
}

/* ----- Visitors who turned on "reduce motion": no animations ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Phones: smaller "coming soon" title in the shop */
@media (max-width: 600px) {
    .shop-empty h2 {
        font-size: 28px;
    }
}

/* =========================================
   CUSTOM ORDERS PAGE
   ========================================= */
.custom-hero {
    background: var(--peach);
}

.custom-hero .page-hero-sub {
    color: var(--ink);
    margin-bottom: 32px;
}

/* Form on the left, "Good to know" on the right */
.request-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 12px 30px rgba(43, 34, 48, 0.06);
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-field label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
}

.form-field .optional {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;   /* 16px stops phones from zooming in when you tap a box */
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field select {
    appearance: none;
    cursor: pointer;
    /* little arrow on the right */
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 70, 122, 0.15);
}

/* Required fields left empty */
.form-field .is-invalid {
    border-color: var(--accent);
    background-color: #FFF0F4;
    animation: nudge 0.4s ease;
}

.form-error {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
}

.form-error[hidden] {
    display: none;
}

.form-submit {
    width: 100%;
    font-size: 18px;
    padding: 15px 28px;
}

.form-note {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

/* ----- "Good to know" box ----- */
.good-to-know {
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 110px;
}

.good-to-know h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.good-to-know ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.good-to-know li {
    position: relative;
    padding-left: 26px;
}

/* little pink dot before each line */
.good-to-know li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.6em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.good-to-know-mail {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.good-to-know-mail span {
    display: block;
    color: var(--muted);
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Tablets and phones: stack the form and the box */
@media (max-width: 900px) {
    .request-layout {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .good-to-know {
        position: static;
    }
}

@media (max-width: 600px) {
    .form-card {
        padding: 22px 18px;
    }

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

    .good-to-know {
        padding: 22px 20px;
    }
}

/* =========================================
   PRODUCT PAGE (product.html)
   ========================================= */
.product-section {
    padding-top: 36px;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s ease, transform 0.3s var(--spring);
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

/* Photos on the left, details on the right */
.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Make sure hidden parts really stay hidden */
.product-layout[hidden],
.gallery-arrow[hidden],
.gallery-count[hidden],
.gallery-thumbs[hidden],
.product-info .badge[hidden],
.product-note[hidden] {
    display: none;
}

/* ----- Gallery ----- */
.gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(43, 34, 48, 0.12);
    user-select: none;
}

/* All photos sit on top of each other; only the active one shows */
.gallery-main .gallery-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.6s var(--smooth);
}

.gallery-main .gallery-slide.is-active {
    opacity: 1;
    transform: none;
}

.gallery-main .gallery-slide.is-broken {
    display: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
    padding-bottom: 4px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(43, 34, 48, 0.18);
    transition: transform 0.3s var(--spring), background 0.2s ease, color 0.2s ease;
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
    outline: none;
}

.gallery-arrow:active {
    transform: scale(0.92);
}

.gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    background: rgba(43, 34, 48, 0.75);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
}

.gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.3s var(--spring);
}

.gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    opacity: 1;
    border-color: var(--accent);
}

/* ----- Details ----- */
.product-category {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-category a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-info h1 {
    font-size: 40px;
    margin-bottom: 14px;
}

.product-info .badge {
    margin-bottom: 12px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-description p {
    color: var(--muted);
    margin-bottom: 14px;
}

.product-order {
    margin-top: 10px;
}

.product-note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
}

.product-extra {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
}

.product-missing-btn {
    margin-top: 22px;
}

/* Tablets and phones: photos on top, details underneath */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 560px;
        margin: 0 auto;
    }

    .gallery {
        position: static;
    }
}

@media (max-width: 600px) {
    .product-info h1 {
        font-size: 30px;
    }

    .product-price {
        font-size: 24px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 26px;
    }

    .gallery-thumb {
        width: 62px;
        height: 62px;
    }

    .product-order {
        display: block;
        text-align: center;
    }
}
