:root {
    /* Signals to cart.js that this page has no styles.css, so the "item added to cart" modal
       (components/added_to_cart_modal.php) can't be shown here — see that check in cart.js
       and the #added-to-cart-modal hide rule below. A custom property, not the modal's own
       display, because .sk-modal is display:none by default on EVERY page until opened (the
       .active class is what shows it) — checking display directly read "none" everywhere,
       not just here, and broke the modal sitewide. */
    --sk-added-to-cart-modal-available: 0;
    --bg-body: #f8f4ee;
    --bg-card: #ffffff;
    --text-dark: #000000;
    --text-light: #636e72;
    --danger: #e0848f;
    --success: #00b894;
    --radius-card: 8px;
    --radius-btn: 50px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --font-main: 'Quicksand', sans-serif;
    --max-width: 1400px;
    --header-height: 70px;

    --btn-green: #73b7ab;
    --btn-green-hover: #5fa095;
    --btn-green-text: #ffffff;

    --btn-white: #ffffff;
    --btn-white-hover: #f9f9f9;
    --btn-white-text: #2d3436;

    --btn-apricot: #f5b6a3;
    --btn-apricot-hover: #e8a390;
    --btn-apricot-text: #ffffff;

    --btn-danger: #e0848f;
    --btn-danger-hover: #d57e89;

    --clr-green: #73b7ab;
    --clr-apricot: #f5b6a3;
    --clr-blue: #80cacd;
    --clr-purple: #bdabc4;
    --clr-beige: #f8f4ee;
    --clr-beige-hover: #e0d8c8;

    --clr-strawberry-pink: #e0848f;
    --clr-beach-sand: #eeba9b;
    --clr-buzzing-bees: #f3ee9c;
    --clr-paradise-green: #bcb5a3;
    --clr-aruba-blue: #96cacb;
    --clr-baltic-sea: #87b4d4;
    --clr-scented-levander: #c9b6d4;
    --clr-flushing-pink: #f1cddb;
}

/* --- Reset & Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

/* --- Global styled checkbox: colored box + white checkmark ---
   Opt-in via class="styled-checkbox" so it can be reused anywhere in the app. */
.styled-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    background-color: #fff;
    border: 1.5px solid #d1d1d1;
    border-radius: 5px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s, border-color .15s;
}
.styled-checkbox::before {
    content: "";
    width: 11px;
    height: 11px;
    transform: scale(0);
    transition: transform .12s ease-in-out;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background-color: #fff;
}
.styled-checkbox:checked {
    background-color: var(--clr-green, #73b7ab);
    border-color: var(--clr-green, #73b7ab);
}
.styled-checkbox:checked::before {
    transform: scale(1);
}

html,
body {
    position: relative;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* For smaller screens, remove body padding to use full width */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--bg-card);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- App Card Container --- */
.app-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: var(--max-width);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* overflow: clip (obě osy) místo jen overflow-x – pokud by zůstalo overflow-y
       na výchozím "visible", prohlížeč ho dle CSS spec automaticky převede na "auto"
       (scroll kontejner), což rozbíjí position: sticky uvnitř při změně výšky obsahu. */
    overflow: clip;
}

@media (max-width: 768px) {
    .app-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* --- Social Sharing Buttons --- */
.social-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-beige);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.blog-social-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-beige);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.social-share-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.social-share-links {
    display: flex;
    gap: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: var(--clr-beige);
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    flex-shrink: 0;
}

.btn-social svg {
    fill: currentColor;
    display: block;
    flex-shrink: 0;
    transition: inherit;
}

.btn-social.fb-icon svg {
    width: 15px;
    height: 15px;
}

.btn-social.x-icon svg {
    width: 15px;
    height: 15px;
}

.btn-social:hover {
    background-color: var(--clr-apricot);
    color: #ffffff;
    transform: scale(1.1) translateZ(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    border: none;
    cursor: pointer;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    color: white;
}

.btn-primary {
    background-color: var(--btn-green);
    color: var(--btn-green-text);
}

.btn-primary:hover {
    background-color: var(--btn-green-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--btn-white-hover);
    transform: translateY(-2px);
}

.btn-apricot {
    background-color: var(--btn-apricot);
    color: var(--btn-apricot-text);
}

.btn-apricot:hover {
    background-color: var(--btn-apricot-hover);
    transform: translateY(-2px);
}

.btn-icon-only {
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-white);
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-icon-only:hover {
    background: var(--btn-white-hover);
    transform: translateY(-2px);
    color: var(--clr-green);
}

.btn-icon-only:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

/* --- Site notice banner (temporary announcements, e.g. holiday closure) --- */
.site-notice-banner {
    background: var(--clr-strawberry-pink);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.site-notice-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Sticky top bar (banner + header together) --- */
.sticky-top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Info Banner --- */
@keyframes banner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.info-banner {
    background: var(--clr-apricot);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transition: border-radius 0.3s ease;
}

.app-card.is-scrolled .info-banner {
    border-radius: 0;
}

.info-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.info-banner__item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.info-banner__item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Desktop: duplicate marquee-set hidden, separator dot hidden */
.marquee-set + .marquee-set,
.info-banner__dot--sep {
    display: none;
}

.marquee-track {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.marquee-set {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.info-banner__dot {
    margin: 0 12px;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .sticky-top-bar {
        border-radius: 0;
    }

    .info-banner {
        border-radius: 0;
        padding: 6px 0;
        overflow: hidden;
    }

    .info-banner__inner {
        overflow: hidden;
        padding: 0;
        justify-content: flex-start;
    }

    .marquee-track {
        width: max-content;
        justify-content: flex-start;
        animation: banner-scroll 20s linear infinite;
    }

    /* Show duplicated set for seamless loop */
    .marquee-set + .marquee-set,
    .info-banner__dot--sep {
        display: inline-flex;
    }

    .info-banner__dot {
        margin: 0 10px;
    }
}

/* --- Header --- */
.main-header {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}



/* Hide Input Spinners Global */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Align Nav Left near Logo */
#main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-start;
    padding-left: 2rem;
}

/* Tools on the right */
.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 0 0 auto;
}

#main-nav a.nav-link {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

#main-nav a.nav-link:hover,
#main-nav a.nav-link.active {
    color: var(--clr-green);
    position: relative;
}

#main-nav a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-green);
    border-radius: 2px;
}

.cart-btn-wrapper {
    position: relative;
}

.btn-cart {
    background-color: var(--btn-green);
    color: var(--btn-green-text);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Empty Cart State */
.btn-cart.cart-empty {
    background-color: var(--btn-white);
    color: var(--btn-white-text);
    border-color: var(--btn-white);
}

.btn-cart.cart-empty svg {
    color: var(--btn-white-text) !important;
}

.btn-cart.cart-empty .js-cart-count {
    background: var(--btn-white);
    color: var(--btn-white-text);
}

.btn-cart:hover {
    background-color: var(--btn-green-hover);
    color: var(--btn-green-text);
}

.btn-cart.cart-empty:hover {
    background-color: var(--btn-white-hover);
    color: var(--btn-white-text);
    border-color: var(--clr-green);
}

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
    z-index: 1001;
}

.dropbtn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #eee;
}

.dropdown-group span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    padding: 0.5rem 0.8rem 0.2rem;
    font-weight: 700;
}

.dropdown-content a {
    padding: 10px 16px;
    display: block;
    font-size: 0.95rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f0f7f6;
    color: var(--clr-green);
}

.dropdown-content a.active {
    font-weight: bold;
    color: var(--clr-green);
    background-color: #f0f7f6;
}

.dropdown-division {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

.settings-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--avatar-border-color, var(--clr-green));
    background-color: #fff;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #eee;
}

.user-dropdown-wrapper.active .user-dropdown-content {
    display: block;
    animation: fadeIn 0.1s ease;
}

.user-dropdown-content a {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-content a:hover {
    background-color: #f0f7f6;
    color: var(--clr-green);
}

.user-dropdown-content a svg {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.user-dropdown-content a:hover svg {
    color: var(--clr-green);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-controls {
    display: none;
}

/* Mobile Controls */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex !important;
        order: 2;
    }

    .header-tools {
        display: none !important;
    }

    .user-avatar-circle {
        width: 35px;
        height: 35px;
    }

    .user-dropdown-content {
        position: fixed;
        top: 70px;
        right: 20px;
        left: 20px;
        width: auto;
    }

    .btn-cart .cart-label {
        display: none;
    }

    .btn-cart {
        padding: 0.6rem;
        gap: 6px;
    }

    .mobile-controls .user-dropdown-wrapper {
        display: none;
    }

    .mobile-settings-dropdown .dropdown-content {
        position: fixed;
        top: 70px;
        right: 20px;
        left: auto;
        width: auto;
        min-width: 150px;
    }

    .mobile-settings-dropdown:hover .dropdown-content {
        display: none;
    }

    .mobile-settings-dropdown.open .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--clr-beige);
    padding: 3rem 1rem;
    margin-top: auto;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 50px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.footer-bottom {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 1rem;
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #fff;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--success);
    min-width: 250px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.error {
    border-left-color: var(--danger);
}

/* --- Utility Classes --- */
.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
        padding-left: 0;
        font-size: 1.8rem;
    }
}

/* --- Product Cards (Shared) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    background: var(--clr-beige);
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    height: 100%;
    /* Force cards to take full height of grid cell */
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.blog-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.blog-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.product-card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
    /* Prevent top image from shrinking */
}

.product-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.product-card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-top img {
    transform: scale(1.05);
}

/* --- Label 1: Horizontal Ribbon from Right Edge --- */
.label-ribbon-right {
    position: absolute;
    top: 20px;
    right: -8px;
    background: var(--clr-purple);
    color: white;
    padding: 6px 15px 6px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.label-ribbon-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
    background: var(--clr-purple);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
}

.label-ribbon-right::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    border-top: 8px solid #97889c;
    /* Slightly darker apricot for the shadow */
    border-right: 8px solid transparent;
}

/* --- Label 2: Pill exactly above boundary --- */
.label-pill-center {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 50%);
    /* Moves it exactly half its height down */
    background: var(--clr-purple);
    color: white;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.ribbon {
    position: absolute;
    top: 30px;
    left: -60px;
    width: 240px;
    background: var(--clr-strawberry-pink);
    color: white;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
}

.ribbon-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ribbon-price {
    font-size: 1.0rem;
    font-weight: 800;
}

.product-card-content {
    padding: 1.5rem 1.0rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 0 0 14px 14px;
}

.prs-star-filled { color: #f5c518; }
.prs-star-empty  { color: #ddd; }

/* Half-star capable rating display (CSS width-clip overlay) */
.star-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.star-rating-bg { color: #ddd; }

.star-rating-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5c518;
}

.prs-score {
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    margin-left: 4px;
    line-height: 1;
}

.product-card-review-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: .85rem;
    margin-bottom: 4px;
}

.prs-count-static {
    font-size: .8rem;
    color: #888;
    margin-left: 2px;
    line-height: 1;
}

.product-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2rem * 1.6 * 1);
    /* Force 1 line height */
}

.product-short-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.4;
    min-height: calc(1.1rem * 1.4 * 3);
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure <p> inside description doesn't override display */
.product-short-desc p {
    display: inline;
    margin: 0;
}

.product-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-meta-row .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-green);
    margin: 0;
}

.product-meta-row .stock {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-light);
}

/* Digital products render an empty .stock (no stock concept) — drop it from the flex row
   entirely so the gap doesn't push the price off-center. */
.product-meta-row .stock:empty {
    display: none;
}

/* "Cheaper bought with X" hint — shown on accessory products (e.g. worksheets) that have a
   discount configured for at least one host/bundle in product_accessories. */
.accessory-discount-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: -0.75rem 0 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-strawberry-pink);
}

.accessory-discount-hint svg {
    flex-shrink: 0;
}

/* Product detail page — same hint, left-aligned under the price instead of centered on a card. */
.accessory-discount-hint--detail {
    justify-content: flex-start;
    margin: 0.25rem 0 1.5rem;
}

.accessory-discount-hint--cart {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
}

.accessory-discount-cart-note {
    font-weight: 400;
    color: var(--clr-text-secondary, #777);
}


/* --- Delivery Date Global --- */
.delivery-date {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--clr-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.delivery-date svg {
    margin-right: 5px;
    color: var(--clr-green);
}

.cart-delivery-date {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cart-delivery-date {
        justify-content: center;
        width: 100%;
    }
}


.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.product-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    /* Padding for shadow/hover visibility */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    flex: 0 0 350px;
    /* Fixed width for carousel items */
    max-width: 350px;
}

.carousel-nav {
    background: var(--btn-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: absolute;
    color: var(--text-dark);
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: var(--clr-green);
    color: white;
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
        /* Hide arrows on mobile, use touch scroll */
    }

    .product-carousel {
        padding-left: 0;
        padding-right: 0;
        gap: 15px;
        /* Reduce gap on mobile */
        /* Override parent container padding to snap scroll to edge */
        margin-left: -2rem;
        margin-right: -2rem;
        width: calc(100% + 4rem);
    }

    /* Add margins to the first and last cards to keep them aligned when scrolled */
    .product-carousel .product-card:first-child {
        margin-left: 2rem;
    }

    .product-carousel::after {
        content: "";
        flex: 0 0 calc(2rem - 15px);
        display: block;
    }

    .product-carousel .product-card {
        flex: 0 0 320px;
        /* Smaller width for mobile to show ~1.5 cards */
        max-width: 320px;
    }

    /* Compress padding inside the card on mobile carousel to fit buttons */
    .product-carousel .product-card-content {
        padding: 1rem;
        /* Reduced from 1.5rem default */
        padding-bottom: 1rem;
    }

    /* Compress buttons on mobile carousel */
    .product-carousel .btn-half {
        padding: 0.6rem 0.8rem;
        /* Reduced horizontal padding */
        font-size: 0.9rem;
        flex: 1;
        max-width: none;
    }

    .product-carousel .action-half {
        flex: 2;
    }

    .product-carousel .product-actions-wrapper.has-qty .btn-half {
        flex: 0 0 40%;
        padding: 0.6rem 0.2rem;
    }

    .product-carousel .product-actions-wrapper.has-qty .action-half {
        flex: 1;
        max-width: none;
        width: auto;
    }

    /* Fix for Price/Stock Layout on Mobile Carousel */
    .product-carousel .product-meta-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 1rem;
    }

    .product-carousel .product-meta-row .price {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        line-height: 1.2;
    }

    /* Override inline margin from JS to use flex gap */
    .product-carousel .product-meta-row .price .original-price {
        margin-right: 0 !important;
    }
}

.product-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

/* btn-half = "Více" link, 1/3 */
.btn-half, .btn-more {
    flex: 1;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    transition: flex 0.4s ease;
}

/* action-half = "Koupit" button container, 2/3 */
.action-half {
    flex: 2;
    overflow: hidden;
    transition: flex 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: stretch;
}

/* btn-buy fills the action-half fully */
.btn-buy {
    flex: 1;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* No translateY lift on buttons inside product cards – prevents clipping */
.product-actions-wrapper .btn:hover {
    transform: none;
}

.product-actions-wrapper.has-qty .btn-half,
.product-actions-wrapper.has-qty .btn-more {
    flex: 0 0 38%;
    padding: 0.7rem 0.3rem;
}

.product-actions-wrapper.has-qty .action-half {
    flex: 1;
    width: auto;
    justify-content: center;
    overflow: visible;
}

.product-actions-wrapper.has-qty .hide-on-expanded {
    display: none;
}

.qty-half {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--btn-white);
    border-radius: 30px;
    padding: 0 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.qty-half button.btn-qty {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--clr-apricot);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.qty-half input.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 0;
}

.qty-half input::-webkit-outer-spin-button,
.qty-half input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    margin: 0;
}

.qty-control input {
    -moz-appearance: textfield;
    appearance: none;
}

/* --- Qty Control (Generic) --- */
/* --- Qty Control (Generic - Unified based on Product Card) --- */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: fit-content;
    background-color: #fff;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    /* Match card shadow if possible or standard */
    min-width: 120px;
    /* Ensure enough space */
}

.qty-control button.btn-qty {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--clr-apricot);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.qty-control button.btn-qty:hover {
    background-color: #fab1a0;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qty-control input.qty-input {
    width: 45px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: transparent;
}


/* Media Queries for Mobile Nav */
@media (max-width: 900px) {
    .main-header .container {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo {
        flex: 0 0 auto;
        order: 1;
    }

    .header-tools {
        display: flex;
        flex: 0 0 auto;
        gap: 0.5rem;
        width: auto;
        justify-content: flex-end;
        order: 2;
        margin-left: auto;
    }

    .cart-label {
        display: none;
    }

    .btn-cart {
        padding: 0.5rem;
    }

    .btn-cart svg {
        margin: 0;
    }

    .hamburger {
        display: flex;
        flex: 0 0 auto;
        margin-left: 0.5rem;
        order: 3;
    }
}





@media (max-width: 900px) {
    #main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        /* visibility navíc k transformu – v kombinaci se sticky rodičem (.sticky-top-bar),
           jehož výška se mění (nová hláška), Chrome umí špatně spočítat, kam se transformem
           "mimo obrazovku" posunutý prvek vykreslí, a bílý panel menu pak překryje obsah nad ním.
           visibility: hidden ho spolehlivě vynechá z vykreslení bez ohledu na transform. */
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
    }

    .dropbtn {
        font-size: 0.8rem;
    }

    #main-nav.active {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* --- Consolidated Hero Styles --- */
.hero-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

img.hero-cover:not(.hero-slide) {
    opacity: 1;
}

/* Desktop/mobile slider visibility */
.slider-desktop { display: block; }
.slider-mobile  { display: none; }

@media (max-width: 768px) {
    .slider-desktop { display: none; }
    .slider-mobile  { display: block; }
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-dark);
    transition: background 0.3s;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 28px;
    border-radius: 10px;
}

/* Override: slider-nav and slider-dots set display:flex, which would beat the
   .slider-mobile / .slider-desktop visibility rules (same specificity, later rule wins).
   Use combined selectors (specificity 0-2-0) to correctly hide elements on wrong device. */
.slider-nav.slider-mobile,
.slider-dots.slider-mobile { display: none; }

@media (max-width: 768px) {
    .slider-nav.slider-desktop,
    .slider-dots.slider-desktop { display: none; }
    .slider-nav.slider-mobile,
    .slider-dots.slider-mobile { display: flex; }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.hero-text-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 600px;
    margin-right: 0;
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Element physically in DOM for SEO but not visible to users */
.slide-seo-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

.hero-slide-text {
    display: none;
}

.hero-slide-text.active {
    display: block;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        aspect-ratio: 16 / 9;
        display: block;
    }

    .hero-cover {
        position: absolute;
        height: 100%;
    }

    .hero-desktop-text {
        display: none !important;
    }
}

.hero-pre-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-pre-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.hero-subtitle span {
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-price-range {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hero-mobile-text .hero-price-range {
    justify-content: center;
}

.hero-price-sep {
    font-size: 1.3rem;
    line-height: 1;
    opacity: 0.7;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Desktop: Bullet between items */
.hero-features li:not(:first-child)::before {
    content: "\25CF";
    color: var(--clr-green);
    font-size: 0.8rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero-features {
        display: none;
    }
}

.hero-features li::after {
    content: none !important;
}

/* --- Hero Mobile Text Section --- */
.hero-mobile-section {
    display: none;
}

.hero-mobile-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-mobile-text .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-mobile-text .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .hero-mobile-section {
        display: block;
        padding: 2rem 0rem;
        background-color: var(--clr-beige);
    }

    .hero-mobile-section .btn-secondary {
        display: none;
    }
}

/* --- Contact Section ---
   White band (not beige — same white as the page), but the same container/card pattern as
   .catalog-cta-band (product-catalog.css): .container.container-large wrapper (not its own
   max-width — this used to be narrower than .catalog-cta-band's row above it, an
   inconsistent side inset), white cards, no shadow, matching padding/radius/breakpoints.
   Same values mirrored in styles.css (product/catalog pages); home.css no longer overrides
   this section at all. */
.contact-hero-section {
    width: 100%;
    padding: 60px 0;
    background-color: #fff;
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 2rem 0;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info,
.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form {
        padding: 2rem 1.25rem;
    }
}

.contact-info {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Right column (the form) gets a tinted background so it reads as its own card instead of
   blending into the white section behind it — mirrors the same override in styles.css. */
.contact-form {
    background: var(--clr-beige);
}

.contact-form .form-control {
    background: #fff;
    border-color: var(--clr-beige-hover, #e0d8c8);
}

.contact-form label {
    color: var(--text-dark);
}

/* Heading is .section-title (see markup) — the same shared class every other section's
   heading uses (left-aligned/2.5rem desktop, centered/1.8rem mobile inside
   .container.container-large), not a bespoke size for this section alone. */

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.contact-details {
    margin-top: 2rem;
    background: var(--clr-beige);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Was 3x identical inline style="display:flex;align-items:center;gap:0.5rem;..." in
   section_contact.php — one rule instead. */
.contact-details a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.contact-phone-hours-short {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--clr-text-muted, #6b6b6b);
}

@media (max-width: 480px) {
    .contact-details p:has(.contact-phone-hours-short) {
        flex-wrap: wrap;
    }

    .contact-phone-hours-short {
        flex-basis: 100%;
        margin-left: 1.75rem;
    }
}

.contact-phone-hours {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--clr-text-muted, #6b6b6b);
    margin-top: 0.35rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-green);
    box-shadow: 0 0 0 3px rgba(115, 183, 171, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* .contact-info/.contact-form stretch to equal height (.contact-layout's align-items:
   stretch) — the form's own fields are naturally shorter than the info column's text +
   detail boxes, which without this left a dead gap at the bottom of the (invisible,
   border/shadow-free) card. Filling the stretched height and pinning the submit button to
   the bottom makes both columns' visible content actually reach the same bottom edge. */
#contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* The message field (last .form-group, holding the textarea) grows into the leftover
   stretched height instead of leaving a dead gap above the button — a bigger textarea to
   write in, not empty space. */
#contact-form .form-group:last-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contact-form .form-group:last-of-type textarea {
    flex: 1;
}

.contact-form-submit {
    width: 100%;
}

/* Lightbox/Modal Shared */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.lightbox.active {
    display: flex !important;
}

/* --- Skeleton Loading --- */
.skeleton-card {
    background: var(--clr-beige);
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: 450px;
    /* Approx height of card */
    position: relative;
    box-shadow: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #e0d8c8;
    position: relative;
    overflow: hidden;
}

.skeleton-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-text {
    height: 1rem;
    background-color: #e0d8c8;
    border-radius: 4px;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
}

.skeleton-price {
    height: 1.5rem;
    width: 40%;
    margin: 0 auto;
}

.skeleton-btn {
    height: 45px;
    width: 100%;
    background-color: #e0d8c8;
    border-radius: 30px;
    margin-top: auto;
}

/* Shimmer Animation */
.skeleton-img::after,
.skeleton-text::after,
.skeleton-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- Validation Errors (Global) --- */
input.error,
select.error,
textarea.error,
.error-border {
    border-color: #e74c3c !important;
    /* Red border for invalid fields/containers */
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* --- Modals (Global) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
    line-height: 1;
}

.modal .close:hover,
.modal .close:focus {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

.modal-body-text h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.modal-body-text a:hover {
    color: var(--btn-green-hover) !important;
}

/* --- Legal Pages Styling --- */
.legal-page section {
    padding: 1rem 0rem;
}

.legal-page section p {
    margin-bottom: 0.2rem;
}

.legal-page section ol {
    margin: 1rem 0 1rem 2rem;
}

.legal-page section ul {
    list-style: disc;
    margin: 0.5rem 0 0.5rem 2rem;
}

/* ── LQIP blur-up ───────────────────────────────────────────────────────────── */
img.lqip {
    filter: blur(12px);
    transform: scale(1.03);
    transition: filter 0.4s ease, transform 0.4s ease;
    will-change: filter, transform;
}

img.lqip.lqip-loaded {
    filter: none;
    transform: scale(1);
}

/* The "item added to cart" modal (components/added_to_cart_modal.php) needs styles.css
   (.sk-modal/.cart-item-card/.shipping-box etc.), which pages on common.css never load.
   Rather than build it a second, cut-down design system here, it's just hidden outright on
   these pages — cart.js checks this same rule (getComputedStyle) and adds the product
   silently in the background instead, no modal, no toast. */
#added-to-cart-modal {
    display: none !important;
}
